/* ==========================================================================
   拓盟传媒 - 品牌样式系统 v3
   基于新logo（彩色S + 拓盟传媒）设计
   ========================================================================== */

/* ---- 基础变量 ---- */
:root {
  /* 主色 - 基于logo彩色调 + 企业深色基调 */
  --navy: #0A1733;
  --navy-2: #142145;
  --navy-3: #1e3060;
  --red: #E63946;
  --gold: #FFB627;
  --orange: #FF7F3F;
  --blue: #2A6FDB;
  --cyan: #00C2D7;

  /* 中性 */
  --white: #ffffff;
  --bg: #f7f9fc;
  --bg-2: #eef2f7;
  --border: #e5e9f0;
  --text: #1a2238;
  --text-2: #4a5568;
  --text-3: #718096;

  /* 间距/圆角/阴影 */
  --sp-1: 8px; --sp-2: 16px; --sp-3: 24px; --sp-4: 32px; --sp-5: 40px; --sp-6: 48px; --sp-8: 80px;
  --r-sm: 6px; --r-md: 10px; --r-lg: 16px; --r-xl: 24px;
  --shadow-sm: 0 2px 8px rgba(10,23,51,.06);
  --shadow-md: 0 8px 24px rgba(10,23,51,.1);
  --shadow-lg: 0 16px 48px rgba(10,23,51,.15);
  --shadow-xl: 0 24px 80px rgba(10,23,51,.2);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --container: 1200px;

  /* 渐变（基于logo·暖色品牌调，去AI感彩虹渐变） */
  --grad-primary: linear-gradient(135deg, #E63946 0%, #FF7F3F 55%, #FFB627 100%);
  --grad-red: linear-gradient(135deg, #FF7F3F, #E63946);
  --grad-navy: linear-gradient(135deg, #0A1733, #1e3060);
}

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; color: var(--navy); }
h1 { font-size: clamp(2rem, 4vw, 3rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--sp-2); }
h3 { font-size: clamp(1.2rem, 2vw, 1.5rem); margin-bottom: var(--sp-1); }
p { margin-bottom: var(--sp-2); color: var(--text-2); }

/* ---- 通用 ---- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--sp-3); }
.section { padding: var(--sp-8) 0; }
.section-sm { padding: var(--sp-6) 0; }
.section-title { text-align: center; margin-bottom: var(--sp-6); }
.section-title h2 { display: inline-block; position: relative; }
.section-title h2::after {
  content: '';
  display: block;
  width: 60px; height: 4px;
  background: var(--grad-primary);
  border-radius: 2px;
  margin: var(--sp-2) auto 0;
}
.section-title .lead { color: var(--text-3); max-width: 700px; margin: var(--sp-2) auto 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 28px;
  border-radius: var(--r-md);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  transition: all .25s;
  border: 2px solid transparent;
  white-space: nowrap;
}
.btn-primary {
  background: var(--grad-primary);
  color: var(--white);
  box-shadow: var(--shadow-md);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); color: var(--white); }
.btn-outline {
  background: transparent;
  color: var(--navy);
  border-color: var(--navy);
}
.btn-outline:hover { background: var(--navy); color: var(--white); }
.btn-lg { padding: 16px 36px; font-size: 16px; }

/* ---- Navbar ---- */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.95);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
}
.nav-logo img { height: 44px; width: auto; }
.nav-links { display: flex; align-items: center; gap: var(--sp-3); }
.nav-links > a, .nav-links > .nav-item-dropdown > .dropdown-trigger {
  font-weight: 500; color: var(--text);
  padding: 8px 12px; border-radius: var(--r-sm);
  transition: all .2s;
  font-size: 15px;
}
.nav-links > a:hover, .nav-links > .nav-item-dropdown:hover > .dropdown-trigger {
  color: var(--red); background: var(--bg);
}
.nav-item-dropdown { position: relative; }
.nav-dropdown {
  position: absolute; top: 100%; left: 0; min-width: 180px;
  background: var(--white);
  border-radius: var(--r-md);
  box-shadow: var(--shadow-lg);
  padding: 8px 0;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all .2s;
  border: 1px solid var(--border);
}
.nav-item-dropdown:hover .nav-dropdown {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.nav-dropdown a {
  display: block; padding: 10px 18px; color: var(--text);
  font-size: 14px;
}
.nav-dropdown a:hover { background: var(--bg); color: var(--red); padding-left: 22px; }
.nav-cta {
  background: var(--grad-primary); color: var(--white) !important;
  padding: 8px 20px !important; border-radius: var(--r-md);
}
.nav-cta:hover { transform: translateY(-1px); box-shadow: var(--shadow-md); color: var(--white) !important; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---- Hero ---- */
.hero {
  position: relative;
  background: var(--grad-navy);
  color: var(--white);
  overflow: hidden;
  padding: var(--sp-8) 0;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(circle at 15% 25%, rgba(255,182,39,.18) 0%, transparent 48%),
    radial-gradient(circle at 85% 75%, rgba(230,57,70,.16) 0%, transparent 50%);
  pointer-events: none;
}
.hero-content {
  position: relative; z-index: 1;
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: var(--sp-6); align-items: center;
}
.hero-eyebrow {
  display: inline-block;
  background: rgba(255,182,39,.15); color: var(--gold);
  padding: 6px 16px; border-radius: 20px;
  font-size: 13px; font-weight: 600;
  margin-bottom: var(--sp-2);
}
.hero h1 { color: var(--white); font-size: clamp(2.2rem, 4.5vw, 3.4rem); }
.hero h1 .accent { background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero .lead { color: rgba(255,255,255,.85); font-size: 17px; max-width: 560px; margin: var(--sp-2) 0 var(--sp-3); }
.hero-actions { display: flex; gap: var(--sp-2); flex-wrap: wrap; margin-bottom: var(--sp-4); }
.hero-features { display: flex; gap: var(--sp-2); flex-wrap: wrap; }
.hero-features span {
  padding: 6px 14px; background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 20px; font-size: 13px;
}
.hero-visual {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-2);
}
.hero-card {
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.15);
  backdrop-filter: blur(10px);
  border-radius: var(--r-lg); padding: var(--sp-3);
  text-align: center;
}
.hero-card .num { font-size: clamp(1.4rem, 2.5vw, 2rem); font-weight: 800; background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-card .label { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ---- Stats Strip ---- */
.stats {
  background: var(--white);
  border-bottom: 1px solid var(--border);
}
.stats-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--sp-4);
  padding: var(--sp-4) 0;
  text-align: center;
}
.stat .num {
  font-size: clamp(1.8rem, 3vw, 2.4rem); font-weight: 800;
  background: var(--grad-primary); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.stat .label { color: var(--text-2); font-size: 14px; margin-top: 4px; }

/* ---- Cards Grid ---- */
.grid {
  display: grid; gap: var(--sp-3);
}
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: var(--sp-3);
  transition: all .25s;
}
.card:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-4px);
}
.card-icon {
  width: 56px; height: 56px;
  border-radius: var(--r-md);
  background: var(--grad-primary);
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  font-size: 26px; font-weight: 700;
  margin-bottom: var(--sp-2);
}
.card h3 { font-size: 1.15rem; }
.card p { font-size: 14px; color: var(--text-2); margin-bottom: var(--sp-2); }
.card-link { color: var(--red); font-weight: 600; font-size: 14px; }
.card-link::after { content: ' →'; }

/* ---- News List ---- */
.news-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
}
.news-card {
  background: var(--white); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  transition: all .25s;
}
.news-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); }
.news-card-body { padding: var(--sp-3); }
.news-meta { display: flex; gap: var(--sp-2); font-size: 12px; color: var(--text-3); margin-bottom: var(--sp-1); }
.news-meta .tag {
  background: var(--bg); color: var(--text-2);
  padding: 2px 10px; border-radius: 10px;
}
.news-meta .tag-hot {
  background: linear-gradient(135deg, #FF6A00, #E63946);
  color: #fff; font-weight: 600;
}
.news-card h3 { font-size: 1.05rem; margin-bottom: var(--sp-1); }
.news-card h3 a:hover { color: var(--red); }
.news-card p { font-size: 13px; color: var(--text-2); }

/* ---- Cases ---- */
.case-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--sp-3);
}
.case-card {
  position: relative; overflow: hidden;
  border-radius: var(--r-lg);
  background: var(--navy);
  aspect-ratio: 4/3;
}
.case-card .overlay {
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(10,23,51,.95), rgba(10,23,51,.2) 50%, transparent);
  color: var(--white); padding: var(--sp-3);
  display: flex; flex-direction: column; justify-content: flex-end;
}
.case-card h3 { color: var(--white); font-size: 1.1rem; }
.case-card .meta { font-size: 13px; color: rgba(255,255,255,.7); margin-top: 4px; }

