/* zhfwl.com — 移动端优先（375px 起），桌面端渐进增强 */

:root {
  --c-brand: #14539a;
  --c-brand-dark: #0f3d73;
  --c-brand-soft: #eef3fa;
  --c-text: #1f2328;
  --c-muted: #5b6570;
  --c-line: #e3e6ea;
  --c-bg: #ffffff;
  --c-soft: #f6f8fa;
  --radius: 8px;
  --wrap: 1080px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.75;
  color: var(--c-text);
  background: var(--c-bg);
  -webkit-font-smoothing: antialiased;
}

a { color: var(--c-brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-block;
  padding: 12px 22px;
  background: var(--c-brand);
  color: #fff;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  transition: background .18s ease, transform .18s ease;
}
.btn:hover { background: var(--c-brand-dark); color: #fff; text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn-lg { padding: 15px 32px; font-size: 17px; }
.btn-sm { padding: 8px 14px; font-size: 14px; }
.btn-invert { background: #fff; color: var(--c-brand); }
.btn-invert:hover { background: #f0f4f9; color: var(--c-brand-dark); }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94);
  backdrop-filter: saturate(180%) blur(8px);
  border-bottom: 1px solid var(--c-line);
}
.header-inner { display: flex; align-items: center; gap: 12px; min-height: 60px; }

.brand { display: flex; flex-direction: column; line-height: 1.2; color: var(--c-text); }
.brand:hover { text-decoration: none; }
.brand-name { font-size: 15px; font-weight: 700; letter-spacing: .2px; }
.brand-sub { font-size: 11px; color: var(--c-muted); }

.nav-desktop { display: none; }
.cta-top { margin-left: auto; white-space: nowrap; }

.nav-mobile { margin-left: 8px; }
.nav-mobile > summary {
  list-style: none; cursor: pointer; user-select: none;
  padding: 8px 12px; border: 1px solid var(--c-line); border-radius: var(--radius);
  font-size: 14px; color: var(--c-text); background: #fff;
}
.nav-mobile > summary::-webkit-details-marker { display: none; }
.nav-mobile[open] > summary { border-color: var(--c-brand); color: var(--c-brand); }
.nav-mobile-panel {
  position: absolute; left: 0; right: 0; top: 100%;
  display: flex; flex-direction: column;
  background: #fff; border-bottom: 1px solid var(--c-line);
  box-shadow: 0 8px 20px rgba(20,40,80,.08);
}
.nav-mobile-panel a {
  padding: 14px 20px; border-top: 1px solid var(--c-line);
  color: var(--c-text); font-size: 16px;
}
.nav-mobile-panel a:hover { background: var(--c-brand-soft); text-decoration: none; }

/* ---------- Hero ---------- */
.hero { padding: 52px 0 44px; background: linear-gradient(180deg, var(--c-brand-soft), #fff); }
.hero-h1 { margin: 0 0 14px; font-size: 27px; line-height: 1.35; letter-spacing: .2px; }
.hero-sub { margin: 0 0 26px; font-size: 16px; color: var(--c-muted); }
.trust { display: flex; flex-wrap: wrap; gap: 8px 16px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust li { position: relative; padding-left: 16px; font-size: 13px; color: var(--c-muted); }
.trust li::before {
  content: ""; position: absolute; left: 0; top: 9px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--c-brand);
}

/* ---------- 通用区块 ---------- */
.section { padding: 48px 0; }
.section-soft { background: var(--c-soft); }
.section-title { margin: 0 0 24px; font-size: 21px; }

/* ---------- 服务卡 ---------- */
.cards { display: grid; gap: 16px; }
.card {
  padding: 22px; background: #fff;
  border: 1px solid var(--c-line); border-radius: var(--radius);
  transition: box-shadow .18s ease, transform .18s ease;
}
.card:hover { box-shadow: 0 6px 20px rgba(20,40,80,.08); transform: translateY(-2px); }
.card-title { margin: 0 0 10px; font-size: 17px; color: var(--c-brand); }
.card-desc { margin: 0; font-size: 15px; color: var(--c-muted); }
.note { margin: 18px 0 0; font-size: 13px; color: var(--c-muted); }
.more { margin: 14px 0 0; font-size: 15px; }

/* ---------- 案例摘要 ---------- */
.case-teaser {
  padding: 24px; background: #fff;
  border: 1px solid var(--c-line); border-left: 3px solid var(--c-brand);
  border-radius: var(--radius);
}
.case-name { margin: 0 0 12px; font-size: 17px; }
.case-desc { margin: 0 0 14px; font-size: 15px; color: var(--c-muted); }
.link-arrow { font-size: 15px; font-weight: 600; }
.case-game { display: block; margin: 16px 0 0; padding-top: 14px; border-top: 1px dashed var(--c-line); font-size: 14px; color: var(--c-muted); }
.case-game:hover { color: var(--c-brand); text-decoration: none; }

/* ---------- 末屏 CTA ---------- */
.final-cta { padding: 56px 0; background: var(--c-brand); color: #fff; text-align: center; }
.final-title { margin: 0 0 14px; font-size: 21px; }
.final-text { margin: 0 auto 28px; max-width: 640px; font-size: 15px; opacity: .92; }

/* ---------- 内容页 ---------- */
.page { padding: 40px 0 56px; }
.page-head { margin-bottom: 28px; padding-bottom: 18px; border-bottom: 1px solid var(--c-line); }
.page-head h1 { margin: 0; font-size: 25px; }
.lead { margin: 14px 0 0; font-size: 16px; color: var(--c-muted); }

.content h2 { margin: 40px 0 16px; font-size: 20px; padding-left: 12px; border-left: 3px solid var(--c-brand); }
.content h3 { margin: 30px 0 12px; font-size: 17px; }
.content p { margin: 0 0 14px; }
.content ul { margin: 0 0 16px; padding-left: 22px; }
.content li { margin-bottom: 8px; }
.content blockquote {
  margin: 20px 0; padding: 14px 18px;
  background: var(--c-brand-soft); border-radius: var(--radius);
  border-left: 3px solid var(--c-brand); color: var(--c-text);
}
.content blockquote p:last-child { margin-bottom: 0; }
.content code {
  padding: 2px 6px; background: var(--c-soft);
  border: 1px solid var(--c-line); border-radius: 4px; font-size: 14px;
}
.content table { width: 100%; margin: 20px 0; border-collapse: collapse; font-size: 15px; display: block; overflow-x: auto; }
.content th, .content td { padding: 11px 14px; border: 1px solid var(--c-line); text-align: left; vertical-align: top; }
.content th { background: var(--c-soft); font-weight: 600; white-space: nowrap; }

/* ---------- 页面内 CTA ---------- */
.cta-band {
  margin-top: 44px; padding: 28px 22px; text-align: center;
  background: var(--c-brand-soft); border-radius: var(--radius);
}
.cta-band-title { margin: 0 0 8px; font-size: 18px; font-weight: 600; }
.cta-band-text { margin: 0 0 20px; font-size: 15px; color: var(--c-muted); }

/* ---------- 试玩框 ---------- */
.game-frame { margin: 24px 0; border: 1px solid var(--c-line); border-radius: var(--radius); overflow: hidden; }
.game-frame iframe { display: block; width: 100%; height: 480px; border: 0; }

/* ---------- 页脚 ---------- */
.site-footer { padding: 40px 0 32px; background: #1c2430; color: #c6ced8; font-size: 14px; }
.site-footer a { color: #9fc4ee; }
.site-footer p { margin: 0 0 8px; }
.f-org { font-size: 15px; font-weight: 600; color: #fff; }
.f-meta, .f-copy, .f-beian { font-size: 13px; color: #8b96a3; }
.f-links { margin-top: 18px; padding-top: 16px; border-top: 1px solid #2c3644; display: flex; gap: 12px 18px; flex-wrap: wrap; align-items: center; }
.f-links-nav { display: flex; gap: 18px; }
.f-icp { margin-left: auto; }

/* ---------- 平板 ---------- */
@media (min-width: 768px) {
  body { font-size: 17px; }
  .hero { padding: 72px 0 60px; }
  .hero-h1 { font-size: 38px; }
  .hero-sub { font-size: 18px; max-width: 720px; }
  .section { padding: 64px 0; }
  .section-title { font-size: 25px; }
  .cards { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .page-head h1 { font-size: 32px; }
  .content h2 { font-size: 22px; }
  .content table { display: table; }
  .final-cta { padding: 72px 0; }
  .final-title { font-size: 27px; }
}

/* ---------- 桌面 ---------- */
@media (min-width: 1024px) {
  .nav-desktop { display: flex; gap: 26px; margin-left: 32px; }
  .nav-desktop a { font-size: 15px; color: var(--c-text); padding: 6px 0; border-bottom: 2px solid transparent; }
  .nav-desktop a:hover { color: var(--c-brand); text-decoration: none; border-bottom-color: var(--c-brand); }
  .nav-desktop a.is-active { color: var(--c-brand); border-bottom-color: var(--c-brand); font-weight: 600; }
  .nav-mobile { display: none; }
  .cta-top { margin-left: auto; }
}

/* ===== QQ 图标（联系方式标识） ===== */
.qq-ico {
  display: inline-flex;
  align-items: center;
  vertical-align: -3px;
  margin-right: 5px;
  color: #12b7f5;
}
.qq-ico svg { display: block; }
/* 深色背景下保持可见 */
@media (prefers-color-scheme: dark) {
  .qq-ico { color: #4fc3f7; }
}

/* ===== QQ 一键唤起（B 方案）===== */
.qq-launch { cursor: pointer; }
.qq-fallback { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.qq-fallback[hidden] { display: none; }
.qq-copy {
  font: inherit;
  font-size: 14px;
  padding: 6px 14px;
  border: 1px solid var(--c-brand);
  border-radius: var(--radius);
  background: var(--c-brand);
  color: #fff;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}
.qq-copy:hover { background: var(--c-brand-dark); border-color: var(--c-brand-dark); }
.qq-copy:active { transform: translateY(1px); }
.qq-copy:focus-visible { outline: 2px solid var(--c-brand); outline-offset: 2px; }
