/* =============================================================
 * pages.css — 页面专属布局 + 响应式适配
 * 移动端优先；断点 <768(移动) / 768-1024(平板) / >1024(桌面)
 * ============================================================= */

/* ===================== 首页 Hero ===================== */
.hero {
  position: relative;
  padding-top: calc(var(--nav-h) + var(--space-8));
  padding-bottom: var(--space-9);
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(34,211,238,.14), transparent 60%),
    radial-gradient(50% 50% at 5% 90%, rgba(15,82,186,.12), transparent 60%),
    linear-gradient(180deg, #F4F8FE 0%, var(--c-bg) 100%);
}
[data-theme="dark"] .hero-bg {
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(34,211,238,.10), transparent 60%),
    radial-gradient(50% 50% at 5% 90%, rgba(15,82,186,.22), transparent 60%),
    linear-gradient(180deg, #0A1426 0%, var(--c-bg) 100%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.05fr .95fr; gap: var(--space-8); align-items: center;
}
.hero-title { font-size: var(--fs-hero); line-height: 1.12; letter-spacing: -.01em; margin-bottom: var(--space-5); }
.grad-text { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: var(--fs-xl); color: var(--c-ink-2); margin-bottom: var(--space-6); }
.hero-cta { display: flex; flex-wrap: wrap; gap: var(--space-4); margin-bottom: var(--space-6); }
.hero-note { color: var(--c-ink-3); font-size: var(--fs-sm); font-weight: var(--fw-medium); }
.hero-art-wrap { display: flex; justify-content: center; }
.hero-art { width: 100%; max-width: 520px; height: auto; }

/* ===================== 公司优势 ===================== */
.advantage { text-align: center; padding: var(--space-5); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); transition: transform var(--dur), box-shadow var(--dur); }
.advantage:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.advantage .icon-box { margin-inline: auto; }
.advantage h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.advantage p { color: var(--c-ink-2); font-size: var(--fs-sm); }

/* ===================== 通用页面头 (子页) ===================== */
.page-hero {
  position: relative; padding-top: calc(var(--nav-h) + var(--space-8)); padding-bottom: var(--space-8);
  overflow: hidden;
}
.page-hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background:
    radial-gradient(50% 60% at 90% 0%, rgba(34,211,238,.16), transparent 60%),
    linear-gradient(160deg, #0B1F3A 0%, #0F2E5C 60%, #123B73 100%);
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-title { color: #fff; font-size: var(--fs-4xl); margin-bottom: var(--space-3); }
.page-hero-lead { color: rgba(255,255,255,.85); font-size: var(--fs-lg); max-width: 640px; }
.page-hero .breadcrumb { color: rgba(255,255,255,.7); margin-bottom: var(--space-4); }
.page-hero .breadcrumb a { color: rgba(255,255,255,.8); }
.page-hero .breadcrumb .current { color: #fff; }

/* ===================== 正文排版 ===================== */
.prose p { margin-bottom: var(--space-4); color: var(--c-ink-2); font-size: var(--fs-lg); }
.prose p:last-child { margin-bottom: 0; }

/* ===================== 发展历程 时间轴 ===================== */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: var(--space-6); }
.timeline::before { content: ""; position: absolute; left: 10px; top: 6px; bottom: 6px; width: 2px; background: linear-gradient(var(--c-primary), var(--c-accent)); }
.timeline-item { position: relative; padding-bottom: var(--space-7); }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-dot { position: absolute; left: -29px; top: 4px; width: 18px; height: 18px; border-radius: 50%; background: #fff; border: 4px solid var(--c-primary); box-shadow: 0 0 0 4px rgba(15,82,186,.12); }
.timeline-year { font-size: var(--fs-2xl); font-weight: var(--fw-black); color: var(--c-primary); line-height: 1; }
.timeline-item h3 { font-size: var(--fs-xl); margin: var(--space-2) 0; }
.timeline-item p { color: var(--c-ink-2); }

/* ===================== 价值观 ===================== */
.value-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--space-6); transition: transform var(--dur), box-shadow var(--dur), border-color var(--dur); }
.value-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.value-key { display: inline-block; font-size: var(--fs-2xl); font-weight: var(--fw-black); margin-bottom: var(--space-3); background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.value-card p { color: var(--c-ink-2); }

/* ===================== 业务详情页 ===================== */
.biz-block { border-bottom: 1px solid var(--c-line); }
.biz-inner { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-8); align-items: center; }
.biz-inner.reverse .biz-text { order: 2; }
.biz-inner.reverse .biz-visual { order: 1; }
.biz-title { font-size: var(--fs-3xl); margin-bottom: var(--space-4); }
.biz-sub { margin-top: var(--space-5); }
.biz-sub h4 { font-size: var(--fs-base); color: var(--c-ink); margin-bottom: var(--space-3); letter-spacing: .02em; }
.biz-visual { background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: var(--space-5); }
.biz-visual img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-sm); }

