/* ===== 基础 ===== */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--c-ink);
  background: var(--c-bg);
  line-height: 1.7;
  font-size: 16px;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; }
a:hover { color: var(--c-blue-700); text-decoration: underline; }
h1, h2, h3, h4 { line-height: 1.25; margin: 0 0 var(--space-3); color: var(--c-ink); }
h1 { font-size: clamp(2rem, 4.2vw, 3.25rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.5rem, 2.6vw, 2.15rem); letter-spacing: -.01em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 var(--space-4); }
ul, ol { padding-left: 1.25rem; }
code, pre { font-family: var(--font-mono); }
.container { width: min(var(--w-container), 92vw); margin: 0 auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip-link {
  position: absolute; left: -999px; top: 0; z-index: 200;
  background: var(--c-blue); color: #fff; padding: 10px 16px; border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }
.muted { color: var(--c-muted); }
.small { font-size: .9rem; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }

/* ===== 按钮 ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 22px; border-radius: 999px; border: 1px solid transparent;
  font-weight: 600; font-size: 1rem; line-height: 1.2; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
  text-decoration: none;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: linear-gradient(135deg, var(--c-blue), var(--c-blue-600)); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { color: #fff; box-shadow: var(--shadow-lg); }
.btn-ghost { background: #fff; color: var(--c-ink-2); border-color: var(--c-line); }
.btn-ghost:hover { color: var(--c-blue); border-color: var(--c-blue); }
.btn-light { background: #fff; color: var(--c-blue); }
.btn-sm { padding: 8px 16px; font-size: .9rem; }
.header-actions .btn-sm { padding: 7px 12px; font-size: .85rem; }
.btn-block { width: 100%; }

/* ===== 头部 ===== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; gap: 14px; min-height: 72px; flex-wrap: nowrap; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--c-ink); text-decoration: none; flex: none; }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, var(--c-blue), var(--c-cyan));
  color: #fff; font-weight: 800; letter-spacing: .5px; font-size: .95rem;
}
img.brand-mark {
  display: block; object-fit: cover; background: none; border-radius: 12px;
}
.brand-text strong { display: block; font-size: 1.05rem; letter-spacing: .02em; }
.brand-text small { display: block; color: var(--c-muted); font-size: .68rem; letter-spacing: .02em; white-space: nowrap; }
.site-nav { display: flex; align-items: center; gap: 0; margin-left: auto; }
.nav-link { padding: 7px 9px; border-radius: 8px; color: var(--c-ink-2); font-size: .88rem; white-space: nowrap; }
.nav-link:hover { background: var(--c-bg-mist); color: var(--c-blue); text-decoration: none; }
.nav-link.is-active { color: var(--c-blue); background: var(--c-bg-mist); font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 6px; flex: none; }
.nav-mobile-auth { display: none; }
.nav-toggle { display: none; background: #fff; border: 1px solid var(--c-line); border-radius: 8px; padding: 8px 10px; }
.nav-toggle span:not(.sr-only) { display: block; width: 20px; height: 2px; background: var(--c-ink); margin: 4px 0; }

/* ===== Hero ===== */
.hero {
  position: relative; overflow: hidden;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(37, 99, 235, .12), transparent 60%),
    radial-gradient(700px 360px at 5% 10%, rgba(8, 145, 178, .10), transparent 60%),
    linear-gradient(180deg, #f7faff 0%, #ffffff 100%);
  padding: var(--space-9) 0 var(--space-8);
}
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: var(--space-8); align-items: center; }
.hero h1 { margin-bottom: var(--space-4); }
.hero .lead { font-size: 1.15rem; color: var(--c-muted); max-width: 40em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: var(--space-6); }
.hero-note { margin-top: var(--space-4); color: var(--c-muted); font-size: .9rem; }
.hero-panel {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); padding: var(--space-5);
}
.hero-panel h2 { font-size: 1.05rem; margin-bottom: var(--space-3); }
.hero-panel ul { list-style: none; padding: 0; margin: 0; }
.hero-panel li { display: flex; gap: 10px; padding: 10px 0; border-bottom: 1px dashed var(--c-line); font-size: .95rem; }
.hero-panel li:last-child { border-bottom: 0; }
.hero-panel .dot { width: 8px; height: 8px; margin-top: 8px; border-radius: 50%; background: var(--c-blue); flex: none; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: var(--c-bg-mist); color: var(--c-blue); font-size: .82rem; font-weight: 600; letter-spacing: .03em;
  margin-bottom: var(--space-4);
}

