/* ============ sunnyqi 个人门户 · 共享样式 ============ */
:root {
  --bg: #0c1426;
  --bg-2: #101a33;
  --surface: rgba(26, 38, 66, .55);
  --surface-2: #17264a;
  --surface-3: #13203c;
  --border: #2b3d63;
  --border-strong: #405a8f;
  --text: #f1f5ff;
  --text-2: #b6c5e0;
  --muted: #97a8c9;
  --accent: #5aa7ff;
  --accent-2: #9b87ff;
  --accent-soft: rgba(90, 167, 255, .14);
  --gold: #f0b455;
  --green: #4ee6a8;
  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1060px;
  --mono: "JetBrains Mono", "SFMono-Regular", Consolas, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background:
    radial-gradient(ellipse 60% 40% at 78% -6%, rgba(155, 135, 255, .10), transparent 70%),
    radial-gradient(ellipse 55% 38% at 12% -2%, rgba(90, 167, 255, .12), transparent 70%),
    var(--bg);
  color: var(--text);
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  line-height: 1.7; overflow-x: hidden;
  display: flex; flex-direction: column; min-height: 100vh;
}
main { flex: 1 0 auto; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
a { color: inherit; text-decoration: none; }
code { font-family: var(--mono); font-size: .92em; background: rgba(76,141,255,.1); color: #9dc0ff; padding: 1px 6px; border-radius: 4px; }

/* 背景装饰 */
.bg-grid {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(rgba(76, 141, 255, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(76, 141, 255, .045) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 90% 55% at 50% 0%, #000 15%, transparent 72%);
}
.bg-glow {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 55% 38% at 50% -4%, rgba(90, 167, 255, .20), transparent 70%),
    radial-gradient(ellipse 38% 28% at 86% 16%, rgba(155, 135, 255, .14), transparent 70%),
    radial-gradient(ellipse 44% 30% at 10% 28%, rgba(78, 230, 168, .07), transparent 70%);
}

/* ---------- 导航 ---------- */
.nav {
  position: sticky; top: 0; z-index: 20;
  background: rgba(12, 20, 38, .80); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 60px; gap: 16px; }
.logo { font-weight: 700; font-size: 19px; letter-spacing: .5px; flex: none; }
.logo-dot { color: var(--accent); }
.links { display: flex; align-items: center; gap: 22px; font-size: 14px; color: var(--muted); }
.links a { transition: color .15s; position: relative; white-space: nowrap; }
.links a:hover { color: var(--text); }
.links a.active { color: var(--text); }
.links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -21px;
  height: 2px; background: linear-gradient(90deg, var(--accent), var(--accent-2));
}
.nav-cta {
  color: var(--text) !important; border: 1px solid var(--border-strong); border-radius: 8px;
  padding: 5px 14px; transition: all .15s;
}
.nav-cta::after { display: none !important; }
.nav-cta:hover { border-color: var(--accent); background: var(--accent-soft); }
.nav-demo {
  color: var(--accent) !important; border: 1px solid var(--accent); border-radius: 8px;
  padding: 5px 14px; transition: all .15s; font-weight: 600;
}
.nav-demo::after { display: none !important; }
.nav-demo:hover { background: var(--accent-soft); border-color: var(--accent-2); }
.nav-toggle {
  display: none; background: none; border: 1px solid var(--border-strong);
  color: var(--text-2); border-radius: 8px; padding: 4px 11px; font-size: 17px; cursor: pointer;
}

/* ---------- Hero ---------- */
.hero { padding: 100px 0 76px; }
.hi { color: var(--accent); font-size: 15px; font-family: var(--mono); margin-bottom: 10px; }
.hero h1 {
  font-size: 64px; line-height: 1.1; letter-spacing: 1px; margin-bottom: 18px;
  background: linear-gradient(120deg, #fff 28%, var(--accent) 68%, var(--accent-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.tagline { color: var(--text-2); font-size: 17px; max-width: 600px; }
.tagline em { font-style: normal; color: var(--text); }
.hero-actions { display: flex; gap: 14px; margin-top: 34px; flex-wrap: wrap; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius); font-size: 15px; transition: all .18s;
}
.btn .arrow { transition: transform .18s; }
.btn.primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2)); color: #fff; font-weight: 600;
  box-shadow: 0 4px 24px rgba(76, 141, 255, .32);
}
.btn.primary:hover { transform: translateY(-2px); box-shadow: 0 8px 32px rgba(76, 141, 255, .48); }
.btn.primary:hover .arrow { transform: translateX(4px); }
.btn.ghost { border: 1px solid var(--border-strong); color: var(--text-2); }
.btn.ghost:hover { color: var(--text); border-color: var(--accent); }
.hero-stats { display: flex; flex-wrap: wrap; gap: 38px; margin-top: 52px; }
.stat b { display: block; font-size: 25px; font-weight: 700; }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- 区块 ---------- */
.section { padding: 76px 0; position: relative; z-index: 1; }
.section.alt { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { margin-bottom: 34px; }
.section h2 { font-size: 28px; display: flex; align-items: center; gap: 12px; }
.section h2::before { content: ""; width: 4px; height: 21px; border-radius: 2px; background: linear-gradient(180deg, var(--accent), var(--accent-2)); }
.section-sub { color: var(--muted); font-size: 14px; margin-top: 6px; }
.section-more { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--accent); margin-top: 22px; }
.section-more:hover { gap: 10px; }