/* ---- Contact ---- */
.contact {
  background: var(--grad-navy);
  color: var(--white);
  padding: var(--sp-8) 0;
}
.contact h2 { color: var(--white); }
.contact .lead { color: rgba(255,255,255,.85); }
.contact-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-6);
  margin-top: var(--sp-6);
}
.contact-item {
  display: flex; gap: var(--sp-2); padding: var(--sp-2) 0;
  align-items: flex-start;
}
.contact-item .icon {
  flex: 0 0 48px; width: 48px; height: 48px;
  background: var(--grad-primary); border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--white); font-weight: 700;
}
.contact-item .label { font-size: 13px; color: rgba(255,255,255,.6); }
.contact-item .value { font-size: 18px; color: var(--white); font-weight: 600; }
.contact-qr {
  background: var(--white); padding: var(--sp-3);
  border-radius: var(--r-lg); display: inline-block;
  text-align: center;
}
.contact-qr img { width: 200px; height: 200px; margin: 0 auto; border-radius: var(--r-md); }
.contact-qr .qr-label { color: var(--navy); font-weight: 600; margin-top: var(--sp-1); }

/* ---- Footer ---- */
.footer {
  position: relative;
  background: var(--navy);
  color: rgba(255,255,255,.7);
  padding: var(--sp-6) 0 var(--sp-2);
}
.footer::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: var(--grad-primary);
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: var(--sp-4);
  margin-bottom: var(--sp-4);
}
.footer h4 { color: var(--white); margin-bottom: var(--sp-2); font-size: 16px; }
.footer a { color: rgba(255,255,255,.7); font-size: 14px; display: block; padding: 4px 0; }
.footer a:hover { color: var(--gold); }
.footer-brand img { height: 40px; margin-bottom: var(--sp-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1);
  padding-top: var(--sp-2);
  text-align: center;
  font-size: 13px;
  color: rgba(255,255,255,.5);
}
.footer-bottom a { color: rgba(255,255,255,.5); display: inline; }
.footer-bottom a:hover { color: var(--gold); }

/* ---- Breadcrumb ---- */
.breadcrumb {
  background: var(--bg);
  padding: var(--sp-2) 0;
  border-bottom: 1px solid var(--border);
}
.breadcrumb ol {
  list-style: none; display: flex; flex-wrap: wrap; gap: 4px;
  font-size: 14px; color: var(--text-3);
}
.breadcrumb ol li::after { content: ' / '; margin-left: 4px; color: var(--text-3); }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li:last-child { color: var(--text); font-weight: 500; }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--red); }

/* ---- Page hero (sub-page banner) ---- */
.page-hero {
  background: var(--grad-navy);
  color: var(--white);
  padding: var(--sp-6) 0;
  text-align: center;
}
.page-hero h1 { color: var(--white); margin-bottom: var(--sp-2); }
.page-hero .lead { color: rgba(255,255,255,.85); max-width: 700px; margin: 0 auto; font-size: 17px; }

/* ---- Article (news detail) ---- */
.article {
  max-width: 880px; margin: 0 auto;
  padding: var(--sp-4) 0;
}
.article h1 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin-bottom: var(--sp-2); }
.article-meta {
  display: flex; gap: var(--sp-3); flex-wrap: wrap;
  font-size: 14px; color: var(--text-3);
  padding-bottom: var(--sp-2);
  border-bottom: 1px solid var(--border);
  margin-bottom: var(--sp-3);
}
.article-body { font-size: 16px; line-height: 1.9; color: var(--text); }
.article-body h2 { font-size: 1.5rem; margin: var(--sp-4) 0 var(--sp-2); padding-left: var(--sp-2); border-left: 4px solid var(--gold); }
.article-body h3 { font-size: 1.2rem; margin: var(--sp-3) 0 var(--sp-1); color: var(--navy-2); }
.article-body p { margin-bottom: var(--sp-2); }
.article-body ul, .article-body ol { padding-left: var(--sp-3); margin-bottom: var(--sp-2); }
.article-body li { margin-bottom: 6px; }
.article-body img { margin: var(--sp-2) auto; border-radius: var(--r-md); box-shadow: var(--shadow-md); }
.article-body blockquote {
  border-left: 4px solid var(--gold);
  background: var(--bg);
  padding: var(--sp-2) var(--sp-3);
  margin: var(--sp-2) 0;
  color: var(--text-2);
  font-style: italic;
  border-radius: 0 var(--r-md) var(--r-md) 0;
}
.article-body code {
  background: var(--bg); padding: 2px 6px; border-radius: 4px;
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 14px;
}
.article-body pre {
  background: var(--navy); color: #e2e8f0;
  padding: var(--sp-3); border-radius: var(--r-md);
  overflow-x: auto; margin: var(--sp-2) 0;
}
.article-body pre code { background: transparent; color: inherit; padding: 0; }
.article-body table {
  width: 100%; border-collapse: collapse; margin: var(--sp-2) 0;
  font-size: 14px;
}
.article-body table th, .article-body table td {
  border: 1px solid var(--border); padding: 8px 12px;
}
.article-body table th { background: var(--bg); }

/* ---- Article list ---- */
.article-list { display: grid; gap: var(--sp-3); }
.article-list-item {
  display: grid; grid-template-columns: 200px 1fr; gap: var(--sp-3);
  padding: var(--sp-3);
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  transition: all .2s;
}
.article-list-item:hover { border-color: var(--gold); box-shadow: var(--shadow-md); }
.article-list-item .thumb {
  background: var(--bg);
  border-radius: var(--r-md);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-3);
  font-size: 32px;
  overflow: hidden;
}
.article-list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-list-item h3 { font-size: 1.15rem; }
.article-list-item .meta { font-size: 13px; color: var(--text-3); margin-bottom: var(--sp-1); }
.article-list-item .meta .tag {
  background: var(--bg-2); color: var(--text-2);
  padding: 2px 10px; border-radius: 10px; margin-right: 8px;
}
.article-list-item p { font-size: 14px; color: var(--text-2); margin-bottom: 0; }

/* ---- Misc ---- */
.cta-banner {
  background: var(--grad-primary); color: var(--white);
  padding: var(--sp-6); border-radius: var(--r-xl);
  text-align: center; margin: var(--sp-6) 0;
}
.cta-banner h2 { color: var(--white); margin-bottom: var(--sp-2); }
.cta-banner p { color: rgba(255,255,255,.9); margin-bottom: var(--sp-3); }
.cta-banner .btn-primary { background: var(--white); color: var(--navy); }
.cta-banner .btn-primary:hover { background: var(--navy); color: var(--white); }

/* ---- Responsive ---- */
/* ===== Generated-page extras: article detail, related, author, floating contact, footer cols ===== */