/* 业务一：微信小程序 —— 真实截图双机位 */
.biz-visual-app { padding: var(--space-6) var(--space-5) var(--space-5); background: linear-gradient(170deg, var(--c-bg-tint), var(--c-bg-soft) 70%); overflow: hidden; }
.app-phones { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-4); align-items: start; max-width: 440px; margin-inline: auto; }
.app-phone { min-width: 0; }
.app-phone.is-offset { margin-top: clamp(18px, 4vw, 36px); }
.app-phone .phone-frame { border-width: 5px; border-radius: 22px; }
.biz-visual .app-phone .phone-frame img { border-radius: 0; box-shadow: none; }
.app-phone-cap { display: block; margin-top: 12px; text-align: center; font-size: var(--fs-xs); color: var(--c-ink-3); letter-spacing: .01em; }
.app-visual-note { margin-top: var(--space-5); text-align: center; font-size: var(--fs-sm); color: var(--c-ink-3); }
.app-visual-note .dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,.16); margin-right: 6px; vertical-align: 1px; }

/* 业务二：Web 应用 —— 宽屏业务系统截图叠放 */
.biz-visual-web { padding: var(--space-5); background: linear-gradient(170deg, var(--c-bg-tint), var(--c-bg-soft) 70%); }
.web-shots { display: grid; gap: var(--space-4); }
.web-shot { min-width: 0; }
.web-shot:nth-child(2) { width: 90%; margin-inline-start: auto; }
.biz-visual .web-shot .wide-shot-frame { border-radius: 12px; }
.biz-visual .web-shot .wide-shot-frame img { border-radius: 0; box-shadow: none; }

/* 业务三：企业官网 —— 电脑端 + 手机端响应式对照 */
.biz-visual-site { padding: var(--space-5); background: linear-gradient(170deg, var(--c-bg-tint), var(--c-bg-soft) 70%); }
.site-shots { position: relative; padding: 0 0 46px 26px; }
.site-shot-desktop { display: block; border: 1px solid var(--c-border); border-radius: 12px; overflow: hidden; background: #fff; box-shadow: var(--shadow-md); }
.biz-visual .site-shot-desktop img { width: 100%; height: auto; aspect-ratio: 1600 / 807; border-radius: 0; box-shadow: none; }
.site-shot-mobile { position: absolute; left: 0; bottom: 0; width: 25%; }
.site-shot-mobile .phone-frame { border-width: 4px; border-radius: 18px; }
.biz-visual .site-shot-mobile .phone-frame img { width: 100%; height: auto; border-radius: 0; box-shadow: none; }
.check-list { display: grid; gap: var(--space-3); }
.check-list li { position: relative; padding-left: 30px; color: var(--c-ink-2); }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 4px; width: 20px; height: 20px; border-radius: 50%;
  background: var(--grad-brand);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='white' d='M20 6L9 17l-5-5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M20 6L9 17l-5-5' stroke='black' stroke-width='3' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/14px no-repeat;
}
.tag-row { display: flex; flex-wrap: wrap; gap: var(--space-2); }

/* 流程（5步） */
.steps-5 { grid-template-columns: repeat(5, 1fr); margin-top: var(--space-6); }
.biz-flow-title { font-size: var(--fs-lg); color: var(--c-ink); margin-top: var(--space-7); margin-bottom: var(--space-2); }