/* ---------- 页面头（子页） ---------- */
.page-head {
  padding: 66px 0 44px; border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, rgba(76,141,255,.06), transparent);
}
.crumb { font-size: 12px; color: var(--muted); margin-bottom: 14px; font-family: var(--mono); }
.crumb a:hover { color: var(--accent); }
.page-head h1 { font-size: 38px; letter-spacing: .5px; }
.page-desc { color: var(--muted); font-size: 15px; margin-top: 10px; max-width: 640px; }

/* ---------- 工具栏（筛选 + 搜索） ---------- */
.toolbar {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; margin: 30px 0 26px;
}
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  font-size: 13px; padding: 6px 15px; border-radius: 20px; cursor: pointer;
  background: transparent; border: 1px solid var(--border); color: var(--muted);
  transition: all .15s; font-family: inherit;
}
.chip:hover { color: var(--text); border-color: var(--border-strong); }
.chip.on { color: #fff; background: var(--accent-soft); border-color: var(--accent); }
.chip .n { font-size: 11px; opacity: .7; margin-left: 5px; font-family: var(--mono); }
.search-box { position: relative; flex: none; }
.search-box input {
  width: 230px; background: var(--surface-3); border: 1px solid var(--border);
  border-radius: 8px; padding: 8px 12px 8px 34px; color: var(--text);
  font-size: 13px; font-family: inherit; outline: none; transition: border-color .15s;
}
.search-box input::placeholder { color: var(--muted); }
.search-box input:focus { border-color: var(--accent); }
.search-box::before {
  content: "⌕"; position: absolute; left: 12px; top: 50%; transform: translateY(-50%);
  color: var(--muted); font-size: 15px; pointer-events: none;
}
.result-count { font-size: 12px; color: var(--muted); margin-bottom: 18px; font-family: var(--mono); }
.empty {
  padding: 48px 24px; text-align: center; color: var(--muted); font-size: 14px;
  border: 1px dashed var(--border); border-radius: var(--radius-lg);
}

/* ---------- 项目卡片 ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 20px; }
.card {
  position: relative; display: block; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px;
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
a.card:hover { transform: translateY(-4px); border-color: var(--accent); box-shadow: 0 12px 40px rgba(76, 141, 255, .18); }
.card-icon { font-size: 28px; margin-bottom: 14px; }
.card h3 { font-size: 19px; margin-bottom: 9px; }
.card p { color: var(--muted); font-size: 14px; }
.card.placeholder { opacity: .55; border-style: dashed; }
.card-badge {
  position: absolute; top: 18px; right: 18px; font-size: 11px; color: var(--gold);
  border: 1px solid rgba(227, 167, 60, .5); background: rgba(227, 167, 60, .08);
  border-radius: 20px; padding: 3px 11px;
}
.tags { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 16px 0 14px; }
.tags li {
  font-size: 11px; color: var(--accent); background: var(--accent-soft);
  border: 1px solid rgba(76, 141, 255, .2); border-radius: 5px; padding: 2px 9px;
}
.card-link { font-size: 14px; color: var(--accent); font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }
.card-link i { font-style: normal; transition: transform .18s; }
a.card:hover .card-link i { transform: translateX(4px); }
.card-link.muted { color: var(--muted); font-weight: 400; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 26px; }
.timeline::before {
  content: ""; position: absolute; left: 5px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--accent), rgba(76,141,255,.08));
}
.tl-item { position: relative; padding-bottom: 26px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: ""; position: absolute; left: -24px; top: 8px; width: 9px; height: 9px;
  border-radius: 50%; background: var(--bg); border: 2px solid var(--border-strong);
}
.tl-item:first-child::before { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(76,141,255,.18); }
.tl-date { font-size: 12px; color: var(--accent); font-family: var(--mono); margin-bottom: 3px; }
.tl-item p { font-size: 14px; color: var(--text-2); }
.tl-item p b { color: var(--text); font-weight: 600; }

/* ---------- 笔记列表 ---------- */
.posts { display: flex; flex-direction: column; gap: 14px; }
.post {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px 26px;
  transition: border-color .18s, transform .18s;
}
.post:hover { border-color: var(--border-strong); transform: translateX(3px); }
.post-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); margin-bottom: 8px; font-family: var(--mono); }
.post-cat {
  color: var(--accent); background: var(--accent-soft); border: 1px solid rgba(76,141,255,.2);
  border-radius: 4px; padding: 1px 8px; font-family: inherit;
}
.post h3 { font-size: 17px; margin-bottom: 8px; line-height: 1.5; }
.post p { color: var(--muted); font-size: 13.5px; }
.post-points { list-style: none; margin-top: 12px; display: flex; flex-direction: column; gap: 4px; }
.post-points li { font-size: 13px; color: var(--text-2); padding-left: 16px; position: relative; }
.post-points li::before { content: "▸"; position: absolute; left: 0; color: var(--accent); font-size: 10px; top: 3px; }

