/* Clash Verge Rev — 蓝图工坊模板（铜色 × 石墨 × 非对称 Bento 网格） */
@import url('https://fonts.googleapis.com/css2?family=Instrument+Serif:ital@0;1&family=JetBrains+Mono:wght@400;600&family=Outfit:wght@400;500;600;700&display=swap');

:root {
  --forge: #c45c26;
  --forge-light: #e8925a;
  --forge-glow: rgba(196, 92, 38, 0.22);
  --graphite: #14161a;
  --graphite-mid: #1e2229;
  --graphite-panel: #252a33;
  --slate: #8b95a8;
  --mist: #d4dae4;
  --paper: #ece8e1;
  --teal: #3d9a8b;
  --teal-soft: rgba(61, 154, 139, 0.15);
  --grid-line: rgba(139, 149, 168, 0.12);
  --radius: 6px;
  --radius-lg: 14px;
  --font-display: 'Instrument Serif', 'Noto Serif SC', Georgia, serif;
  --font-body: 'Outfit', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-mono: 'JetBrains Mono', 'Consolas', monospace;
  --transition: 0.28s cubic-bezier(0.33, 1, 0.68, 1);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  background: var(--graphite);
  color: var(--mist);
  line-height: 1.78;
  min-height: 100vh;
  background-image:
    linear-gradient(var(--grid-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid-line) 1px, transparent 1px),
    radial-gradient(ellipse 70% 45% at 0% 0%, var(--forge-glow), transparent),
    radial-gradient(ellipse 50% 35% at 100% 20%, var(--teal-soft), transparent);
  background-size: 48px 48px, 48px 48px, auto, auto;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; line-height: 1.25; }
h1 { font-size: clamp(1.85rem, 4.5vw, 2.75rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); color: var(--paper); }
h3 { font-size: 1.15rem; color: var(--paper); }
a { color: var(--forge-light); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--teal); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* Header — 左侧竖条标识 */
.site-header {
  position: sticky; top: 0; z-index: 300;
  background: rgba(20, 22, 26, 0.94);
  backdrop-filter: blur(18px);
  border-bottom: 1px solid var(--grid-line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  min-height: 68px; gap: 20px; flex-wrap: wrap;
}
.logo {
  display: flex; align-items: center; gap: 14px;
  font-family: var(--font-mono); font-size: 0.82rem; font-weight: 600;
  color: var(--paper); letter-spacing: 0.06em; text-transform: uppercase;
}
.logo::before {
  content: ''; width: 4px; height: 36px;
  background: linear-gradient(180deg, var(--forge), var(--teal));
  border-radius: 2px; flex-shrink: 0;
}
.logo img { width: 40px; height: 40px; border-radius: var(--radius); object-fit: cover; }
.nav-links { display: flex; gap: 2px; list-style: none; flex-wrap: wrap; }
.nav-links a {
  font-size: 0.84rem; font-weight: 500; color: var(--slate);
  padding: 10px 16px; border-radius: var(--radius);
  border: 1px solid transparent;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--paper); border-color: var(--grid-line);
  background: var(--graphite-panel);
}

/* Hero — 非对称双栏 */
.hero { padding: 64px 0 48px; position: relative; }
.hero-inner {
  display: grid; grid-template-columns: 1.1fr 0.9fr;
  gap: 48px; align-items: center;
}
.hero-kicker {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--forge-light); letter-spacing: 0.14em;
  text-transform: uppercase; margin-bottom: 16px;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.badge {
  font-family: var(--font-mono); font-size: 0.68rem;
  padding: 5px 12px; border-radius: 3px;
  background: var(--graphite-panel); color: var(--slate);
  border: 1px solid var(--grid-line); letter-spacing: 0.04em;
}
.badge-hot { border-color: var(--forge); color: var(--forge-light); }
.lead { font-size: 1.05rem; color: var(--slate); margin: 20px 0 28px; max-width: 540px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-image {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  border: 1px solid var(--grid-line);
  box-shadow: 0 24px 64px rgba(0,0,0,0.45);
}
.hero-image::after {
  content: 'REV'; position: absolute; bottom: 16px; right: 16px;
  font-family: var(--font-mono); font-size: 0.65rem;
  padding: 6px 10px; background: var(--forge); color: var(--graphite);
  border-radius: 3px; letter-spacing: 0.2em; font-weight: 600;
}
.hero-image img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 0; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; font-size: 0.88rem; font-weight: 600;
  border-radius: var(--radius); transition: var(--transition);
  font-family: var(--font-body); cursor: pointer; border: none;
}
.btn-primary {
  background: var(--forge); color: var(--graphite);
}
.btn-primary:hover { background: var(--forge-light); color: var(--graphite); }
.btn-outline {
  background: transparent; color: var(--mist);
  border: 1px solid var(--grid-line);
}
.btn-outline:hover { border-color: var(--teal); color: var(--teal); }
.btn-teal { background: var(--teal); color: var(--graphite); }
.btn-teal:hover { filter: brightness(1.12); color: var(--graphite); }

