/* 金标官网 · 共享设计系统 */
:root {
  --primary: #C45C26;
  --primary-dark: #A34B1E;
  --primary-soft: #F3E6DC;
  --cyan: #8A7B6B;
  --amber: #B8863B;
  --emerald: #5C6B4A;
  --bg: #F7F4EF;
  --bg-soft: #EDE8E1;
  --bg-dark: #1C1917;
  --ink: #1C1917;
  --muted: #78716C;
  --border: #E4DCD1;
  --card: #FCFAF7;
  --shadow: 0 1px 0 rgba(28, 25, 23, 0.04), 0 8px 24px -16px rgba(28, 25, 23, 0.12);
  --radius: 10px;
  --max: 1120px;
  --nav-h: 64px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
}

body.dark {
  --bg: #1C1917;
  --bg-soft: #292524;
  --bg-dark: #0C0A09;
  --ink: #F5F5F4;
  --muted: #A8A29E;
  --border: #3D3733;
  --card: #292524;
  --primary: #E08A5A;
  --primary-dark: #C45C26;
  --primary-soft: #3B2A20;
  --shadow: 0 8px 24px -16px rgba(0, 0, 0, 0.5);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

.container {
  width: min(100% - 48px, var(--max));
  margin-inline: auto;
}

/* ===== Nav ===== */
.navbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  overflow: visible;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  white-space: nowrap;
}
.logo img { width: 36px; height: 36px; border-radius: 10px; }
.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.72rem;
  flex: 1 1 auto;
  min-width: 0;
  flex-wrap: nowrap;
}
.nav-links a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 500;
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-links a:hover,
.nav-links a.active { color: var(--primary); }
.nav-actions { display: flex; align-items: center; gap: 0.5rem; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.95rem;
  border-radius: 8px;
  font-weight: 600;
  font-size: 0.88rem;
  transition: 0.15s ease;
  border: 1px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--bg);
  border-radius: 8px;
  box-shadow: none;
}
.btn-primary:hover {
  background: var(--primary);
  color: #fff;
  transform: none;
}
.btn-accent {
  background: var(--primary);
  color: #fff;
  border-radius: 8px;
  box-shadow: none;
}
.btn-accent:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: none;
}
.btn-ghost {
  border-color: var(--border);
  color: var(--ink);
  background: var(--card);
}
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
.btn-light {
  background: #fff;
  color: var(--primary);
}
.btn-light:hover { background: var(--primary-soft); }
.btn-lg { padding: 0.9rem 1.5rem; font-size: 1.02rem; }
.btn-block { width: 100%; }

.theme-toggle {
  padding: 0.45rem 0.7rem;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
}
.theme-toggle:hover { color: var(--primary); border-color: var(--primary); }

.nav-toggle {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid var(--border);
  color: var(--ink);
  font-size: 1.2rem;
}
.mobile-nav {
  display: none;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
  padding: 0.75rem 1.5rem 1.25rem;
}
.mobile-nav.open { display: grid; gap: 0.35rem; }
.mobile-nav a {
  padding: 0.75rem 0.5rem;
  border-radius: 8px;
  color: var(--ink);
  font-weight: 500;
}
.mobile-nav a:hover { background: var(--bg-soft); color: var(--primary); }

/* ===== Hero ===== */
.hero {
  padding: 5.5rem 0 4rem;
  background:
    radial-gradient(720px 320px at 12% -10%, rgba(196, 92, 38, 0.08), transparent 55%),
    var(--bg);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3rem;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 0.82rem;
  font-weight: 600;
  margin-bottom: 1.1rem;
}
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 1.1rem;
}
.hero .lead {
  font-size: 1.12rem;
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.8rem;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-bottom: 1.5rem; }
.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 1.25rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.hero-meta strong { color: var(--ink); font-weight: 700; }

