:root {
  --bg: #08111f;
  --panel: rgba(255,255,255,.08);
  --panel-strong: rgba(255,255,255,.14);
  --text: #eef6ff;
  --muted: #a8b7ca;
  --line: rgba(255,255,255,.14);
  --cyan: #73f7d0;
  --blue: #7aa7ff;
  --violet: #c084fc;
  --shadow: 0 24px 80px rgba(0,0,0,.32);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background:
    radial-gradient(circle at 10% 8%, rgba(115,247,208,.18), transparent 28rem),
    radial-gradient(circle at 86% 12%, rgba(122,167,255,.18), transparent 26rem),
    linear-gradient(180deg, #08111f 0%, #0d1422 48%, #f4f8fb 48%, #f4f8fb 100%);
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
.container { width: min(1160px, calc(100% - 32px)); margin-inline: auto; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  backdrop-filter: blur(18px);
  background: rgba(8,17,31,.78);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  gap: 24px;
}

.brand { display: inline-flex; align-items: center; gap: 12px; font-weight: 800; letter-spacing: .2px; }
.brand img { border-radius: 14px; box-shadow: 0 12px 28px rgba(115,247,208,.18); }
.main-nav { display: flex; gap: 8px; flex-wrap: wrap; }
.main-nav a, .soft-button {
  border: 1px solid var(--line);
  background: rgba(255,255,255,.06);
  color: var(--text);
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 14px;
}
.main-nav a:hover, .soft-button:hover { background: var(--panel-strong); transform: translateY(-1px); }

.hero { padding: 84px 0 44px; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(320px, .75fr); gap: 42px; align-items: center; }
.eyebrow { color: var(--cyan); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; font-size: 13px; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.hero h1, .article-shell h1 { font-size: clamp(40px, 7vw, 76px); letter-spacing: -0.06em; margin: 14px 0 22px; }
.lead { color: var(--muted); font-size: clamp(17px, 2vw, 21px); max-width: 720px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.primary-button {
  color: #04111d;
  background: linear-gradient(135deg, var(--cyan), var(--blue));
  border-radius: 18px;
  padding: 14px 20px;
  font-weight: 800;
  box-shadow: 0 18px 40px rgba(115,247,208,.16);
}
.secondary-button { color: var(--text); border: 1px solid var(--line); padding: 14px 20px; border-radius: 18px; background: rgba(255,255,255,.06); }

.hero-card {
  border: 1px solid var(--line);
  background: linear-gradient(160deg, rgba(255,255,255,.16), rgba(255,255,255,.05));
  border-radius: 34px;
  padding: 22px;
  box-shadow: var(--shadow);
}
.hero-card img { border-radius: 26px; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.hero-card dl { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 18px 0 0; }
.hero-card div { padding: 14px; border-radius: 18px; background: rgba(255,255,255,.08); }
.hero-card dt { color: var(--muted); font-size: 13px; }
.hero-card dd { margin: 4px 0 0; font-weight: 800; }

.anchor-strip { display: flex; flex-wrap: wrap; gap: 10px; padding-bottom: 34px; }
.anchor-strip a { border: 1px solid var(--line); padding: 10px 14px; border-radius: 14px; color: var(--muted); background: rgba(255,255,255,.05); }

.light-section { color: #152033; padding: 60px 0; }
.section-head { display: flex; justify-content: space-between; align-items: end; gap: 20px; margin-bottom: 24px; }
.section-head h2 { font-size: clamp(26px, 4vw, 42px); letter-spacing: -.04em; }
.section-head p { color: #667085; max-width: 560px; margin: 8px 0 0; }
.light-section .section-head h2 { color: #07111f; font-weight: 900; }
.light-section .soft-button { color: #07111f; border-color: #d5e0ed; background: #ffffff; }
.home-section-title { color: #fff !important; text-shadow: 0 2px 18px rgba(8,17,31,.32); }
.page-title-white { color: #fff; text-shadow: 0 2px 18px rgba(8,17,31,.32); }

.card-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.feature-card, .post-card, .download-card, .tag-card {
  background: #fff;
  border: 1px solid #e6edf5;
  border-radius: 24px;
  padding: 20px;
  box-shadow: 0 16px 40px rgba(16,24,40,.06);
}
.feature-card img, .post-card img { border-radius: 18px; width: 100%; aspect-ratio: 16/10; object-fit: cover; margin-bottom: 16px; }
.feature-card h3, .post-card h3, .download-card h3 { font-size: 18px; margin-bottom: 8px; }
.feature-card p, .post-card p, .download-card p { color: #667085; margin: 0; font-size: 14px; }

.post-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.post-card { padding: 16px; }
.post-image-link { display: block; border-radius: 18px; overflow: hidden; margin-bottom: 16px; }
.post-image-link img { margin-bottom: 0; transition: transform .22s ease; }
.post-image-link:hover img { transform: scale(1.035); }
.post-card time { color: #667085; font-size: 13px; }
.post-card .tags { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.post-card .tags span { color: #36516f; background: #edf4ff; padding: 5px 9px; border-radius: 999px; font-size: 12px; }

.download-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.download-card { min-height: 220px; display: flex; flex-direction: column; justify-content: space-between; }
.download-card .icon { width: 54px; height: 54px; border-radius: 18px; display: grid; place-items: center; background: linear-gradient(135deg, #e7fff8, #eaf0ff); color: #0e1b2d; font-weight: 900; }
.download-card a { margin-top: 18px; color: #0f3d75; font-weight: 800; }

.article-hero { padding: 70px 0 42px; }
.article-shell { max-width: 980px; }
.article-meta { display: flex; align-items: center; gap: 10px; color: var(--muted); flex-wrap: wrap; }
.article-meta a { color: var(--cyan); }
.hero-image { width: 100%; max-height: 480px; object-fit: cover; border-radius: 32px; margin-top: 30px; box-shadow: var(--shadow); }
.content-grid { color: #152033; display: grid; grid-template-columns: minmax(0, 1fr) 310px; gap: 32px; padding: 58px 0; }
.prose, .side-panel { background: #fff; border: 1px solid #e6edf5; border-radius: 28px; box-shadow: 0 16px 40px rgba(16,24,40,.06); }
.prose { padding: min(7vw, 52px); }
.prose h2 { font-size: 30px; margin: 28px 0 12px; }
.prose h3 { font-size: 22px; margin: 22px 0 10px; }
.prose p, .prose li { color: #44546a; }
.prose a { color: #0f5db8; font-weight: 700; }
.prose img { border-radius: 22px; margin: 24px 0; width: 100%; }
.side-panel { padding: 22px; align-self: start; position: sticky; top: 96px; }
.side-panel h2 { font-size: 20px; margin-bottom: 12px; }
.side-panel ul { list-style: none; padding: 0; margin: 0 0 20px; }
.side-panel li + li { border-top: 1px solid #edf1f6; }
.side-panel li a { display: block; padding: 12px 0; color: #2f4057; }

.tag-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tag-card { color: #152033; }
.tag-card strong { display: block; font-size: 20px; }
.tag-card span { color: #667085; font-size: 14px; }

.video-card video { width: 100%; border-radius: 22px; background: #0f172a; }
.site-footer { background: #08111f; padding: 46px 0; border-top: 1px solid var(--line); }
.footer-grid { display: flex; justify-content: space-between; gap: 24px; color: var(--muted); }
.footer-grid h2 { color: var(--text); font-size: 22px; margin-bottom: 8px; }
.footer-grid nav { display: flex; gap: 12px; flex-wrap: wrap; align-content: start; }

@media (max-width: 920px) {
  .hero-grid, .content-grid { grid-template-columns: 1fr; }
  .card-grid, .download-grid, .tag-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .post-list { grid-template-columns: 1fr 1fr; }
  .side-panel { position: static; }
}

@media (max-width: 620px) {
  .header-inner, .section-head, .footer-grid { align-items: flex-start; flex-direction: column; }
  .card-grid, .download-grid, .post-list, .tag-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 48px; }
}
