﻿:root {
  --bg: #f3f7fb;
  --surface: #ffffff;
  --surface-soft: #f8fbff;
  --line: #dfe8f2;
  --text: #111111;
  --muted: #5f6368;
  --primary: #0071e3;
  --primary-dark: #005bb5;
  --ice: #74d7ff;
  --deep-blue: #0a4f9f;
  --danger: #c43b4b;
  --radius: 26px;
  --shadow: 0 24px 70px rgba(28, 78, 124, 0.1);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "SF Pro Text", "Segoe UI", "PingFang SC", "Noto Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 12% 0%, rgba(116, 215, 255, 0.28), transparent 30%),
    radial-gradient(circle at 88% 10%, rgba(0, 113, 227, 0.13), transparent 28%),
    linear-gradient(180deg, #fbfdff 0%, var(--bg) 48%, #eef5fb 100%);
  overflow-x: hidden;
}

a {
  color: inherit;
  text-decoration: none;
}

.ice-bg,
.glow,
.cube {
  display: none;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px clamp(14px, 2vw, 28px);
  background: rgba(255, 255, 255, 0.78);
  backdrop-filter: blur(18px) saturate(150%);
  border-bottom: 1px solid rgba(223, 232, 242, 0.78);
  box-shadow: 0 12px 40px rgba(38, 75, 110, 0.06);
}

.brand-link {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  border-radius: 18px;
  transition: opacity 160ms ease, transform 160ms ease;
}

.brand-link:hover {
  opacity: 0.82;
  transform: translateY(-1px);
}

.logo {
  width: 46px;
  height: 46px;
  border: 0;
  background: transparent;
  padding: 0;
  flex: 0 0 auto;
}

.brand {
  font-size: clamp(15px, 1.5vw, 22px);
  font-weight: 650;
  line-height: 1.2;
  letter-spacing: -0.02em;
}

.brand-sub {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.contact-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--muted);
  font-size: 12px;
  box-shadow: 0 8px 22px rgba(30, 78, 120, 0.05);
}

.contact-pill a {
  color: var(--primary);
}

.sep {
  opacity: 0.5;
}

.lang-switch select {
  min-width: 132px;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.toolbar-btn {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 14px;
  background: var(--primary);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.toolbar-btn:hover {
  background: var(--primary-dark);
}

.toolbar-btn.ghost {
  background: #fff;
  color: var(--text);
}

.container {
  width: min(1780px, calc(100% - 24px));
  margin: 14px auto 18px;
}

.home-main,
.inner-main,
.admin-main,
.admin-layout {
  display: grid;
  gap: 14px;
}

.home-main {
  min-height: calc(100vh - 82px);
  grid-template-rows: auto minmax(0, 1fr);
}

.home-hero {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(360px, 0.8fr);
  align-items: stretch;
  gap: 14px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(244, 250, 255, 0.92) 100%);
  border: 1px solid rgba(223, 232, 242, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: clamp(18px, 2vw, 30px);
  text-align: left;
}

.home-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: min(46vw, 640px);
  height: min(46vw, 640px);
  border-radius: 48% 52% 42% 58%;
  background:
    radial-gradient(circle at 42% 38%, rgba(255, 255, 255, 0.98) 0 14%, transparent 15%),
    linear-gradient(135deg, rgba(116, 215, 255, 0.2), rgba(0, 113, 227, 0.1));
  pointer-events: none;
}

.home-hero-copy {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: center;
  min-height: 210px;
}

.hero-kicker {
  margin: 0;
  color: var(--deep-blue);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}

.home-hero h1 {
  margin: 8px 0 22px;
  max-width: 13ch;
  font-size: clamp(44px, 5.8vw, 88px);
  line-height: 0.92;
  font-weight: 720;
  letter-spacing: -0.055em;
}

.home-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  max-width: 80ch;
  font-size: clamp(15px, 1.6vw, 20px);
  line-height: 1.5;
  white-space: nowrap;
}

.home-proof-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: repeat(3, 1fr);
  gap: 10px;
}

.home-proof-card {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 78px;
  padding: 16px 18px;
  border: 1px solid rgba(223, 232, 242, 0.82);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(10px);
}

.home-proof-card strong {
  font-size: 15px;
  letter-spacing: -0.01em;
}

.home-proof-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.product-grid {
  display: grid;
  gap: 14px;
}

.home-grid {
  grid-template-columns: repeat(2, minmax(520px, 1fr));
  min-height: clamp(520px, calc(100vh - 300px), 760px);
}

