/* ============================================================
   AIGC编程网 - 复刻版全局样式
   主色调：暖棕 #8A4D34 / 金色 #E9B878 / 米白 #F5F5F4
   ============================================================ */

:root {
  --brand: #8a4d34;            /* 品牌主色-棕 */
  --brand-dark: #6f3c27;
  --gold: #e9b878;             /* 金色按钮 */
  --gold-text: #8a6a12;        /* 金色文字 */
  --bg: #f5f5f4;               /* 页面背景 */
  --ink: #191713;              /* 主文字 */
  --muted: #64748b;            /* 次要文字 */
  --border: #eef0f3;
  --rose-bg: #fff1f2;
  --rose-text: #e11d48;
  --rose-border: #fecdd3;
  --violet: #7c3aed;           /* AI 紫 */
  --violet-bg: #f5f3ff;
  --card-radius: 14px;
  --shadow: 0 1px 3px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.05);
  --shadow-hover: 0 6px 24px rgba(0,0,0,.10);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 15px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ---------------- 顶部导航 ---------------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  height: 64px;
  display: flex;
  align-items: center;
  gap: 24px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; color: var(--ink); white-space: nowrap; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: linear-gradient(135deg, var(--brand), #c0714f);
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 17px; font-weight: 900;
}
.nav { display: flex; align-items: center; gap: 4px; flex: 1; overflow-x: auto; }
.nav a {
  padding: 8px 14px; border-radius: 8px; font-size: 14.5px; color: #444;
  white-space: nowrap; transition: all .18s;
}
.nav a:hover { background: #f1ecea; color: var(--brand); }
.nav a.active { color: var(--brand); font-weight: 600; background: #f6ece8; }
.topbar-right { display: flex; align-items: center; gap: 14px; }
.online-pill {
  font-size: 13px; color: #16a34a; background: #f0fdf4;
  border: 1px solid #bbf7d0; padding: 4px 12px; border-radius: 999px;
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
}
.online-pill .dot { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 1.6s infinite; }
@keyframes pulse { 0%,100% {opacity:1} 50% {opacity:.35} }
.btn-login {
  background: var(--brand); color: #fff; border: none;
  padding: 9px 20px; border-radius: 10px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .18s; white-space: nowrap;
}
.btn-login:hover { background: var(--brand-dark); }
.btn-share {
  background: rgba(255,255,255,.92); color: var(--brand); border: 1px solid rgba(138,77,52,.25);
  padding: 8px 14px; border-radius: 10px; font-size: 13.5px; font-weight: 600;
  cursor: pointer; transition: background .18s; white-space: nowrap;
}
.btn-share:hover { background: #fff; }
.menu-btn { display: none; background: none; border: none; font-size: 22px; cursor: pointer; color: var(--ink); }

/* 移动端下拉菜单 */
.mobile-menu {
  display: none; position: absolute; top: 64px; left: 0; right: 0;
  background: #fff; border-bottom: 1px solid var(--border); padding: 12px 20px 18px;
  box-shadow: var(--shadow);
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: block; padding: 11px 8px; font-size: 15px; border-bottom: 1px solid #f5f5f5; }
.mobile-menu a:last-child { border-bottom: none; }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 26px; border-radius: 12px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: none; transition: all .18s; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(138,77,52,.35); }
.btn-gold { background: var(--gold); color: #3c2f14; }
.btn-gold:hover { filter: brightness(1.05); transform: translateY(-1px); box-shadow: 0 6px 18px rgba(233,184,120,.4); }
.btn-outline { background: transparent; color: #fff; border: 1.5px solid rgba(255,255,255,.6); }
.btn-outline:hover { background: rgba(255,255,255,.12); }
.btn-white { background: #fff; color: var(--ink); }
.btn-white:hover { box-shadow: 0 6px 18px rgba(0,0,0,.12); transform: translateY(-1px); }
.btn-sm { padding: 8px 16px; font-size: 13.5px; border-radius: 10px; }

/* ---------------- 通用区块 ---------------- */
.section { padding: 72px 0; }
.section-title {
  font-size: 30px; font-weight: 800; letter-spacing: -0.5px;
  display: flex; align-items: center; gap: 14px;
}
.section-title .bar { width: 5px; height: 28px; border-radius: 3px; background: var(--brand); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 34px; flex-wrap: wrap; gap: 12px; }
.section-sub { color: var(--muted); font-size: 15px; margin-top: 8px; }
.link-more { color: var(--brand); font-weight: 600; font-size: 14.5px; }
.link-more:hover { text-decoration: underline; }

/* ---------------- Hero ---------------- */
.hero {
  background: linear-gradient(105deg, #334155, #5f3e31 30%, #9a563b 58%, #15171c);
  color: #fff; position: relative; overflow: hidden;
}
.hero::after {
  content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0,220,130,.25), transparent 60%);
  filter: blur(10px);
}
.hero-inner { position: relative; z-index: 2; padding: 96px 0 88px; text-align: center; max-width: 880px; margin: 0 auto; }
.hero-tag {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2);
  padding: 6px 16px; border-radius: 999px; font-size: 13px; margin-bottom: 24px;
}
.hero h1 { font-size: 46px; font-weight: 900; line-height: 1.25; letter-spacing: -1px; margin-bottom: 18px; }
.hero h1 .grad {
  background: linear-gradient(90deg, #00dc82, #34cdfe 45%, #0047e1);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p { font-size: 17px; color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto 34px; }
.hero-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.hero-stats { display: flex; justify-content: center; gap: 56px; margin-top: 56px; flex-wrap: wrap; }
.hero-stat { text-align: center; }
.hero-stat .num { font-size: 30px; font-weight: 800; color: var(--gold); }
.hero-stat .lbl { font-size: 13.5px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ---------------- 公告 Tab ---------------- */
.announce-tabs {
  background: #fff; border-bottom: 1px solid var(--border); position: relative; z-index: 5;
}
.announce-inner { max-width: 1200px; margin: 0 auto; display: flex; align-items: center; gap: 28px; padding: 0 20px; height: 52px; overflow-x: auto; }
.announce-inner .a-label { color: var(--brand); font-weight: 700; font-size: 14px; white-space: nowrap; }
.announce-inner a { font-size: 14px; color: #555; white-space: nowrap; padding: 6px 4px; }
.announce-inner a:hover { color: var(--brand); }

/* ---------------- 博主介绍 ---------------- */
.intro-card {
  background: #fff; border-radius: 18px; border: 1px solid var(--border);
  padding: 44px 48px; box-shadow: var(--shadow); text-align: center;
}
.intro-card blockquote {
  font-size: 19px; font-style: italic; color: #444; max-width: 760px; margin: 0 auto 26px; line-height: 1.7;
}
.intro-badges { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-bottom: 30px; }
.intro-badges span {
  background: #f6ece8; color: var(--brand); font-weight: 600; font-size: 13.5px;
  padding: 8px 18px; border-radius: 999px;
}
.intro-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }

/* ---------------- 项目卡片 ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 1080px) { .card-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 820px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .card-grid { grid-template-columns: 1fr; } }

.project-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--card-radius);
  padding: 24px; cursor: pointer; transition: all .18s; display: flex; flex-direction: column;
  position: relative; overflow: hidden;
}
.project-card:hover { transform: translateY(-4px); border-color: var(--rose-border); box-shadow: var(--shadow-hover); }
.project-card .icon {
  width: 46px; height: 46px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: #fff; margin-bottom: 14px;
}
.project-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.project-card .desc { font-size: 13.5px; color: var(--muted); line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; margin-bottom: 14px; flex: 1; }
.project-card .techs { display: flex; gap: 6px; flex-wrap: wrap; }
.project-card .tech {
  font-size: 12px; color: #6b7280; background: #f3f4f6;
  padding: 3px 10px; border-radius: 6px; font-weight: 500;
}
.badge {
  display: inline-block; font-size: 12px; font-weight: 600;
  padding: 3px 10px; border-radius: 6px; margin-bottom: 10px;
}
.badge-rose { background: var(--rose-bg); color: var(--rose-text); }
.badge-violet { background: var(--violet-bg); color: var(--violet); }
.badge-gold { background: #fef9ec; color: var(--gold-text); }
.badge-green { background: #f0fdf4; color: #16a34a; }

/* AI 卡片 hover 紫色 */
.project-card.ai:hover { border-color: #ddd6fe; }
.project-card.ai .icon { background: linear-gradient(135deg, var(--violet), #a855f7); }

/* ---------------- Tab 切换 ---------------- */
.tab-list { display: inline-flex; background: #ececeb; border-radius: 12px; padding: 4px; gap: 4px; margin-bottom: 32px; }
.tab-item { padding: 9px 22px; border-radius: 9px; font-size: 14.5px; font-weight: 600; color: #555; cursor: pointer; transition: all .18s; background: none; border: none; }
.tab-item.active { background: #fff; color: var(--brand); box-shadow: 0 2px 8px rgba(0,0,0,.08); }
.tab-panel { display: none; }
.tab-panel.active { display: block; animation: fadeIn .3s; }
@keyframes fadeIn { from {opacity:0; transform: translateY(6px)} to {opacity:1; transform:none} }

/* ---------------- 卖点卡片 ---------------- */
.benefit-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .benefit-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 520px) { .benefit-grid { grid-template-columns: 1fr; } }
.benefit-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px 24px; transition: all .18s; }
.benefit-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.benefit-card .b-icon { width: 46px; height: 46px; border-radius: 12px; background: #f6ece8; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; }
.benefit-card h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 8px; }
.benefit-card p { font-size: 13.5px; color: var(--muted); line-height: 1.65; }

/* ---------------- VIP 卖点区 ---------------- */
.vip-banner {
  background: linear-gradient(120deg, #2b211b, #5f3e31 55%, #7c523a);
  border-radius: 20px; padding: 52px; color: #fff; position: relative; overflow: hidden;
}
.vip-banner::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(233,184,120,.3), transparent 60%);
}
.vip-banner-inner { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.vip-banner h2 { font-size: 30px; font-weight: 800; margin-bottom: 8px; }
.vip-banner .sub { color: rgba(255,255,255,.8); margin-bottom: 26px; max-width: 460px; }
.vip-features { display: flex; flex-direction: column; gap: 14px; }
.vip-features li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.vip-features li .ck {
  width: 22px; height: 22px; border-radius: 50%; background: var(--gold); color: #3c2f14;
  display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 800; flex-shrink: 0;
}

/* ---------------- 学员评价 ---------------- */
.review-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 900px) { .review-grid { grid-template-columns: 1fr; } }
.review-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 30px; box-shadow: var(--shadow); }
.review-card .quote { font-size: 15px; color: #444; line-height: 1.8; margin-bottom: 22px; }
.review-card .who { display: flex; align-items: center; gap: 12px; }
.review-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--gold)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.review-card .who .name { font-weight: 700; font-size: 14.5px; }
.review-card .who .meta { font-size: 12.5px; color: var(--muted); }

/* ---------------- 底部 CTA ---------------- */
.cta-band { text-align: center; padding: 76px 20px; }
.cta-band h2 { font-size: 34px; font-weight: 900; margin-bottom: 12px; letter-spacing: -0.5px; }
.cta-band p { color: var(--muted); margin-bottom: 30px; }

/* ---------------- 页脚 ---------------- */
.footer { background: #1c1917; color: #a8a29e; padding: 56px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; margin-bottom: 40px; }
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px) { .footer-grid { grid-template-columns: 1fr; } }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; font-weight: 700; }
.footer a { display: block; font-size: 13.5px; color: #a8a29e; padding: 4px 0; transition: color .15s; }
.footer a:hover { color: var(--gold); }
.footer .brand { font-size: 20px; font-weight: 800; color: #fff; margin-bottom: 12px; display: flex; align-items: center; gap: 10px; }
.footer .brand-txt { font-size: 14px; line-height: 1.8; color: #a8a29e; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 24px; text-align: center; font-size: 13px; color: #78716c; }

/* ---------------- 页面 Hero（二级页） ---------------- */
.page-hero { background: linear-gradient(105deg, #334155, #5f3e31 30%, #9a563b 58%, #15171c); color: #fff; padding: 64px 0; }
.page-hero h1 { font-size: 36px; font-weight: 900; margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 620px; font-size: 16px; }
.page-hero-inner { display: flex; justify-content: space-between; align-items: center; gap: 32px; flex-wrap: wrap; }
.page-hero-points { display: grid; grid-template-columns: repeat(4, auto); gap: 18px; margin-top: 30px; }
@media (max-width: 700px) { .page-hero-points { grid-template-columns: repeat(2, auto); } }
.page-hero-points div { display: flex; align-items: center; gap: 8px; font-size: 14px; color: rgba(255,255,255,.85); }
.page-hero-points .ic { color: var(--gold); font-weight: 800; }

.code-window {
  background: #0f1115; border-radius: 14px; border: 1px solid rgba(255,255,255,.12);
  width: 420px; max-width: 100%; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,.4);
}
.code-window .bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; background: #1a1d24; }
.code-window .bar i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.code-window pre { padding: 18px; font-size: 12.5px; line-height: 1.7; color: #a5d6ff; overflow-x: auto; }
.code-window code { font-family: "JetBrains Mono", Consolas, monospace; }

/* ---------------- 筛选 ---------------- */
.filter-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; flex-wrap: wrap; }
.filter-btn { padding: 9px 22px; border-radius: 10px; background: #fff; border: 1px solid var(--border); font-size: 14px; font-weight: 600; color: #555; cursor: pointer; transition: all .18s; }
.filter-btn:hover { border-color: var(--brand); color: var(--brand); }
.filter-btn.active { background: var(--brand); color: #fff; border-color: var(--brand); }
.result-count { font-size: 13.5px; color: var(--muted); margin-left: auto; }

/* ---------------- 学习路线 ---------------- */
.roadmap-phase { background: #fff; border: 1px solid var(--border); border-radius: 18px; padding: 38px; margin-bottom: 28px; box-shadow: var(--shadow); }
.phase-head { display: flex; align-items: center; gap: 14px; margin-bottom: 20px; }
.phase-no {
  width: 42px; height: 42px; border-radius: 12px; background: var(--brand); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 17px; flex-shrink: 0;
}
.phase-head h2 { font-size: 22px; font-weight: 800; }
.phase-head .tag { font-size: 12.5px; font-weight: 600; padding: 3px 10px; border-radius: 6px; }
.phase-desc { color: var(--muted); font-size: 14.5px; margin-bottom: 22px; max-width: 760px; }
.tech-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.tech-tags span { background: #f3f4f6; border: 1px solid #e5e7eb; padding: 6px 14px; border-radius: 8px; font-size: 13px; color: #374151; font-weight: 500; }
.step-list { display: flex; flex-direction: column; gap: 12px; }
.step-item { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; background: #fafaf9; border-radius: 12px; border: 1px solid var(--border); }
.step-item .n { width: 28px; height: 28px; border-radius: 8px; background: #f6ece8; color: var(--brand); font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 14px; }
.step-item b { display: block; font-size: 15px; margin-bottom: 3px; }
.step-item p { font-size: 13.5px; color: var(--muted); }

/* ---------------- VIP 组合卡 ---------------- */
.plan-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
@media (max-width: 1000px) { .plan-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .plan-grid { grid-template-columns: 1fr; } }
.plan-card { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 28px; transition: all .18s; position: relative; }
.plan-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.plan-card.hot { border-color: var(--gold); box-shadow: 0 0 0 1px var(--gold), var(--shadow); }
.plan-card .p-badge { position: absolute; top: -12px; right: 18px; background: linear-gradient(135deg, var(--gold), #d9a25f); color: #3c2f14; font-size: 12px; font-weight: 700; padding: 4px 14px; border-radius: 999px; }
.plan-card h3 { font-size: 17px; font-weight: 800; margin-bottom: 6px; }
.plan-card .p-tech { font-size: 13px; color: var(--muted); margin-bottom: 14px; }
.plan-card .p-desc { font-size: 13.5px; color: #555; margin-bottom: 16px; min-height: 44px; }
.plan-card .p-price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 18px; }
.plan-card .p-price .now { font-size: 26px; font-weight: 900; color: var(--brand); }
.plan-card .p-price .old { font-size: 14px; color: #b0b0b0; text-decoration: line-through; }
.plan-card .p-price .off { font-size: 12px; color: var(--rose-text); font-weight: 700; }

/* ---------------- 详情页 ---------------- */
.course-hero { background: linear-gradient(105deg, #334155, #5f3e31 30%, #9a563b 58%, #15171c); color: #fff; padding: 56px 0; }
.course-hero .crumbs { font-size: 13.5px; color: rgba(255,255,255,.6); margin-bottom: 16px; }
.course-hero .crumbs a:hover { color: var(--gold); }
.course-hero h1 { font-size: 34px; font-weight: 900; margin-bottom: 14px; }
.course-hero .row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel { background: #fff; border: 1px solid var(--border); border-radius: 16px; padding: 34px; margin-bottom: 24px; box-shadow: var(--shadow); }
.panel h2 { font-size: 20px; font-weight: 800; margin-bottom: 18px; display: flex; align-items: center; gap: 10px; }
.panel h2::before { content: ""; width: 5px; height: 22px; border-radius: 3px; background: var(--brand); }
.feature-list li { display: flex; align-items: flex-start; gap: 10px; padding: 7px 0; font-size: 14.5px; color: #444; }
.feature-list li .ck { color: var(--brand); font-weight: 800; flex-shrink: 0; }
.resource-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
@media (max-width: 640px) { .resource-grid { grid-template-columns: 1fr; } }
.resource-item { display: flex; align-items: center; gap: 12px; padding: 16px; background: #fafaf9; border: 1px solid var(--border); border-radius: 12px; font-size: 14px; }
.resource-item .r-ic { width: 38px; height: 38px; border-radius: 10px; background: #f6ece8; color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0; }
.price-card { background: linear-gradient(120deg, #2b211b, #5f3e31 55%, #7c523a); border-radius: 16px; padding: 30px; color: #fff; text-align: center; position: sticky; top: 84px; }
.price-card .p-now { font-size: 40px; font-weight: 900; color: var(--gold); }
.price-card .p-old { font-size: 15px; color: rgba(255,255,255,.6); text-decoration: line-through; margin-bottom: 6px; }
.price-card .p-note { font-size: 13px; color: rgba(255,255,255,.7); margin-bottom: 20px; }
.detail-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
@media (max-width: 900px) { .detail-layout { grid-template-columns: 1fr; } .price-card { position: static; } }

/* ---------------- 空态/加载 ---------------- */
.empty { text-align: center; padding: 60px 0; color: var(--muted); font-size: 15px; }
.loading { text-align: center; padding: 80px 0; color: var(--muted); }
.spinner { width: 36px; height: 36px; border: 3px solid #e5e7eb; border-top-color: var(--brand); border-radius: 50%; margin: 0 auto 14px; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------------- 在线人数 ---------------- */
footer .footer-note { margin-top: 20px; }

/* 响应式 */
@media (max-width: 860px) {
  .nav { display: none; }
  .menu-btn { display: block; }
  .hero h1 { font-size: 34px; }
  .hero-inner { padding: 64px 0 60px; }
  .section { padding: 52px 0; }
  .section-title { font-size: 24px; }
  .vip-banner { padding: 34px 26px; }
  .intro-card { padding: 30px 22px; }
}


/* ---------------- 文档资料库 ---------------- */
.docs-toolbar { display:flex; flex-wrap:wrap; gap:10px; align-items:center; margin-bottom:24px; }
.docs-search { flex:1 1 220px; padding:10px 16px; border:1px solid #e5e7eb; border-radius:10px; font-size:14px; outline:none; background:#fff; }
.docs-search:focus { border-color:#c0714f; }
.docs-select { padding:10px 14px; border:1px solid #e5e7eb; border-radius:10px; font-size:14px; background:#fff; color:#333; outline:none; cursor:pointer; }
.docs-count { margin-left:auto; font-size:13px; color:#888; }
.docs-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(300px,1fr)); gap:16px; }
.doc-card { background:#fff; border:1px solid #f0e6dc; border-radius:14px; padding:18px 20px; cursor:pointer; transition:.2s; box-shadow:0 2px 10px rgba(0,0,0,.04); }
.doc-card:hover { transform:translateY(-3px); box-shadow:0 8px 24px rgba(0,0,0,.08); border-color:#e0c3a8; }
.doc-top { display:flex; gap:8px; margin-bottom:10px; }
.doc-badge { display:inline-block; padding:3px 10px; border-radius:20px; background:#f3e9df; color:#8a4d34; font-size:12px; font-weight:600; }
.doc-tag { display:inline-block; padding:3px 10px; border-radius:20px; background:#fff2e2; color:#b45309; font-size:12px; font-weight:600; }
.doc-title { font-size:15px; line-height:1.55; color:#2d2a26; margin:0 0 10px; display:-webkit-box; -webkit-line-clamp:2; -webkit-box-orient:vertical; overflow:hidden; min-height:46px; }
.doc-meta { display:flex; flex-wrap:wrap; gap:8px 14px; font-size:12px; color:#999; }
.doc-note { margin-top:10px; font-size:12px; color:#b09a86; border-top:1px dashed #eadccf; padding-top:8px; }
.doc-detail-card { background:#fff; border:1px solid #f0e6dc; border-radius:16px; padding:36px 32px; max-width:820px; margin:0 auto; box-shadow:0 4px 18px rgba(0,0,0,.05); }
.doc-detail-card h1 { font-size:26px; line-height:1.5; color:#2d2a26; margin:16px 0 24px; }
.doc-badges { display:flex; gap:8px; flex-wrap:wrap; }
.doc-info { display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:14px; margin-bottom:24px; }
.doc-info div { background:#faf6f1; border-radius:10px; padding:14px 16px; }
.doc-info span { display:block; font-size:12px; color:#999; margin-bottom:6px; }
.doc-info b { font-size:15px; color:#2d2a26; }
.doc-note-main { border:1px solid #f0ded0; background:#fdf8f2; border-radius:10px; padding:14px 16px; font-size:14px; color:#8a6b4f; line-height:1.8; }
.doc-actions { display:flex; gap:12px; flex-wrap:wrap; margin-top:24px; }