/* ===== 通用区块 ===== */
.section { padding: var(--space-8) 0; }
.section-soft { background: var(--c-bg-soft); }
.section-head { max-width: 760px; margin-bottom: var(--space-6); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head p { color: var(--c-muted); margin-bottom: 0; }
.section-head .eyebrow { margin-bottom: var(--space-3); }
.grid { display: grid; gap: var(--space-4); }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-auto { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* ===== 数字 ===== */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4); }
.stat { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: var(--space-5); }
.stat strong { display: block; font-size: clamp(1.6rem, 2.4vw, 2.2rem); color: var(--c-blue); line-height: 1.1; }
.stat span { color: var(--c-muted); font-size: .9rem; }

/* ===== 卡片 ===== */
.card {
  background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md);
  padding: var(--space-5); box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.card:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: #c9daf8; }
.card h3 { margin-bottom: var(--space-2); }
.card p { color: var(--c-muted); margin-bottom: 0; }
.card-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: var(--space-3); }
.badge {
  display: inline-flex; align-items: center; padding: 4px 10px; border-radius: 999px;
  font-size: .78rem; font-weight: 600; background: var(--c-bg-mist); color: var(--c-blue);
}
.badge-green { background: #e7f7f1; color: var(--c-green); }
.badge-amber { background: #fff4e5; color: var(--c-amber); }
.badge-gray { background: #f1f5f9; color: var(--c-muted); }
.tag-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--space-3); }
.tag { font-size: .78rem; padding: 3px 8px; border-radius: 6px; background: var(--c-bg-soft); color: var(--c-muted); }
.card .btn { margin-top: var(--space-4); }

/* ===== 课程卡 ===== */
.course-card .tier {
  font-family: var(--font-mono); font-size: .78rem; font-weight: 700; color: var(--c-blue);
  background: var(--c-bg-mist); border-radius: 6px; padding: 3px 8px;
}
.course-card .meta { display: flex; flex-wrap: wrap; gap: 10px; color: var(--c-muted); font-size: .85rem; margin: var(--space-3) 0; }
.course-card > .card { display: flex; flex-direction: column; height: 100%; }
.course-card > .card .btn { margin-top: auto; align-self: flex-start; }

/* ===== 方向 ===== */
.direction-card { position: relative; overflow: hidden; }
.direction-card .type { position: absolute; top: 16px; right: 16px; }
.direction-card h3 { padding-right: 88px; }
.direction-card.is-upcoming { background: linear-gradient(180deg, #fbfdff, #f4f8ff); }

/* ===== 项目 / 标准 ===== */
.project-box {
  background: #0b1b3a; color: #e8f0ff; border-radius: var(--radius-lg); padding: var(--space-6);
}
.project-box h2, .project-box h3 { color: #fff; }
.project-box p, .project-box li { color: #c3d4f5; }
.project-box code { color: #9fd7ff; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 30px; margin-bottom: 10px; }
.check-list li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 20px; height: 20px;
  border-radius: 50%; background: rgba(37, 99, 235, .15); color: var(--c-blue);
  display: grid; place-items: center; font-size: .8rem; font-weight: 700;
}
.project-box .check-list li::before { background: rgba(159, 215, 255, .18); color: #9fd7ff; }

/* ===== 师资 / 案例 ===== */
.teacher-card { display: flex; gap: var(--space-4); align-items: flex-start; }
.avatar {
  width: 56px; height: 56px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, #dbeafe, #bfdbfe); color: var(--c-blue);
  display: grid; place-items: center; font-weight: 700;
}
.quote { border-left: 4px solid var(--c-blue); padding-left: var(--space-4); color: var(--c-ink-2); }
.quote footer { color: var(--c-muted); font-size: .88rem; margin-top: var(--space-2); }

/* ===== FAQ ===== */
.faq-list { display: grid; gap: 10px; }
.faq-item { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-sm); padding: 0; }
.faq-item summary { cursor: pointer; padding: 16px 20px; font-weight: 600; list-style: none; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; float: right; color: var(--c-blue); font-weight: 700; }
.faq-item[open] summary::after { content: "−"; }
.faq-item .faq-body { padding: 0 20px 18px; color: var(--c-muted); }

/* ===== 表单 ===== */
.form-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.form-field { display: flex; flex-direction: column; gap: 6px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: .9rem; font-weight: 600; color: var(--c-ink-2); }
.form-field input, .form-field select, .form-field textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 10px;
  font-family: inherit; font-size: 1rem; color: var(--c-ink); background: #fff;
  transition: border-color .15s ease, box-shadow .15s ease;
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.form-field textarea { min-height: 110px; resize: vertical; }
.form-hint { color: var(--c-muted); font-size: .82rem; }
.form-consent { display: flex; gap: 10px; align-items: flex-start; font-size: .88rem; color: var(--c-muted); }
.form-consent input { margin-top: 4px; }
.form-message { margin-top: var(--space-4); padding: 12px 16px; border-radius: 10px; font-size: .92rem; display: none; }
.form-message.is-success { display: block; background: #e7f7f1; color: #065f46; }
.form-message.is-error { display: block; background: #fef2f2; color: #991b1b; }
.honeypot { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ===== 博客 ===== */
.post-list { display: grid; gap: var(--space-4); }
.post-card { display: grid; grid-template-columns: 1fr; gap: 10px; background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: var(--space-5); }
.post-card:hover { border-color: #c9daf8; box-shadow: var(--shadow-md); }
.post-card h3 { margin: 0; font-size: 1.15rem; }
.post-meta { display: flex; flex-wrap: wrap; gap: 12px; color: var(--c-muted); font-size: .85rem; }
.post-card p { color: var(--c-muted); margin: 0; }
.sidebar { display: grid; gap: var(--space-4); align-content: start; }
.sidebar-card { background: var(--c-bg-soft); border-radius: var(--radius-md); padding: var(--space-5); }
.sidebar-card h3 { font-size: 1rem; }
.sidebar-card ul { list-style: none; padding: 0; margin: 0; }
.sidebar-card li { padding: 8px 0; border-bottom: 1px dashed var(--c-line); }
.sidebar-card li:last-child { border-bottom: 0; }
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-6); }
.pagination { display: flex; gap: 8px; align-items: center; margin-top: var(--space-6); }
.pagination a, .pagination span { padding: 8px 12px; border: 1px solid var(--c-line); border-radius: 8px; }
.pagination .is-current { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }

/* ===== 文章 ===== */
.article-shell { display: grid; grid-template-columns: minmax(0, 1fr) 280px; gap: var(--space-7); align-items: start; }
.article-head { margin-bottom: var(--space-6); padding-bottom: var(--space-5); border-bottom: 1px solid var(--c-line); }
.article-head h1 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.article-body { font-size: 1.02rem; max-width: 780px; }
.article-body h1, .article-body h2, .article-body h3 { margin-top: 1.6em; scroll-margin-top: 90px; }
.article-body img { border-radius: 10px; margin: var(--space-4) 0; }
.article-body pre { background: #0f172a; color: #e2e8f0; padding: 16px; border-radius: 10px; overflow-x: auto; font-size: .88rem; }
.article-body code { background: #f1f5f9; padding: 2px 5px; border-radius: 4px; font-size: .9em; }
.article-body pre code { background: transparent; padding: 0; }
.article-body table { width: 100%; border-collapse: collapse; margin: var(--space-4) 0; font-size: .92rem; }
.article-body th, .article-body td { border: 1px solid var(--c-line); padding: 8px 10px; text-align: left; vertical-align: top; }
.article-body th { background: var(--c-bg-soft); }
.article-body blockquote { margin: var(--space-4) 0; padding: 12px 18px; border-left: 4px solid var(--c-blue); background: var(--c-bg-soft); color: var(--c-ink-2); }
.article-locked { background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--radius-md); padding: var(--space-6); text-align: center; }

/* ===== 课程详情 ===== */
.course-hero { background: linear-gradient(180deg, #f7faff, #fff); padding: var(--space-8) 0; border-bottom: 1px solid var(--c-line); }
.course-hero .meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin: var(--space-4) 0; }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: var(--space-6); align-items: start; }
.sticky-card { position: sticky; top: 92px; }
.module-table { width: 100%; border-collapse: collapse; }
.module-table th, .module-table td { border-bottom: 1px solid var(--c-line); padding: 10px 8px; text-align: left; }
.module-table th { color: var(--c-muted); font-weight: 600; font-size: .85rem; }

/* ===== 资源 / 工具 ===== */
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.tool-card { display: flex; flex-direction: column; gap: 8px; }
.tool-card .btn { margin-top: auto; }
.notice { background: #fff8e6; border: 1px solid #f5e0a3; color: #7a5200; border-radius: 10px; padding: 12px 16px; font-size: .92rem; }

/* ===== 面包屑 ===== */
.breadcrumbs { padding: var(--space-4) 0 0; color: var(--c-muted); font-size: .88rem; }
.breadcrumbs a { color: var(--c-muted); }
.breadcrumbs span { margin: 0 6px; }

/* ===== CTA ===== */
.cta-band {
  background: linear-gradient(120deg, #0b2a6b, #1d4ed8 60%, #0891b2);
  color: #fff; border-radius: var(--radius-lg); padding: var(--space-7);
  display: grid; grid-template-columns: 1.3fr .7fr; gap: var(--space-6); align-items: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: #d6e4ff; margin-bottom: 0; }
.cta-band .btn-light { justify-self: start; }

/* ===== 页脚 ===== */
.site-footer { background: #0b1324; color: #c7d2e5; margin-top: var(--space-9); padding: var(--space-7) 0 var(--space-5); }
.footer-grid { display: grid; grid-template-columns: 1.4fr .8fr .8fr 1fr; gap: var(--space-6); }
.site-footer h3 { color: #fff; font-size: .98rem; margin-bottom: var(--space-3); }
.footer-brand { display: flex; gap: 12px; align-items: center; margin-bottom: var(--space-3); }
.footer-brand strong { color: #fff; }
.footer-desc { color: #93a4c3; font-size: .9rem; }
.footer-links { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.footer-links li { padding: 4px 0; }
.footer-links a { color: #c7d2e5; }
.footer-links a:hover { color: #fff; }
.wechat-slot { margin-top: var(--space-3); }
.wechat-qr { width: 96px; height: 96px; border: 1px dashed #3b4a68; border-radius: 10px; display: grid; place-items: center; text-align: center; font-size: .72rem; color: #93a4c3; line-height: 1.4; }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; border-top: 1px solid #1e2a44; margin-top: var(--space-6); padding-top: var(--space-4); font-size: .85rem; color: #93a4c3; }
.footer-bottom a { color: #93a4c3; }

/* ===== 通用页面元素 ===== */
.page-head { padding: var(--space-7) 0 var(--space-5); background: linear-gradient(180deg, #f7faff, #fff); border-bottom: 1px solid var(--c-line); }
.page-head p { color: var(--c-muted); max-width: 48em; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-6); align-items: center; }
.list-clean { list-style: none; padding: 0; margin: 0; }
.list-clean li { padding: 8px 0; border-bottom: 1px dashed var(--c-line); }

/* ===== 登录/注册 ===== */
.auth-wrap { max-width: 460px; margin: var(--space-8) auto; }
.auth-card { background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-md); }
.auth-card h1 { font-size: 1.6rem; }
.auth-alt { text-align: center; margin-top: var(--space-4); color: var(--c-muted); font-size: .92rem; }
/* 找回密码页的「联系管理员」提示：要显眼，别让人以为点按钮就能收到链接 */
.auth-note {
  margin-top: var(--space-5);
  padding: 14px 16px;
  border-radius: var(--radius-md, 10px);
  border: 1px solid rgba(193, 122, 21, .25);
  border-left: 4px solid #d68910;
  background: #fffaf0;
  font-size: .9rem;
  line-height: 1.6;
  color: #6b4a12;
}
.auth-note strong { display: block; margin-bottom: 4px; font-size: .95rem; color: #8a5b00; }
.auth-note p { margin: 0; }
.auth-note code {
  padding: 1px 6px;
  border-radius: 5px;
  background: #f6e6c7;
  color: #7a4d00;
  font-weight: 700;
  font-size: .92em;
}
/* 通道不可用时的主角提示：整块更强调 */
.auth-note.is-strong {
  margin-top: var(--space-5);
  padding: 18px 18px;
  border-color: rgba(47, 111, 143, .28);
  border-left-color: #2f6f8f;
  background: #f4f9fc;
  color: #29485b;
  font-size: .95rem;
}
.auth-note.is-strong strong { color: #1d5372; font-size: 1rem; }
.auth-note.is-strong p + p { margin-top: 8px; }
.auth-note.is-strong code { background: #dcecf5; color: #1d5372; }
.auth-note.is-strong a { color: #1d5372; font-weight: 600; }
.wechat-login { display: none; margin-top: var(--space-4); }
.wechat-login.is-enabled { display: block; }
.divider { display: flex; align-items: center; gap: 12px; color: var(--c-muted); font-size: .85rem; margin: var(--space-4) 0; }
.divider::before, .divider::after { content: ""; height: 1px; background: var(--c-line); flex: 1; }

/* ===== 管理后台（后续） ===== */
.admin-body { background: #f4f7fc; }

/* ===== 面包屑/返回 ===== */
.back-link { display: inline-flex; gap: 6px; align-items: center; color: var(--c-muted); font-size: .9rem; margin-bottom: var(--space-4); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: var(--space-6); }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .blog-layout, .article-shell { grid-template-columns: 1fr; }
  .detail-grid { grid-template-columns: 1fr; }
  .sticky-card { position: static; }
  .cta-band { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1279px) {
  .nav-toggle { display: block; margin-left: auto; }
  .site-nav {
    display: none; position: absolute; top: 72px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--c-line);
    box-shadow: var(--shadow-md);
    flex-direction: column; align-items: stretch; padding: 12px 4vw 18px; gap: 2px;
  }
  .site-nav.is-open { display: flex; }
  .header-actions { margin-left: 0; }
  .header-inner { gap: 10px; }
  .header-actions .btn-ghost { display: none; }
  .nav-mobile-auth {
    display: flex; flex-direction: column; gap: 2px;
    margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--c-line);
  }
  .nav-mobile-auth a {
    padding: 9px 12px; border-radius: 8px; color: var(--c-blue);
    font-size: .92rem; font-weight: 600;
  }
  .nav-mobile-auth a:hover { background: var(--c-bg-mist); text-decoration: none; }
}
@media (max-width: 640px) {
  body { font-size: 15px; }
  .section { padding: var(--space-7) 0; }
  .hero { padding: var(--space-7) 0; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .tool-grid { grid-template-columns: 1fr; }
  .header-actions .btn-primary { padding: 7px 12px; }
  .brand-text small { display: none; }
  .cta-band { padding: var(--space-5); }
}

/* ==== 图片位与占位图 ==== */
.card-media { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card-media .media-cover { border-radius: var(--radius-md) var(--radius-md) 0 0; }
.card-media .card-body { padding: var(--space-5); display: flex; flex-direction: column; flex: 1; }
.card-media .card-body .btn { margin-top: auto; align-self: flex-start; }

.media-cover { width: 100%; aspect-ratio: 4 / 3; overflow: hidden; background: var(--c-bg-mist); }
.media-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.media-cover.is-wide { aspect-ratio: 16 / 9; }

.media-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-4); }
.media-grid .media-cover { border-radius: var(--radius-md); border: 1px solid var(--c-line); }

.case-hero-media { margin-top: var(--space-5); border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--c-line); }
.case-hero-media img { width: 100%; display: block; aspect-ratio: 21 / 9; object-fit: cover; }

.media-slot-title { font-size: .85rem; color: var(--c-muted); margin-top: var(--space-2); text-align: center; }

@media (max-width: 640px) {
  .media-grid { grid-template-columns: 1fr; }
}

/* ==== 微信分享预览 ==== */
.wx-preview-wrap { display: grid; grid-template-columns: 380px 1fr; gap: var(--space-7); align-items: start; }
.wx-phone {
  width: 380px; background: #ededed; border: 9px solid #111; border-radius: 40px;
  padding: 12px 14px 26px; box-shadow: var(--shadow-lg); margin: 0 auto;
}
.wx-phone-top { text-align: center; font-weight: 600; padding: 6px 0 14px; color: #111; }
.wx-chat { background: #f7f7f7; border-radius: 14px; padding: 14px; }
.wx-msg-name { font-size: 12px; color: #888; margin-bottom: 6px; }
.wx-bubble { width: 240px; background: #fff; border-radius: 10px; overflow: hidden; box-shadow: 0 1px 4px rgba(0,0,0,.08); }
.wx-bubble-title { padding: 12px 12px 4px; font-size: 14px; line-height: 1.45; color: #111; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wx-bubble-desc { padding: 0 12px 10px; font-size: 12px; color: #999; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.wx-bubble-bottom { display: flex; align-items: center; gap: 6px; padding: 8px 12px; border-top: 1px solid #eee; }
.wx-bubble-icon { width: 16px; height: 16px; border-radius: 3px; background: var(--c-blue); color: #fff; font-size: 10px; display: flex; align-items: center; justify-content: center; }
.wx-bubble-brand { font-size: 11px; color: #888; }
.wx-caption { font-size: 12px; color: #999; margin: 10px 0 0; text-align: center; }
.wx-moments { margin-top: 22px; background: #fff; border-radius: 14px; padding: 14px; }
.wx-moment { display: flex; gap: 10px; }
.wx-moment-avatar { width: 38px; height: 38px; border-radius: 6px; background: var(--c-blue); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 15px; flex: none; }
.wx-moment-body { flex: 1; min-width: 0; }
.wx-moment-name { color: #576b95; font-size: 13px; font-weight: 600; }
.wx-moment-text { font-size: 13px; color: #222; margin: 4px 0 8px; }
.wx-moment-card { width: 150px; background: #fff; border: 1px solid #eee; }
.wx-moment-card img { width: 150px; height: 150px; object-fit: cover; display: block; }
.wx-moment-card-title { font-size: 12px; padding: 6px 8px; color: #333; }
.wx-moment-meta { font-size: 11px; color: #aaa; margin-top: 8px; }
.wx-info h2 { font-size: 1.15rem; margin-bottom: 10px; }
.wx-info ol { padding-left: 1.2em; color: var(--c-muted); }
.wx-info li { margin-bottom: 8px; }
.wx-info code { background: #f1f5f9; padding: 1px 5px; border-radius: 4px; font-size: .9em; }
@media (max-width: 900px) { .wx-preview-wrap { grid-template-columns: 1fr; } }