.product-card,
.model-card,
.page-hero,
.panel,
.stat-card,
.hero-glass {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(223, 232, 242, 0.9);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.product-home {
  overflow: hidden;
  display: grid;
  grid-template-rows: minmax(420px, 1fr) auto;
  background: rgba(255, 255, 255, 0.92);
  transition: transform 180ms ease-out, box-shadow 180ms ease-out, border-color 180ms ease-out;
}

.product-home:hover {
  border-color: rgba(0, 113, 227, 0.32);
  box-shadow: 0 30px 82px rgba(0, 79, 159, 0.14);
  transform: translateY(-4px);
}

.product-home img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-bottom: 1px solid var(--line);
}

.home-product-collage {
  position: relative;
  min-height: clamp(420px, 54vh, 660px);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 28% 18%, rgba(116, 215, 255, 0.3), transparent 32%),
    radial-gradient(circle at 74% 72%, rgba(0, 113, 227, 0.1), transparent 34%),
    linear-gradient(135deg, #f8fcff 0%, #ffffff 45%, #eaf6ff 100%);
}

.home-product-collage::after {
  content: "";
  position: absolute;
  inset: auto 18% 24px;
  height: 34px;
  border-radius: 999px;
  background: rgba(17, 17, 17, 0.08);
  filter: blur(18px);
}

.home-product-shot {
  position: absolute;
  z-index: 1;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  padding: 36px 10%;
  object-fit: contain !important;
  border: 0 !important;
  opacity: 0;
  transform: translateX(34px) scale(0.96);
  filter: drop-shadow(0 18px 28px rgba(0, 0, 0, 0.14));
  animation: productSlideShow 12s infinite;
}

.home-product-shot.shot-1 {
  animation-delay: 0s;
}

.home-product-shot.shot-2 {
  animation-delay: 4s;
}

.home-product-shot.shot-3 {
  animation-delay: 8s;
}

@keyframes productSlideShow {
  0% {
    opacity: 0;
    transform: translateX(34px) scale(0.96);
  }

  8%,
  28% {
    opacity: 1;
    transform: translateX(0) scale(1);
  }

  36%,
  100% {
    opacity: 0;
    transform: translateX(-34px) scale(0.96);
  }
}

.ice-type-card img {
  object-fit: contain;
  background: var(--surface-soft);
  padding: 18px;
}

.product-home-body {
  padding: 26px clamp(22px, 2vw, 34px) 30px;
  display: grid;
  gap: 10px;
}

.product-home-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
}

.product-home-meta strong {
  color: var(--primary);
  font-weight: 700;
  white-space: nowrap;
}

.product-home h2 {
  margin: 0;
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 680;
  letter-spacing: -0.025em;
}

.product-home p {
  margin: 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.cta {
  margin-top: 2px;
  color: var(--primary);
  font-weight: 700;
  width: fit-content;
}

.cta::after {
  content: " ->";
}

.back-link {
  display: inline-flex;
  width: fit-content;
  color: var(--primary);
  font-weight: 600;
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 12px;
  padding: clamp(18px, 2vw, 28px);
  background:
    radial-gradient(circle at 88% 8%, rgba(116, 215, 255, 0.22), transparent 28%),
    rgba(255, 255, 255, 0.92);
}

.page-title {
  margin: 4px 0 0;
  font-size: clamp(30px, 3vw, 46px);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.page-subtitle {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.5;
}

.page-hero-art {
  width: 150px;
  max-width: 35vw;
}

.model-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 12px;
}

.model-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.model-card:hover {
  border-color: rgba(0, 113, 227, 0.28);
  box-shadow: 0 22px 54px rgba(0, 79, 159, 0.11);
  transform: translateY(-2px);
}

.model-card img {
  width: 100%;
  height: auto;
  max-height: 420px;
  object-fit: contain;
  background:
    radial-gradient(circle at 50% 28%, rgba(116, 215, 255, 0.18), transparent 35%),
    var(--surface-soft);
  border-radius: 18px;
  border: 1px solid var(--line);
  display: block;
}

.admin-item img {
  width: 100%;
  height: 72px;
  object-fit: contain;
  background: var(--surface-soft);
  border-radius: 12px;
  border: 1px solid var(--line);
}

.model-card h2 {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
}

.model-card p,
.tip,
.empty,
.status-text,
.auth-msg,
.admin-item p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

details {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.spec-panel {
  margin-top: 6px;
  padding-top: 8px;
  border-top: 1px dashed var(--line);
}

.spec-panel h3 {
  margin: 0;
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
}

summary {
  cursor: pointer;
  color: var(--primary);
  font-weight: 600;
}

.detail-text {
  margin-top: 8px;
  line-height: 1.65;
}

.intro-text {
  white-space: pre-line;
  line-height: 1.6;
}

.spec-list {
  display: grid;
  gap: 6px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.spec-list li {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--surface-soft);
  padding: 9px 11px;
}

.panel {
  padding: 16px;
}

.cloud-panel h2 {
  margin: 0 0 6px;
}

.status-text.success {
  color: #15825e;
}

.status-text.error,
.auth-msg {
  color: var(--danger);
}

.hidden {
  display: none !important;
}

.auth-panel {
  max-width: 800px;
}

.secure-badge {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--primary);
  background: #f6f9ff;
  font-size: 12px;
}

.auth-panel h1 {
  margin: 8px 0;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(320px, 1fr));
  gap: 10px;
}

