:root {
  /* Soft sky + amber: one cool surface, one warm CTA */
  --bg: #f3f6fa;
  --bg-soft: #e8f3f7;
  --ink: #1b2430;
  --muted: #667687;
  --line: #dde5ee;
  --card: #ffffff;
  --accent: #1a9ba8;
  --accent-ink: #ffffff;
  --accent-soft: #e6f6f8;
  --cta: #f0b429;
  --cta-ink: #3a2800;
  --shadow: 0 10px 30px rgba(27, 54, 74, 0.06);
  --radius: 16px;
  --bar: 64px;
  --max: 1120px;
  --font: "PingFang SC", "Hiragino Sans GB", "Noto Sans SC", "Microsoft YaHei", sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
}

body.nav-open { overflow: visible; }

img { max-width: 100%; height: auto; }

a { color: var(--accent); }

button, input { font-family: inherit; }

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

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--cta);
  color: var(--cta-ink);
  padding: 8px 12px;
  z-index: 80;
  border-radius: 8px;
}

.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

:focus-visible {
  outline: 3px solid rgba(26, 155, 168, 0.35);
  outline-offset: 2px;
}

/* Header: white, calm, brand from logo */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  padding-top: env(safe-area-inset-top);
  background: #fff;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
}

.bar {
  display: flex;
  align-items: center;
  min-height: var(--bar);
  gap: 12px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: inherit;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
}

.brand img {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  flex: none;
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
}

