:root {
  --ink: #14110f;
  --ink-soft: #2a2420;
  --paper: #faf7f2;
  --paper-2: #f0ebe3;
  --surface: #ffffff;
  --accent: #e85d2c;
  --accent-2: #c2410c;
  --teal: #0d9488;
  --muted: #6b5f56;
  --border: #e8dfd4;
  --radius: 6px;
  --radius-lg: 14px;
  --shadow: 0 18px 50px rgba(20, 17, 15, 0.08);
  --font: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--paper);
  color: var(--ink);
  line-height: 1.75;
  font-size: 16px;
}
a { color: var(--accent-2); text-decoration: none; transition: color 0.15s; }
a:hover { color: var(--accent); }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

.site-header {
  background: var(--ink);
  color: #fff;
  border-bottom: 3px solid var(--accent);
  position: sticky;
  top: 0;
  z-index: 200;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 72px;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: 0.02em;
}
.brand-logo {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  object-fit: cover;
  border: 2px solid rgba(255,255,255,0.15);
}
.site-nav ul {
  display: flex;
  list-style: none;
  gap: 4px;
  flex-wrap: wrap;
}
.site-nav a {
  color: rgba(255,255,255,0.88);
  padding: 10px 18px;
  font-weight: 600;
  font-size: 0.92rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
}
.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: rgba(232, 93, 44, 0.2);
  border-color: rgba(232, 93, 44, 0.45);
  color: #fff;
}

.hero {
  padding: 64px 0 48px;
  background:
    linear-gradient(165deg, var(--ink) 0%, var(--ink-soft) 55%, transparent 55%),
    var(--paper);
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: 20%;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(232,93,44,0.12), transparent 70%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 48px;
  align-items: center;
  position: relative;
  z-index: 1;
}
.hero h1 {
  font-size: clamp(2rem, 4.5vw, 3rem);
  line-height: 1.15;
  margin-bottom: 18px;
  font-weight: 800;
  color: var(--ink);
}
.hero-lead {
  color: var(--muted);
  font-size: 1.08rem;
  margin-bottom: 28px;
  max-width: 36em;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 26px;
  border-radius: var(--radius);
  font-weight: 700;
  font-size: 0.95rem;
  border: none;
  cursor: pointer;
  transition: transform 0.18s, box-shadow 0.18s, background 0.18s;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(232, 93, 44, 0.35);
}
.btn-primary:hover { background: var(--accent-2); color: #fff; }
.btn-outline {
  background: var(--surface);
  color: var(--ink);
  border: 2px solid var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn:hover { transform: translateY(-2px); }

.anchor-nav {
  padding: 20px 0 0;
  border-top: 1px solid var(--border);
  margin-top: 32px;
}
.anchor-nav ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.anchor-nav a {
  padding: 8px 14px;
  background: var(--paper-2);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
  border: 1px solid var(--border);
}
.anchor-nav a:hover {
  background: var(--ink);
  color: #fff;
  border-color: var(--ink);
}

.section { padding: 56px 0; }
.section:nth-child(even) { background: var(--paper-2); }
.section-head { margin-bottom: 32px; }
.section-head h2 {
  font-size: 1.85rem;
  font-weight: 800;
  margin-bottom: 10px;
  position: relative;
  padding-left: 16px;
}
.section-head h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.15em;
  bottom: 0.15em;
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
}
.section-head p { color: var(--muted); }

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(248px, 1fr));
  gap: 18px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s, box-shadow 0.2s;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.card-thumb {
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--paper-2);
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card-tag {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--teal);
  margin-bottom: 8px;
}
.card h3 { font-size: 1rem; line-height: 1.45; margin-bottom: 8px; font-weight: 700; }
.card h3 a { color: var(--ink); }
.card p { color: var(--muted); font-size: 0.9rem; flex: 1; }

.download-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}
.download-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.download-tile::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--teal));
}
.download-tile .icon { font-size: 2.75rem; margin-bottom: 14px; }
.download-tile h2, .download-tile h3 { margin-bottom: 10px; font-size: 1.25rem; }
.download-tile p { color: var(--muted); font-size: 0.92rem; margin-bottom: 18px; }
.download-tile img {
  width: 100%;
  border-radius: var(--radius);
  margin: 12px 0 18px;
  border: 1px solid var(--border);
}

.info-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: 0 4px 24px rgba(20,17,15,0.04);
}
.info-panel h2 { margin-bottom: 14px; font-size: 1.35rem; }

.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-cloud a {
  padding: 7px 15px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink-soft);
  font-size: 0.88rem;
  font-weight: 600;
}
.tag-cloud a:hover {
  border-color: var(--accent);
  color: var(--accent-2);
}