.hero-panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 1.25rem;
  box-shadow: var(--shadow);
}
.hero-panel .shot {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-soft);
  aspect-ratio: 4 / 5;
  object-fit: contain;
  object-position: center top;
  width: 100%;
  max-height: 360px;
  margin-inline: auto;
}
.panel-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
  margin-top: 0.85rem;
}
.panel-chip {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.85rem;
}
.panel-chip b { display: block; font-size: 0.92rem; margin-bottom: 0.15rem; }
.panel-chip span { color: var(--muted); font-size: 0.8rem; }

/* ===== Sections ===== */
.section { padding: 4.5rem 0; }
.section-soft { background: var(--bg-soft); }
.section-dark {
  background: var(--bg-dark);
  color: #e2e8f0;
}
.section-dark .section-title,
.section-dark h2,
.section-dark h3 { color: #fff; }
.section-dark .section-desc { color: #94a3b8; }

.section-head {
  text-align: center;
  max-width: 42rem;
  margin: 0 auto 2.75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 0.75rem;
}
.section-desc {
  color: var(--muted);
  font-size: 1.05rem;
}

/* ===== Product matrix ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.product-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.6rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  transition: 0.25s ease;
}
.product-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--ink);
}
.product-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 1.35rem;
  background: color-mix(in srgb, var(--product, var(--primary)) 12%, transparent);
  color: var(--product, var(--primary));
}
.product-card h3 {
  font-size: 1.35rem;
  font-weight: 750;
  margin-bottom: 0.35rem;
}
.product-card .tag {
  display: inline-flex;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  background: color-mix(in srgb, var(--product, var(--primary)) 12%, transparent);
  color: var(--product, var(--primary));
  margin-bottom: 0.65rem;
}
.product-card p {
  color: var(--muted);
  font-size: 0.98rem;
  margin-bottom: 0.35rem;
}
.product-points {
  display: grid;
  gap: 0.45rem;
  margin: 0.5rem 0 1rem;
}
.product-points li {
  position: relative;
  padding-left: 1.15rem;
  color: var(--muted);
  font-size: 0.92rem;
}
.product-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--product, var(--primary));
}
.product-actions {
  margin-top: auto;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

/* ===== Feature cards ===== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.feature-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.45rem;
}
.feature-card .icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  color: var(--primary);
  margin-bottom: 0.95rem;
  font-size: 1.15rem;
}
.feature-card h3 {
  font-size: 1.08rem;
  margin-bottom: 0.45rem;
  font-weight: 700;
}
.feature-card p {
  color: var(--muted);
  font-size: 0.94rem;
}

/* ===== Stats ===== */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  text-align: center;
}
.stat-value {
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #fff;
}
.stat-label {
  color: #94a3b8;
  margin-top: 0.25rem;
  font-size: 0.95rem;
}

/* ===== Steps ===== */
.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.step {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 1.5rem;
}
.step-num {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--primary);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 700;
  margin-bottom: 0.95rem;
}
.step h3 { margin-bottom: 0.4rem; font-size: 1.1rem; }
.step p { color: var(--muted); font-size: 0.95rem; }

/* ===== CTA ===== */
.cta {
  border-radius: 12px;
  padding: 3rem 2rem;
  text-align: center;
  background: var(--ink);
  color: var(--bg);
  border: 1px solid var(--border);
}
.cta h2 {
  font-size: clamp(1.7rem, 3vw, 2.25rem);
  margin-bottom: 0.75rem;
}
.cta p {
  opacity: 0.92;
  margin-bottom: 1.5rem;
  font-size: 1.05rem;
}

/* ===== Product hero pages ===== */
.page-hero {
  padding: 4.25rem 0 3.25rem;
  background:
    radial-gradient(700px 280px at 8% -18%, color-mix(in srgb, var(--product, var(--primary)) 10%, transparent), transparent 52%),
    var(--bg);
}
.page-hero .badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.8rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--product, var(--primary)) 12%, transparent);
  color: var(--product, var(--primary));
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 1rem;
}
.page-hero h1 {
  font-size: clamp(2.1rem, 4vw, 3.1rem);
  line-height: 1.18;
  letter-spacing: -0.02em;
  margin-bottom: 1rem;
}
.page-hero .lead {
  color: var(--muted);
  font-size: 1.12rem;
  max-width: 40rem;
  margin-bottom: 1.6rem;
}
.page-hero .actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.85rem;
}