.brand-sub {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.nav-toggle {
  margin-left: auto;
  min-width: 44px;
  height: 44px;
  padding: 0 12px;
  gap: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--ink);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.nav-toggle-label {
  font-size: 15px;
  font-weight: 700;
}

.nav-toggle-icon,
.nav-toggle-icon::before,
.nav-toggle-icon::after {
  display: block;
  width: 18px;
  height: 2px;
  background: currentColor;
  position: relative;
  border-radius: 2px;
}

.nav-toggle-icon::before,
.nav-toggle-icon::after {
  content: "";
  position: absolute;
  left: 0;
}

.nav-toggle-icon::before { top: -6px; }
.nav-toggle-icon::after { top: 6px; }

.nav-toggle[aria-expanded="true"] .nav-toggle-icon { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::before { top: 0; transform: rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-icon::after { top: 0; transform: rotate(-45deg); }

.site-nav { display: none; }

.site-nav.is-open {
  display: flex;
  position: fixed;
  z-index: 45;
  left: 0;
  right: 0;
  top: var(--header-h, 64px);
  width: 100%;
  height: auto;
  max-height: min(70vh, calc(100dvh - var(--header-h, 64px) - 24px));
  flex-direction: column;
  gap: 0;
  margin: 0;
  padding: 8px 20px 16px;
  background: #fff;
  overflow-x: hidden;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  border: 0;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 16px 32px rgba(27, 54, 74, 0.12);
  box-sizing: border-box;
}

.site-nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line);
  font-size: 16px;
}

.site-nav a[aria-current="page"] { color: var(--accent); font-weight: 700; }

.nav-cta {
  margin-top: 12px;
  text-align: center;
  background: var(--accent);
  color: var(--accent-ink) !important;
  border-radius: 999px;
  border-bottom: 0 !important;
  font-weight: 700;
}

/* Hero: soft sky wash, dark text, one hierarchy */
.hero {
  background:
    radial-gradient(720px 280px at 90% -20%, rgba(240, 180, 41, 0.12), transparent 55%),
    linear-gradient(180deg, #f7fbfd 0%, var(--bg-soft) 100%);
  color: var(--ink);
  padding: 36px 0 40px;
  border-bottom: 1px solid var(--line);
}

.hero .wrap {
  width: min(680px, calc(100% - 32px));
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.hero h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.35;
  font-weight: 700;
}

.hero-title { display: block; }

.hero-models {
  display: block;
  margin-top: 8px;
  font-size: 15px;
  font-weight: 500;
  line-height: 1.5;
  color: var(--muted);
}

.lede {
  margin: 14px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 36em;
}

.hero-more {
  margin: 14px 0 0;
  font-size: 15px;
}

.hero-actions,
.device-actions,
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 700;
  border: 1px solid transparent;
  line-height: 1.2;
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.btn-primary {
  background: var(--cta);
  color: #fff;
  box-shadow: 0 6px 16px rgba(240, 180, 41, 0.28);
}

.btn-ghost,
.btn-line {
  background: #fff;
  color: var(--ink);
  border-color: var(--line);
}

.btn-dark {
  background: var(--accent);
  color: var(--accent-ink);
}

.btn-block { width: 100%; }

.section { padding: 48px 0; }

.section-alt {
  background: #fff;
  border-block: 1px solid var(--line);
}

.kicker {
  margin: 0 0 6px;
  color: var(--accent);
  font-size: 13px;
  font-weight: 700;
}

.section h2,
.page-head h1 {
  margin: 0;
  font-size: 22px;
  line-height: 1.35;
  font-weight: 700;
}

.sub {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 15px;
  max-width: 40em;
}

.device-grid,
.tool-grid,
.mode-grid,
.topic-grid,
.poster-grid {
  display: grid;
  gap: 12px;
  margin-top: 22px;
}

.device,
.tool,
.mode,
.topic,
.panel,
.poster-card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.device,
.tool,
.topic {
  display: block;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.device h3,
.topic h3,
.panel h3 {
  margin: 4px 0 0;
  font-size: 17px;
  font-weight: 700;
  line-height: 1.4;
}

.device p,
.topic p,
.panel p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.device-kicker,
.topic-no {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.device-actions .btn { min-height: 44px; }

.tool {
  min-height: 76px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 4px;
}

.tool strong { color: var(--ink); font-size: 16px; }
.tool span { color: var(--muted); font-size: 14px; }

.mode {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 10px 12px;
  color: inherit;
  text-decoration: none;
}

.mode img {
  width: 56px;
  height: 56px;
  object-fit: cover;
  object-position: center 18%;
  border-radius: 12px;
  flex: none;
}

.mode strong { display: block; color: var(--ink); }
.mode small { color: var(--muted); }

.poster-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 14px 12px;
  color: inherit;
  text-decoration: none;
  text-align: center;
}

.poster-card img {
  width: auto;
  max-width: 100px;
  max-height: 132px;
  height: auto;
  border-radius: 12px;
}

.poster-card strong {
  font-size: 15px;
}

.panel { padding: 18px; }

.update-list {
  margin: 18px 0 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.update-list li {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 14px 16px;
}

.update-list a { font-weight: 650; }

.video-frame,
.player {
  margin-top: 16px;
  border-radius: 16px;
  overflow: hidden;
  background: #1b2430;
  border: 1px solid var(--line);
}

.video-frame {
  position: relative;
  padding-top: 56.25%;
}

.video-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.player video {
  display: block;
  width: 100%;
  max-height: 70vh;
  background: #000;
}

.page-head { padding: 36px 0 8px; }

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

.feature-list li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 12px 14px;
}

.fold {
  margin-top: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 0 16px 4px;
}

.fold summary {
  cursor: pointer;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.search {
  width: 100%;
  min-height: 48px;
  margin-top: 16px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: #fff;
  font-size: 16px;
  color: var(--ink);
}

.log-list { margin-top: 8px; }

.log-item { border-bottom: 1px solid var(--line); }

.log-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
  min-height: 52px;
  padding: 12px 0;
  font-weight: 700;
}

.log-item summary::-webkit-details-marker { display: none; }

.log-item summary::after {
  content: "展开";
  flex: none;
  color: var(--accent);
  font-size: 13px;
  font-weight: 650;
}

.log-item[open] summary::after { content: "收起"; }

.log-date {
  color: var(--muted);
  font-weight: 500;
  font-size: 14px;
}

.log-item ul {
  margin: 0 0 14px;
  padding-left: 1.2em;
}

.log-item li { margin: 4px 0; }

.log-item[hidden] { display: none; }

.site-footer {
  background: #fff;
  color: var(--muted);
  border-top: 1px solid var(--line);
  padding: 36px 0 calc(28px + env(safe-area-inset-bottom));
}

.site-footer a { color: var(--accent); }

.footer-grid {
  display: grid;
  gap: 18px;
}

.qr-pad {
  width: 148px;
  background: #fff;
  padding: 8px;
  border-radius: 12px;
  border: 1px solid var(--line);
}

.footer-note { margin: 8px 0; }

.icp { font-size: 14px; }

.dock {
  position: fixed;
  z-index: 35;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  gap: 8px;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid var(--line);
}

.dock .btn {
  flex: 1 1 0;
  min-width: 0;
  padding: 0 8px;
  font-size: 14px;
}

body.has-dock { padding-bottom: 84px; }

dialog {
  width: min(420px, calc(100vw - 32px));
  border: 0;
  border-radius: 18px;
  padding: 18px;
  background: var(--card);
  color: var(--ink);
}

dialog::backdrop { background: rgba(27, 36, 48, 0.45); }

dialog h2 { margin: 0 0 12px; font-size: 1.2rem; }

dialog img {
  display: block;
  width: min(100%, 280px);
  margin: 0 auto 12px;
  background: #fff;
}

@media (min-width: 720px) {
  .device-grid { grid-template-columns: 1fr 1fr; }
  .tool-grid { grid-template-columns: 1fr 1fr; }
  .mode-grid { grid-template-columns: 1fr 1fr; }
  .topic-grid { grid-template-columns: 1fr 1fr; }
  .poster-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.4fr 0.6fr; align-items: start; }
  .feature-list { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 861px) {
  .nav-toggle { display: none; }
  .site-nav,
  .site-nav.is-open {
    display: flex;
    position: static;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    width: auto;
    height: auto;
    max-height: none;
    flex-direction: row;
    align-items: center;
    gap: 2px;
    margin-left: auto;
    padding: 0;
    background: transparent;
    overflow: visible;
    border-top: 0;
    border-bottom: 0;
    box-shadow: none;
  }
  .site-nav a {
    border: 0;
    padding: 8px 12px;
    font-size: 15px;
    border-radius: 999px;
  }
  .site-nav a:hover { background: var(--accent-soft); }
  .nav-cta { margin-top: 0; padding: 8px 14px; }
  .hero { padding: 52px 0 48px; }
  .hero h1 { font-size: 34px; }
  .device-grid { grid-template-columns: repeat(3, 1fr); }
  .tool-grid { grid-template-columns: repeat(4, 1fr); }
  .dock { display: none; }
  body.has-dock { padding-bottom: 0; }
}

@media (max-width: 640px) {
  .hero-actions { flex-direction: column; align-items: stretch; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 380px) {
  .brand-sub { display: none; }
  .wrap,
  .hero .wrap { width: min(var(--max), calc(100% - 24px)); }
}

@media (hover: hover) {
  .device:hover,
  .tool:hover,
  .mode:hover,
  .topic:hover,
  .poster-card:hover {
    border-color: #b7d7dd;
    transform: translateY(-2px);
  }
  .btn-primary:hover { filter: brightness(0.97); }
  .btn-dark:hover { filter: brightness(1.05); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition: none !important;
    animation: none !important;
  }
}