/* ===================== 案例页 ===================== */
.filter-bar { display: flex; flex-wrap: wrap; gap: var(--space-3); justify-content: center; margin-bottom: var(--space-7); }
.filter-btn {
  padding: 9px 22px; border-radius: var(--radius-full); font-weight: var(--fw-semibold); font-size: var(--fs-sm);
  background: var(--c-bg-soft); color: var(--c-ink-2); border: 1px solid var(--c-line);
  transition: all var(--dur) var(--ease);
}
.filter-btn:hover { color: var(--c-primary); border-color: var(--c-primary); }
.filter-btn.active { background: var(--grad-brand); color: #fff; border-color: transparent; box-shadow: var(--shadow-sm); }
.cases-grid { align-items: start; }

/* ===================== 案例详情页（共用模板） ===================== */
.case-hero-tags { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.case-hero-tag { padding: 5px 14px; border-radius: var(--radius-full); background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: #fff; font-size: var(--fs-sm); }
.case-detail-cover { border: 1px solid var(--c-border); border-radius: var(--radius-xl); overflow: hidden; box-shadow: var(--shadow-md); background: var(--c-bg-soft); }
.case-detail-cover img { width: 100%; height: auto; }
.case-detail-grid { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--space-8); align-items: start; }
.case-detail-main { min-width: 0; }
.prose-lead { font-size: var(--fs-xl); color: var(--c-ink); margin-bottom: var(--space-7); padding-left: var(--space-4); border-left: 4px solid var(--c-primary); }
.case-detail-section { margin-bottom: var(--space-7); }
.case-detail-section h2 { position: relative; font-size: var(--fs-2xl); margin-bottom: var(--space-4); padding-left: 16px; }
.case-detail-section h2::before { content: ""; position: absolute; left: 0; top: .35em; width: 5px; height: 1em; border-radius: 3px; background: var(--grad-brand); }
.case-detail-section p { color: var(--c-ink-2); font-size: var(--fs-lg); }
.todo-mark { display: inline-block; font-size: var(--fs-xs); font-weight: var(--fw-semibold); color: var(--c-ink-3); background: var(--c-bg-soft); border: 1px dashed var(--c-line); border-radius: var(--radius); padding: 1px 8px; margin-right: 6px; vertical-align: 1px; }
.case-info { position: sticky; top: calc(var(--nav-h) + 20px); background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--space-6); box-shadow: var(--shadow-sm); }
.case-info h3 { font-size: var(--fs-lg); margin-bottom: var(--space-5); }
.case-info dl { display: grid; gap: var(--space-4); }
.case-info dt { font-size: var(--fs-sm); color: var(--c-ink-3); margin-bottom: 2px; }
.case-info dd { font-size: var(--fs-base); font-weight: var(--fw-semibold); }
.case-info .btn { margin-top: var(--space-6); }
.case-nav { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4); margin-top: var(--space-7); padding-top: var(--space-6); border-top: 1px solid var(--c-line); }
.case-nav a { display: inline-flex; align-items: center; gap: 8px; font-weight: var(--fw-semibold); color: var(--c-primary); }
.case-nav a:hover { text-decoration: underline; }
[data-theme="dark"] .case-nav a { color: var(--c-accent-soft); }
@media (max-width: 1024px) {
  .case-detail-grid { grid-template-columns: 1fr; }
  .case-info { position: static; }
}

