:root {
  --bg: #0a0e17;
  --bg-soft: #0e1420;
  --panel: #121926;
  --panel-2: #161f2f;
  --line: #202a3c;
  --line-soft: #1a2231;
  --text: #eef1f7;
  --muted: #8793a8;
  --muted-2: #5e6a80;
  --accent: #b79256;      /* 低调香槟金,高端感 */
  --accent-soft: #d8b676;
  --radius: 14px;
  --maxw: 1120px;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }
body {
  font-family: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", Roboto, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.65; font-size: 15px;
  letter-spacing: .01em;
}
a { color: inherit; text-decoration: none; }
svg { width: 100%; height: 100%; display: block; }

/* 顶栏 */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(10,14,23,.72); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-soft); }
.nav-in { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; height: 70px; display: flex; align-items: center; justify-content: space-between; }
.brand { font-weight: 700; font-size: 19px; letter-spacing: .04em; display: flex; align-items: baseline; gap: 10px; }
.brand-dom { color: var(--muted-2); font-weight: 400; font-size: 12px; letter-spacing: .12em; text-transform: lowercase; }
.nav-links { display: flex; gap: 32px; font-size: 14px; align-items: center; }
.nav-links > a { color: var(--muted); transition: color .2s; }
.nav-links > a:hover { color: var(--text); }
.nav-item { position: relative; }
.nav-item > a { color: var(--muted); display: inline-flex; align-items: center; gap: 6px; transition: color .2s; }
.nav-item:hover > a { color: var(--text); }
.caret { width: 6px; height: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); margin-top: -3px; opacity: .7; }

/* 巨幕下拉 */
.mega {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%) translateY(8px);
  width: min(880px, 92vw); background: var(--panel); border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 24px 60px rgba(0,0,0,.5); padding: 24px; opacity: 0; visibility: hidden; transition: all .18s; z-index: 40;
}
.nav-item.has-mega:hover .mega { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.mega::before { content: ''; position: absolute; top: -14px; left: 0; right: 0; height: 14px; }
.mega-in { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px 24px; }
.mega-col-h { font-size: 13px; font-weight: 700; color: var(--accent); margin-bottom: 10px; letter-spacing: .03em; }
.mega-col ul { list-style: none; }
.mega-col li { margin-bottom: 7px; }
.mega-col a { color: var(--muted); font-size: 13px; display: inline-flex; align-items: center; gap: 5px; transition: color .18s; }
.mega-col a:hover { color: var(--text); }
.mega-soon { color: var(--muted-2); font-size: 13px; }
.dot-live { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.mega-all { color: var(--accent) !important; font-size: 12.5px !important; }
.mega-foot { margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line); text-align: center; }
.mega-foot a { color: var(--accent); font-size: 14px; font-weight: 600; }
@media (max-width: 900px) { .nav-item.has-mega .mega { display: none; } }

/* Hero */
.hero { max-width: var(--maxw); margin: 0 auto; padding: 130px 28px 90px; }
.hero-eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 30px; }
.hero-title { font-size: 54px; line-height: 1.22; font-weight: 800; letter-spacing: -.01em; }
.hero-sub { color: var(--muted); font-size: 18px; margin-top: 28px; max-width: 620px; }
.hero-cta { margin-top: 44px; display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; padding: 13px 30px; border-radius: 8px; font-size: 15px; font-weight: 600; transition: all .2s; }
.btn-primary { background: var(--accent); color: #1a130a; }
.btn-primary:hover { background: var(--accent-soft); }
.btn-ghost { border: 1px solid var(--line); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); }

.hero-stats { max-width: var(--maxw); margin: 0 auto; padding: 0 28px 20px; display: flex; gap: 64px; }
.stat-n { font-size: 30px; font-weight: 700; letter-spacing: -.01em; }
.stat-l { color: var(--muted-2); font-size: 13px; margin-top: 2px; letter-spacing: .05em; }

/* 区块通用 */
.section { max-width: var(--maxw); margin: 0 auto; padding: 100px 28px; }
.sec-eyebrow { font-size: 12px; letter-spacing: .32em; text-transform: uppercase; color: var(--accent); margin-bottom: 16px; }
.sec-head { margin-bottom: 54px; }
.sec-head h2 { font-size: 34px; font-weight: 800; letter-spacing: -.01em; }

/* 首页:领域概览卡片 */
.mod-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.mod-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: block; transition: all .2s; }
.mod-card:hover { transform: translateY(-4px); border-color: var(--accent); background: var(--panel-2); }
.mod-ic { display: block; width: 32px; height: 32px; color: var(--accent); margin-bottom: 16px; }
.mod-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.mod-card p { color: var(--muted); font-size: 13.5px; min-height: 40px; }
.mod-live { font-size: 12px; color: var(--accent-soft); }
.mod-soon { font-size: 12px; color: var(--muted-2); }
.sec-more { text-align: center; margin-top: 44px; }

/* 社区卡片(旧,保留以防复用) */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: block; transition: all .22s; }
.card.live:hover { transform: translateY(-5px); border-color: var(--accent); background: var(--panel-2); }
.card.soon { opacity: .6; }
.card-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px; }
.card-ic { width: 34px; height: 34px; color: var(--accent); }
.badge { font-size: 11px; font-weight: 600; padding: 4px 11px; border-radius: 20px; letter-spacing: .04em; }
.badge.live { background: rgba(183,146,86,.14); color: var(--accent-soft); border: 1px solid rgba(183,146,86,.35); }
.badge.soon { background: transparent; color: var(--muted-2); border: 1px solid var(--line); }
.card-cat { font-size: 12px; color: var(--muted-2); letter-spacing: .14em; text-transform: uppercase; }
.card h3 { font-size: 20px; margin: 7px 0 10px; font-weight: 700; }
.card p { color: var(--muted); font-size: 14px; min-height: 44px; }
.card-go { display: inline-flex; align-items: center; margin-top: 18px; font-size: 14px; font-weight: 600; color: var(--accent); }
.card-go::after { content: '→'; margin-left: 6px; transition: margin .2s; }
.card.live:hover .card-go::after { margin-left: 12px; }
.card-go.muted { color: var(--muted-2); }
.card-go.muted::after { content: ''; }