.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: center;
}
.shot-frame {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  background: var(--bg-soft);
}
.shot-frame img {
  width: 100%;
  height: auto;
  max-height: 560px;
  object-fit: contain;
  object-position: top center;
  background: var(--bg-soft);
  display: block;
}
/* gallery: portrait cards, full image without crop */
.word-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.25rem 1rem;
}
.word-gallery img.shot-frame,
.word-gallery .shot-frame {
  width: 100%;
  height: auto;
  max-height: none;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 0.35rem;
  box-sizing: border-box;
}

.check-list { display: grid; gap: 0.75rem; }
.check-list li {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  color: var(--muted);
  font-size: 0.98rem;
}
.check-list li::before {
  content: "✓";
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: color-mix(in srgb, var(--product, var(--primary)) 14%, transparent);
  color: var(--product, var(--primary));
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 700;
  margin-top: 0.15rem;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}
.related-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem;
  background: var(--card);
  transition: 0.2s ease;
}
.related-card:hover {
  border-color: var(--primary);
  transform: translateY(-2px);
}
.related-card b { display: block; margin-bottom: 0.35rem; }
.related-card span { color: var(--muted); font-size: 0.9rem; }

/* ===== Pricing ===== */
.price-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.15rem;
}
.price-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  position: relative;
}
.price-card.featured {
  border-color: var(--primary);
  box-shadow: var(--shadow);
}
.price-card .plan-tag {
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: 999px;
}
.price-card h3 { font-size: 1.15rem; margin-bottom: 0.35rem; }
.price-card .plan-desc {
  color: var(--muted);
  font-size: 0.92rem;
  margin-bottom: 1.15rem;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 0.25rem;
  margin-bottom: 1.25rem;
}
.plan-price .price {
  font-size: 2.35rem;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.plan-price .unit { color: var(--muted); font-size: 0.95rem; }
.plan-features {
  display: grid;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
  flex: 1;
}
.plan-features li {
  color: var(--muted);
  font-size: 0.93rem;
  padding-left: 1.15rem;
  position: relative;
}
.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--primary);
  font-weight: 700;
}

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 0.75rem; max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.35rem 1.15rem;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 600;
  padding: 0.95rem 0;
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--primary); }
.faq-answer {
  color: var(--muted);
  padding: 0 0 1rem;
  font-size: 0.96rem;
}
.faq-answer ul { margin: 0.5rem 0 0 1.1rem; list-style: disc; }
.faq-answer li { margin: 0.25rem 0; }

/* ===== Footer ===== */
.footer {
  background: var(--bg-dark);
  color: #A8A29E;
  padding: 3.5rem 0 1.75rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: 2.5rem;
}
.footer h4 {
  color: #fff;
  font-size: 0.98rem;
  margin-bottom: 0.95rem;
}
.footer a {
  display: block;
  color: #A8A29E;
  font-size: 0.92rem;
  margin-bottom: 0.55rem;
}
.footer a:hover { color: #fff; }
.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.92rem;
  max-width: 18rem;
  line-height: 1.7;
}
.footer-bottom {
  border-top: 1px solid #1e293b;
  padding-top: 1.25rem;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 0.75rem;
  font-size: 0.86rem;
}