/* ---------- 知识库 ---------- */
.kb-cat { margin-bottom: 42px; scroll-margin-top: 84px; }
.kb-cat-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 6px; }
.kb-cat h2 { font-size: 21px; }
.kb-cat h2::before { height: 17px; }
.kb-count { font-size: 12px; color: var(--muted); font-family: var(--mono); }
.kb-desc { color: var(--muted); font-size: 13px; margin-bottom: 16px; }
.acc {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); margin-bottom: 9px; overflow: hidden;
  transition: border-color .15s;
}
.acc[open] { border-color: var(--border-strong); background: rgba(19, 27, 48, .78); }
.acc summary {
  cursor: pointer; padding: 14px 18px; font-size: 14.5px; color: var(--text-2);
  list-style: none; display: flex; align-items: center; gap: 10px; transition: color .15s;
}
.acc summary::-webkit-details-marker { display: none; }
.acc summary::before {
  content: "+"; font-family: var(--mono); color: var(--accent); font-size: 15px;
  width: 14px; flex: none; transition: transform .18s;
}
.acc[open] summary::before { content: "−"; }
.acc summary:hover { color: var(--text); }
.acc-body { padding: 0 18px 18px 42px; font-size: 13.5px; color: var(--text-2); }
.acc-body p { margin-bottom: 10px; }
.acc-body ul { margin: 0 0 6px; padding-left: 18px; display: flex; flex-direction: column; gap: 5px; }
.acc-body li::marker { color: var(--accent); }
.acc-body .tip {
  margin-top: 10px; padding: 10px 14px; border-left: 2px solid var(--gold);
  background: rgba(227,167,60,.06); color: var(--text-2); font-size: 13px; border-radius: 0 6px 6px 0;
}
.acc-body .tip b { color: var(--gold); }