/* 关于 */
.about { background: var(--bg-soft); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); max-width: none; }
.about-in { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.about h2 { font-size: 32px; font-weight: 800; max-width: 620px; letter-spacing: -.01em; }
.about-lead { color: var(--muted); font-size: 17px; margin-top: 22px; max-width: 680px; }
.pillars { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; margin-top: 56px; }
.pillar { padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); }
.pillar h4 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.pillar h4::before { content: ''; display: block; width: 26px; height: 2px; background: var(--accent); margin-bottom: 14px; }
.pillar p { color: var(--muted); font-size: 13.5px; }

/* 页脚 */
.foot { border-top: 1px solid var(--line-soft); }
.foot-in { max-width: var(--maxw); margin: 0 auto; padding: 40px 28px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot-brand { font-weight: 700; letter-spacing: .03em; }
.foot-note { color: var(--muted-2); font-size: 12.5px; }

@media (max-width: 680px) {
  .hero { padding: 80px 24px 60px; }
  .hero-title { font-size: 36px; }
  .hero-sub { font-size: 16px; }
  .hero-stats { gap: 36px; flex-wrap: wrap; }
  .nav-links { gap: 18px; }
  .nav-in { padding: 0 20px; }
  .section { padding: 70px 24px; }
  .sec-head h2, .about h2 { font-size: 26px; }
}

/* ===== 完整矩阵页 /sites/ ===== */
.matrix-hero { max-width: var(--maxw); margin: 0 auto; padding: 80px 28px 40px; }
.matrix-title { font-size: 40px; font-weight: 800; letter-spacing: -.01em; }

.matrix-nav { position: sticky; top: 70px; z-index: 15; background: rgba(10,14,23,.86); backdrop-filter: blur(12px); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.matrix-nav-in { max-width: var(--maxw); margin: 0 auto; padding: 12px 28px; display: flex; gap: 8px; overflow-x: auto; }
.matrix-nav-in a { color: var(--muted); font-size: 13px; white-space: nowrap; padding: 6px 14px; border-radius: 20px; border: 1px solid transparent; transition: all .18s; }
.matrix-nav-in a:hover { color: var(--text); border-color: var(--line); background: var(--panel); }

.matrix { max-width: var(--maxw); margin: 0 auto; padding: 20px 28px 60px; }
.mblock { padding: 44px 0; border-bottom: 1px solid var(--line-soft); scroll-margin-top: 130px; }
.mblock:last-child { border-bottom: none; }
.mblock-head { display: flex; align-items: center; gap: 16px; margin-bottom: 28px; }
.mblock-ic { width: 40px; height: 40px; color: var(--accent); flex-shrink: 0; }
.mblock-head h2 { font-size: 24px; font-weight: 800; }
.mblock-head p { color: var(--muted); font-size: 14px; margin-top: 2px; }
.fgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 16px; }
.fcard { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 20px; display: block; transition: all .2s; }
.fcard.live:hover { transform: translateY(-3px); border-color: var(--accent); background: var(--panel-2); }
.fcard.soon { opacity: .62; }
.fcard-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 8px; }
.fcard-top h3 { font-size: 16px; font-weight: 700; }
.fcard p { color: var(--muted); font-size: 13px; }
.fcard-go { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 600; color: var(--accent); }

/* 子分组(学习考证内) */
.subgroup { margin-bottom: 30px; }
.subgroup-h { font-size: 15px; font-weight: 700; color: var(--accent-soft); margin-bottom: 14px; padding-left: 12px; border-left: 3px solid var(--accent); }
.mblock-note { color: var(--muted-2); font-size: 13px; margin-bottom: 16px; padding: 10px 14px; background: var(--bg-soft); border: 1px solid var(--line-soft); border-radius: 8px; }

/* 论坛卡片网址行 */
.fcard-url { display: flex; align-items: center; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--line-soft); }
.url-text { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; color: var(--accent); word-break: break-all; flex: 1; }
.fcard.soon .url-text { color: var(--muted-2); cursor: default; }
.url-text:hover { text-decoration: underline; }
.url-copy { flex-shrink: 0; width: 28px; height: 28px; padding: 6px; border: 1px solid var(--line); border-radius: 7px; background: transparent; color: var(--muted); cursor: pointer; transition: all .18s; }
.url-copy:hover { color: var(--text); border-color: var(--muted); }
.url-copy.copied { color: var(--accent); border-color: var(--accent); }
.url-copy.copied::after { content: '已复制'; position: absolute; font-size: 10px; margin: -22px 0 0 -14px; background: var(--accent); color: #1a130a; padding: 1px 6px; border-radius: 4px; white-space: nowrap; }

/* 关于页 */
.about-hero { max-width: var(--maxw); margin: 0 auto; padding: 80px 28px 20px; }
.about-mission { text-align: left; }
.mega-col-h a { color: var(--accent); }
.mega-col-h a:hover { color: var(--accent-soft); }

@media (max-width: 680px) {
  .matrix-hero { padding: 50px 24px 30px; }
  .matrix-title { font-size: 28px; }
  .matrix-nav { top: 70px; }
  .about-hero { padding: 50px 24px 20px; }
}