/* Article header (colored title band on detail pages) */
.article-header {
  background: var(--grad-navy);
  color: #fff;
  padding: 24px 0 24px;
  text-align: center;
}
.article-header .article-meta {
  justify-content: center;
  color: rgba(255,255,255,.82);
  border-bottom-color: rgba(255,255,255,.18);
  margin-bottom: var(--sp-3);
}
.article-header .back-link { color: rgba(255,255,255,.88); font-size: 14px; }
.article-header .back-link:hover { color: #fff; }
.article-category {
  display: inline-block; color: #fff; font-size: 13px; font-weight: 600;
  padding: 4px 14px; border-radius: 999px; background: rgba(255,255,255,.18);
}
.article-title { font-size: clamp(1.5rem, 3.2vw, 2.3rem); font-weight: 800; margin: var(--sp-3) 0 var(--sp-2); line-height: 1.3; }
.article-info { display: flex; gap: var(--sp-3); flex-wrap: wrap; justify-content: center; font-size: 14px; color: rgba(255,255,255,.8); }

/* Article body content wrapper (constrained reading column) */
.article-content { max-width: 760px; margin: 0 auto; padding: var(--sp-5) var(--sp-3); }

/* Inline content images (injected via markdown ![alt](url)) */
.article-content img {
  display: block; max-width: 100%; height: auto; margin: var(--sp-4) auto;
  border-radius: var(--r-md); box-shadow: var(--shadow-md); border: 1px solid var(--border);
  background: #F4F7FB;
}
.article-content p:has(> img) { text-align: center; }

/* Share row */
.article-share {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap;
  margin: var(--sp-4) 0; padding-top: var(--sp-3);
  border-top: 1px solid var(--border); color: var(--text-2); font-size: 14px;
}
.share-btn { display: inline-block; padding: 6px 14px; border: 1px solid var(--border); border-radius: 999px; font-size: 13px; color: var(--text-2); }
.share-btn:hover { border-color: var(--red); color: var(--red); }

/* Related articles */
.related-articles { max-width: 760px; margin: 0 auto; padding: var(--sp-4) var(--sp-3); }
.related-articles h3 { font-size: 1.2rem; margin-bottom: var(--sp-3); }
.related-grid { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.related-card { display: block; border: 1px solid var(--border); border-radius: var(--r-md); padding: var(--sp-3); background: #fff; transition: .2s; }
.related-card:hover { box-shadow: var(--shadow-md); transform: translateY(-2px); border-color: var(--gold); }
.related-tag { display: inline-block; color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 999px; margin-bottom: 8px; }
.related-title { display: block; color: var(--text); font-weight: 600; font-size: 14px; line-height: 1.5; }

/* About author box */
.about-author {
  max-width: 760px; margin: var(--sp-4) auto; display: flex; gap: var(--sp-3);
  align-items: center; background: var(--bg); border-radius: var(--r-md); padding: var(--sp-3);
}
.author-avatar {
  width: 56px; height: 56px; flex: 0 0 56px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px;
}
.author-info h4 { margin-bottom: 6px; }
.author-info p { color: var(--text-2); font-size: 14px; margin-bottom: var(--sp-2); }

/* Footer columns (generated footer uses <ul>) */
.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: var(--sp-2); }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 10px; }
.footer-col a { color: rgba(255,255,255,.7); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; align-items: center; gap: 8px; }
.footer-contact .icon { font-size: 14px; }

/* ===== Floating contact widget (desktop) ===== */
.float-bar {
  position: fixed; right: 24px; bottom: 24px; z-index: 999; width: 280px;
  animation: floatIn .5s ease both;
}
@keyframes floatIn { from { opacity: 0; transform: translateY(20px); } to { opacity: 1; transform: none; } }
.float-card {
  position: relative; background: #fff; border-radius: 16px;
  box-shadow: 0 12px 40px rgba(0,0,0,.18); padding: 18px 18px 16px; border: 1px solid var(--border);
}
.fc-close { position: absolute; top: 8px; right: 10px; border: 0; background: none; font-size: 20px; line-height: 1; color: var(--text-3); cursor: pointer; }
.fc-close:hover { color: var(--red); }
.fc-title { font-weight: 700; color: var(--navy); font-size: 15px; margin-bottom: 10px; }
.fc-qr img { width: 120px; height: 120px; display: block; margin: 0 auto 8px; border-radius: var(--r-md); border: 1px solid var(--border); }
.fc-wechat, .fc-phone { text-align: center; font-size: 14px; color: var(--text); margin: 2px 0; }
.fc-phone { color: var(--red); font-weight: 600; }
.fc-cta { display: block; text-align: center; margin-top: 10px; background: var(--grad-primary); color: #fff; font-weight: 600; font-size: 14px; padding: 10px; border-radius: 999px; text-decoration: none; }
.fc-cta:hover { filter: brightness(1.05); }

/* Mobile dock (hidden on desktop) */
.m-dock { display: none; }

@media (max-width: 768px) {
  .float-bar { display: none; }
  .m-dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 999;
    background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.12);
    padding: 8px 10px calc(8px + env(safe-area-inset-bottom)); gap: 8px;
  }
  .m-dock-btn { flex: 1; border: 0; background: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 12px; color: var(--text-2); text-decoration: none; padding: 6px 0; }
  .m-dock-btn .m-ico { font-size: 20px; }
  .m-dock-btn.primary { background: var(--grad-primary); color: #fff; border-radius: 999px; }
  .related-grid { grid-template-columns: 1fr; }
  .about-author { flex-direction: column; text-align: center; }
}

@media (max-width: 992px) {
  .hero-content { grid-template-columns: 1fr; }
  .hero-visual { grid-template-columns: 1fr 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .news-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .article-list-item { grid-template-columns: 1fr; }
  .article-list-item .thumb { aspect-ratio: 16/9; }
}
@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 72px; left: 0; right: 0;
    background: var(--white); padding: var(--sp-3);
    box-shadow: var(--shadow-md); align-items: stretch;
  }
  .nav-links.open > a, .nav-links.open > .nav-item-dropdown { width: 100%; }
  .nav-links.open .nav-dropdown { position: static; box-shadow: none; opacity: 1; visibility: visible; transform: none; padding-left: var(--sp-3); }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .case-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: var(--sp-6) 0; }
}

/* ==========================================================================
   文章详情页 · 体验升级（进度条 / 目录 / 引言 / 步骤 / 转化卡）
   ========================================================================== */

/* 阅读进度条 */
.reading-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: var(--grad-primary); z-index: 1000;
  transition: width .1s linear;
}

/* 面包屑（文章头内） */
.article-crumbs {
  display: flex; gap: 8px; justify-content: center; flex-wrap: wrap;
  font-size: 13px; color: rgba(255,255,255,.6); margin-bottom: var(--sp-3);
}
.article-crumbs a { color: rgba(255,255,255,.82); }
.article-crumbs a:hover { color: #fff; }
.article-crumbs span { opacity: .5; }

/* 两栏布局：左侧栏（目录+相关栏目+相关文章） + 正文 */
.article-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: var(--sp-5);
  align-items: start;
  padding-top: var(--sp-5);
}
.article-main { min-width: 0; }

/* 左侧栏 */
.article-sidebar {
  position: sticky; top: 96px;
  display: flex; flex-direction: column; gap: 16px;
}
.side-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--sp-3);
}
.side-title, .toc-title {
  font-size: 13px; font-weight: 700; color: var(--navy);
  margin-bottom: 10px; letter-spacing: .04em;
}
.side-cat, .side-rel { list-style: none; padding: 0; margin: 0; }
.side-cat li, .side-rel li { margin: 0 0 8px; }
.side-cat a, .side-rel a {
  display: block; padding: 7px 10px; border-radius: 8px;
  color: var(--text-2); font-size: 13.5px; line-height: 1.5;
  border-left: 2px solid transparent; transition: .2s;
}
.side-cat a:hover, .side-rel a:hover { background: var(--bg); color: var(--navy); border-left-color: var(--red); }
.side-rel a { font-size: 13px; color: var(--text); }

/* 目录（位于左侧栏卡片内，保留滚动高亮） */
#articleToc { list-style: none; padding: 0; margin: 0; }
#articleToc a {
  display: block; padding: 6px 10px; border-radius: 8px;
  color: var(--text-2); font-size: 13.5px; line-height: 1.5;
  border-left: 2px solid transparent; transition: .2s;
}
#articleToc a:hover { background: var(--bg); color: var(--navy); }
#articleToc .toc-h3 a { padding-left: 22px; font-size: 13px; color: var(--text-3); }
#articleToc a.active { color: var(--red); border-left-color: var(--red); background: var(--bg); font-weight: 600; }

/* 正文配图（编辑式横幅） */
.article-hero {
  position: relative; margin: 0 0 var(--sp-4);
  border-radius: var(--r-lg); overflow: hidden; box-shadow: var(--shadow-md);
}
.article-hero-img {
  width: 100%; height: 220px; object-fit: cover; display: block;
}
.article-hero-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 30px 22px 16px;
  background: linear-gradient(180deg, rgba(10,23,51,0) 0%, rgba(10,23,51,.82) 100%);
}
.article-hero-cat {
  display: inline-block; padding: 5px 13px; border-radius: 999px;
  background: rgba(255,255,255,.16); color: #fff; font-size: 13px; font-weight: 600;
  border: 1px solid rgba(255,255,255,.28); backdrop-filter: blur(4px);
}

