:root {
  --bg: #f6f4ef;
  --paper: #fcfbf8;
  --card: #ffffff;
  --text: #191919;
  --muted: #666055;
  --line: rgba(25, 25, 25, 0.08);
  --strong-line: rgba(25, 25, 25, 0.16);
  --accent: #c95f30;
  --accent-soft: rgba(201, 95, 48, 0.12);
  --nav-blue: #2f67ff;
  --nav-blue-soft: rgba(47, 103, 255, 0.12);
  --nav-blue-line: rgba(47, 103, 255, 0.18);
  --olive: #7f8c52;
  --teal: #3c8183;
  --shadow: 0 24px 60px rgba(24, 24, 24, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(255, 255, 255, 0.95), transparent 30%),
    linear-gradient(180deg, #faf8f3 0%, #f2efe7 100%);
  font-family:
    "SF Pro Display",
    "PingFang SC",
    "Hiragino Sans GB",
    "Microsoft YaHei",
    sans-serif;
}

body.is-locked {
  overflow: hidden;
}

body.is-locked .floating-topbar-shell {
  display: none;
}

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

.password-gate {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    linear-gradient(180deg, rgba(246, 244, 239, 0.96) 0%, rgba(242, 239, 231, 0.98) 100%);
  backdrop-filter: blur(14px);
}

.password-gate[hidden] {
  display: none;
}

.password-card {
  width: min(460px, 100%);
  padding: 32px 28px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 24px 60px rgba(24, 24, 24, 0.12);
}

.password-title {
  margin: 0;
  font-size: clamp(30px, 3vw, 42px);
  line-height: 1.05;
}

.password-copy {
  margin-top: 14px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.password-form {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.password-input,
.password-button {
  width: 100%;
  min-height: 52px;
  border-radius: 8px;
  font: inherit;
}

.password-input {
  padding: 0 16px;
  border: 1px solid rgba(47, 103, 255, 0.18);
  background: #fff;
  font-size: 18px;
}

.password-input:focus {
  outline: 2px solid rgba(47, 103, 255, 0.18);
  outline-offset: 1px;
}

.password-button {
  border: 0;
  background: linear-gradient(90deg, #2f67ff 0%, #79b0ff 100%);
  color: #fff;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
}

.password-error {
  min-height: 20px;
  margin-top: 12px;
  color: #c53d12;
  font-size: 14px;
}

.page-shell {
  width: min(1360px, calc(100% - 32px));
  margin: 104px auto 48px;
}

.hero,
.section {
  background: rgba(252, 251, 248, 0.92);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero {
  padding: 18px;
}

.floating-topbar-shell {
  position: fixed;
  top: 12px;
  left: 0;
  right: 0;
  z-index: 999;
  display: flex;
  justify-content: center;
  pointer-events: none;
}

.topbar {
  position: relative;
  width: min(1360px, calc(100% - 32px));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 18px 28px;
  background: rgba(252, 251, 248, 0.94);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    0 18px 40px rgba(24, 24, 24, 0.1),
    0 6px 18px rgba(24, 24, 24, 0.08);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  pointer-events: auto;
}

.topbar::after {
  content: "";
  position: absolute;
  left: 28px;
  right: 28px;
  bottom: 0;
  height: 1px;
  background: var(--line);
}

.topbar > * {
  position: relative;
  z-index: 1;
}

.topbar .brand,
.topbar .nav-links {
  min-width: 0;
}

.topbar .nav-links {
  flex: 1;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 20px;
  padding-bottom: 18px;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}

.brand {
  font-size: 15px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.nav-links a {
  padding: 10px 14px;
  border-radius: 6px;
  color: #375486;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: 0;
  border: 1px solid transparent;
  transition:
    background-color 160ms ease,
    color 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  background: var(--nav-blue-soft);
  color: var(--nav-blue);
  border-color: var(--nav-blue-line);
  box-shadow: 0 10px 20px rgba(47, 103, 255, 0.12);
  transform: translateY(-1px);
}

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

.eyebrow {
  margin: 0 0 10px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1 {
  font-size: clamp(34px, 4vw, 56px);
  line-height: 1.02;
}

h2 {
  font-size: clamp(24px, 2.2vw, 34px);
  line-height: 1.08;
}

h3 {
  font-size: 20px;
  line-height: 1.18;
}

h4 {
  margin: 0;
  font-size: 16px;
  line-height: 1.2;
}

.hero-text {
  max-width: 680px;
  margin-top: 16px;
  color: var(--muted);
  font-size: 18px;
  line-height: 1.65;
}

.hero-points {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.hero-point,
.info-card,
.panel-card,
.media-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.hero-point {
  padding: 14px;
}

.hero-point-label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}

.hero-point strong {
  font-size: 20px;
  line-height: 1.2;
}

.content-shell {
  margin-top: 18px;
  display: grid;
  gap: 18px;
}

.section {
  padding: 22px 18px 20px;
}

.section-head {
  margin-bottom: 18px;
}

.section-intro {
  margin-top: 10px;
  max-width: 720px;
  color: var(--muted);
  line-height: 1.68;
}

.cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.single-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.info-card,
.panel-card,
.media-card {
  padding: 18px;
}

.note-card {
  padding: 28px 26px;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.note-card h4 {
  font-size: 24px;
  line-height: 1.2;
}

.note-card .detail-list {
  margin-top: 18px;
  font-size: 19px;
  line-height: 2;
}

.info-card p,
.panel-card p,
.gallery-item p,
.media-placeholder p,
.support-copy {
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.68;
}

.two-column {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-list {
  padding-left: 18px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.8;
}

.stack-card {
  display: flex;
  flex-direction: column;
}

.text-blocks {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.direction-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.direction-card {
  position: relative;
  min-height: 100%;
  padding: 22px 20px 20px;
  border-radius: 8px;
  border: 1px solid rgba(47, 103, 255, 0.12);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 248, 255, 0.96) 100%);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 14px 30px rgba(47, 103, 255, 0.06);
}

.direction-card::before {
  content: "";
  position: absolute;
  left: 20px;
  top: 0;
  width: 72px;
  height: 3px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--nav-blue) 0%, #79b0ff 100%);
}

.direction-card-wide {
  grid-column: 1 / -1;
}

.direction-index {
  margin-bottom: 16px;
  color: var(--nav-blue);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.direction-copy {
  margin: 0;
  color: #566273;
  font-size: 17px;
  line-height: 1.85;
}

.reference-group + .reference-group {
  margin-top: 44px;
  padding-top: 44px;
  border-top: 1px solid var(--line);
}

.reference-head {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(280px, 1.08fr);
  gap: 30px;
  align-items: end;
}

.reference-kicker {
  margin-bottom: 14px;
  color: var(--accent);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.reference-head h3 {
  font-size: clamp(24px, 2.2vw, 40px);
  line-height: 1.04;
  white-space: nowrap;
}

.reference-summary {
  color: #5f6672;
  font-size: 24px;
  line-height: 1.8;
}

.reference-dual-head {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  align-items: stretch;
  margin-top: 26px;
}

.reference-summary-panel {
  display: flex;
  align-items: stretch;
}

.reference-summary-panel .reference-summary {
  width: 100%;
  margin: 0;
  padding: 28px 26px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
}

.reference-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.reference-gallery {
  margin-top: 28px;
}

.reference-video-card {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #000;
  box-shadow: 0 10px 28px rgba(24, 24, 24, 0.08);
  align-self: start;
}

.reference-video-card video {
  display: block;
  width: 100%;
  height: auto;
  background: #000;
}

.video-caption {
  padding: 10px 12px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  background: #fff;
}

.reference-images-product .reference-video-card video {
  aspect-ratio: 4 / 5;
  object-fit: contain;
}

.reference-images {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.reference-image {
  margin: 0;
  overflow: hidden;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 10px 28px rgba(24, 24, 24, 0.06);
}

.reference-image img {
  display: block;
  width: 100%;
  height: auto;
}

@media (max-width: 720px) {
  .reference-images {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 1080px) {
  .hero-grid,
  .two-column,
  .cards-grid,
  .single-row,
  .direction-grid {
    grid-template-columns: 1fr;
  }

  .reference-head,
  .reference-notes,
  .reference-dual-head {
    grid-template-columns: 1fr;
  }

  .hero-points {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .page-shell {
    width: min(100% - 16px, 100%);
    margin: 96px auto 28px;
  }

  .hero,
  .section {
    padding: 16px 14px;
  }

  .floating-topbar-shell {
    top: 8px;
  }

  .topbar {
    width: calc(100% - 16px);
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 16px 16px;
  }

  .nav-links {
    justify-content: flex-start;
  }

  .reference-kicker {
    font-size: 15px;
  }

  .reference-head h3 {
    font-size: 30px;
    white-space: normal;
  }

  .reference-summary {
    font-size: 18px;
  }

  .note-card {
    padding: 22px 18px;
  }

  .note-card h4 {
    font-size: 20px;
  }

  .note-card .detail-list {
    font-size: 16px;
    line-height: 1.9;
  }

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

}
