/* =========================================================
   驰旭教育 · 共享样式表
   面向 PC 的 IT 技术分享站（微信小程序 / 移动端网页）
   配色：科技靛蓝 + 青色点缀
   ========================================================= */

:root {
  --primary: #4361ee;
  --primary-dark: #3a0ca3;
  --primary-light: #eef2ff;
  --accent: #06b6d4;
  --accent-soft: #cffafe;
  --success: #16a34a;
  --warning: #f59e0b;
  --danger: #ef4444;

  --bg: #f6f8fc;
  --bg-soft: #eef1f8;
  --surface: #ffffff;
  --border: #e6e9f2;
  --border-strong: #d2d8e8;

  --text: #1f2937;
  --text-soft: #5b6478;
  --text-mute: #9aa3b5;

  --shadow-sm: 0 1px 2px rgba(31, 41, 55, .06), 0 2px 8px rgba(31, 41, 55, .05);
  --shadow-md: 0 6px 18px rgba(31, 41, 55, .08), 0 2px 6px rgba(31, 41, 55, .05);
  --shadow-lg: 0 18px 48px rgba(58, 12, 163, .12);

  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;

  --maxw: 1240px;
  --nav-h: 68px;

  --font: "PingFang SC", "Microsoft YaHei", "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===================== 顶部导航 ===================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, .82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  height: var(--nav-h);
  display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.brand .logo {
  width: 38px; height: 38px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-size: 18px; font-weight: 900;
  box-shadow: 0 6px 16px rgba(67, 97, 238, .35);
}
.brand .name b { color: var(--primary); }
.brand .name span { color: var(--text); }

.nav-links { display: flex; gap: 6px; margin-left: 6px; }
.nav-links a {
  padding: 8px 14px; border-radius: 9px; color: var(--text-soft);
  font-weight: 600; font-size: 14.5px; transition: .18s;
}
.nav-links a:hover { color: var(--primary); background: var(--primary-light); }
.nav-links a.active { color: var(--primary); background: var(--primary-light); }

.nav-search {
  margin-left: auto; position: relative; display: flex; align-items: center;
}
.nav-search input {
  width: 240px; height: 40px; padding: 0 42px 0 16px;
  border: 1px solid var(--border-strong); border-radius: 999px;
  background: var(--bg-soft); font-size: 14px; color: var(--text);
  transition: .2s; outline: none;
}
.nav-search input:focus { border-color: var(--primary); background: #fff; box-shadow: 0 0 0 4px rgba(67,97,238,.12); }
.nav-search button {
  position: absolute; right: 6px; width: 30px; height: 30px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff;
  border-radius: 999px; display: grid; place-items: center; font-size: 14px;
}

.nav-cta {
  padding: 9px 18px; border-radius: 999px; border: none;
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: #fff; font-weight: 700; font-size: 14px;
  box-shadow: 0 6px 16px rgba(67, 97, 238, .3); transition: .2s;
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: 0 10px 22px rgba(67, 97, 238, .4); }

/* ===================== 按钮 ===================== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 22px; border-radius: 11px; border: 1px solid transparent;
  font-weight: 700; font-size: 14.5px; transition: .2s; cursor: pointer;
}
.btn-primary { background: linear-gradient(135deg, var(--primary), var(--primary-dark)); color: #fff; box-shadow: 0 8px 20px rgba(67,97,238,.28); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(67,97,238,.4); }
.btn-ghost { background: #fff; color: var(--primary); border-color: var(--border-strong); }
.btn-ghost:hover { border-color: var(--primary); background: var(--primary-light); }
.btn-accent { background: linear-gradient(135deg, var(--accent), #0891b2); color: #fff; box-shadow: 0 8px 20px rgba(6,182,212,.3); }
.btn-accent:hover { transform: translateY(-2px); }
.btn-danger { background: #fff; color: var(--danger); border-color: #fecaca; }
.btn-danger:hover { background: #fee2e2; }
.btn.sm { padding: 6px 14px; font-size: 13px; border-radius: 9px; }

/* ===================== Hero ===================== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 82% -10%, rgba(6,182,212,.18), transparent 60%),
    radial-gradient(760px 460px at 8% 8%, rgba(67,97,238,.20), transparent 60%),
    linear-gradient(180deg, #f3f6ff, var(--bg));
  padding: 74px 0 64px;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(67,97,238,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .6; pointer-events: none;
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }
.hero .badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px; font-size: 13px; font-weight: 700;
  color: var(--primary-dark); background: #fff; border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-sm);
}
.hero h1 { font-size: 46px; line-height: 1.18; margin: 20px 0 16px; letter-spacing: -.5px; }
.hero h1 .grad {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lead { font-size: 17px; color: var(--text-soft); max-width: 600px; }
.hero-actions { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { margin-top: 44px; display: flex; gap: 40px; flex-wrap: wrap; }
.hero-stats .stat b { display: block; font-size: 30px; font-weight: 800; color: var(--text); }
.hero-stats .stat span { font-size: 13.5px; color: var(--text-mute); }

/* ===================== 区块标题 ===================== */
.section { padding: 64px 0; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 30px; gap: 20px; }
.section-head h2 { font-size: 28px; letter-spacing: -.4px; }
.section-head h2 .bar {
  display: inline-block; width: 8px; height: 24px; border-radius: 4px; margin-right: 12px;
  background: linear-gradient(var(--primary), var(--accent)); vertical-align: -3px;
}
.section-head p { color: var(--text-soft); font-size: 14.5px; max-width: 460px; }
.link-more { color: var(--primary); font-weight: 700; font-size: 14px; display: inline-flex; align-items: center; gap: 5px; }
.link-more:hover { gap: 9px; }

/* ===================== 分类入口 ===================== */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.cat-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px 22px; transition: .22s; box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 100%;
  background: linear-gradient(90deg, var(--primary), var(--accent)); transform: scaleX(0); transform-origin: left; transition: .25s;
}
.cat-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card:hover::before { transform: scaleX(1); }
.cat-card .ico {
  width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center;
  font-size: 24px; margin-bottom: 16px; color: #fff;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.cat-card h3 { font-size: 17px; margin-bottom: 6px; }
.cat-card p { font-size: 13.5px; color: var(--text-mute); }
.cat-card .count { margin-top: 14px; font-size: 12.5px; color: var(--primary); font-weight: 700; }

/* ===================== 资源卡片 ===================== */
.res-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.res-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  overflow: hidden; transition: .22s; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.res-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.res-cover { height: 168px; position: relative; display: grid; place-items: center; color: #fff; overflow: hidden; }
.res-cover .emoji { font-size: 54px; filter: drop-shadow(0 6px 12px rgba(0,0,0,.18)); }
.res-cover .tag-type {
  position: absolute; top: 12px; left: 12px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 700; background: rgba(255,255,255,.92); color: var(--primary-dark);
  backdrop-filter: blur(4px);
}
.res-cover .tag-free {
  position: absolute; top: 12px; right: 12px; padding: 4px 11px; border-radius: 999px;
  font-size: 12px; font-weight: 800; background: var(--success); color: #fff;
}
.res-body { padding: 18px 18px 16px; display: flex; flex-direction: column; flex: 1; }
.res-body h3 { font-size: 16.5px; line-height: 1.4; margin-bottom: 8px; }
.res-body h3 a:hover { color: var(--primary); }
.res-body .desc { font-size: 13.5px; color: var(--text-soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 42px; }
.res-tags { margin: 12px 0 14px; display: flex; flex-wrap: wrap; gap: 6px; }
.res-tags span { font-size: 11.5px; color: var(--text-soft); background: var(--bg-soft); border: 1px solid var(--border); padding: 3px 9px; border-radius: 6px; }
.res-meta { margin-top: auto; display: flex; align-items: center; justify-content: space-between; font-size: 12.5px; color: var(--text-mute); padding-top: 12px; border-top: 1px dashed var(--border); }
.res-meta .dl { color: var(--primary); font-weight: 700; display: inline-flex; align-items: center; gap: 5px; }

/* ===================== 文章列表（首页最新） ===================== */
.post-list { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.post-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 20px 22px; transition: .2s; display: flex; gap: 16px; align-items: flex-start;
}
.post-item:hover { box-shadow: var(--shadow-md); border-color: var(--border-strong); transform: translateY(-3px); }
.post-item .num { font-size: 26px; font-weight: 800; color: var(--primary-light); -webkit-text-stroke: 1px var(--primary); line-height: 1; }
.post-item h4 { font-size: 15.5px; margin-bottom: 6px; }
.post-item h4 a:hover { color: var(--primary); }
.post-item p { font-size: 13px; color: var(--text-mute); }
.post-item .meta { font-size: 12px; color: var(--text-mute); margin-top: 8px; }

/* ===================== 列表页布局 ===================== */
.layout { display: grid; grid-template-columns: 264px 1fr; gap: 28px; align-items: start; }
.sidebar { position: sticky; top: calc(var(--nav-h) + 18px); }
.filter-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); margin-bottom: 20px; }
.filter-box h4 { font-size: 14px; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.filter-box h4 .d { width: 4px; height: 15px; background: var(--primary); border-radius: 3px; }
.filter-list li a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 9px 12px; border-radius: 9px; font-size: 14px; color: var(--text-soft); transition: .15s;
}
.filter-list li a:hover { background: var(--primary-light); color: var(--primary); }
.filter-list li a.active { background: var(--primary-light); color: var(--primary); font-weight: 700; }
.filter-list li a .pill { font-size: 11.5px; color: var(--text-mute); background: var(--bg-soft); padding: 1px 9px; border-radius: 999px; }
.filter-list li a.active .pill { background: #fff; color: var(--primary); }

.list-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; flex-wrap: wrap; gap: 12px; }
.list-top .result-count { font-size: 14px; color: var(--text-soft); }
.list-top .result-count b { color: var(--text); }
.sort-tabs { display: flex; gap: 6px; background: var(--surface); border: 1px solid var(--border); border-radius: 11px; padding: 5px; }
.sort-tabs button { border: none; background: transparent; padding: 7px 14px; border-radius: 8px; font-size: 13.5px; color: var(--text-soft); font-weight: 600; transition: .15s; }
.sort-tabs button.active { background: var(--primary-light); color: var(--primary); }

/* ===================== 分页 ===================== */
.pagination { display: flex; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span {
  min-width: 40px; height: 40px; padding: 0 12px; border-radius: 10px; display: grid; place-items: center;
  border: 1px solid var(--border); background: var(--surface); font-size: 14px; color: var(--text-soft); transition: .15s;
}
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pagination a.active { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination span { border: none; background: transparent; }
.pagination .pg-prev, .pagination .pg-next { font-weight: 600; padding: 0 14px; }
.pagination .pg-prev.disabled, .pagination .pg-next.disabled { color: #cbd5e1; border-color: var(--border); cursor: not-allowed; background: var(--surface); }
.pagination .pg-dots { letter-spacing: 2px; color: var(--text-mute); }

/* ===================== 面包屑 ===================== */
.crumb { padding: 22px 0 6px; font-size: 13.5px; color: var(--text-mute); }
.crumb a:hover { color: var(--primary); }
.crumb .sep { margin: 0 9px; color: var(--border-strong); }

/* ===================== 详情页 ===================== */
.detail-hero { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); }
.detail-head { display: flex; gap: 26px; padding: 28px; align-items: center; }
.detail-cover { width: 150px; height: 150px; border-radius: 18px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 60px; box-shadow: var(--shadow-md); }
.detail-head .info { flex: 1; }
.detail-head h1 { font-size: 27px; line-height: 1.3; margin-bottom: 10px; }
.detail-head .sub { color: var(--text-soft); font-size: 14px; margin-bottom: 14px; }
.detail-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.badge-chip { font-size: 12px; padding: 4px 11px; border-radius: 999px; background: var(--primary-light); color: var(--primary-dark); font-weight: 700; }
.badge-chip.green { background: #dcfce7; color: #15803d; }
.badge-chip.cyan { background: var(--accent-soft); color: #0e7490; }
.detail-actions { display: flex; gap: 12px; }

.detail-stats { display: flex; border-top: 1px solid var(--border); background: var(--bg-soft); }
.detail-stats .cell { flex: 1; text-align: center; padding: 16px 10px; border-right: 1px solid var(--border); }
.detail-stats .cell:last-child { border-right: none; }
.detail-stats .cell b { display: block; font-size: 19px; color: var(--text); }
.detail-stats .cell span { font-size: 12.5px; color: var(--text-mute); }

.detail-body { display: grid; grid-template-columns: 1fr 320px; gap: 28px; margin-top: 28px; align-items: start; }
.content-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow-sm); }
.content-card h2 { font-size: 20px; margin: 0 0 16px; display: flex; align-items: center; gap: 10px; }
.content-card h2 .bar { width: 6px; height: 20px; border-radius: 4px; background: linear-gradient(var(--primary), var(--accent)); }
.content-card h3 { font-size: 16px; margin: 22px 0 10px; color: var(--text); }
.content-card p { color: var(--text-soft); margin-bottom: 12px; }
.content-card ul.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; margin: 8px 0 4px; }
.content-card ul.feat li { position: relative; padding-left: 26px; color: var(--text-soft); font-size: 14px; }
.content-card ul.feat li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px;
  background: #dcfce7; color: var(--success); font-size: 12px; font-weight: 800; display: grid; place-items: center;
}

/* 截图预览 */
.shots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 12px; }
.shot { aspect-ratio: 9/16; border-radius: 12px; border: 1px solid var(--border); overflow: hidden; position: relative; background: var(--bg-soft); display: grid; place-items: center; }
.shot .phone { width: 64%; height: 86%; border-radius: 14px; background: linear-gradient(160deg, #ffffff, #eef2ff); box-shadow: inset 0 0 0 2px var(--border); display: grid; place-items: center; color: var(--text-mute); font-size: 12px; text-align: center; padding: 8px; }
.shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; transition: transform .25s ease; }
.shot:hover img { transform: scale(1.04); }

/* 源码结构 */
.code-tree { background: #0f172a; border-radius: 12px; padding: 18px 20px; color: #cbd5e1; font-family: "JetBrains Mono", "Fira Code", Consolas, monospace; font-size: 13px; line-height: 1.9; overflow-x: auto; }
.code-tree .dir { color: #7dd3fc; }
.code-tree .file { color: #e2e8f0; }
.code-tree .cmt { color: #64748b; }

/* 侧栏卡片 */
.side-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow-sm); margin-bottom: 22px; }
.side-card h4 { font-size: 15px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.side-card h4 .d { width: 4px; height: 15px; background: var(--primary); border-radius: 3px; }
.dl-box { text-align: center; }
.dl-box .big { font-size: 30px; margin-bottom: 6px; }
.dl-box p { font-size: 13px; color: var(--text-mute); margin-bottom: 16px; }
.dl-box .btn { width: 100%; justify-content: center; }

/* 赞助会员推广卡 */
.sponsor-card { background: linear-gradient(135deg, #fff7ed, #fff1f2); border: 1px solid #fed7aa; box-shadow: var(--shadow-sm); }
.sponsor-card .sp-top { font-size: 13px; font-weight: 700; color: #ea580c; letter-spacing: .3px; }
.sponsor-card .sp-price { font-size: 30px; font-weight: 800; color: #dc2626; margin: 8px 0 6px; }
.sponsor-card .sp-price span { font-size: 12px; font-weight: 500; color: var(--text-mute); margin-left: 8px; }
.sponsor-card .sp-desc { font-size: 13px; color: #7c2d12; line-height: 1.7; margin: 0 0 14px; }
.sponsor-card .sp-desc b { color: #b91c1c; }
.sponsor-card .sp-btn { width: 100%; justify-content: center; background: linear-gradient(135deg,#f97316,#ef4444); border: none; box-shadow: 0 8px 20px rgba(239,68,68,.25); }
.sponsor-card .sp-ok { text-align: center; font-size: 13px; font-weight: 700; color: #16a34a; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; padding: 10px; }

/* 资源列表页赞助横幅 */
.sponsor-banner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  background: linear-gradient(135deg,#fff7ed,#fff1f2); border: 1px solid #fed7aa; border-radius: 14px;
  padding: 14px 20px; margin-bottom: 20px; box-shadow: var(--shadow-sm); }
.sponsor-banner .sb-text { font-size: 14px; color: #7c2d12; line-height: 1.6; }
.sponsor-banner .sb-text b { color: #dc2626; }
.sponsor-banner .sb-btn { white-space: nowrap; background: linear-gradient(135deg,#f97316,#ef4444); border: none; box-shadow: 0 8px 20px rgba(239,68,68,.25); }

/* 开通赞助会员页 */
.vip-hero { display: grid; grid-template-columns: 1fr 300px; gap: 24px; align-items: stretch; }
.vip-hero-main h1 { font-size: 26px; margin: 0 0 10px; }
.vip-hero-main .price { color: #dc2626; }
.vip-hero-main .lead { font-size: 15px; color: var(--text-soft); margin: 0 0 18px; }
.vip-hero-main .lead b { color: #b91c1c; }
.vip-benefits { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.vip-benefits li { font-size: 14px; color: var(--text-soft); line-height: 1.5; }
.vip-pay-card { background: linear-gradient(135deg,#fff7ed,#fff1f2); border: 1px solid #fed7aa; border-radius: 16px; padding: 24px; text-align: center; box-shadow: var(--shadow-sm); align-self: start; }
.vip-pay-card .vp-price { font-size: 40px; font-weight: 800; color: #dc2626; }
.vip-pay-card .vp-price span { font-size: 14px; color: var(--text-mute); margin-left: 8px; font-weight: 500; }
.vip-pay-card .vp-label { font-size: 13px; color: var(--text-mute); margin-bottom: 16px; }
.vip-pay-card .vp-btn { width: 100%; justify-content: center; background: linear-gradient(135deg,#f97316,#ef4444); border: none; box-shadow: 0 8px 20px rgba(239,68,68,.25); }
.vip-pay-card .vp-ok { background: #f0fdf4; border: 1px solid #bbf7d0; color: #16a34a; border-radius: 12px; padding: 14px; font-weight: 700; font-size: 14px; }
.vip-pay-card .vp-ok small { font-weight: 500; color: var(--text-mute); }

/* 划线原价（营销话术：原价 ¥99 → 限时现价 ¥7.9） */
.was-price { color: #94a3b8; font-size: 13px; text-decoration: line-through; margin-right: 8px; font-weight: 500; }
.vip-hero-main .price-was { color: #94a3b8; font-size: 15px; text-decoration: line-through; margin-right: 8px; font-weight: 500; }
.vip-pay-card .vp-was { color: #94a3b8; font-size: 14px; text-decoration: line-through; margin-bottom: 2px; }
.sponsor-card .sp-was { display: inline-block; font-size: 14px; color: #94a3b8; text-decoration: line-through; margin-right: 6px; font-weight: 600; }
.sponsor-banner .sb-text .was-price { font-size: 14px; }
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 18px; background: #fff; border: 1px solid var(--border); border-radius: 14px; margin: 6px 0 16px; }
.qr-box img { width: 240px; height: 240px; object-fit: contain; border-radius: 8px; border: 1px solid #eee; }
.qr-box.qr-empty { color: #b45309; }
.qr-box .qr-ph { font-size: 56px; }
.qr-box code { background: #f1f5f9; padding: 2px 6px; border-radius: 5px; font-size: 12px; }
.pay-note { background: #fffbeb; border: 1px solid #fde68a; border-radius: 12px; padding: 16px 18px; }
.pay-note h4 { margin: 0 0 10px; font-size: 15px; color: #b45309; }
.pay-note p { font-size: 13.5px; color: #78350f; line-height: 1.7; margin: 0 0 8px; }
.pay-note p:last-child { margin-bottom: 0; }
.pay-note b { color: #92400e; }
.vip-checklist { margin: 0; padding-left: 20px; }
.vip-checklist li { font-size: 13.5px; color: var(--text-soft); line-height: 1.8; margin-bottom: 6px; }
.vip-checklist code { background: #f1f5f9; padding: 1px 5px; border-radius: 5px; font-size: 12px; }
@media (max-width: 860px) {
  .vip-hero { grid-template-columns: 1fr; }
  .vip-benefits { grid-template-columns: 1fr; }
}

.rel-list li { padding: 11px 0; border-bottom: 1px dashed var(--border); }
.rel-list li:last-child { border-bottom: none; }
.rel-list a { display: flex; gap: 10px; align-items: center; }
.rel-list .mini { width: 40px; height: 40px; border-radius: 9px; flex-shrink: 0; display: grid; place-items: center; color: #fff; font-size: 18px; }
.rel-list .t { font-size: 13.5px; line-height: 1.4; }
.rel-list .t:hover { color: var(--primary); }
.rel-list .m { font-size: 11.5px; color: var(--text-mute); }

/* 评论区 */
.comment { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px dashed var(--border); }
.comment:last-child { border-bottom: none; }
.comment .avatar { width: 42px; height: 42px; border-radius: 50%; flex-shrink: 0; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; display: grid; place-items: center; font-weight: 800; }
.comment .c-body .name { font-weight: 700; font-size: 14px; }
.comment .c-body .date { font-size: 12px; color: var(--text-mute); margin-left: 8px; }
.comment .c-body p { font-size: 13.5px; color: var(--text-soft); margin-top: 4px; }

/* ===================== 页脚 ===================== */
.site-footer { background: #0e1330; color: #aab2c8; margin-top: 40px; padding: 54px 0 26px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid .brand .name { color: #fff; font-size: 19px; }
.footer-grid .brand p { margin-top: 14px; font-size: 13.5px; line-height: 1.8; max-width: 320px; }
.footer-col h5 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-col a { display: block; font-size: 13.5px; padding: 6px 0; color: #aab2c8; transition: .15s; }
.footer-col a:hover { color: #fff; padding-left: 4px; }
.footer-bottom { margin-top: 38px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; font-size: 12.5px; flex-wrap: wrap; gap: 10px; }
.footer-bottom .socials { display: flex; gap: 10px; }
.footer-bottom .socials a { width: 34px; height: 34px; border-radius: 9px; background: rgba(255,255,255,.07); display: grid; place-items: center; transition: .2s; }
.footer-bottom .socials a:hover { background: var(--primary); color: #fff; }

/* ===================== 工具类 ===================== */
.mt-0 { margin-top: 0; }
.text-mute { color: var(--text-mute); }
.grad-text { background: linear-gradient(120deg, var(--primary), var(--accent)); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ===================== 关于我们 / 免责声明 ===================== */
.about-hero { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; padding: 70px 0 86px; }
.about-hero .badge { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.3); color: #fff; }
.about-hero h1 { font-size: 40px; line-height: 1.2; margin: 18px 0 14px; }
.about-hero p.lead { font-size: 17px; max-width: 720px; opacity: .95; }

.pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: -46px; position: relative; z-index: 2; }
.pillar { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 24px 20px; box-shadow: var(--shadow-md); transition: .2s; }
.pillar:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.pillar .ico { font-size: 30px; margin-bottom: 10px; }
.pillar h3 { font-size: 16px; margin-bottom: 6px; }
.pillar p { font-size: 13px; color: var(--text-mute); }

.clause { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.clause .item { background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--primary); border-radius: 12px; padding: 18px 20px; }
.clause .item h4 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.clause .item p { font-size: 13.5px; color: var(--text-soft); }

.disclaimer-card { background: #fffbeb; border: 1px solid #fde68a; border-radius: var(--radius); padding: 18px 20px; margin-bottom: 22px; }
.disclaimer-card h2 { font-size: 16px; color: #b45309; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.disclaimer-card p { font-size: 13px; color: #92400e; line-height: 1.75; }
.disclaimer-card b { color: #b45309; }

.warn-box { background: #fff7ed; border: 1px solid #fed7aa; border-radius: 14px; padding: 18px 22px; color: #9a3412; font-size: 14px; line-height: 1.85; }
.warn-box b { color: #c2410c; }

.guide-list { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 22px; }
.guide-list li { position: relative; padding-left: 26px; color: var(--text-soft); font-size: 14px; }
.guide-list li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 6px; background: #dcfce7; color: var(--success); font-size: 12px; font-weight: 800; display: grid; place-items: center; }

/* ===================== 响应式（优雅降级） ===================== */
@media (max-width: 1080px) {
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
  .detail-body { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .nav-search input { width: 160px; }
  .layout { grid-template-columns: 1fr; }
  .sidebar { position: static; }
  .hero h1 { font-size: 34px; }
  .post-list { grid-template-columns: 1fr; }
  .content-card ul.feat { grid-template-columns: 1fr; }
  .clause { grid-template-columns: 1fr; }
  .guide-list { grid-template-columns: 1fr; }
  .about-hero h1 { font-size: 30px; }
}
@media (max-width: 560px) {
  .cat-grid, .res-grid { grid-template-columns: 1fr; }
  .shots { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .pillars { grid-template-columns: 1fr; }
}

/* ===================== 闪信 / 提示 ===================== */
.flash { padding:12px 16px; border-radius:10px; margin-bottom:18px; font-size:14px; }
.flash.success { background:#dcfce7; color:#15803d; border:1px solid #bbf7d0; }
.flash.error   { background:#fee2e2; color:#b91c1c; border:1px solid #fecaca; }
.flash.info    { background:#dbeafe; color:#1d4ed8; border:1px solid #bfdbfe; }

/* ===================== 顶部导航：会员区 ===================== */
.nav-user { display:flex; align-items:center; gap:14px; margin-left:6px; }
.nav-link-user { font-size:14px; font-weight:600; color:var(--text-soft); white-space:nowrap; }
.nav-link-user:hover { color:var(--primary); }
.nav-user .nav-cta { margin-left:0; }
@media (max-width: 1100px){ .nav-user .nav-link-user:not(:first-child){ display:none; } }

/* ===================== 通用卡片 / 表单（前台用户页） ===================== */
.auth-wrap { min-height:calc(100vh - var(--nav-h)); display:grid; place-items:center; padding:48px 20px; background:linear-gradient(135deg,#eef2ff,#ecfeff); }
.auth-box { width:420px; max-width:100%; background:#fff; border-radius:18px; padding:34px 32px; box-shadow:var(--shadow-lg); }
.auth-box .brand { display:flex; align-items:center; gap:10px; font-weight:800; font-size:20px; margin-bottom:6px; }
.auth-box .brand .logo { width:38px;height:38px;border-radius:11px;background:linear-gradient(135deg,var(--primary),var(--accent));display:grid;place-items:center;color:#fff; }
.auth-box .brand b { color:var(--primary); }
.auth-box h2 { font-size:20px; margin:14px 0 22px; }
.auth-box label { display:block; font-size:13px; font-weight:700; margin:14px 0 6px; }
.auth-box input, .auth-box select, .auth-box textarea { width:100%; padding:11px 13px; border:1px solid var(--border-strong); border-radius:10px; font-size:14px; outline:none; font-family:inherit; background:#fff; color:var(--text); }
.auth-box input:focus, .auth-box select:focus, .auth-box textarea:focus { border-color:var(--primary); box-shadow:0 0 0 3px rgba(67,97,238,.12); }
.auth-box .btn { width:100%; justify-content:center; margin-top:22px; }
.auth-box .hint { font-size:12.5px; color:var(--text-mute); margin-top:14px; text-align:center; }
.auth-box .alt { font-size:13px; text-align:center; margin-top:16px; color:var(--text-soft); }
.auth-box .alt a { color:var(--primary); font-weight:700; }
.auth-box .back { display:block; text-align:center; margin-top:10px; font-size:13px; color:var(--primary); }

.uc-grid { display:grid; grid-template-columns:300px 1fr; gap:24px; align-items:start; }
.uc-card { background:#fff; border:1px solid var(--border); border-radius:var(--radius); padding:24px; box-shadow:var(--shadow-sm); }
.uc-avatar { width:72px;height:72px;border-radius:18px;background:linear-gradient(135deg,var(--primary),var(--accent));display:grid;place-items:center;color:#fff;font-size:34px;font-weight:800; margin-bottom:14px; }
.uc-name { font-size:20px; font-weight:800; }
.uc-role { font-size:12px; padding:3px 10px; border-radius:999px; background:var(--primary-light); color:var(--primary-dark); font-weight:700; }
.uc-meta { font-size:13px; color:var(--text-mute); margin-top:10px; line-height:2; }
.uc-actions { display:flex; gap:10px; margin-top:18px; flex-wrap:wrap; }
.uc-section h3 { font-size:17px; margin-bottom:14px; display:flex; align-items:center; gap:8px; }
.uc-post { display:flex; align-items:center; gap:14px; padding:14px; border:1px solid var(--border); border-radius:12px; margin-bottom:12px; }
.uc-post .cover { width:46px;height:46px;border-radius:10px;display:grid;place-items:center;color:#fff;font-size:22px; flex:0 0 auto; }
.uc-post .info { flex:1; min-width:0; }
.uc-post .info b { font-size:15px; }
.uc-post .info p { font-size:12.5px; color:var(--text-mute); margin:2px 0 0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.uc-empty { text-align:center; color:var(--text-mute); padding:40px 0; }
@media (max-width: 860px){ .uc-grid{ grid-template-columns:1fr; } }

.btn-row { display:flex; gap:10px; flex-wrap:wrap; }

/* ===================== 遮罩弹窗提示（自动关闭） ===================== */
.toast-mask {
  position: fixed; top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(15, 23, 42, .45);
  display: flex; align-items: center; justify-content: center;
  z-index: 9999; opacity: 0;
  transition: opacity .22s ease;
  -webkit-backdrop-filter: blur(1px); backdrop-filter: blur(1px);
}
.toast-mask.show { opacity: 1; }
.toast-box {
  background: #fff; border-radius: 16px;
  padding: 26px 36px; min-width: 248px; max-width: 80vw;
  text-align: center; box-shadow: 0 22px 60px rgba(15, 23, 42, .32);
  transform: translateY(12px) scale(.96);
  transition: transform .26s cubic-bezier(.2, .8, .3, 1);
}
.toast-mask.show .toast-box { transform: translateY(0) scale(1); }
.toast-icon { font-size: 42px; line-height: 1; margin-bottom: 12px; }
.toast-msg { font-size: 16px; font-weight: 700; color: var(--text); }
.toast-box.success .toast-msg { color: #15803d; }
.toast-box.error .toast-msg { color: #b91c1c; }
.toast-box.info .toast-msg { color: #1d4ed8; }
@media (max-width: 520px) { .toast-box { padding: 22px 24px; min-width: 200px; } }

/* ===================== 登录/注册 遮罩弹窗 ===================== */
.auth-modal { position: fixed; inset: 0; z-index: 1000; display: none; }
.auth-modal.open { display: block; }
.auth-mask { position: absolute; inset: 0; background: rgba(15, 23, 42, .55); backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px); }
.auth-dialog {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 420px; max-width: calc(100vw - 32px); max-height: calc(100vh - 40px); overflow: auto;
  background: #fff; border-radius: 18px; padding: 30px 32px; box-shadow: 0 24px 60px rgba(15, 23, 42, .35);
  animation: authPop .22s ease;
}
@keyframes authPop {
  from { opacity: 0; transform: translate(-50%, -46%) scale(.96); }
  to   { opacity: 1; transform: translate(-50%, -50%) scale(1); }
}
.auth-x { position: absolute; top: 12px; right: 16px; border: none; background: transparent; font-size: 26px; line-height: 1; color: var(--text-mute); cursor: pointer; transition: .15s; }
.auth-x:hover { color: var(--text); }
.auth-brand { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; margin-bottom: 4px; }
.auth-brand .logo { width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--primary), var(--accent)); display: grid; place-items: center; color: #fff; font-size: 18px; }
.auth-brand b { color: var(--primary); }
.auth-tabs { display: flex; gap: 8px; margin: 16px 0 18px; }
.auth-tab { flex: 1; padding: 10px; border: 1px solid var(--border-strong); background: #fff; border-radius: 10px; font-weight: 700; cursor: pointer; color: var(--text-soft); transition: .15s; font-size: 14px; }
.auth-tab:hover { border-color: var(--primary); }
.auth-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.auth-msg { margin-bottom: 14px; }
.auth-form label { display: block; font-size: 13px; font-weight: 700; margin: 12px 0 6px; }
.auth-form input { width: 100%; padding: 11px 13px; border: 1px solid var(--border-strong); border-radius: 10px; font-size: 14px; outline: none; font-family: inherit; background: #fff; color: var(--text); box-sizing: border-box; }
.auth-form input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(67, 97, 238, .12); }
.auth-form .btn { width: 100%; justify-content: center; margin-top: 18px; }
.auth-form .alt { font-size: 13px; text-align: center; margin-top: 14px; color: var(--text-soft); }
.auth-form .alt a { color: var(--primary); font-weight: 700; }
@media (max-width: 480px) { .auth-dialog { padding: 24px 20px; } }

/* ===== 网页效果预览（iframe 手机框 + 页面切换） ===== */
.demo-toolbar { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; margin: 10px 0 22px; }
.demo-toolbar h1 { font-size: 20px; margin: 0; flex: 1 1 auto; }
.demo-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.demo-tab { border: 1px solid var(--border-strong); background: var(--surface); color: var(--text-soft); padding: 8px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; transition: all .15s ease; font-family: inherit; }
.demo-tab:hover { border-color: var(--primary); color: var(--primary); }
.demo-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 12px rgba(67,97,238,.25); }
.demo-stage { display: flex; flex-direction: column; align-items: center; gap: 14px; padding: 10px 0 40px; }
.phone-frame { width: 390px; max-width: 100%; height: 760px; max-height: 78vh; background: #0f172a; border-radius: 34px; padding: 12px; box-shadow: 0 24px 60px rgba(15,23,42,.28), inset 0 0 0 2px rgba(255,255,255,.08); position: relative; }
.phone-frame::before { content: ""; position: absolute; top: 16px; left: 50%; transform: translateX(-50%); width: 120px; height: 22px; background: #0f172a; border-radius: 0 0 16px 16px; z-index: 3; }
.phone-frame iframe { width: 100%; height: 100%; border: 0; border-radius: 24px; background: #fff; display: block; }

/* PC 端页面：浏览器窗口样式（全宽，不约束为移动端） */
.pc-frame { width: 100%; max-width: 1180px; height: 80vh; min-height: 520px; background: #1e293b; border-radius: 12px; box-shadow: 0 24px 60px rgba(15,23,42,.28); overflow: hidden; display: flex; flex-direction: column; }
.pc-frame .pc-bar { flex: 0 0 40px; height: 40px; display: flex; align-items: center; gap: 8px; padding: 0 14px; background: #334155; }
.pc-frame .pc-bar .dot { width: 12px; height: 12px; border-radius: 50%; display: inline-block; }
.pc-frame .pc-bar .dot.r { background: #ff5f57; }
.pc-frame .pc-bar .dot.y { background: #febc2e; }
.pc-frame .pc-bar .dot.g { background: #28c840; }
.pc-frame .pc-bar .pc-url { margin-left: 14px; flex: 1; height: 24px; line-height: 24px; background: #1e293b; border-radius: 6px; color: #94a3b8; font-size: 12px; padding: 0 12px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.pc-frame iframe { flex: 1 1 auto; width: 100%; border: 0; background: #fff; display: block; }

.demo-hint { font-size: 13px; color: var(--text-mute); text-align: center; max-width: 640px; margin: 0; }
.demo-missing { background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; padding: 18px 20px; border-radius: 12px; font-size: 14px; }
@media (max-width: 480px) { .phone-frame { height: 70vh; } .pc-frame { height: 72vh; } .demo-toolbar h1 { font-size: 17px; } }