/* ---------- 知识库分类卡（首页） ---------- */
.kb-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 14px; }
.kb-card {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 22px; transition: all .18s;
}
.kb-card:hover { border-color: var(--accent); transform: translateY(-3px); }
.kb-card .kb-ico { font-size: 22px; margin-bottom: 10px; }
.kb-card h4 { font-size: 16px; margin-bottom: 5px; }
.kb-card p { font-size: 12.5px; color: var(--muted); }
.kb-card .kb-n { font-size: 11px; color: var(--accent); font-family: var(--mono); margin-top: 10px; display: block; }

/* ---------- 关于 / 交流 ---------- */
.about-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 34px; align-items: start; }
.prose { color: var(--text-2); font-size: 15px; }
.prose p { margin-bottom: 14px; }
.prose h3 { color: var(--text); font-size: 17px; margin: 26px 0 10px; }
.prose ul { padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.prose li::marker { color: var(--accent); }
.info-card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 24px; margin-bottom: 14px;
}
.info-card h4 { font-size: 14px; color: var(--muted); font-weight: 400; margin-bottom: 10px; }
.info-card .big { font-size: 17px; font-weight: 600; }
.info-card a.big:hover { color: var(--accent); }
.info-card p { font-size: 13px; color: var(--muted); margin-top: 6px; }
.placeholder-mark {
  font-size: 11px; color: var(--gold); border: 1px dashed rgba(227,167,60,.5);
  border-radius: 4px; padding: 1px 7px; margin-left: 8px; vertical-align: middle;
}
.tpl {
  background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 16px 18px; font-family: var(--mono); font-size: 12.5px; color: var(--text-2);
  white-space: pre-wrap; line-height: 1.9;
}

/* ---------- 板块导航（Bento） ---------- */
.bento { display: grid; grid-template-columns: 1.45fr 1fr 1fr; gap: 16px; }
.bento-card {
  position: relative; display: flex; flex-direction: column; justify-content: space-between;
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg);
  padding: 24px; min-height: 158px; overflow: hidden;
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.bento-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 36px rgba(76,141,255,.16); }
.bento-card.main {
  grid-row: span 2; min-height: 0; padding: 28px;
  background:
    radial-gradient(ellipse 70% 60% at 90% 0%, rgba(76,141,255,.16), transparent 70%),
    var(--surface);
}
.bento-top { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.bento-ico { font-size: 24px; }
.bento-n { font-size: 11px; font-family: var(--mono); color: var(--accent); border: 1px solid rgba(76,141,255,.3); border-radius: 20px; padding: 1px 9px; }
.bento-card h3 { font-size: 18px; margin-bottom: 7px; }
.bento-card.main h3 { font-size: 26px; margin-bottom: 10px; }
.bento-card p { color: var(--muted); font-size: 13.5px; }
.bento-card.main p { font-size: 14.5px; max-width: 420px; }
.bento-foot { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.bento-tag { font-size: 11px; color: var(--text-2); border: 1px solid var(--border); border-radius: 5px; padding: 2px 8px; }
.bento-go { font-size: 13px; color: var(--accent); font-weight: 600; margin-top: 16px; display: inline-flex; align-items: center; gap: 6px; }
.bento-card:hover .bento-go { gap: 10px; }

/* ---------- 软件作品 ---------- */
.app-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.app-card {
  display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 26px; transition: transform .2s, border-color .2s, box-shadow .2s;
}
.app-card:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: 0 12px 36px rgba(76,141,255,.16); }
.app-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.app-head .app-ico { font-size: 30px; line-height: 1; }
.status { font-size: 11px; border-radius: 20px; padding: 2px 10px; white-space: nowrap; font-family: var(--mono); }
.status.live { color: var(--green); border: 1px solid rgba(61,220,151,.45); background: rgba(61,220,151,.08); }
.status.wip { color: var(--gold); border: 1px solid rgba(227,167,60,.45); background: rgba(227,167,60,.08); }
.status.plan { color: var(--muted); border: 1px solid var(--border-strong); }
.app-card h3 { font-size: 19px; margin-bottom: 4px; }
.app-sub { font-size: 12.5px; color: var(--accent); margin-bottom: 10px; }
.app-card > p { color: var(--muted); font-size: 13.5px; }
.app-feats { list-style: none; margin: 14px 0 4px; display: flex; flex-direction: column; gap: 5px; }
.app-feats li { font-size: 13px; color: var(--text-2); padding-left: 15px; position: relative; }
.app-feats li::before { content: "·"; position: absolute; left: 4px; color: var(--accent); }
.app-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 18px; }
.btn.sm { padding: 8px 16px; font-size: 13.5px; border-radius: 8px; }
.app-card.muted { opacity: .62; border-style: dashed; }
.app-card.muted:hover { transform: none; box-shadow: none; border-color: var(--border); }