/* 卡片悬浮微动（Ardot 风格：克制但精致） */
.card { transition: transform .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg, 0 12px 30px rgba(10,23,51,.12)); }
.bento-cell { transition: transform .25s ease, box-shadow .25s ease; }
.bento-cell:hover { transform: translateY(-4px); }

/* ---- 侧边栏广告卡片 ---- */
.ad-card { padding:0; border:none; overflow:hidden; }
.ad-card-inner { display:flex; flex-direction:column; align-items:center; text-align:center; padding:16px; border-radius:14px; }
.ad-card-media { background: linear-gradient(135deg, #0A1733, #1a2a4a); }
.ad-card-baike { background: linear-gradient(135deg, #0A1733, #0d3b36); }
.ad-card-badge { display:inline-block; padding:4px 16px; border-radius:999px; font-size:12px; font-weight:700; color:#fff; margin-bottom:8px; }
.ad-card-media .ad-card-badge { background:#FF6B35; }
.ad-card-baike .ad-card-badge { background:#00C853; }
.ad-card-title { font-size:18px; font-weight:700; color:#fff; margin-bottom:4px; }
.ad-card-wx { display:inline-block; background:#00C853; color:#fff; font-size:14px; font-weight:700; padding:4px 14px; border-radius:999px; margin-bottom:10px; }
.ad-card-box { background:#fff; border-radius:10px; padding:10px 14px; width:100%; margin-bottom:10px; }
.ad-card-price { font-size:22px; font-weight:800; color:#E63946; line-height:1.2; }
.ad-card-sub { font-size:11px; color:#4a5568; margin-top:4px; }
.ad-card-cta { display:inline-block; padding:8px 22px; border-radius:999px; font-size:13px; font-weight:700; color:#fff; text-decoration:none; transition:transform .2s, box-shadow .2s; margin-bottom:6px; }
.ad-card-cta:hover { transform:translateY(-2px); box-shadow:0 4px 12px rgba(0,0,0,.2); color:#fff; }
.ad-card-media .ad-card-cta { background:#2A6FDB; }
.ad-card-baike .ad-card-cta { background:#00C853; }
.ad-card-url { font-size:10px; color:#90CAF9; }

/* 移动端：广告卡片占满整行 */
@media (max-width: 768px) {
  .ad-card { grid-column:1 / -1; }
  .ad-card-inner { padding:20px; }
  .ad-card-title { font-size:20px; }
  .ad-card-price { font-size:26px; }
  .ad-card-cta { font-size:15px; padding:10px 28px; }
}

/* 引言 */
.article-lead {
  font-size: 1.12rem; line-height: 1.85; color: var(--text);
  background: linear-gradient(180deg, rgba(255,182,39,.10), rgba(230,57,70,.05));
  border-left: 4px solid var(--red);
  padding: var(--sp-3) var(--sp-3); border-radius: 0 var(--r-md) var(--r-md) 0;
  margin-bottom: var(--sp-4); font-weight: 500;
}

/* 正文块：步骤卡 / 要点 / 引用 增强 */
.article-body .step-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-3); margin: var(--sp-2) 0;
}
.article-body .step-num {
  flex: 0 0 32px; width: 32px; height: 32px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-weight: 700;
  display: flex; align-items: center; justify-content: center; font-size: 15px;
}
.article-body .step-card .step-body { flex: 1; }
.article-body .step-card h4 { margin: 0 0 4px; font-size: 1.02rem; color: var(--navy); }
.article-body .step-card p { margin: 0; color: var(--text-2); font-size: 15px; }
.article-body .callout {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-3); margin: var(--sp-3) 0;
}
.article-body .callout .ico { font-size: 22px; line-height: 1; }
.article-body .callout .ct-body { flex: 1; }
.article-body .callout .ct-body strong { color: var(--navy); }
.article-body .callout.tip { border-left: 4px solid var(--gold); }
.article-body .callout.warn { border-left: 4px solid var(--red); }
.article-body hr { border: 0; border-top: 1px dashed var(--border); margin: var(--sp-4) 0; }
.article-body ul li::marker { color: var(--red); }
.article-body ol { counter-reset: step; list-style: none; padding-left: 0; }
.article-body ol > li {
  position: relative; padding-left: 40px; margin-bottom: var(--sp-2);
}
.article-body ol > li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--grad-primary); color: #fff; font-size: 13px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.article-body .md-table { font-size: 14.5px; }

/* 文末转化卡 */
.article-cta-card {
  position: relative; overflow: hidden;
  margin: var(--sp-5) 0; border-radius: var(--r-xl);
  background: var(--grad-navy); color: #fff;
  padding: var(--sp-5); display: grid; grid-template-columns: 1fr 160px; gap: var(--sp-4);
  align-items: center;
}
.cta-card-glow {
  position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(circle at 85% 15%, rgba(255,182,39,.22), transparent 45%),
              radial-gradient(circle at 10% 90%, rgba(230,57,70,.20), transparent 50%);
}
.cta-card-main { position: relative; z-index: 1; }
.cta-card-ico { font-size: 28px; margin-bottom: 8px; }
.cta-card-main h4 { color: #fff; font-size: 1.3rem; margin-bottom: 8px; }
.cta-card-main p { color: rgba(255,255,255,.82); font-size: 14.5px; margin-bottom: var(--sp-3); }
.cta-card-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.cta-card-side { position: relative; z-index: 1; text-align: center; }
.cta-card-side .cta-qr img { width: 120px; height: 120px; border-radius: var(--r-md); border: 3px solid #fff; }
.cta-card-side .cta-wechat { font-size: 13px; color: rgba(255,255,255,.9); margin-top: 8px; }

@media (max-width: 992px) {
  .article-layout { grid-template-columns: 1fr; }
  .article-sidebar { position: static; max-height: none; flex-direction: column; }
}
@media (max-width: 600px) {
  .article-cta-card { grid-template-columns: 1fr; text-align: center; }
  .cta-card-side { order: -1; }
  .cta-card-actions { justify-content: center; }
}

/* ==========================================================================
   视觉精修 · 高级感 / 转化增强 · 2026-07-29
   ========================================================================== */

/* 滚动渐显（main.js 已挂载 .reveal -> .visible） */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } }

/* 区块 eyebrow 小标签 */
.section-eyebrow {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .08em;
  color: var(--red); margin-bottom: 10px; text-transform: uppercase;
}

/* Hero 细网点纹理，增加质感（不挡交互） */
.hero-bento::after {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 70%);
  mask-image: linear-gradient(180deg, rgba(0,0,0,.65), transparent 70%);
}

/* 卡片悬停：顶部渐变描边 */
.card { position: relative; }
.card::before {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 3px;
  background: var(--grad-primary); border-radius: var(--r-lg) var(--r-lg) 0 0;
  transform: scaleX(0); transform-origin: left; transition: transform .3s ease;
}
.card:hover::before { transform: scaleX(1); }

/* 按钮微光扫过 */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.35), transparent);
  transform: skewX(-20deg); transition: left .6s ease;
}
.btn-primary:hover::after { left: 130%; }

/* ===== 信任条（服务过的品牌） ===== */
.trustbar { background: var(--bg); border-bottom: 1px solid var(--border); padding: var(--sp-4) 0; }
.trust-eyebrow { text-align: center; font-size: 13px; color: var(--text-3); letter-spacing: .05em; margin-bottom: var(--sp-3); }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.trust-logos span {
  padding: 10px 22px; background: #fff; border: 1px solid var(--border);
  border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--navy-2);
  box-shadow: var(--shadow-sm); transition: all .25s;
}
.trust-logos span:hover { transform: translateY(-3px); border-color: var(--gold); color: var(--red); box-shadow: var(--shadow-md); }
@media (max-width: 560px) { .trust-logos span { padding: 8px 16px; font-size: 14px; } }

/* ---- 资讯列表分页（保证内页布局不乱） ---- */
.article-pager { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; align-items: center; margin: 44px 0 8px; }
.article-pager a, .article-pager span {
  min-width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center;
  padding: 0 13px; border-radius: 10px; border: 1px solid var(--border);
  color: var(--navy-2); font-size: 14px; background: #fff; transition: all .2s;
}
.article-pager a:hover { border-color: var(--blue); color: var(--blue); box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.article-pager .pg-current { background: var(--navy); color: #fff; border-color: var(--navy); font-weight: 700; }
.article-pager .disabled { opacity: .35; cursor: not-allowed; }
.article-pager .pg-ellipsis { border: none; background: none; min-width: auto; padding: 0 4px; }

/* ===== Hero Slider (首页顶部幻灯片) ===== */
.hero-slider{position:relative;background:var(--grad-navy);color:#fff;overflow:hidden;height:clamp(440px,62vh,580px);}
.hero-track{position:relative;height:100%;}
.hero-slide{position:absolute;inset:0;display:flex;align-items:center;opacity:0;visibility:hidden;transform:translateY(14px);transition:opacity .6s ease,transform .6s ease,visibility .6s;}
.hero-slide.active{opacity:1;visibility:visible;transform:none;}
.hero-slide-inner{max-width:780px;}
.hero-slider .eyebrow{display:inline-block;background:rgba(255,182,39,.16);color:#FFB627;padding:6px 16px;border-radius:20px;font-size:13px;font-weight:600;margin-bottom:var(--sp-2);}
.hero-slide h1{color:#fff;font-size:clamp(2rem,4.4vw,3.3rem);line-height:1.15;margin:0 0 var(--sp-2);}
.hero-slide h1 .accent{background:linear-gradient(90deg,#FFB627,#FF7A8A);-webkit-background-clip:text;background-clip:text;color:transparent;}
.hero-slide .lead{color:rgba(255,255,255,.88);font-size:17px;line-height:1.7;max-width:620px;margin:0 0 var(--sp-3);}
.hero-slide .hero-actions{display:flex;gap:var(--sp-2);flex-wrap:wrap;}
.slide-xhs{background:linear-gradient(135deg,#E63946 0%,#FF7A8A 100%);}
.slide-geo{background:linear-gradient(135deg,#0A1733 0%,#1B9E77 100%);}
.slide-google{background:linear-gradient(135deg,#0A1733 0%,#34A853 100%);}
.slide-media{background:linear-gradient(135deg,#B45309 0%,#E63946 100%);}
.hero-arrow{position:absolute;top:50%;transform:translateY(-50%);width:46px;height:46px;border-radius:50%;border:0;background:rgba(255,255,255,.18);color:#fff;font-size:26px;line-height:1;cursor:pointer;z-index:5;transition:background .2s;backdrop-filter:blur(4px);}
.hero-arrow:hover{background:rgba(255,255,255,.35);}
.hero-arrow-left{left:18px;}
.hero-arrow-right{right:18px;}
.hero-dots{position:absolute;bottom:18px;left:50%;transform:translateX(-50%);display:flex;gap:10px;z-index:5;}
.hero-dot{width:11px;height:11px;border-radius:50%;border:0;background:rgba(255,255,255,.4);cursor:pointer;padding:0;transition:background .2s,width .2s;}
.hero-dot.active{background:#fff;width:26px;border-radius:6px;}
@media (max-width:768px){
  .hero-slider{height:clamp(420px,72vh,560px);}
  .hero-arrow{width:38px;height:38px;font-size:22px;}
  .hero-arrow-left{left:8px;} .hero-arrow-right{right:8px;}
}
/* ===== Stats strip ===== */
.stats-strip{background:#fff;border-bottom:1px solid var(--border);}
.stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:var(--sp-4);padding:var(--sp-5) 0;}
.stat-cell{text-align:center;}
.stat-cell .b-ico{font-size:30px;}
.stat-cell .b-num{font-size:clamp(1.6rem,3vw,2.2rem);font-weight:800;color:#0A1733;margin:4px 0;}
.stat-cell .b-label{color:#5b6478;font-size:14px;}
@media (max-width:768px){.stats-grid{grid-template-columns:repeat(2,1fr);gap:var(--sp-3);}}

/* ================================================================
   全站移动端深度优化 v2（2026-08-07）
   覆盖：导航 / 首页 / 文章页 / 服务页 / 案例 / 资讯列表 / 页脚
   ================================================================ */

@media (max-width: 768px) {
  /* ---- 全局：防横向溢出 + 触控优化 ---- */
  body { overflow-x: hidden; }
  img, video, iframe, table, pre, code { max-width: 100% !important; }
  .container { padding-left: 14px; padding-right: 14px; }

  /* 所有可点击元素加大触控区 */
  a, button, .btn, [role="button"], .nav-links > a, .nav-dropdown a,
  .dropdown-trigger, .card, .scope-card, .news-card, .case-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* ---- 导航 ---- */
  .navbar { position: sticky; top: 0; padding: 10px 0; }
  .nav-inner { height: 56px; }
  .nav-logo img { height: 30px; }
  .nav-links { display: none; }
  .nav-toggle { display: block; padding: 10px; min-width: 44px; min-height: 44px; }
  .nav-toggle span { width: 22px; height: 2px; margin: 4px 0; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 12px 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,.15);
    overflow-y: auto; z-index: 99; gap: 2px;
  }
  .nav-links.open > a, .nav-links.open > .nav-item-dropdown > .dropdown-trigger {
    width: 100%; padding: 14px 16px; font-size: 16px; border-radius: 10px;
    display: block; min-height: 48px;
  }
  .nav-item-dropdown { position: static; }
  /* 移动端下拉框默认隐藏，点触发才展开（JS toggle .open） */
  .nav-dropdown {
    display: none;
  }
  .nav-item-dropdown.open .nav-dropdown {
    display: block;
    position: static; box-shadow: none; border: 0;
    padding: 0 0 0 20px; min-width: 0;
  }
  .nav-dropdown a { padding: 12px 16px; font-size: 15px; font-weight: 400; min-height: 44px; }
  /* 触发按钮上添加展开/收起箭头 */
  .nav-item-dropdown .dropdown-trigger::after {
    content: ' ▾'; font-size: 11px; opacity: .5;
  }
  .nav-item-dropdown.open .dropdown-trigger::after {
    content: ' ▴';
  }
  .nav-cta { margin-top: 8px; text-align: center; min-height: 48px; display: flex !important;
    align-items: center; justify-content: center; border-radius: 12px; }

  /* ---- 面包屑 ---- */
  .breadcrumb { padding: 8px 0; font-size: 12px; white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .breadcrumb ol { flex-wrap: nowrap; }

  /* ---- Hero / 页面头 ---- */
  .hero { padding: var(--sp-5) 0; }
  .hero-content { grid-template-columns: 1fr; gap: var(--sp-3); text-align: center; }
  .hero-content h2, .hero-content h1 { font-size: clamp(1.4rem, 6vw, 1.9rem); }
  .hero-content p { font-size: 14px; }
  .hero-visual { grid-template-columns: 1fr 1fr; gap: 10px; }
  .hero-arrow { width: 36px; height: 36px; font-size: 20px; }
  .hero-slider { height: clamp(340px, 50vh, 440px); }

  .page-hero { padding: var(--sp-4) 0; }
  .page-hero h1 { font-size: clamp(1.2rem, 5vw, 1.6rem); line-height: 1.35; }
  .page-hero .lead { font-size: 13px; line-height: 1.6; }

  /* ---- 按钮 ---- */
  .btn { padding: 12px 20px; font-size: 14px; min-height: 44px; white-space: normal; text-align: center; }
  .btn-lg { padding: 14px 24px; font-size: 15px; }

  /* ---- Grids ---- */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }

  .section { padding: var(--sp-4) 0; }
  .section-title { margin-bottom: var(--sp-3); }
  .section-title h2 { font-size: clamp(1.3rem, 5vw, 1.6rem); }
  .section-title .lead { font-size: 13px; padding: 0 8px; }

  /* ---- 首页 Stats ---- */
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: var(--sp-3); }
  .stat-cell .b-ico { font-size: 24px; }
  .stat-cell .b-num { font-size: 1.4rem; }

  /* ---- 首页 Trust logos ---- */
  .trust-logos { flex-wrap: wrap; justify-content: center; gap: 8px; }
  .trust-logos span { padding: 6px 12px; font-size: 13px; }

  /* ---- 案例 / 新闻卡片 ---- */
  .news-grid, .case-grid { grid-template-columns: 1fr; gap: 12px; }
  .news-card, .case-card { border-radius: 12px; }
  .news-card h3, .case-card h3 { font-size: 15px; }
  .news-card p, .case-card p { font-size: 13px; }

  /* ---- 文章列表 ---- */
  .article-list-item { grid-template-columns: 1fr; gap: 10px; }
  .article-list-item .thumb { aspect-ratio: 16/9; width: 100%; }

  /* ===== 文章详情页 ===== */
  .article-layout { grid-template-columns: 1fr; gap: var(--sp-3); padding-top: var(--sp-3); }
  .article-sidebar {
    position: static; max-height: none; overflow-y: visible; order: 2;
    display: grid; grid-template-columns: 1fr 1fr; gap: 10px;
  }
  .article-sidebar .side-card { padding: 14px; }
  .article-main { order: 1; }
  .article-content h2 { font-size: 1.15rem; margin-top: 24px; }
  .article-content h3 { font-size: 1rem; }
  .article-content p, .article-content li { font-size: 15px; line-height: 1.75; }
  .article-cta-card { flex-direction: column; text-align: center; padding: 20px 16px; }
  .article-cta-card .cta-card-side { margin-top: 14px; }
  .related-grid { grid-template-columns: 1fr; gap: 10px; }
  .related-card { padding: 12px 14px; }
  .about-author { flex-direction: column; text-align: center; gap: 10px; }

  /* ---- 服务页 ---- */
  .scope-grid { gap: 12px; }
  .scope-card { padding: 16px; }
  .scope-head { flex-direction: column; align-items: flex-start; gap: 8px; }
  .scope-list li { font-size: 13px; padding: 6px 0; }

  /* ---- 联系区 ---- */
  .contact-grid { grid-template-columns: 1fr; gap: 16px; }

  /* ---- 步骤流程 ---- */
  .step-flow { flex-direction: column; gap: 10px; }
  .step-arrow { transform: rotate(90deg); }
  .step-item { flex-direction: row; text-align: left; align-items: center; gap: 12px; }
  .step-num { width: 36px; height: 36px; flex-shrink: 0; font-size: 16px; }
  .step-body h3 { font-size: 15px; }
  .step-body p { font-size: 13px; }

  /* ---- FAQ ---- */
  .faq-q { font-size: 14px; padding: 14px 16px; text-align: left; min-height: 48px; }
  .faq-a-inner { padding: 12px 16px; font-size: 14px; }

  /* ---- CTA Banner ---- */
  .cta-banner { padding: 24px 16px; border-radius: 16px; }
  .cta-banner h2 { font-size: 1.1rem; }

  /* ---- 裂变区 ---- */
  .fission-grid { grid-template-columns: 1fr; gap: 12px; }
  .fission-card { padding: 18px; }
  .fission-actions { flex-direction: column; gap: 10px; }
  .fission-actions .copy-btn, .fission-actions .share-btn { width: 100%; min-height: 48px; }

  /* ---- 页脚 ---- */
  .footer { padding: var(--sp-4) 0; }
  .footer-grid { grid-template-columns: 1fr; gap: var(--sp-3); }
  .footer-brand p { font-size: 12px; }
  .footer-col h4 { font-size: 14px; }
  .footer-col ul li a { font-size: 13px; padding: 6px 0; display: block; min-height: 36px; }
  .footer-bottom { font-size: 12px; padding-top: 16px; }

  /* ---- 浮动 dock ---- */
  .float-bar { display: none; }
  .m-dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 99;
    background: #fff; box-shadow: 0 -4px 20px rgba(0,0,0,.1);
    padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px));
  }
  .m-dock-btn {
    flex: 1; border: 0; background: none; display: flex; flex-direction: column;
    align-items: center; gap: 2px; font-size: 11px; color: var(--text-2);
    text-decoration: none; padding: 6px 0; min-height: 48px;
    justify-content: center;
  }
  .m-dock-btn .m-ico { font-size: 20px; }
  .m-dock-btn.primary { background: var(--grad-primary); color: #fff; border-radius: 999px; padding: 8px 16px; }

  /* ---- 列表分页 ---- */
  .pagination { gap: 6px; }
  .pagination a, .pagination span { min-width: 36px; min-height: 36px; font-size: 13px; }
}

/* 极小屏 <400px */
@media (max-width: 400px) {
  .article-sidebar { grid-template-columns: 1fr; }
  .page-hero h1 { font-size: 1.15rem; }
  .nav-logo img { height: 26px; }
  .hero-content h2 { font-size: 1.3rem; }
  .section-title h2 { font-size: 1.2rem; }
  .nav-links.open { padding: 8px 12px; }
  .btn { font-size: 13px; padding: 10px 16px; }
  .stats-grid { gap: 8px; }
  .stat-cell .b-num { font-size: 1.2rem; }
  .grid-5 { grid-template-columns: 1fr; }
  .r-grid { gap: 8px; }
}

/* iPad / 小平板 768-1024 */
@media (min-width: 769px) and (max-width: 1024px) {
  .container { padding-left: 20px; padding-right: 20px; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
  .article-layout { grid-template-columns: 240px 1fr; gap: var(--sp-3); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

/* ==========================================================================
   移动端深度修复 v3 — 视觉、布局、bug 全面优化（2026-08-08）
   覆盖：导航交互 / Hero / 卡片 / 案例 / 服务 / 新闻 / FAQ / 页脚
   ========================================================================== */
@media (max-width: 768px) {
  /* ---- 重置 ---- */
  body { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }

  /* ---- 导航汉堡展开时锁定body滚动 ---- */
  body.nav-open { overflow: hidden; }

  /* ---- 导航交互优化 ---- */
  .navbar { height: 56px; background: rgba(255,255,255,.98); }
  .nav-inner { height: 56px; }
  .nav-logo img { height: 28px; }
  .nav-links { display: none; }
  .nav-toggle { display: flex; flex-direction: column; justify-content: center; align-items: center; width: 44px; height: 44px; padding: 0; border: 0; background: none; cursor: pointer; gap: 5px; }
  .nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); border-radius: 1px; transition: all .25s; }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 汉堡菜单展开 */
  .nav-links.open {
    display: flex; flex-direction: column;
    position: fixed; top: 56px; left: 0; right: 0; bottom: 0;
    background: #fff; padding: 16px 20px 100px;
    overflow-y: auto; -webkit-overflow-scrolling: touch;
    z-index: 99; gap: 4px;
    animation: slideDown .2s ease;
  }
  @keyframes slideDown { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
  .nav-links.open > a,
  .nav-links.open .dropdown-trigger {
    display: flex; align-items: center;
    padding: 14px 16px; font-size: 16px; font-weight: 500;
    border-radius: 12px; color: var(--navy);
    min-height: 48px; width: 100%;
    transition: background .15s;
  }
  .nav-links.open > a:active,
  .nav-links.open .dropdown-trigger:active { background: var(--bg); }
  .nav-links.open .nav-cta {
    display: flex; align-items: center; justify-content: center;
    background: var(--grad-primary); color: #fff !important;
    font-weight: 700; font-size: 15px; border-radius: 14px;
    padding: 16px; margin-top: 12px; min-height: 52px;
    text-align: center; width: 100%;
  }
  /* 下拉菜单在移动端 */
  .nav-item-dropdown { width: 100%; }
  .nav-item-dropdown .dropdown-trigger::after { content: ' ▾'; font-size: 10px; margin-left: auto; opacity: .4; }
  .nav-item-dropdown.open .dropdown-trigger::after { content: ' ▴'; }
  .nav-dropdown { display: none; padding: 4px 0 4px 16px; }
  .nav-item-dropdown.open .nav-dropdown { display: flex; flex-direction: column; }
  .nav-dropdown a {
    display: flex; align-items: center; padding: 12px 16px;
    font-size: 14px; color: var(--text-2); border-radius: 10px;
    min-height: 44px;
  }
  .nav-dropdown a:active { background: var(--bg); color: var(--navy); }

  /* ---- 所有可点击元素触控增强 ---- */
  a, button, .btn, [role="button"], input, select, textarea,
  .dropdown-trigger, .nav-dropdown a, .nav-links.open > a,
  .faq-q, .scope-get, .card, .news-card, .case-card {
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
  }

  /* ---- 标题层级 ---- */
  h1 { font-size: clamp(1.3rem, 6vw, 1.6rem); }
  h2 { font-size: clamp(1.1rem, 5vw, 1.4rem); }
  h3 { font-size: clamp(1rem, 4vw, 1.2rem); }
  .section-title h2 { font-size: clamp(1.2rem, 5vw, 1.5rem); }
  .section-title .lead { font-size: 13px; }

  /* ---- 间距统一 ---- */
  .section { padding: 40px 0; }
  .section-sm { padding: 30px 0; }
  .container { padding-left: 14px; padding-right: 14px; }

  /* ---- 按钮 ---- */
  .btn { padding: 11px 18px; font-size: 14px; min-height: 44px; border-radius: 10px; }
  .btn-lg { padding: 14px 24px; font-size: 15px; min-height: 48px; }

  /* ---- Hero ---- */
  .hero { padding: 40px 0 30px; }
  .hero-content { gap: 20px; }
  .hero-content h2 { font-size: clamp(1.3rem, 6vw, 1.7rem); margin-bottom: 8px; }
  .hero-content p { font-size: 14px; line-height: 1.6; }
  .hero-visual { grid-template-columns: 1fr 1fr; gap: 8px; }
  .hero-arrow { width: 34px; height: 34px; font-size: 18px; }
  .hero-slider { height: clamp(300px, 50vh, 400px); }
  .hero-dot { width: 8px; height: 8px; }
  .hero-dot.active { width: 20px; }
  .page-hero { padding: 30px 0; }
  .page-hero h1 { font-size: clamp(1.2rem, 5vw, 1.5rem); line-height: 1.35; }
  .page-hero .lead { font-size: 13px; }

  /* ---- Stats ---- */
  .stats-grid { gap: 12px; padding: 24px 0; }
  .stat-cell .b-ico { font-size: 22px; }
  .stat-cell .b-num { font-size: 1.3rem; }
  .stat-cell .b-label { font-size: 12px; }
  .stats-strip { padding: 8px 0; }

  /* ---- Trust logos ---- */
  .trust-logos { flex-wrap: wrap; gap: 8px; justify-content: center; padding: 16px 0; }
  .trust-logos span { font-size: 12px; padding: 6px 10px; }

  /* ---- Grid ---- */
  .grid-2, .grid-3 { grid-template-columns: 1fr; gap: 12px; }
  .grid-4 { grid-template-columns: 1fr; gap: 12px; }
  .grid-5 { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .news-grid, .case-grid { grid-template-columns: 1fr; gap: 12px; }

  /* ---- 卡片 ---- */
  .card, .news-card, .case-card { border-radius: 12px; padding: 16px; }
  .card h3, .news-card h3 { font-size: 15px; }
  .card p, .news-card p { font-size: 13px; line-height: 1.55; }

  /* ---- 案例轮播 ---- */
  .case-slide { flex-basis: 85%; min-width: 0; }
  .case-slider { gap: 10px; padding: 0 14px; }

  /* ---- 服务 Scope 卡片 ---- */
  .scope-grid { gap: 12px; }
  .scope-card { padding: 16px; border-radius: 14px; }
  .scope-head { gap: 10px; }
  .scope-ico { font-size: 28px; }
  .scope-name { font-size: 15px; }
  .scope-desc { font-size: 13px; }
  .scope-list li { font-size: 12px; padding: 5px 0; }
  .scope-get { min-height: 48px; display: flex; align-items: center; justify-content: center; border-radius: 12px; font-size: 14px; }
  .scope-wx { font-size: 12px; }

  /* ---- 文章列表 ---- */
  .article-list-item { grid-template-columns: 1fr; gap: 8px; padding: 12px; }
  .article-list-item .thumb { width: 100%; aspect-ratio: 16/9; border-radius: 8px; }

  /* ---- 文章内容 ---- */
  .article-layout { grid-template-columns: 1fr; gap: 16px; padding-top: 16px; }
  .article-sidebar { order: 2; grid-template-columns: 1fr 1fr; gap: 8px; position: static; max-height: none; }
  .side-card { padding: 12px; border-radius: 12px; }
  .side-title { font-size: 12px; }
  .side-cat a, .side-rel a { font-size: 12px; padding: 6px 8px; }
  .article-main { order: 1; }
  .article-content { padding: 0 2px; }
  .article-content h2 { font-size: 1.15rem; margin: 22px 0 10px; padding-bottom: 6px; border-bottom: 2px solid var(--border); }
  .article-content h3 { font-size: 1rem; margin: 16px 0 8px; }
  .article-content p, .article-content li { font-size: 15px; line-height: 1.78; color: var(--text); }
  .article-cta-card { flex-direction: column; text-align: center; padding: 18px 14px; gap: 10px; }
  .related-grid { grid-template-columns: 1fr; gap: 8px; }
  .related-card { padding: 12px; }
  #articleToc a { font-size: 12px; padding: 6px 8px; }

  /* ---- 阅读进度条 ---- */
  .reading-progress { height: 2px; }

  /* ---- FAQ ---- */
  .faq-q {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; text-align: left; padding: 14px 16px; font-size: 14px;
    background: #fff; border: 1px solid var(--border); border-radius: 12px;
    margin-bottom: 8px; min-height: 50px; cursor: pointer;
    transition: all .2s;
  }
  .faq-q:active { background: var(--bg); }
  .faq-a-inner { padding: 12px 16px; font-size: 14px; line-height: 1.6; }

  /* ---- CTA Banner ---- */
  .cta-banner { padding: 22px 14px; border-radius: 16px; }
  .cta-banner h2 { font-size: 1.1rem; }
  .cta-banner p { font-size: 13px; }

  /* ---- 联系区 ---- */
  .contact-grid { grid-template-columns: 1fr; gap: 14px; }

  /* ---- 裂变区 ---- */
  .fission-grid { grid-template-columns: 1fr; gap: 10px; }
  .fission-card { padding: 16px; }
  .fission-actions { flex-direction: column; gap: 8px; }
  .fission-actions .copy-btn, .fission-actions .share-btn { width: 100%; min-height: 48px; display: flex; align-items: center; justify-content: center; }

  /* ---- 步骤流程 ---- */
  .step-flow { flex-direction: column; gap: 8px; }
  .step-arrow { transform: rotate(90deg); font-size: 18px; }
  .step-item { flex-direction: row; align-items: center; gap: 10px; text-align: left; }
  .step-num { width: 34px; height: 34px; font-size: 15px; flex-shrink: 0; }

  /* ---- 分页 ---- */
  .pagination { gap: 4px; }
  .pagination a, .pagination span { min-width: 34px; min-height: 34px; font-size: 13px; display: flex; align-items: center; justify-content: center; border-radius: 6px; }

  /* ---- 页脚 ---- */
  .footer { padding: 32px 0 80px; }
  .footer-grid { grid-template-columns: 1fr; gap: 20px; }
  .footer-brand { text-align: left; }
  .footer-brand p { font-size: 12px; line-height: 1.7; color: var(--text-3); }
  .footer-col h4 { font-size: 13px; margin-bottom: 8px; }
  .footer-col ul li { margin-bottom: 2px; }
  .footer-col ul li a { padding: 6px 0; display: block; font-size: 13px; color: var(--text-2); min-height: 32px; }
  .footer-bottom { font-size: 11px; padding-top: 14px; margin-top: 14px; border-top: 1px solid var(--border); }

  /* ---- 面包屑 ---- */
  .breadcrumb { padding: 6px 0; font-size: 12px; }
  .breadcrumb ol { white-space: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; }

  /* ---- 浮动栏 ---- */
  .float-bar { display: none; }
  .m-dock {
    display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 98;
    background: rgba(255,255,255,.97); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 -2px 16px rgba(0,0,0,.08);
    padding: 6px 8px max(6px, env(safe-area-inset-bottom));
  }
  .m-dock-btn {
    flex: 1; border: 0; background: none;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; font-size: 11px; color: var(--text-2); text-decoration: none;
    padding: 6px 0; min-height: 48px; cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }
  .m-dock-btn .m-ico { font-size: 18px; }
  .m-dock-btn.primary { background: var(--grad-primary); color: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 600; font-size: 12px; }

  /* ---- 防横向溢出 ---- */
  img, video, iframe, table, pre, code, svg { max-width: 100% !important; height: auto; }
  .container, .section, .hero, .page-hero { overflow-x: hidden; }

  /* ---- 列表项目符号 ---- */
  ul, ol { padding-left: 18px; }
  li { margin-bottom: 4px; }

  /* ---- 引用块 ---- */
  blockquote {
    margin: 16px 0; padding: 12px 16px;
    border-left: 3px solid var(--red);
    background: var(--bg); border-radius: 0 8px 8px 0;
    font-size: 14px; color: var(--text-2);
  }

  /* ---- 分隔线 ---- */
  hr { margin: 20px 0; }
}

/* ---- 极小屏 iPhone SE / 小安卓 ---- */
@media (max-width: 380px) {
  .article-sidebar { grid-template-columns: 1fr; }
  .hero-slider { height: 280px; }
  .nav-logo img { height: 24px; }
  .hero-content h2 { font-size: 1.2rem; }
  .section-title h2 { font-size: 1.15rem; }
  .page-hero h1 { font-size: 1.1rem; }
  .btn { font-size: 13px; padding: 10px 14px; }
  .container { padding-left: 10px; padding-right: 10px; }
}

/* ==========================================================================
   移动端导航修复 v4 — 2026-08-26
   修复汉堡菜单打不开bug + body滚动锁定 + 导航遮罩
   ========================================================================== */

/* 菜单打开时锁定body滚动（不用position:fixed，会破坏子元素fixed定位） */
body.nav-open { overflow: hidden !important; }

/* 导航遮罩层 */
.nav-overlay {
  display: none;
  position: fixed; top: 0; left: 0;
  width: 100vw; height: 100vh;
  background: rgba(0,0,0,.45);
  z-index: 998;
  opacity: 0;
  transition: opacity .25s ease;
}
body.nav-open .nav-overlay {
  display: block;
  opacity: 1;
}

@media (max-width: 768px) {
  /* 确保汉堡按钮始终可见可点击 */
  .nav-toggle {
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 44px; height: 44px;
    padding: 0; border: 0;
    background: none;
    cursor: pointer;
    gap: 5px;
    position: relative;
    z-index: 100;
    -webkit-tap-highlight-color: transparent;
  }
  .nav-toggle span {
    display: block;
    width: 22px; height: 2px;
    background: var(--navy, #0A1733);
    border-radius: 1px;
    transition: all .25s ease;
  }
  .nav-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav-toggle.active span:nth-child(2) { opacity: 0; }
  .nav-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  /* 菜单展开 - 确保样式生效 */
  .nav-links.open {
    display: flex !important;
    flex-direction: column;
    position: fixed;
    top: 56px; left: 0;
    width: 100%;
    height: calc(100vh - 56px) !important;
    background: #fff;
    padding: 16px 20px 100px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    z-index: 9999;
    gap: 4px;
    animation: navFadeIn .2s ease;
  }
  @keyframes navFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
  }

  /* 确保所有导航链接可见 */
  .nav-links.open > a,
  .nav-links.open > .nav-item-dropdown {
    display: block;
    width: 100%;
    opacity: 1;
    visibility: visible;
  }
  .nav-links.open > a {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    color: var(--navy, #0A1733);
    min-height: 48px;
    text-decoration: none;
    transition: background .15s;
  }
  .nav-links.open > a:active { background: var(--bg, #f5f7fa); }

  /* 下拉触发器 */
  .nav-links.open .dropdown-trigger {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    color: var(--navy, #0A1733);
    min-height: 48px;
    width: 100%;
    text-decoration: none;
  }
  .nav-item-dropdown .dropdown-trigger::after {
    content: ' \25BE';
    font-size: 10px;
    margin-left: auto;
    opacity: .4;
  }
  .nav-item-dropdown.open .dropdown-trigger::after {
    content: ' \25B4';
  }

  /* 下拉子菜单 */
  .nav-dropdown {
    display: none;
    padding: 4px 0 4px 16px;
  }
  .nav-item-dropdown.open .nav-dropdown {
    display: flex;
    flex-direction: column;
  }
  .nav-dropdown a {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    font-size: 14px;
    color: var(--text-2, #4a5568);
    border-radius: 10px;
    min-height: 44px;
    text-decoration: none;
  }
  .nav-dropdown a:active { background: var(--bg, #f5f7fa); color: var(--navy, #0A1733); }

  /* CTA按钮在移动端 */
  .nav-links.open .nav-cta {
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #E63946, #FF6B35);
    color: #fff !important;
    font-weight: 700;
    font-size: 15px;
    border-radius: 14px;
    padding: 16px;
    margin-top: 12px;
    min-height: 52px;
    text-align: center;
    width: 100%;
    text-decoration: none;
  }

  /* 页面内容不被菜单遮挡 */
  .navbar { position: sticky; top: 0; z-index: 100; }
  body.nav-open .navbar { position: fixed; top: 0; left: 0; right: 0; z-index: 999; }
}

/* 轮播副标题：与 h1 同视觉，避免多 H1 影响 SEO */
.hero-slide h2{color:#fff;font-size:clamp(2rem,4.4vw,3.3rem);line-height:1.15;margin:0 0 var(--sp-2);font-weight:700;}
.hero-slide h2 .accent{background:linear-gradient(90deg,#FFB627,#FF7A8A);-webkit-background-clip:text;background-clip:text;color:transparent;}

/* ==========================================================================
   移动端深度修复 · 2026-11-14
   问题：大量页面用 inline style 写死 grid-template-columns:repeat(3/4)
        在 390px 屏被压成 105px 窄列 → 文字挤成竖条，看着就是"乱"
   策略：不改 HTML（避免动桌面端），用属性选择器在中屏/小屏强制降列
   ========================================================================== */
@media (max-width: 992px) {
  [style*="repeat(3,"], [style*="repeat(4,"],
  [style*="repeat(3)"], [style*="repeat(4)"] {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}
@media (max-width: 600px) {
  [style*="repeat(2,"], [style*="repeat(3,"], [style*="repeat(4,"],
  [style*="repeat(2)"], [style*="repeat(3)"], [style*="repeat(4)"] {
    grid-template-columns: 1fr !important;
  }
  /* 三列以上的 .bento / .scope 统一单列，避免文字被压成竖条 */
  .scope-grid, .bento-grid { grid-template-columns: 1fr !important; }
  .scope-head { flex-direction: row !important; align-items: center !important; }
  .scope-list li { font-size: 13px; }

  /* 底部固定联系条 81px 会盖住页面最后一段内容 → 给 body 留出安全区 */
  body:has(.m-dock) { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* 悬浮分享按钮原本 bottom:78px，正好压在联系条上 → 抬到联系条上方 */
  .tm-share-fab { bottom: calc(104px + env(safe-area-inset-bottom, 0px)) !important; }

  /* 表格在窄屏可横向滑动，不再挤压变形 */
  table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
  table th, table td { white-space: nowrap; }

  /* 11px 正文太小，手机上读不动 */
  .tm-gate-tip, .footer p, .footer a, .scope-tagline, .scope-for { font-size: 12px !important; line-height: 1.7; }

  /* 点击热区补足 44px，避免误触 */
  .nav-logo, .nav-toggle, .m-dock-btn { min-height: 44px; }
  .m-dock-btn { justify-content: center; }

  /* 文章页：行高与左右留白，手机上不贴边 */
  .article-body, .article-content { padding-left: 16px; padding-right: 16px; }
  .article-body h2 { font-size: 19px; line-height: 1.5; margin: 26px 0 12px; }
  .article-body p { font-size: 16px; line-height: 1.85; }
}


/* 兜底：不支持 :has() 的老浏览器（iOS < 15.4 / 老旧安卓 WebView）
   直接给 body 留出底部联系条高度，避免最后一段被盖住 */
@supports not selector(:has(*)) {
  @media (max-width: 600px) {
    body { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  }
}