/* ===================== 联系页 ===================== */
.contact-split { display: grid; grid-template-columns: 1fr 1.1fr; gap: var(--space-8); align-items: start; }
.contact-info-title { font-size: var(--fs-2xl); margin-bottom: var(--space-5); }
.contact-list { display: grid; gap: var(--space-5); margin-bottom: var(--space-6); }
.contact-list li { display: flex; gap: var(--space-4); align-items: flex-start; }
.contact-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--grad-brand-soft); color: var(--c-primary); }
.contact-ic svg { width: 22px; height: 22px; }
.contact-label { display: block; font-size: var(--fs-sm); color: var(--c-ink-3); }
.contact-value { display: block; font-weight: var(--fw-semibold); font-size: var(--fs-lg); }
.contact-sub { display: block; font-size: var(--fs-sm); color: var(--c-ink-3); margin-top: 2px; }
.wechat-box { display: flex; gap: var(--space-4); align-items: center; background: var(--c-bg-soft); border: 1px solid var(--c-line); border-radius: var(--radius-lg); padding: var(--space-4); }
.wechat-qr { width: 96px; height: 96px; border-radius: 12px; background: #fff; padding: 6px; box-shadow: var(--shadow-sm); flex: none; }
.contact-form-wrap { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-xl); padding: var(--space-7); box-shadow: var(--shadow-sm); }
.form-success {
  display: flex; align-items: center; gap: 10px; margin-top: var(--space-4);
  padding: 12px 16px; border-radius: var(--radius); background: rgba(6,214,160,.12); color: #047857; font-weight: var(--fw-semibold);
}
.form-success svg { width: 22px; height: 22px; flex: none; }
/* display:flex 会覆盖 hidden 属性自带的 display:none，这里补回来 */
.form-success[hidden],
.form-alert[hidden] { display: none; }