/* ---------- 产品详情页 ---------- */
.app-hero { padding: 56px 0 40px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, rgba(76,141,255,.07), transparent); }
.app-hero-top { display: flex; align-items: flex-start; gap: 18px; flex-wrap: wrap; }
.app-hero-ico { font-size: 42px; line-height: 1; }
.app-hero h1 { font-size: 34px; line-height: 1.3; }
.app-hero .app-sub { font-size: 13px; margin: 6px 0 0; }
.app-hero p.desc { color: var(--text-2); font-size: 15px; max-width: 680px; margin-top: 18px; }
.app-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.detail-grid { display: grid; grid-template-columns: 1.5fr 1fr; gap: 26px; align-items: start; }
.detail-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 24px; }
.detail-card h3 { font-size: 16px; margin-bottom: 12px; }
.detail-card h3::before { content: ""; display: inline-block; width: 3px; height: 14px; border-radius: 2px; background: var(--accent); margin-right: 9px; vertical-align: -2px; }
.detail-card ul { padding-left: 18px; display: flex; flex-direction: column; gap: 6px; font-size: 13.5px; color: var(--text-2); }
.detail-card li::marker { color: var(--accent); }
.detail-card + .detail-card { margin-top: 16px; }
.kv { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px dashed rgba(31,44,74,.8); font-size: 13px; }
.kv:last-child { border-bottom: none; }
.kv span { color: var(--muted); flex: none; }
.kv b { font-weight: 500; color: var(--text-2); text-align: right; }
.app-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

/* ---------- 行业动态 ---------- */
.news-list { display: flex; flex-direction: column; gap: 10px; }
.news-item {
  display: block; background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 20px; transition: border-color .15s, transform .15s;
}
.news-item:hover { border-color: var(--border-strong); transform: translateX(3px); }
.news-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; font-size: 11.5px; color: var(--muted); font-family: var(--mono); margin-bottom: 6px; }
.news-cat { color: var(--accent); background: var(--accent-soft); border-radius: 4px; padding: 1px 8px; }
.news-item h3 { font-size: 15.5px; line-height: 1.55; margin-bottom: 5px; }
.news-item p { color: var(--muted); font-size: 13px; }
.news-src { font-size: 11.5px; color: var(--muted); margin-top: 8px; display: inline-flex; align-items: center; gap: 5px; }
.news-src b { color: var(--text-2); font-weight: 500; }
.news-item:hover .news-src { color: var(--accent); }
.news-note { font-size: 12px; color: var(--muted); margin-top: 22px; padding-top: 14px; border-top: 1px dashed var(--border); }
.news-flag {
  font-size: 11px; color: var(--gold); border: 1px solid rgba(227, 167, 60, .45);
  background: rgba(227, 167, 60, .08); border-radius: 4px; padding: 1px 8px;
}

/* ---------- AI 行业日报 ---------- */
.ai-more { margin-top: 14px; border-top: 1px dashed var(--border); padding-top: 10px; }
.ai-more summary {
  cursor: pointer; font-size: 12.5px; color: var(--accent); list-style: none;
  display: inline-flex; align-items: center; gap: 6px;
}
.ai-more summary::-webkit-details-marker { display: none; }
.ai-more summary::before { content: "▸"; font-size: 10px; transition: transform .18s; }
.ai-more[open] summary::before { transform: rotate(90deg); }
.ai-body { margin-top: 10px; font-size: 13.5px; color: var(--text-2); }
.ai-body h3 { font-size: 14px; color: var(--text); margin: 16px 0 6px; }
.ai-body p { margin: 6px 0; color: var(--muted); line-height: 1.7; }
.ai-body ul { padding-left: 18px; display: flex; flex-direction: column; gap: 7px; }
.ai-body li { color: var(--text-2); line-height: 1.65; }
.ai-body a { color: var(--accent); }
.ai-body strong { color: var(--text); font-weight: 600; }