.category-pills { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.category-pills a {
  padding: 10px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  color: var(--ink);
  font-weight: 600;
}
.category-pills a:hover {
  border-color: var(--accent);
  background: rgba(232,93,44,0.06);
}

.article-body h2 {
  margin: 2.2rem 0 1rem;
  font-size: 1.45rem;
  color: var(--ink);
  padding-bottom: 8px;
  border-bottom: 2px solid var(--paper-2);
}
.article-body h3 { margin: 1.5rem 0 0.75rem; font-size: 1.12rem; }
.article-body p { margin-bottom: 1rem; }
.article-body img {
  max-width: 100%;
  border-radius: var(--radius-lg);
  margin: 1.5rem 0;
  border: 1px solid var(--border);
}
.article-body ul { margin: 1rem 0 1rem 1.35rem; }

.video-lazy {
  margin: 2rem 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--paper-2);
}
.video-lazy-toggle {
  width: 100%;
  padding: 18px 24px;
  background: var(--ink);
  color: #fff;
  border: none;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
}
.video-lazy-toggle:hover { background: var(--ink-soft); }
.video-lazy-frame {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  display: none;
}
.video-lazy-frame.is-active { display: block; }
.video-lazy-frame iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

.nav-prev-next {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-top: 36px;
}
.nav-prev-next a {
  padding: 18px;
  background: var(--paper-2);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--ink);
}
.nav-prev-next .label {
  font-size: 0.78rem;
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.site-footer {
  background: var(--ink);
  color: rgba(255,255,255,0.82);
  padding: 52px 0 28px;
  margin-top: 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 32px;
}
.site-footer h4 {
  color: #fff;
  margin-bottom: 14px;
  font-size: 0.95rem;
  letter-spacing: 0.05em;
}
.site-footer a {
  color: rgba(255,255,255,0.72);
  display: block;
  line-height: 2;
  font-size: 0.92rem;
}
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  text-align: center;
  margin-top: 32px;
  padding-top: 22px;
  border-top: 1px solid rgba(255,255,255,0.1);
  font-size: 0.88rem;
  color: rgba(255,255,255,0.45);
}

.breadcrumb {
  padding: 22px 0 0;
  font-size: 0.9rem;
  color: var(--muted);
}
.breadcrumb a { color: var(--accent-2); font-weight: 600; }

.page-hero {
  padding: 48px 0 36px;
  background: var(--ink);
  color: #fff;
}
.page-hero h1 {
  font-size: clamp(1.75rem, 3.5vw, 2.5rem);
  font-weight: 800;
}

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .download-grid { grid-template-columns: 1fr; }
  .header-inner { flex-wrap: wrap; }
  .nav-prev-next { grid-template-columns: 1fr; }
}