.auth-grid {
  margin-top: 10px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  font-size: 13px;
}

.form-grid label.full {
  grid-column: 1 / -1;
}

input,
select,
textarea,
button {
  font: inherit;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px 11px;
  background: #fff;
  color: var(--text);
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid #bfdbff;
  outline-offset: 0;
}

.btn-primary,
.btn-danger {
  border: 0;
  border-radius: 10px;
  padding: 10px 12px;
  cursor: pointer;
  font-weight: 600;
}

.btn-primary {
  background: var(--primary);
  color: #fff;
}

.btn-primary:hover {
  background: var(--primary-dark);
}

.btn-danger {
  background: var(--danger);
  color: #fff;
}

.admin-list {
  display: grid;
  gap: 10px;
}

.admin-item {
  display: grid;
  grid-template-columns: 96px 1fr auto auto;
  align-items: center;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 8px;
  background: #fbfcff;
}

.admin-item h3 {
  margin: 0;
}

.admin-item-meta {
  color: var(--primary);
  font-size: 12px;
  margin: 2px 0 !important;
}

.tip {
  margin-top: 6px;
  font-size: 13px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1400px) {
  .home-grid {
    grid-template-columns: repeat(2, minmax(420px, 1fr));
  }

  .model-grid {
    grid-template-columns: repeat(2, minmax(320px, 1fr));
  }
}

@media (max-width: 1080px) {
  .home-hero {
    grid-template-columns: 1fr;
  }

  .home-hero-copy {
    min-height: auto;
  }

  .home-hero h1 {
    max-width: 14ch;
    font-size: clamp(38px, 7vw, 66px);
  }

  .home-subtitle {
    white-space: normal;
  }

  .home-proof-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-template-rows: none;
  }

  .home-grid,
  .model-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .home-main,
  .home-grid {
    min-height: auto;
  }

  .product-home {
    grid-template-rows: 360px auto;
  }

  .home-product-collage {
    min-height: 360px;
  }

  .page-hero {
    grid-template-columns: 1fr;
  }

  .page-hero-art {
    width: 120px;
  }
}

@media (max-width: 920px) {
  .topbar {
    align-items: stretch;
    flex-direction: column;
    gap: 9px;
    padding: 10px 12px;
  }

  .brand-link {
    width: 100%;
  }

  .brand-link > div {
    min-width: 0;
  }

  .brand,
  .brand-sub {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .logo {
    width: 40px;
    height: 40px;
  }

  .topbar-right {
    width: 100%;
    flex-wrap: nowrap;
    justify-content: flex-start;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    padding-bottom: 2px;
    scrollbar-width: none;
  }

  .topbar-right::-webkit-scrollbar {
    display: none;
  }

  .contact-pill {
    flex: 0 0 auto;
    max-width: min(78vw, 520px);
    font-size: 11px;
    padding: 6px 8px;
    white-space: nowrap;
  }

  .contact-pill a {
    display: inline-block;
    max-width: 32vw;
    overflow: hidden;
    text-overflow: ellipsis;
    vertical-align: bottom;
  }

  .lang-switch select {
    flex: 0 0 auto;
    min-width: 112px;
  }

  .toolbar-btn {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .admin-item {
    grid-template-columns: 76px 1fr;
  }

  .admin-item .toolbar-btn,
  .admin-item .btn-danger {
    grid-column: 1 / -1;
  }

  .home-proof-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .brand {
    font-size: 14px;
  }

  .brand-sub {
    font-size: 10px;
    letter-spacing: 0.04em;
  }

  .contact-pill a {
    max-width: 38vw;
  }

  .home-hero {
    padding: 20px 14px;
  }

  .home-hero h1 {
    font-size: 30px;
    line-height: 1.02;
    max-width: none;
  }

  .home-hero p {
    white-space: normal;
  }

  .product-home {
    grid-template-rows: 220px auto;
  }

  .home-product-collage {
    min-height: 220px;
  }

  .home-product-shot {
    padding: 22px 10%;
  }

  .model-card img {
    max-height: 360px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-home,
  .home-product-shot {
    transition: none;
    animation: none;
    transform: none;
  }

  .home-product-shot {
    opacity: 0;
  }

  .home-product-shot.shot-1 {
    opacity: 1;
  }
}