/* ===================== 响应式 ===================== */
/* 平板 */
@media (max-width: 1024px) {
  .hero-inner { grid-template-columns: 1fr; gap: var(--space-7); text-align: center; }
  .hero-cta, .hero-note { justify-content: center; }
  .hero-art { max-width: 420px; }
  .biz-inner, .biz-inner.reverse .biz-text, .biz-inner.reverse .biz-visual { grid-template-columns: 1fr; order: 0; }
  .biz-visual { order: -1; }
  .steps-5 { grid-template-columns: repeat(2, 1fr); }
  .contact-split { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr 1fr; }
}
/* 移动端 */
@media (max-width: 768px) {
  :root { --space-9: 72px; --space-8: 48px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .section { padding-block: var(--space-8); }
  .section-head { margin-bottom: var(--space-6); }
  .section-title { font-size: var(--fs-2xl); }
  .page-hero-title { font-size: var(--fs-3xl); }
  .form-grid { grid-template-columns: 1fr; }
  .steps-5 { grid-template-columns: 1fr; }
  .site-shots { padding: 0 0 40px 20px; }
  .site-shot-mobile { width: 28%; }
  .steps-5 .step { flex-direction: row; }
  .footer-top { grid-template-columns: 1fr; gap: var(--space-5); }
  .footer-bottom { flex-direction: column; gap: var(--space-2); }
  .contact-form-wrap { padding: var(--space-5); }
  .wechat-box { flex-direction: column; text-align: center; align-items: center; }
  .hero-lead { font-size: var(--fs-lg); }
}
/* 窄屏微调 */
@media (max-width: 420px) {
  .container { padding-inline: var(--space-4); }
  .hero-cta { flex-direction: column; }
  .hero-cta .btn { width: 100%; }
}

/* ============ 真实案例详情页（棒棒哒棒球 / 聪翀报台系统） ============ */
.case-live { display: inline-flex; align-items: center; gap: 8px; font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: #047857; }
.case-live::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #10B981; box-shadow: 0 0 0 4px rgba(16,185,129,.14); }
[data-theme="dark"] .case-live { color: #6EE7B7; }

/* 界面一览：手机截图（4 列 / 2 列两种排布） */
.case-showcase { padding-block: var(--space-9) var(--space-8); }
.case-showcase .section-head { margin-bottom: var(--space-7); }
.showcase-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.showcase-grid.showcase-grid-2 { grid-template-columns: repeat(2, minmax(0, 340px)); justify-content: center; gap: var(--space-6); }
.showcase-item { min-width: 0; }
.shot-btn { display: block; width: 100%; text-align: left; padding: 0; background: none; border: 0; cursor: zoom-in; color: inherit; }
.phone-frame { display: block; border: 6px solid #162A4A; border-radius: 26px; overflow: hidden; background: #fff; box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.phone-frame img { width: 100%; height: auto; aspect-ratio: 760 / 1645; object-fit: cover; }
.shot-btn:hover .phone-frame { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.shot-cap { display: block; margin-top: var(--space-4); }
.shot-cap strong { display: block; font-size: var(--fs-base); font-weight: var(--fw-semibold); color: var(--c-ink); margin-bottom: 3px; }
.shot-cap > span { display: block; font-size: var(--fs-sm); color: var(--c-ink-3); line-height: 1.5; }
.gallery-tip { text-align: center; margin-top: var(--space-6); font-size: var(--fs-sm); color: var(--c-ink-3); }
[data-theme="dark"] .phone-frame { border-color: #2A3D5C; }

/* 界面一览：宽屏 Web 系统截图（单列大图） */
.wide-shot-list { display: grid; gap: var(--space-7); }
.wide-shot { min-width: 0; }
.wide-shot-frame { display: block; border: 1px solid var(--c-border); border-radius: 14px; overflow: hidden; background: #fff; box-shadow: var(--shadow-md); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease); }
.wide-shot-frame img { width: 100%; height: auto; aspect-ratio: 1000 / 499; object-fit: cover; }
.shot-btn:hover .wide-shot-frame { transform: translateY(-4px); box-shadow: var(--shadow-lg); }

/* 案例正文增强 */
.case-detail-section p + p { margin-top: var(--space-4); }
.case-detail-section p + .feature-grid, .case-detail-section p + .outcome-list { margin-top: var(--space-5); }
.case-detail-section p.case-note { margin-top: var(--space-5); padding: var(--space-4) var(--space-5); border-left: 3px solid var(--c-primary); background: var(--c-bg-tint); border-radius: 0 var(--radius) var(--radius) 0; font-size: var(--fs-base); color: var(--c-ink-2); }
.feature-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.feature-card { background: var(--c-surface); border: 1px solid var(--c-border); border-radius: var(--radius-lg); padding: var(--space-5); }
.feature-no { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: var(--radius-sm); font-size: var(--fs-sm); font-weight: var(--fw-bold); margin-bottom: var(--space-3); }
.feature-card h3 { font-size: var(--fs-lg); margin-bottom: var(--space-2); }
.case-detail-section .feature-card p { font-size: var(--fs-sm); color: var(--c-ink-2); line-height: 1.65; }
.fc-orange .feature-no { background: rgba(245,130,32,.14); color: #D2691E; }
.fc-purple .feature-no { background: rgba(107,70,193,.14); color: #6B46C1; }
.fc-blue  .feature-no { background: rgba(15,82,186,.12); color: var(--c-primary); }
.fc-teal  .feature-no { background: rgba(13,148,136,.14); color: #0D9488; }
[data-theme="dark"] .fc-orange .feature-no { color: #FDBA74; }
[data-theme="dark"] .fc-purple .feature-no { color: #C4B5FD; }
[data-theme="dark"] .fc-blue .feature-no { color: var(--c-accent-soft); }
[data-theme="dark"] .fc-teal .feature-no { color: #5EEAD4; }
.outcome-list { display: grid; gap: var(--space-3); }
.outcome-list li { position: relative; padding-left: 34px; font-size: var(--fs-base); color: var(--c-ink-2); }
.outcome-list li::before { content: "✓"; position: absolute; left: 0; top: 2px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; background: var(--grad-brand); color: #fff; font-size: 13px; font-weight: var(--fw-bold); }
.outcome-list strong { color: var(--c-ink); }

/* 截图放大预览 */
body.no-scroll { overflow: hidden; }
.lightbox { position: fixed; inset: 0; z-index: var(--z-modal); display: none; flex-direction: column; align-items: center; justify-content: center; gap: var(--space-4); padding: var(--space-6); background: rgba(6,16,32,.92); }
.lightbox.is-open { display: flex; }
.lightbox img { max-width: min(100%, 480px); max-height: 78vh; width: auto; border-radius: 14px; box-shadow: 0 24px 60px rgba(0,0,0,.5); }
.lightbox img.is-wide { max-width: min(100%, 1200px); }
.lightbox-cap { max-width: 520px; text-align: center; color: rgba(255,255,255,.85); font-size: var(--fs-sm); }
.lightbox-close { position: absolute; top: 20px; right: 24px; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; line-height: 1; color: #fff; background: rgba(255,255,255,.14); }
.lightbox-close:hover { background: rgba(255,255,255,.28); }

@media (max-width: 1024px) {
  .showcase-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-6); }
  .showcase-item { max-width: 340px; margin-inline: auto; width: 100%; }
}
@media (max-width: 768px) {
  .feature-grid { grid-template-columns: 1fr; }
  .case-showcase { padding-block: var(--space-8) var(--space-7); }
  .lightbox img { max-height: 72vh; }
}
@media (max-width: 420px) {
  .showcase-grid, .showcase-grid.showcase-grid-2 { grid-template-columns: 1fr; }
}

/* 案例筛选：某分类暂无案例时的提示 */
.filter-empty { margin-top: var(--space-6); padding: var(--space-6); text-align: center; color: var(--c-ink-2); background: var(--c-bg-tint); border: 1px dashed var(--c-border); border-radius: var(--radius-lg); font-size: var(--fs-base); }
.filter-empty a { color: var(--c-primary); text-decoration: underline; }
[data-theme="dark"] .filter-empty a { color: var(--c-accent-soft); }

/* 企业官网案例墙：16 个首页截图，瀑布流排布（保留原图比例，不裁切） */
.site-wall { column-count: 3; column-gap: var(--space-5); }
.site-item { display: block; width: 100%; break-inside: avoid; margin: 0 0 var(--space-5); padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: zoom-in; }
.site-frame { display: block; border: 1px solid var(--c-border); border-radius: var(--radius-lg); overflow: hidden; background: var(--c-surface); box-shadow: var(--shadow-sm); transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), border-color var(--dur); }
.site-frame img { display: block; width: 100%; height: auto; }
.site-item:hover .site-frame, .site-item:focus-visible .site-frame { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.site-item:focus-visible { outline: 2px solid var(--c-primary); outline-offset: 4px; border-radius: var(--radius-lg); }
.site-info { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; margin-top: 10px; }
.site-info strong { font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--c-ink); }
.site-info span { font-size: var(--fs-xs); color: var(--c-ink-3); white-space: nowrap; }
.site-wall-tip { margin-top: var(--space-6); text-align: center; font-size: var(--fs-sm); color: var(--c-ink-3); }
.site-wall-tip a { color: var(--c-primary); text-decoration: underline; }
[data-theme="dark"] .site-wall-tip a { color: var(--c-accent-soft); }
/* 筛选到「企业官网」时，隐藏详情案例网格，压缩上方留白 */
.section.is-website-only { padding-bottom: 0; }
#caseGrid[hidden], #websiteCases[hidden] { display: none !important; }

/* JS 瀑布流：按最短列填充，避免多列底部高低差过大（无 JS 时退回 CSS 多列） */
.site-wall.is-masonry { column-count: initial; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-5); align-items: start; }
.site-col { display: grid; gap: var(--space-5); align-content: start; }
.site-col .site-item { margin-bottom: 0; }
@media (max-width: 1023px) {
  .site-wall.is-masonry { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .site-wall { column-count: 2; }
}
@media (max-width: 640px) {
  .site-wall { column-count: 1; }
  .site-info { display: block; }
  .site-info span { display: block; margin-top: 2px; white-space: normal; }
}

/* 服务页 FAQ：自然承接长尾搜索词，同时供 FAQPage 结构化数据引用 */
.faq-list { max-width: var(--container-narrow); margin-inline: auto; display: grid; gap: var(--space-4); }
.faq-item { padding: var(--space-5); background: var(--c-bg-soft); border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.faq-q { margin-bottom: var(--space-3); font-size: var(--fs-lg); font-weight: var(--fw-semibold); color: var(--c-ink); }
.faq-a { color: var(--c-ink-2); font-size: var(--fs-base); }
.faq-a a { color: var(--c-primary); text-decoration: underline; text-underline-offset: 3px; }
[data-theme="dark"] .faq-a a { color: var(--c-accent-soft); }
@media (max-width: 768px) {
  .faq-item { padding: var(--space-4); }
}
