:root {
  --bg: #0e1116;
  --bg-soft: #161b22;
  --bg-card: #1c2230;
  --border: #2a3140;
  --text: #e6e9ef;
  --text-dim: #9aa4b2;
  --accent: #ff4d6d;
  --accent-2: #7c5cff;
  --accent-3: #2dd4bf;
  --radius: 14px;
  --maxw: 1080px;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent-3); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(14,17,22,0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { font-weight: 800; font-size: 19px; letter-spacing: .5px; color: var(--text); }
.brand span { color: var(--accent); }
.nav-links { display: flex; gap: 22px; align-items: center; }
.nav-links a { color: var(--text-dim); font-size: 15px; }
.nav-links a:hover { color: var(--text); text-decoration: none; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); color: var(--text); border-radius: 8px; padding: 6px 10px; cursor: pointer; }

/* Hero */
.hero { padding: 64px 0 48px; text-align: center; }
.hero h1 { font-size: 38px; line-height: 1.25; margin-bottom: 16px; }
.hero h1 em { color: var(--accent); font-style: normal; }
.hero p { color: var(--text-dim); font-size: 17px; max-width: 720px; margin: 0 auto 28px; }
.badges { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-bottom: 30px; }
.badge { font-size: 13px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; color: var(--text-dim); }
.btn {
  display: inline-block; padding: 12px 26px; border-radius: 999px; font-weight: 600;
  background: var(--accent); color: #fff; font-size: 15px;
}
.btn:hover { opacity: .92; text-decoration: none; }
.btn-ghost { background: transparent; border: 1px solid var(--accent); color: var(--accent); margin-left: 12px; }

/* Sections */
section { padding: 40px 0; }
.section-title { font-size: 24px; margin-bottom: 6px; }
.section-sub { color: var(--text-dim); margin-bottom: 24px; }

/* Pillars */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.pillar {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; transition: transform .15s ease, border-color .15s ease;
}
.pillar:hover { transform: translateY(-3px); border-color: var(--accent-2); }
.pillar .tag { font-size: 12px; color: var(--accent-3); letter-spacing: 1px; text-transform: uppercase; }
.pillar h3 { font-size: 19px; margin: 8px 0 10px; }
.pillar p { color: var(--text-dim); font-size: 14.5px; }
.pillar .more { display: inline-block; margin-top: 14px; font-size: 14px; }

/* Cards list */
.cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.card {
  background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 18px 20px;
}
.card .meta { font-size: 12.5px; color: var(--text-dim); margin-bottom: 8px; }
.card h3 { font-size: 17px; margin-bottom: 6px; }
.card h3 a { color: var(--text); }
.card p { color: var(--text-dim); font-size: 14px; }

/* Content page */
.page { padding: 36px 0 60px; }
.breadcrumb { color: var(--text-dim); font-size: 13px; margin-bottom: 18px; }
.breadcrumb a { color: var(--text-dim); }
.article-head h1 { font-size: 30px; line-height: 1.3; margin-bottom: 10px; }
.article-meta { color: var(--text-dim); font-size: 14px; margin-bottom: 22px; }
.lead { font-size: 17px; color: var(--text); border-left: 3px solid var(--accent); padding-left: 16px; margin-bottom: 26px; }
.article-body h2 { font-size: 22px; margin: 30px 0 12px; }
.article-body h3 { font-size: 18px; margin: 22px 0 8px; color: var(--accent-3); }
.article-body p { margin-bottom: 14px; }
.article-body ul { margin: 0 0 14px 22px; }
.article-body li { margin-bottom: 6px; }

/* Fact card table */
.factcard { width: 100%; border-collapse: collapse; margin: 18px 0 26px; font-size: 14.5px; }
.factcard th, .factcard td { border: 1px solid var(--border); padding: 10px 12px; text-align: left; vertical-align: top; }
.factcard th { background: var(--bg-soft); color: var(--text-dim); width: 120px; font-weight: 600; }

/* Watch CTA */
.watch-cta {
  background: linear-gradient(135deg, rgba(255,77,109,.15), rgba(124,92,255,.12));
  border: 1px solid var(--accent-2); border-radius: var(--radius);
  padding: 22px; margin: 30px 0; text-align: center;
}
.watch-cta h3 { font-size: 19px; margin-bottom: 8px; }
.watch-cta p { color: var(--text-dim); font-size: 14px; margin-bottom: 16px; }
.watch-links { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.watch-links a { padding: 10px 20px; border-radius: 999px; background: var(--bg); border: 1px solid var(--accent); color: var(--accent); font-weight: 600; }
.watch-links a:hover { background: var(--accent); color: #fff; text-decoration: none; }

/* Prompt box */
.prompt-box {
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: 10px;
  padding: 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13.5px; color: #cdd6e4; white-space: pre-wrap; position: relative; margin: 14px 0;
}
.copy-btn {
  position: absolute; top: 8px; right: 8px; background: var(--accent-2); color: #fff;
  border: none; border-radius: 6px; padding: 4px 10px; font-size: 12px; cursor: pointer;
}

/* Code / notice */
.notice { background: var(--bg-soft); border: 1px dashed var(--border); border-radius: 10px; padding: 14px 16px; font-size: 14px; color: var(--text-dim); margin: 18px 0; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 30px 0; color: var(--text-dim); font-size: 13.5px; }
.footer-cols { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.footer-cols a { color: var(--text-dim); margin-right: 14px; }

/* Responsive */
@media (max-width: 860px) {
  .pillars, .cards { grid-template-columns: 1fr; }
  .nav-links { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; background: var(--bg-soft); border-bottom: 1px solid var(--border); padding: 14px 20px; gap: 14px; }
  .nav-links.open { display: flex; }
  .nav-toggle { display: block; }
  .hero h1 { font-size: 28px; }
}