/* Sections */
.section { padding: 56px 0; }
.section-alt { background: rgba(30, 34, 41, 0.55); border-block: 1px solid var(--grid-line); }
.section-header { margin-bottom: 36px; max-width: 720px; }
.section-header p { color: var(--slate); margin-top: 12px; font-size: 0.98rem; }
.section-label {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--teal); letter-spacing: 0.16em;
  text-transform: uppercase; margin-bottom: 10px;
}

/* Stats — 横向刻度条 */
.stats-row {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px;
  background: var(--grid-line); border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.stat-cell {
  background: var(--graphite-mid); padding: 28px 24px; text-align: center;
}
.stat-number {
  font-family: var(--font-display); font-size: 2.2rem;
  color: var(--forge-light); line-height: 1;
}
.stat-label {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--slate); margin-top: 8px; letter-spacing: 0.06em;
}

/* Bento feature grid */
.bento-grid {
  display: grid; grid-template-columns: repeat(12, 1fr); gap: 16px;
}
.bento-card {
  background: var(--graphite-panel); border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg); padding: 28px;
  transition: var(--transition);
}
.bento-card:hover { border-color: rgba(196, 92, 38, 0.35); transform: translateY(-2px); }
.bento-card.span-4 { grid-column: span 4; }
.bento-card.span-6 { grid-column: span 6; }
.bento-card.span-8 { grid-column: span 8; }
.bento-card.span-12 { grid-column: span 12; }
.bento-icon {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--forge); margin-bottom: 14px; letter-spacing: 0.08em;
}
.bento-card p { color: var(--slate); font-size: 0.92rem; margin-top: 10px; }

/* News cards — 杂志式错落 */
.news-masonry {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.news-card {
  background: var(--graphite-panel); border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg); overflow: hidden;
  transition: var(--transition); display: flex; flex-direction: column;
}
.news-card:hover { border-color: var(--teal); }
.news-card.featured { grid-column: span 2; grid-row: span 1; }
.news-card img { width: 100%; height: 200px; object-fit: cover; border-radius: 0; }
.news-card.featured img { height: 280px; }
.news-card-body { padding: 22px; flex: 1; display: flex; flex-direction: column; }
.news-tag {
  font-family: var(--font-mono); font-size: 0.65rem;
  color: var(--teal); letter-spacing: 0.1em; text-transform: uppercase;
}
.news-card h3 { margin: 10px 0 8px; font-size: 1.1rem; }
.news-card p { color: var(--slate); font-size: 0.88rem; flex: 1; }
.news-meta {
  font-family: var(--font-mono); font-size: 0.68rem;
  color: var(--slate); margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--grid-line);
}

/* Timeline */
.timeline { position: relative; padding-left: 32px; }
.timeline::before {
  content: ''; position: absolute; left: 8px; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg, var(--forge), var(--teal));
}
.timeline-item { position: relative; margin-bottom: 28px; padding-left: 8px; }
.timeline-item::before {
  content: ''; position: absolute; left: -28px; top: 6px;
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--forge); border: 2px solid var(--graphite);
}
.timeline-item h3 { margin-bottom: 6px; }
.timeline-item p { color: var(--slate); font-size: 0.9rem; }

/* Download platform cards */
.platform-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}
.platform-card {
  display: grid; grid-template-columns: 140px 1fr; gap: 0;
  background: var(--graphite-panel); border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg); overflow: hidden;
}
.platform-card img { width: 100%; height: 100%; min-height: 180px; object-fit: cover; border-radius: 0; }
.platform-body { padding: 24px; }
.platform-body h3 { margin-bottom: 8px; }
.platform-body p { color: var(--slate); font-size: 0.88rem; margin-bottom: 16px; }
.platform-specs {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--slate); margin-bottom: 16px; line-height: 1.6;
}
.platform-specs span { color: var(--teal); }