/* ===== Modal ===== */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 200;
  padding: 1.25rem;
}
.modal.active { display: flex; }
.modal-card {
  background: var(--bg);
  color: var(--ink);
  width: min(100%, 420px);
  border-radius: 18px;
  padding: 1.75rem;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.modal-card h3 { margin-bottom: 0.55rem; font-size: 1.25rem; }
.modal-card p { color: var(--muted); margin-bottom: 1.15rem; }
.modal-card .contact-line {
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0.95rem 1rem;
  margin-bottom: 1rem;
  font-weight: 600;
}
.modal-actions { display: flex; gap: 0.65rem; }

/* ===== Utilities ===== */
.center { text-align: center; }
.mt-1 { margin-top: 1rem; }
.mt-2 { margin-top: 2rem; }
.mb-2 { margin-bottom: 2rem; }
.muted { color: var(--muted); }
.shot-caption {
  color: var(--muted);
  font-size: 0.86rem;
  text-align: center;
  margin-top: 0.65rem;
}

@media (max-width: 960px) {
  .nav-links { display: none; }
  .nav-toggle { display: inline-grid; place-items: center; }
  .hero-grid,
  .split,
  .footer-grid { grid-template-columns: 1fr; }
  .product-grid,
  .feature-grid,
  .steps,
  .price-grid,
  .related-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .hero { padding: 3.5rem 0 2.75rem; }
  .section { padding: 3.25rem 0; }
}

@media (max-width: 560px) {
  .container { width: min(100% - 32px, var(--max)); }
  .hero-actions .btn,
  .page-hero .actions .btn { width: 100%; }
  .panel-grid { grid-template-columns: 1fr; }
}


/* changelog page */
/* Mobile nav */
    /* Hero */
    .changelog-hero {padding: 4.25rem 0 2.5rem; text-align: center;
      background: linear-gradient(180deg, var(--bg) 0%, var(--bg-soft) 100%);}
.changelog-hero h1 {font-size: 2.8rem; font-weight: 900; margin-bottom: 1rem; color: var(--ink);}
.changelog-hero p {font-size: 1.1rem; color: var(--muted); max-width: 500px; margin: 0 auto;}
/* Tabs */
    .tab-bar {display: flex; justify-content: center; gap: 0.5rem; padding: 0 2rem; margin-bottom: 3rem;}
.tab-btn {padding: 10px 24px; border-radius: 8px; border: 1px solid var(--border);
      background: var(--card); color: var(--muted); font-size: 0.95rem;
      font-weight: 600; cursor: pointer; font-family: inherit; transition: all 0.2s;}
.tab-btn:hover {border-color: var(--primary); color: var(--primary);}
.tab-btn.active {background: var(--primary); color: #fff; border-color: transparent;}
.release-card {background: var(--card); border: 1px solid var(--border); border-radius: 16px;
      padding: 2rem; margin-bottom: 2rem; position: relative; transition: all 0.3s ease;}
.release-card:hover {transform: translateY(-2px); box-shadow: var(--shadow-lg); border-color: var(--primary);}
.release-header {display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; flex-wrap: wrap;}
.release-version {display: inline-flex; align-items: center; padding: 6px 16px; border-radius: 8px;
      background: var(--primary); color: #fff; font-size: 1.1rem; font-weight: 700;}
.release-date {color: var(--muted); font-size: 0.9rem;}
.release-product {display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px;
      border-radius: 6px; font-size: 0.8rem; font-weight: 600;
      background: rgba(79,70,229,0.08); color: var(--primary);}
.change-list {list-style: none;}
.change-item {display: flex; align-items: flex-start; gap: 12px; padding: 0.6rem 0;
      border-bottom: 1px solid var(--border); font-size: 0.95rem; color: var(--muted);}
.change-item:last-child {border-bottom: none;}
.change-tag {flex-shrink: 0; padding: 2px 10px; border-radius: 4px; font-size: 0.75rem;
      font-weight: 700; text-transform: uppercase; letter-spacing: 0.5px;}
.tag-feat {background: rgba(16,185,129,0.1); color: #059669;}
.tag-fix {background: rgba(59,130,246,0.1); color: #2563eb;}
.tag-perf {background: rgba(245,158,11,0.1); color: #d97706;}
.tag-breaking {background: rgba(239,68,68,0.1); color: #dc2626;}
/* Empty state */
    .empty-state {text-align: center; padding: 4rem 2rem; color: var(--muted);}
.empty-state .icon {font-size: 3rem; margin-bottom: 1rem;}
.changelog-hero h1 {font-size: 2rem;}
.release-header {flex-direction: column; align-items: flex-start;}
.tab-bar {flex-wrap: wrap;}

.nav-inner .btn,
.nav-actions .btn,
.nav-actions .theme-toggle,
.nav-actions .nav-toggle {
  flex-shrink: 0;
  white-space: nowrap;
}
.nav-links a {
  white-space: nowrap;
  flex-shrink: 0;
}

.user-link {
  color: var(--ink);
  font-size: 0.88rem;
  font-weight: 600;
  padding: 0.45rem 0.7rem;
  border-radius: 8px;
  white-space: nowrap;
  flex-shrink: 0;
}
.user-link:hover { color: var(--primary); background: var(--primary-soft); }


/* image lightbox (dblclick to zoom) */
.img-zoomable {
  cursor: zoom-in;
}
.img-lightbox {
  position: fixed;
  inset: 0;
  z-index: 300;
  background: rgba(28, 25, 23, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  cursor: zoom-out;
}
.img-lightbox.active { display: flex; }
.img-lightbox img {
  max-width: min(96vw, 1280px);
  max-height: 90vh;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 10px;
  background: var(--card);
  box-shadow: 0 24px 64px rgba(0,0,0,0.35);
}
.img-lightbox .img-lightbox-hint {
  position: absolute;
  bottom: 1.25rem;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-size: 0.85rem;
  opacity: 0.85;
  background: rgba(0,0,0,0.35);
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  pointer-events: none;
}

.word-gallery .gallery-featured {
  grid-column: span 1;
  border-color: color-mix(in srgb, var(--primary) 35%, var(--border));
  box-shadow: 0 8px 20px -12px rgba(28, 25, 23, 0.18);
}
@media (min-width: 900px) {
  .word-gallery .gallery-featured {
    aspect-ratio: 3 / 4.2;
  }
}

.word-gallery .gallery-item {
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.word-gallery .gallery-item figcaption {
  text-align: center;
  font-size: 0.88rem;
  font-weight: 650;
  color: var(--ink);
  line-height: 1.35;
}
.word-gallery .gallery-item.gallery-featured figcaption {
  color: var(--primary);
}
.word-gallery .gallery-item img.shot-frame {
  width: 100%;
  height: auto;
  aspect-ratio: 3 / 4;
  object-fit: contain;
  object-position: center top;
  border-radius: 12px;
  background: var(--bg-soft);
  border: 1px solid var(--border);
}

.contact-board {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 1.5rem;
  align-items: stretch;
}
.contact-ways {
  display: grid;
  gap: 0.85rem;
  align-content: center;
}
.contact-way {
  display: flex;
  align-items: center;
  gap: 0.95rem;
  padding: 1.15rem 1.25rem;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
}
.cw-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: var(--primary-soft);
  flex-shrink: 0;
}
.cw-label {
  font-size: 0.82rem;
  color: var(--muted);
}
.cw-value {
  font-size: 1.15rem;
  font-weight: 750;
  letter-spacing: 0.02em;
}
.contact-qrs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}
.qr-card {
  margin: 0;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
}
.qr-card img {
  width: 100%;
  max-width: 200px;
  aspect-ratio: 1;
  object-fit: contain;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--border);
}
.qr-card figcaption {
  text-align: center;
  display: grid;
  gap: 0.2rem;
}
.qr-card figcaption b { font-size: 1rem; }
.qr-card figcaption span {
  font-size: 0.82rem;
  color: var(--muted);
}
@media (max-width: 800px) {
  .contact-board { grid-template-columns: 1fr; }
}

/* NAV LOCK — keep consistent across pages */
.navbar {
  height: var(--nav-h) !important;
  padding: 0 !important;
  box-shadow: none !important;
}
.navbar .container.nav-inner {
  width: min(100% - 48px, var(--max)) !important;
  height: 100% !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 1rem !important;
  padding: 0 !important;
  margin: 0 auto !important;
  max-width: none !important;
}
.navbar .nav-links {
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0.72rem !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  flex-wrap: nowrap !important;
}
.navbar .nav-links a {
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  text-decoration: none !important;
}
.navbar .nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  flex-shrink: 0 !important;
}
.navbar .theme-toggle {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0.45rem 0.7rem !important;
  border-radius: 8px !important;
  border: 1px solid var(--border) !important;
  background: var(--card) !important;
  color: var(--muted) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  line-height: 1.2 !important;
  box-shadow: none !important;
}
.navbar .theme-toggle:hover {
  color: var(--primary) !important;
  border-color: var(--primary) !important;
}
.navbar .user-link,
.navbar .btn {
  letter-spacing: 0 !important;
}


/* ===== A11y / motion / system theme ===== */
:where(a, button, input, select, textarea, summary, [tabindex]):focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
:where(a, button, input, select, textarea, summary, [tabindex]):focus:not(:focus-visible) {
  outline: none;
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Lazy images that are not yet decoded */
img[loading="lazy"] {
  content-visibility: auto;
}

/* Better contrast for muted text on dark */
.dark .panel-chip span,
.dark .step p,
.dark .related-card span {
  color: #C7C2BC;
}

/* ===== NAV responsive (must come AFTER NAV LOCK) =====
   NAV LOCK forces .navbar .nav-links { display:flex !important }.
   Without these overrides the desktop links never collapse. */
@media (max-width: 1100px) {
  .navbar .nav-links {
    display: none !important;
  }
  .navbar .nav-actions .nav-toggle {
    display: inline-grid !important;
  }
  /* reclaim horizontal space on narrow bars */
  .navbar .nav-actions .user-link {
    display: none !important;
  }
  .navbar .nav-actions .theme-toggle #themeText {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .navbar .container.nav-inner {
    width: min(100% - 24px, var(--max)) !important;
    gap: 0.5rem !important;
  }
  .navbar .nav-actions {
    gap: 0.35rem !important;
  }
  .navbar .logo span {
    display: none !important;
  }
  .navbar .nav-actions .btn {
    padding: 0.45rem 0.75rem !important;
    font-size: 0.82rem !important;
  }
}

/* Ensure hamburger is visible only when collapsed */
@media (min-width: 1101px) {
  .navbar .nav-actions .nav-toggle {
    display: none !important;
  }
  .navbar .nav-links {
    display: flex !important;
    flex-wrap: wrap !important;
  }
  .navbar .nav-actions .user-link {
    display: inline-flex !important;
  }
}
.footer-bottom {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
}
.footer-bottom > div {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
/* Word plugin feature overview banner + gallery rows */
.word-banner {
  margin: 0 0 1.5rem;
  border: 1px solid var(--border);
  border-radius: 14px;
  overflow: hidden;
  background: var(--card);
  box-shadow: 0 10px 28px -18px rgba(28, 25, 23, 0.22);
}
.word-banner img {
  display: block;
  width: 100%;
  height: auto;
  max-height: 220px;
  object-fit: cover;
  object-position: center top;
  background: var(--bg-soft);
}
.word-banner .banner-caption {
  padding: 0.75rem 1rem;
  text-align: center;
  font-weight: 700;
  color: var(--primary);
  border-top: 1px solid var(--border);
  background: var(--card);
}
.word-gallery {
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;
}
@media (max-width: 900px) {
  .word-gallery {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  }
}
@media (max-width: 560px) {
  .word-gallery {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  .word-banner img {
    max-height: 140px;
  }
}
/* product page side screenshots: cap height */
.split .shot-frame img,
.shot-frame img {
  max-height: 420px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
  margin: 0 auto;
  display: block;
}