/* ---------- 页脚 ---------- */
.footer {
  border-top: 1px solid var(--border); padding: 26px 0; margin-top: 20px;
  color: var(--muted); font-size: 13px; position: relative; z-index: 1;
}
.footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; align-items: center; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
.foot-links a:hover { color: var(--text); }
.beian { font-size: 12px; opacity: .8; }

/* ---------- 滚动显现 ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .5s ease, transform .5s ease; }
.js .reveal.in { opacity: 1; transform: none; }
.js .reveal.d1 { transition-delay: .07s; }
.js .reveal.d2 { transition-delay: .14s; }
.js .reveal.d3 { transition-delay: .21s; }
.js .reveal.d4 { transition-delay: .28s; }
@media (prefers-reduced-motion: reduce) {
  .js .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---------- 技术分享板块 ---------- */
.tech-bento {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  margin-bottom: 20px;
  backdrop-filter: blur(6px);
}
.card h3 {
  font-size: 20px;
  margin-bottom: 16px;
  color: var(--text);
}
.kb-list {
  list-style: none;
  padding: 0;
}
.kb-list li {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
  color: var(--text-2);
  font-size: 15px;
  line-height: 1.8;
}
.kb-list li:last-child { border-bottom: none; }
.kb-list strong {
  color: var(--accent);
  font-weight: 600;
  margin-right: 6px;
}
.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.sw-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.sw-item {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.sw-item b { color: var(--text); font-size: 15px; }
.sw-item .meta { color: var(--muted); font-size: 13px; line-height: 1.5; }

/* ---------- 响应式 ---------- */
@media (max-width: 860px) {
  .about-grid { grid-template-columns: 1fr; gap: 26px; }
  .detail-grid { grid-template-columns: 1fr; gap: 18px; }
  .bento { grid-template-columns: 1fr 1fr; }
  .bento-card.main { grid-row: auto; grid-column: 1 / -1; min-height: 0; }
}
@media (max-width: 680px) {
  .hero { padding: 40px 0 36px; }
  .hero h1 { font-size: 38px; }
  .hero-stats { gap: 24px; margin-top: 32px; }
  .section { padding: 44px 0; }
  .page-head { padding: 40px 0 28px; }
  .page-head h1 { font-size: 29px; }
  /* 移动端导航：可横滑频道条（无汉堡菜单，全部入口直接可见） */
  .nav-toggle { display: none !important; }
  .nav-inner { flex-wrap: wrap; height: auto; min-height: 52px; padding: 8px 0 0; gap: 0; }
  .links {
    display: flex; position: static; order: 3; width: 100%;
    flex-direction: row; align-items: center; gap: 2px;
    overflow-x: auto; -webkit-overflow-scrolling: touch;
    scrollbar-width: none; background: none; border-bottom: none;
    padding: 6px 0 8px;
    -webkit-mask-image: linear-gradient(90deg, #000 90%, transparent);
    mask-image: linear-gradient(90deg, #000 90%, transparent);
  }
  .links::-webkit-scrollbar { display: none; }
  .links a {
    flex: none; padding: 7px 12px; font-size: 13.5px;
    border-bottom: none; border-radius: 999px;
  }
  .links a.active { color: var(--text); background: rgba(90, 167, 255, .16); }
  .links a.active::after { display: none; }
  .links a.nav-cta, .links a.nav-demo {
    border: 1px solid var(--border-strong); border-radius: 999px;
    padding: 6px 12px; margin-left: 4px;
  }
  .links a.nav-demo { border-color: var(--accent); }
  .search-box, .search-box input { width: 100%; }
  .toolbar { gap: 12px; }
  .post { padding: 18px 20px; }
  .acc-body { padding-left: 18px; }

  /* ---- 移动端增强 ---- */
  .wrap { padding: 0 18px; }
  /* Hero 按钮整行堆叠，触控目标充足 */
  .hero-actions { flex-direction: column; gap: 12px; }
  .hero-actions .btn { width: 100%; justify-content: center; padding: 13px 20px; font-size: 15.5px; }
  /* 数据统计改为 2x2 */
  .hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 18px 24px; }
  .stat b { font-size: 23px; }
  /* 区块标题略收 */
  .section h2 { font-size: 23px; }
  .section-head { margin-bottom: 24px; }
  /* 卡片：单列、减内边距、去掉悬停位移（触屏无 hover） */
  .cards { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 20px; }
  a.card:active { border-color: var(--accent); }
  .card-icon { font-size: 24px; margin-bottom: 10px; }
  .card h3 { font-size: 17px; }
  .card-badge { top: 14px; right: 14px; }
  /* 时间线收紧 */
  .tl-item { padding-bottom: 20px; }
  /* 交流页 */
  .about-grid { gap: 22px; }
  .prose { font-size: 14.5px; }
  .prose h3 { font-size: 16px; margin: 22px 0 8px; }
  .info-card { padding: 18px; margin-bottom: 12px; }
  .info-card .big { font-size: 16px; word-break: break-all; }
  .tpl { font-size: 12px; padding: 14px 15px; line-height: 1.8; overflow-x: auto; }
  /* 页脚竖排居中 */
  .footer .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }

  /* ---- 综合门户新增块 ---- */
  .bento { grid-template-columns: 1fr; gap: 12px; }
  .bento-card, .bento-card.main { padding: 20px; }
  .bento-card.main h3 { font-size: 22px; }
  .app-grid { grid-template-columns: 1fr; gap: 14px; }
  .app-card { padding: 20px; }
  .app-actions .btn { flex: 1 1 auto; justify-content: center; }
  .app-hero { padding: 42px 0 32px; }
  .app-hero h1 { font-size: 27px; }
  .app-hero-ico { font-size: 34px; }
  .app-hero-top { gap: 12px; }
  .detail-card { padding: 20px; }
  .news-item { padding: 14px 16px; }
  .news-item:hover { transform: none; }
}

/* 窄屏（≤420px） */
@media (max-width: 420px) {
  .hero h1 { font-size: 36px; }
  .tagline { font-size: 15.5px; }
  .hero-stats { gap: 14px 18px; }
}

/* ---------- 访客留言板 ---------- */
.guestbook { display: flex; flex-direction: column; gap: 16px; }
.gb-form {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 20px;
}
.gb-row { display: flex; gap: 10px; margin-bottom: 10px; }
.gb-row input, .gb-row select, .gb-form textarea {
  background: var(--surface-3); border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); font-size: 14px; padding: 10px 12px; font-family: inherit;
  outline: none; transition: border-color .18s;
}
.gb-row input { flex: 1; min-width: 0; }
.gb-row select { width: 154px; flex: none; }
.gb-form textarea { width: 100%; resize: vertical; line-height: 1.75; }
.gb-row input:focus, .gb-row select:focus, .gb-form textarea:focus { border-color: var(--accent); }
.gb-actions {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-top: 12px;
}
.gb-msg { font-size: 12.5px; color: var(--muted); }
.gb-list { display: flex; flex-direction: column; gap: 10px; }
.gb-item {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: var(--radius); padding: 16px 18px;
}
.gb-head { display: flex; align-items: center; gap: 10px; margin-bottom: 6px; }
.gb-head b { font-size: 14px; color: var(--text); }
.gb-stars { color: var(--gold); font-size: 12px; letter-spacing: 1px; }
.gb-head time { margin-left: auto; font-size: 12px; color: var(--muted); flex: none; }
.gb-item p { font-size: 14px; color: var(--text-2); line-height: 1.8; word-break: break-word; }
@media (max-width: 680px) {
  .gb-row { flex-direction: column; }
  .gb-row select { width: 100%; }
  .gb-actions { flex-direction: column; align-items: stretch; }
}