/* —— 首页专用版式（与旧版 hero 网格 + 卡片墙区分） —— */
body.home-alt {
  background: #eef2ff;
}
body.home-alt .site-header {
  background: linear-gradient(90deg, #1e3a8a, #4338ca);
  border-bottom: none;
  box-shadow: 0 4px 30px rgba(30, 58, 138, 0.25);
}
body.home-alt .site-nav a:hover,
body.home-alt .site-nav a[aria-current="page"] {
  background: rgba(6, 182, 212, 0.35);
  border-color: rgba(165, 243, 252, 0.5);
}
body.home-alt .brand-logo {
  border-radius: 12px;
  border-color: rgba(255,255,255,0.35);
}

.home-banner {
  padding: 56px 0 40px;
  background: linear-gradient(135deg, #1e3a8a 0%, #312e81 40%, #0e7490 100%);
  color: #fff;
}
.home-banner-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
}
.home-banner-copy { flex: 1 1 340px; max-width: 560px; }
.home-eyebrow {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #a5f3fc;
  margin-bottom: 12px;
}
.home-banner h1 {
  font-size: clamp(2rem, 5vw, 2.85rem);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.home-banner-lead {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  margin-bottom: 28px;
  line-height: 1.7;
}
.home-banner-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-cta-main {
  background: #06b6d4;
  color: #0f172a;
  font-weight: 800;
  padding: 14px 28px;
  border-radius: 8px;
  box-shadow: 0 8px 24px rgba(6, 182, 212, 0.45);
}
.btn-cta-main:hover { background: #22d3ee; color: #0f172a; }
.btn-cta-ghost {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.5);
  padding: 12px 26px;
  border-radius: 8px;
  font-weight: 700;
}
.btn-cta-ghost:hover {
  background: rgba(255,255,255,0.12);
  color: #fff;
}
.btn-block { display: block; width: 100%; text-align: center; margin-top: 12px; }
.home-banner-figure {
  flex: 0 1 420px;
  margin: 0;
}
.home-banner-figure img {
  width: 100%;
  border-radius: 16px;
  border: 3px solid rgba(255,255,255,0.2);
  box-shadow: 0 24px 60px rgba(0,0,0,0.35);
}

.home-platforms {
  background: #fff;
  padding: 0;
  margin-top: -28px;
  position: relative;
  z-index: 2;
}
.platform-strip {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 12px 40px rgba(30, 58, 138, 0.15);
  border: 1px solid #c7d2fe;
}
.platform-strip li { border-right: 1px solid #e0e7ff; }
.platform-strip li:last-child { border-right: none; }
.platform-strip a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 22px 12px;
  background: #fff;
  color: #1e3a8a;
  font-weight: 700;
  transition: background 0.15s;
}
.platform-strip a:hover {
  background: #eef2ff;
  color: #4338ca;
}
.platform-icon {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: linear-gradient(145deg, #4f46e5, #06b6d4);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  letter-spacing: -0.02em;
}
.platform-label { font-size: 0.95rem; }

.home-main {
  padding: 48px 0 56px;
  background: #eef2ff;
}
.home-main-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  align-items: start;
}
.home-updates {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #c7d2fe;
  padding: 28px 32px;
  box-shadow: 0 8px 32px rgba(49, 46, 129, 0.06);
}
.home-updates-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e0e7ff;
}
.home-updates-head h2 {
  font-size: 1.5rem;
  font-weight: 800;
  color: #1e3a8a;
}
.home-more-link {
  font-size: 0.9rem;
  font-weight: 700;
  color: #0891b2;
  white-space: nowrap;
}
.home-more-link:hover { color: #0e7490; }

.update-list {
  list-style: none;
  counter-reset: upd;
}
.update-item {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 20px;
  padding: 20px 0;
  border-bottom: 1px dashed #e0e7ff;
  counter-increment: upd;
}
.update-item:last-child { border-bottom: none; padding-bottom: 0; }
.update-item time {
  font-size: 0.82rem;
  font-weight: 700;
  color: #6366f1;
  font-variant-numeric: tabular-nums;
  padding-top: 4px;
}
.update-body h3 {
  font-size: 1.05rem;
  margin-bottom: 6px;
  line-height: 1.4;
}
.update-body h3 a { color: #1e293b; }
.update-body h3 a:hover { color: #4f46e5; }
.update-body p {
  font-size: 0.9rem;
  color: #64748b;
  margin-bottom: 8px;
  line-height: 1.6;
}
.update-cat {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 3px 10px;
  background: #ecfeff;
  color: #0e7490;
  border-radius: 4px;
}

.home-aside { display: flex; flex-direction: column; gap: 16px; }
.aside-card {
  background: #fff;
  border: 1px solid #c7d2fe;
  border-radius: 12px;
  padding: 20px 22px;
}
.aside-card h2 {
  font-size: 1rem;
  font-weight: 800;
  color: #312e81;
  margin-bottom: 10px;
}
.aside-card p {
  font-size: 0.88rem;
  color: #64748b;
  line-height: 1.65;
  margin-bottom: 8px;
}
.aside-card a { font-size: 0.88rem; font-weight: 600; color: #4f46e5; }
.aside-download {
  background: linear-gradient(160deg, #312e81, #1e40af);
  border: none;
  color: #fff;
}
.aside-download h2,
.aside-download p { color: rgba(255,255,255,0.9); }
.aside-download .btn-cta-main { margin-top: 8px; }

.home-bottom-strip {
  background: #1e293b;
  color: rgba(255,255,255,0.85);
  padding: 36px 0;
}
.home-bottom-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.home-bottom-inner strong {
  display: block;
  color: #67e8f9;
  font-size: 0.85rem;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}
.home-bottom-inner p {
  font-size: 0.9rem;
  line-height: 1.65;
  color: rgba(255,255,255,0.75);
}
.home-bottom-inner a { color: #a5f3fc; }

@media (max-width: 960px) {
  .home-main-grid { grid-template-columns: 1fr; }
  .platform-strip { grid-template-columns: repeat(2, 1fr); }
  .platform-strip li:nth-child(2) { border-right: none; }
  .platform-strip li { border-bottom: 1px solid #e0e7ff; }
  .home-bottom-inner { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .update-item { grid-template-columns: 1fr; gap: 8px; }
  .platform-strip { grid-template-columns: 1fr; }
  .platform-strip li { border-right: none; }
}