/* Article page */
.article-hero { padding: 48px 0 32px; }
.article-hero img {
  width: 100%; max-height: 420px; object-fit: cover;
  border-radius: var(--radius-lg); margin-top: 28px;
  border: 1px solid var(--grid-line);
}
.article-meta {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--slate); margin: 16px 0; letter-spacing: 0.04em;
}
.article-content { max-width: 760px; }
.article-content h2 { margin: 36px 0 14px; }
.article-content h3 { margin: 24px 0 10px; }
.article-content p { color: var(--slate); margin-bottom: 16px; }
.article-content ul, .article-content ol { color: var(--slate); margin: 0 0 16px 24px; }
.article-content li { margin-bottom: 8px; }
.article-content code, .code-block {
  font-family: var(--font-mono); font-size: 0.82rem;
  background: var(--graphite-mid); border: 1px solid var(--grid-line);
  border-radius: var(--radius); padding: 2px 8px; color: var(--forge-light);
}
.code-block {
  display: block; padding: 18px 22px; margin: 20px 0;
  overflow-x: auto; line-height: 1.55; white-space: pre-wrap;
}

/* FAQ accordion */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--graphite-panel); border: 1px solid var(--grid-line);
  border-radius: var(--radius-lg); padding: 22px 26px;
}
.faq-item h3 { font-size: 1rem; margin-bottom: 8px; }
.faq-item p { color: var(--slate); font-size: 0.9rem; }

/* Compare table */
.compare-table {
  width: 100%; border-collapse: collapse;
  font-size: 0.88rem; margin: 20px 0;
}
.compare-table th, .compare-table td {
  padding: 14px 18px; text-align: left;
  border: 1px solid var(--grid-line);
}
.compare-table th {
  background: var(--graphite-mid); font-family: var(--font-mono);
  font-size: 0.72rem; letter-spacing: 0.06em; color: var(--forge-light);
}
.compare-table td { color: var(--slate); }
.compare-table tr:nth-child(even) td { background: rgba(37, 42, 51, 0.5); }

/* CTA band */
.cta-band {
  background: linear-gradient(135deg, var(--graphite-mid), var(--graphite-panel));
  border: 1px solid var(--grid-line); border-radius: var(--radius-lg);
  padding: 48px; text-align: center; margin: 20px 0;
}
.cta-band h2 { margin-bottom: 12px; }
.cta-band p { color: var(--slate); margin-bottom: 24px; max-width: 560px; margin-inline: auto; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--grid-line);
  padding: 48px 0 32px; margin-top: 40px;
  background: var(--graphite-mid);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px;
  margin-bottom: 36px;
}
.footer-brand { font-family: var(--font-mono); font-size: 0.78rem; color: var(--slate); }
.footer-brand strong { display: block; color: var(--paper); font-size: 0.9rem; margin-bottom: 12px; }
.footer-col h4 {
  font-family: var(--font-mono); font-size: 0.68rem;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--forge); margin-bottom: 14px;
}
.footer-col ul { list-style: none; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--slate); font-size: 0.88rem; }
.footer-col a:hover { color: var(--paper); }
.footer-bottom {
  padding-top: 24px; border-top: 1px solid var(--grid-line);
  font-family: var(--font-mono); font-size: 0.68rem; color: var(--slate);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px;
}

/* Breadcrumb */
.breadcrumb {
  font-family: var(--font-mono); font-size: 0.72rem;
  color: var(--slate); padding: 16px 0;
}
.breadcrumb a { color: var(--slate); }
.breadcrumb a:hover { color: var(--forge-light); }

/* Responsive */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .bento-card.span-4, .bento-card.span-6, .bento-card.span-8 { grid-column: span 12; }
  .news-masonry { grid-template-columns: 1fr; }
  .news-card.featured { grid-column: span 1; }
  .platform-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}
.cross-ref {
  margin: 28px 0; padding: 20px 24px;
  background: var(--graphite-panel); border: 1px solid var(--grid-line);
  border-left: 4px solid var(--teal); border-radius: var(--radius);
  font-size: 0.9rem; color: var(--slate);
}
.cross-ref strong { color: var(--paper); display: block; margin-bottom: 8px; font-family: var(--font-mono); font-size: 0.72rem; letter-spacing: 0.08em; }
.verify-output {
  margin: 16px 0; padding: 16px 20px;
  background: rgba(61, 154, 139, 0.08); border: 1px dashed var(--teal);
  border-radius: var(--radius); font-family: var(--font-mono); font-size: 0.78rem;
  color: var(--slate); line-height: 1.6;
}
.verify-output em { color: var(--forge-light); font-style: normal; }

@media (max-width: 600px) {
  .platform-card { grid-template-columns: 1fr; }
  .platform-card img { height: 160px; }
  .header-inner { padding: 12px 20px; }
  .container { padding: 0 20px; }
}
