/* =============================================================
   云极 IT 服务平台 - 前台样式（响应式 / 2026-09 改版）
   ============================================================= */
:root {
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #eff6ff;
  --bg: #f6f8fb;
  --card: #ffffff;
  --text: #1e293b;
  --muted: #64748b;
  --border: #e2e8f0;
  --ok: #16a34a;
  --err: #dc2626;
  --price: #dc2626;
  --radius: 14px;
  --shadow: 0 2px 12px rgba(15, 23, 42, .06);
  --shadow-lg: 0 14px 40px rgba(15, 23, 42, .12);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
  background: var(--bg); color: var(--text); line-height: 1.75;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .15s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1500px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 900px; }
.inline-form { display: inline; }
.center { text-align: center; }
.mono { font-family: Consolas, "Courier New", monospace; }
.small { font-size: 14px; }
.muted { color: var(--muted); }

/* ---------------- 顶部信息条 ---------------- */
/* 深色底 + 近白文字，保证在深色背景上清晰可读（原先用中灰 #94a3b8，对比度偏低） */
.topbar { background: #0f172a; color: #e6edf9; font-size: 14.5px; }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; gap: 16px; height: 44px; }
.topbar b, .topbar strong { color: #fff; }
.topbar a { color: #fff; font-weight: 500; }
.topbar a:hover { color: #93c5fd; text-decoration: underline; }
.topbar-right { display: flex; gap: 18px; flex: 0 0 auto; white-space: nowrap; }
.topbar-right span { color: #dbe6f7; }
/* 顶部信息条左侧：企业 slogan 取代原服务热线位置 */
.topbar-slogan { color: #dbe6f7; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .hide-sm { display: inline; }

/* ---------------- 页头与导航 ---------------- */
.site-header {
  background: rgba(255, 255, 255, .96);
  backdrop-filter: saturate(150%) blur(8px);
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0; z-index: 100;
  transition: box-shadow .2s;
}
.site-header.scrolled { box-shadow: 0 6px 24px rgba(15, 23, 42, .08); }
.header-inner { display: flex; align-items: center; gap: 22px; height: 76px; }
.brand { display: flex; align-items: center; gap: 9px; font-size: 20px; font-weight: 700; color: var(--text); flex: 0 0 auto; }
.brand-logo { font-size: 22px; }
.brand-logo-img { display: block; height: 40px; width: auto; max-width: 200px; object-fit: contain; }
.brand-text { white-space: nowrap; }

/* 导航靠右：logo 独占左侧，导航与右侧工具区（在线留言 / 登录 / 注册）一起贴右 */
.nav { display: flex; align-items: center; gap: 4px; flex: 0 1 auto; min-width: 0; margin-left: auto; }
.nav-cell { position: relative; }
.nav-link {
  display: inline-flex; align-items: center; gap: 4px;
  color: var(--text); font-weight: 500; font-size: 16.5px;
  padding: 10px 16px; border-radius: 10px;
}
.nav-link:hover { background: var(--primary-light); color: var(--primary); }
.nav-link.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }
.nav-link .caret {
  width: 6px; height: 6px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg) translateY(-2px); transition: transform .2s; opacity: .7;
}
.nav-cell.has-kids:hover .caret { transform: rotate(-135deg) translateY(-1px); }
.nav-drop {
  position: absolute; top: 100%; left: 0; min-width: 176px;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  box-shadow: var(--shadow-lg); padding: 8px;
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: all .18s; z-index: 20;
}
.nav-cell.has-kids:hover .nav-drop { opacity: 1; visibility: visible; transform: translateY(0); }
.nav-drop a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--text); font-size: 15px; }
.nav-drop a:hover { background: var(--primary-light); color: var(--primary); }
.nav-drop a.is-active { background: var(--primary-light); color: var(--primary); font-weight: 600; }
/* 一级栏目处于当前状态时，下拉里的子项沿用高亮，避免出现「父亮子不亮」的断裂感 */
.nav-cell.is-active .nav-drop a { color: var(--text); font-weight: 400; }
.nav-cell.is-active .nav-drop a.is-active { color: var(--primary); font-weight: 600; }
.nav-mobile-tools { display: none; }
/* 右侧工具区：不再与导航之间画竖线（「在线留言」左侧的间隔线已按要求取消） */
.header-tools { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; margin-left: 16px; }
.nav-toggle { display: none; width: 42px; height: 38px; border: 1px solid var(--border); background: #fff; border-radius: 10px; cursor: pointer; padding: 9px 10px; }
.nav-toggle span { display: block; height: 2px; background: var(--text); border-radius: 2px; margin-bottom: 4px; transition: .2s; }
.nav-toggle span:last-child { margin-bottom: 0; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 1px solid transparent; border-radius: 9px; padding: 9px 18px;
  font-size: 15px; cursor: pointer; text-align: center; transition: all .16s;
  background: #eef2f7; color: var(--text); font-family: inherit; line-height: 1.5;
}
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(37, 99, 235, .28); }
.btn-ghost { background: transparent; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary); }
/* 顶部导航右侧「在线留言」：橙→红渐变底 + 反白字，作为页头唯一的主行动入口 */
.btn-msg { background: linear-gradient(135deg, #f97316, #ef4444); color: #fff; border-color: transparent; font-weight: 600; }
.btn-msg:hover { background: linear-gradient(135deg, #ea6a0c, #dc2626); color: #fff; transform: translateY(-1px); box-shadow: 0 8px 18px rgba(239, 68, 68, .28); }
.btn-outline { background: #fff; border-color: var(--primary); color: var(--primary); }
.btn-outline:hover { background: var(--primary-light); }
.btn-light { background: #fff; color: var(--primary); }
.btn-light:hover { background: #f1f5f9; color: var(--primary-dark); }
.btn-outline-light { background: rgba(255, 255, 255, .12); border-color: rgba(255, 255, 255, .75); color: #fff; }
.btn-outline-light:hover { background: rgba(255, 255, 255, .25); color: #fff; }
.btn-danger { background: #fee2e2; color: var(--err); }
.btn-danger:hover { background: #fecaca; }
.btn-lg { padding: 13px 30px; font-size: 16.5px; }
.btn-sm { padding: 5px 13px; font-size: 14px; }
.btn-block { display: flex; width: 100%; }

/* ---------------- 滚动轮播 ---------------- */
.carousel { position: relative; overflow: hidden; background: #0f172a; }
.carousel-track { position: relative; height: clamp(420px, 56vw, 560px); }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .8s ease, visibility .8s;
  background: linear-gradient(135deg, #0f2557 0%, #1d4ed8 55%, #3b82f6 100%);
  display: flex; align-items: center;
}
.slide.active { opacity: 1; visibility: visible; }
.slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: .55;
}
.slide::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(2, 6, 23, .72) 0%, rgba(2, 6, 23, .35) 55%, rgba(2, 6, 23, .1) 100%);
}
.slide-inner { position: relative; z-index: 2; color: #fff; width: 100%; }
.slide-inner.center { text-align: center; }
.slide-tag {
  display: inline-block; background: rgba(255, 255, 255, .16);
  border: 1px solid rgba(255, 255, 255, .28); color: #e0ecff;
  border-radius: 999px; padding: 5px 16px; font-size: 14px; margin-bottom: 16px;
  backdrop-filter: blur(4px);
}
.slide-title { font-size: clamp(31px, 4.6vw, 54px); line-height: 1.18; font-weight: 800; letter-spacing: -.5px; margin-bottom: 14px; }
.slide-desc { font-size: clamp(16px, 1.5vw, 19px); opacity: .92; max-width: 640px; margin-bottom: 28px; }
.slide-inner.center .slide-desc { margin-left: auto; margin-right: auto; }
.slide-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.slide-inner.center .slide-actions { justify-content: center; }
/* 入场动画：仅作用于当前激活的 slide */
.slide.active .slide-tag,
.slide.active .slide-title,
.slide.active .slide-desc,
.slide.active .slide-actions { animation: slideUp .7s both; }
.slide.active .slide-title { animation-delay: .08s; }
.slide.active .slide-desc { animation-delay: .16s; }
.slide.active .slide-actions { animation-delay: .24s; }
@keyframes slideUp { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: translateY(0); } }

.car-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .4); background: rgba(255, 255, 255, .12);
  color: #fff; font-size: 26px; line-height: 1; cursor: pointer; z-index: 3;
  backdrop-filter: blur(6px); transition: .18s;
}
.car-arrow:hover { background: rgba(255, 255, 255, .3); }
.car-arrow.prev { left: 22px; }
.car-arrow.next { right: 22px; }
.car-dots { position: absolute; bottom: 22px; left: 0; right: 0; display: flex; gap: 9px; justify-content: center; z-index: 3; }
.dot {
  width: 30px; height: 4px; border-radius: 999px; border: none; cursor: pointer;
  background: rgba(255, 255, 255, .4); transition: .25s; padding: 0;
}
.dot.active { background: #fff; width: 46px; }

/* ---------------- 数据条 ---------------- */
.stat-strip { background: #fff; border-bottom: 1px solid var(--border); }
.stat-strip-inner { display: grid; grid-template-columns: repeat(5, 1fr); text-align: center; padding: 26px 20px; gap: 14px; }
.stat-item b { display: block; font-size: clamp(24px, 3vw, 34px); font-weight: 800; color: var(--primary); letter-spacing: -.5px; }
.stat-item span { font-size: 15px; color: var(--muted); }

/* ---------------- 区块 ---------------- */
.section { padding: 66px 0; }
.section-alt { background: #fff; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 30px; flex-wrap: wrap; }
.sec-head.center { flex-direction: column; align-items: center; text-align: center; }
.sec-title { font-size: clamp(22px, 2.6vw, 30px); font-weight: 700; letter-spacing: -.4px; }
.sec-sub { color: var(--muted); font-size: 15.5px; margin-top: 6px; }
.more { font-size: 15px; white-space: nowrap; }
/* 首页客户案例区块底部的「查看全部案例」入口 */
.case-more { text-align: center; margin-top: 30px; }

/* 滚动进入动画 */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .3, 1); }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal, .reveal.in { opacity: 1; transform: none; transition: none; }
  .slide.active .slide-tag, .slide.active .slide-title, .slide.active .slide-desc, .slide.active .slide-actions { animation: none; }
}

/* ---------------- 服务分类 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.cat-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; color: var(--text); box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 10px; position: relative; overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.cat-card::before {
  content: ""; position: absolute; left: 0; top: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--primary), #60a5fa); transition: width .3s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: #c7dbfe; }
.cat-card:hover::before { width: 100%; }
.cat-card-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.cat-card h3 { font-size: 19px; }
.cat-num { font-size: 14px; color: var(--primary); background: var(--primary-light); border-radius: 999px; padding: 2px 10px; }
.cat-card p { color: var(--muted); font-size: 15px; flex: 1; }
.cat-more { font-size: 15px; font-weight: 600; }

/* ---------------- 服务卡片 ---------------- */
.card-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.p-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 9px;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.p-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); border-color: #c7dbfe; }
.p-cover { height: 150px; border-radius: 10px; background-size: cover; background-position: center; margin-bottom: 6px; }
.p-top { display: flex; justify-content: space-between; align-items: center; }
.p-ico { font-size: 32px; }
.p-badge { font-size: 13.5px; background: #fef3c7; color: #b45309; border-radius: 999px; padding: 2px 10px; }
.p-cat { color: var(--primary); font-size: 14px; font-weight: 600; }
.p-card h3 { font-size: 18px; line-height: 1.45; }
.p-card h3 a { color: var(--text); }
.p-card h3 a:hover { color: var(--primary); }
.p-sum { color: var(--muted); font-size: 15px; flex: 1; }
.p-tags { display: flex; gap: 6px; flex-wrap: wrap; }
.p-tags span { font-size: 13.5px; color: var(--muted); background: #f1f5f9; border-radius: 5px; padding: 2px 8px; }
/* 可点击的标签（详情页 / 标签页）：与纯文字标签区分开 */
.p-tags a { font-size: 13.5px; color: var(--primary); background: var(--primary-light); border-radius: 5px; padding: 2px 8px; text-decoration: none; }
.p-tags a:hover { background: var(--primary); color: #fff; }

/* ---------------- 标签（标签云 / 标签页） ---------------- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tag-chip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 14.5px; color: var(--text); text-decoration: none;
  background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 7px 14px;
  transition: border-color .16s, color .16s, box-shadow .16s;
}
.tag-chip:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); }
.tag-chip .cnt { font-size: 13.5px; color: var(--muted); background: #f1f5f9; border-radius: 999px; padding: 1px 7px; }
.tag-cloud-lg .tag-chip { font-size: 15.5px; padding: 9px 18px; }
.tag-rel { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.tag-rel h3 { font-size: 19px; margin-bottom: 14px; }
.tag-list .tag-row-icon { display: flex; align-items: center; justify-content: center; font-size: 30px; background: var(--primary-light); }
.d-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 16px 0 4px; }
.d-tags .d-tags-label { font-size: 14px; color: var(--muted); }
.p-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 6px; gap: 10px; }
.p-price { color: var(--price); font-weight: 700; font-size: 19px; }
.p-price small { color: var(--muted); font-weight: 400; font-size: 13.5px; margin-left: 2px; }
.p-price.big { font-size: 28px; }

/* ---------------- 服务流程 ---------------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: flow; }
.flow-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 26px 22px; position: relative; box-shadow: var(--shadow); transition: transform .2s; }
.flow-item:hover { transform: translateY(-4px); }
.flow-no { font-size: 14px; font-weight: 800; color: var(--primary); letter-spacing: 1px; }
.flow-item h3 { font-size: 18px; margin: 8px 0 8px; }
.flow-item p { font-size: 15px; color: var(--muted); }

/* ---------------- 优势 ---------------- */
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.why-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 22px; text-align: center; box-shadow: var(--shadow); transition: transform .2s, border-color .2s; }
.why-card:hover { transform: translateY(-4px); border-color: #c7dbfe; }
.why-ico { font-size: 34px; margin-bottom: 10px; }
.why-card h3 { font-size: 18px; margin-bottom: 8px; }
.why-card p { font-size: 15px; color: var(--muted); }

/* ---------------- 会员等级 ---------------- */
.level-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.level-card {
  background: #fff; border: 1px solid var(--border); border-top: 4px solid var(--lv-color, var(--primary));
  border-radius: var(--radius); padding: 26px 22px; text-align: center;
  display: flex; flex-direction: column; gap: 8px; box-shadow: var(--shadow);
  transition: transform .2s, box-shadow .2s;
}
.level-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.level-icon { font-size: 34px; }
.level-card h3 { font-size: 18px; }
.level-discount { font-size: 22px; font-weight: 800; color: var(--lv-color, var(--primary)); }
.level-card p { font-size: 14px; color: var(--muted); flex: 1; }
.level-threshold { font-size: 13.5px; color: #94a3b8; }

/* ---------------- 资讯卡片 / 列表 ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
/* 资讯分类可切换「卡片式」并指定每行个数（后台 → 资讯分类 → 前台列表样式） */
.news-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.news-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
.n-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; display: flex; flex-direction: column; gap: 9px; color: var(--text);
  box-shadow: var(--shadow); transition: transform .2s, border-color .2s, box-shadow .2s;
}
.n-card:hover { border-color: #c7dbfe; transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.n-cover { height: 130px; border-radius: 10px; background-size: cover; background-position: center; }
/* 客户案例封面统一 5:4（首页客户案例区块 + 案例栏目卡片式列表都用它） */
.n-cover.cover-54 { height: auto; aspect-ratio: 5 / 4; }
.n-cat { color: var(--primary); font-size: 13.5px; font-weight: 600; background: var(--primary-light); border-radius: 5px; padding: 2px 9px; width: fit-content; }
.n-card h3 { font-size: 16.5px; line-height: 1.5; }
.n-card p { color: var(--muted); font-size: 15px; flex: 1; }
.n-date, .n-meta { color: #94a3b8; font-size: 14px; display: flex; gap: 14px; flex-wrap: wrap; }
.news-list { display: flex; flex-direction: column; gap: 14px; }
.n-row {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  color: var(--text); display: flex; gap: 18px; padding: 20px 24px;
  box-shadow: var(--shadow); transition: border-color .2s, transform .2s;
}
.n-row:hover { border-color: #c7dbfe; transform: translateX(3px); }
.n-row-cover { flex: 0 0 168px; height: 108px; border-radius: 10px; background-size: cover; background-position: center; }
.n-row-body { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.n-row h3 { font-size: 18px; }
.n-row p { color: var(--muted); font-size: 15px; }

/* ---------------- CTA ---------------- */
.cta-section { background: linear-gradient(120deg, #0f2557 0%, #1d4ed8 60%, #2563eb 100%); color: #fff; }
.cta-inner { display: flex; justify-content: space-between; align-items: center; gap: 26px; flex-wrap: wrap; }
.cta-inner h2 { font-size: clamp(20px, 2.4vw, 28px); margin-bottom: 8px; }
.cta-inner p { opacity: .9; font-size: 15.5px; max-width: 620px; }
.cta-actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------------- 页头带 ---------------- */
.page-head-band { background: linear-gradient(120deg, #0f2557 0%, #1d4ed8 70%, #2563eb 100%); color: #fff; padding: 40px 0 42px; }
.page-head-band h1 { font-size: clamp(24px, 3vw, 34px); margin-top: 12px; }
.page-sum { opacity: .92; font-size: 15.5px; max-width: 780px; margin-top: 8px; }
/* 面包屑：默认按「浅底深字」渲染（文章详情 / 产品详情把它直接放在正文区顶部）。
   放在深色页头带 `.page-head-band` 里时用下面的覆盖规则反白 —— 早期只写了白色版本，
   导致这两处详情页的面包屑在浅色底上完全看不见。 */
.crumb { font-size: 14px; color: #475569; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.crumb a { color: var(--primary); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }
.crumb span { color: #94a3b8; }
/* 独立面包屑（不属于页头带）与正文之间留出呼吸感 */
.site-main > .wrap > .crumb { padding-top: 20px; }
.page-head-band .crumb { color: rgba(255, 255, 255, .82); }
.page-head-band .crumb a { color: rgba(255, 255, 255, .95); }
.page-head-band .crumb span { color: rgba(255, 255, 255, .72); }
.page-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.page-cover { border-radius: var(--radius); width: 100%; max-height: 380px; object-fit: cover; }
.page-content h2 { font-size: 21px; margin: 26px 0 10px; }
.page-content h3 { font-size: 19px; margin: 20px 0 8px; }
.page-content p { margin-bottom: 12px; }
.page-content ul { margin: 0 0 14px 22px; }
.page-content li { margin-bottom: 6px; }

/* ---------------- 详情页 ---------------- */
.detail-section { padding-top: 26px; }
.detail-grid { display: grid; grid-template-columns: 1fr 330px; gap: 30px; align-items: start; }
.d-head { display: flex; gap: 16px; align-items: center; margin-bottom: 16px; }
.d-ico { font-size: 40px; background: #fff; border: 1px solid var(--border); border-radius: 16px; width: 78px; height: 78px; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.d-head h1 { font-size: clamp(21px, 2.4vw, 27px); line-height: 1.35; }
.d-summary { font-size: 16px; color: #334155; background: var(--primary-light); border-left: 3px solid var(--primary); padding: 13px 16px; border-radius: 0 10px 10px 0; margin-bottom: 20px; }
.d-content { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px 32px; font-size: 17px; line-height: 1.95; }
.a-content { padding: 30px 32px; }
.a-title { font-size: clamp(22px, 2.8vw, 30px); margin: 12px 0 10px; line-height: 1.35; }
/* 详情页封面：不拉伸满宽（源图常只有 600px 宽，撑满正文栏等于放大 1.9 倍，又糊又占一屏），
   限高居中显示 —— 大图小图都收敛到同一视觉体量 */
.d-cover { display: block; margin: 0 auto 20px; width: auto; max-width: 100%; max-height: 480px; border-radius: var(--radius); }
.promise-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 18px; }
.promise { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 10px; text-align: center; font-size: 15px; color: #334155; }
.promise i { display: block; font-size: 21px; font-style: normal; margin-bottom: 4px; }
.inline-cta {
  margin-top: 20px; background: #fff; border: 1px dashed #bfdbfe; border-radius: var(--radius);
  padding: 20px 22px; display: flex; justify-content: space-between; align-items: center; gap: 18px; flex-wrap: wrap;
}
.inline-cta h3 { font-size: 17.5px; }

/* 详情页 上一篇/下一篇：内容下方并排两张卡，窄屏自动上下堆叠 */
.a-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 26px; }
.a-pager-item {
  display: flex; flex-direction: column; gap: 5px; min-width: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  padding: 14px 18px; color: var(--text); box-shadow: var(--shadow);
}
.a-pager-item.a-pager-next { text-align: right; }
.a-pager-item:hover { border-color: var(--primary); color: var(--primary); }
.a-pager-item.is-empty { color: #94a3b8; background: #f8fafc; box-shadow: none; }
.a-pager-label { font-size: 13.5px; color: #94a3b8; }
.a-pager-item:hover .a-pager-label { color: var(--primary); }
.a-pager-title {
  font-size: 15.5px; line-height: 1.5; color: inherit;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.a-pager-next .a-pager-title { text-align: right; }
.side-box h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.side-box-more { font-size: 13.5px; font-weight: 400; color: var(--primary); }
@media (max-width: 720px) { .a-pager { grid-template-columns: 1fr; } .a-pager-item.a-pager-next { text-align: left; } .a-pager-next .a-pager-title { text-align: left; } }
.buy-box, .side-box, .panel-like { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; margin-bottom: 18px; box-shadow: var(--shadow); }
.buy-box .btn { margin-top: 12px; }
.member-price { color: var(--price); font-size: 15px; margin-top: 6px; }
.member-price b { font-size: 18px; }
.side-box h3 { font-size: 16.5px; margin-bottom: 12px; }
.side-list { list-style: none; }
.side-list li { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px dashed var(--border); font-size: 15px; }
.side-list li:last-child { border-bottom: none; }
.side-list time { color: #94a3b8; white-space: nowrap; }
.side-box.cta p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.side-box .btn + .btn { margin-top: 8px; }

/* ---------------- 筛选与搜索 ---------------- */
.filter-bar { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.cat-filter { display: flex; flex-wrap: wrap; gap: 9px; }
.cat-item { background: #fff; border: 1px solid var(--border); border-radius: 999px; padding: 6px 18px; color: var(--text); font-size: 15px; }
.cat-item.active, .cat-item:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.list-search { display: flex; gap: 8px; }
.list-search input { border: 1px solid var(--border); border-radius: 9px; padding: 8px 14px; font-size: 15px; font-family: inherit; min-width: 200px; }
.list-search input:focus { outline: 2px solid #bfdbfe; border-color: var(--primary); }
.result-hint { margin-bottom: 18px; }

/* ---------------- 表单 ---------------- */
.form-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-title { font-size: 20px; margin-bottom: 8px; }
.form-row { margin-bottom: 16px; }
.form-row label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.form-row input, .form-row textarea, .form-row select {
  width: 100%; border: 1px solid var(--border); border-radius: 9px; padding: 11px 13px;
  font-size: 15px; font-family: inherit; background: #fff; color: var(--text); transition: .15s;
}
.form-row input:focus, .form-row textarea:focus, .form-row select:focus { outline: 2px solid #bfdbfe; border-color: var(--primary); }
.form-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 18px; }
.form-hint, .form-row .form-hint { color: #94a3b8; font-size: 14px; margin-top: 5px; display: block; }
.hp-field { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.msg-form .form-foot { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 6px; }
.code-row { display: flex; gap: 10px; align-items: flex-end; flex-wrap: wrap; }
.code-row input { flex: 1; min-width: 120px; }
.auth-wrap { display: flex; justify-content: center; padding: 36px 0; }
.auth-card { width: 430px; max-width: 100%; }
.auth-card h1 { font-size: 22px; margin-bottom: 18px; text-align: center; }
.divider { text-align: center; color: var(--muted); font-size: 14px; margin: 22px 0 14px; position: relative; }
.divider::before, .divider::after { content: ""; position: absolute; top: 50%; width: 34%; border-top: 1px solid var(--border); }
.divider::before { left: 0; }
.divider::after { right: 0; }
.oauth-row { display: flex; flex-direction: column; gap: 10px; }
.oauth-hint { font-size: 14px; color: #94a3b8; text-align: center; margin-top: 10px; }

/* ---------------- 注册邮箱认证 ---------------- */
/* 登录页的「重新发送认证邮件」折叠区（用原生 details，不依赖 JS，也不踩 [hidden] 被覆盖的坑） */
.resend-box { margin-top: 16px; border: 1px solid var(--border); border-radius: 10px; padding: 0 14px; background: #f8fafc; }
.resend-box > summary {
  cursor: pointer; list-style: none; padding: 12px 0; font-size: 15px;
  color: var(--primary); font-weight: 500; text-align: center;
}
.resend-box > summary::-webkit-details-marker { display: none; }
.resend-box > summary::after { content: " ▾"; font-size: 14px; }
.resend-box[open] > summary::after { content: " ▴"; }
.resend-box > form { padding-bottom: 4px; }
.resend-box > .oauth-hint { margin: 0 0 12px; }
/* 认证结果页的大图标 */
.verify-icon {
  width: 62px; height: 62px; margin: 0 auto 14px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 32px; font-weight: 700; line-height: 1;
}
.verify-icon.ok { background: #dcfce7; color: #16a34a; }
.verify-icon.bad { background: #fee2e2; color: #dc2626; }
.order-product { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; padding: 14px; background: #f8fafc; border-radius: 10px; }
.order-total {
  background: #f8fafc; border: 1px dashed var(--border); border-radius: 10px;
  padding: 12px 14px; margin-bottom: 16px; font-size: 15px;
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.order-total b { color: var(--price); font-size: 19px; }

/* ---------------- 提示 / 徽标 ---------------- */
.alert { padding: 13px 16px; border-radius: 10px; margin: 0 0 16px; font-size: 15px; }
.alert-ok { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }
.alert-error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.badge { display: inline-block; padding: 2px 10px; border-radius: 999px; font-size: 13.5px; background: #eef2f7; }
.st0 { background: #fef9c3; color: #854d0e; }
.st1 { background: #dbeafe; color: #1e40af; }
.st2 { background: #cffafe; color: #155e75; }
.st3 { background: #dcfce7; color: #166534; }
.st4 { background: #fee2e2; color: #991b1b; }

/* ---------------- 表格 / 分页 / 空态 ---------------- */
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 13px 14px; border-bottom: 1px solid var(--border); text-align: left; font-size: 15px; vertical-align: middle; }
.table th { background: #f8fafc; font-weight: 600; font-size: 14px; color: var(--muted); }
.ops { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.pagination { display: flex; gap: 8px; margin-top: 28px; flex-wrap: wrap; align-items: center; }
.pagination a, .pg-cur { border: 1px solid var(--border); background: #fff; border-radius: 8px; padding: 7px 15px; font-size: 15px; color: var(--text); }
.pagination a:hover { border-color: var(--primary); color: var(--primary); }
.pg-cur { background: var(--primary); color: #fff; border-color: var(--primary); }
/* 分组跳转（首页 / [<<] / [>>] / 末页）：比页码略轻，避免抢视觉 */
.pagination .pg-jump { padding: 7px 12px; color: var(--muted); font-size: 14px; }
.pagination .pg-jump:hover { color: var(--primary); }
.pg-info { margin-left: auto; font-size: 13.5px; color: #94a3b8; }
.empty { text-align: center; color: var(--muted); padding: 54px 20px; }
.empty .btn { margin-top: 14px; }
.empty-page { text-align: center; padding: 90px 20px; }
.empty-ico { font-size: 54px; margin-bottom: 12px; }
.empty-page h1 { font-size: 24px; margin-bottom: 8px; }

/* ---------------- 常见问题 ---------------- */
.faq-list { display: flex; flex-direction: column; gap: 10px; }
.faq { background: #fff; border: 1px solid var(--border); border-radius: 10px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 600; font-size: 15.5px; }
.faq p { color: var(--muted); font-size: 15px; margin-top: 8px; }

/* ---------------- 会员中心 ---------------- */
.member-grid { display: grid; grid-template-columns: 1fr 340px; gap: 26px; align-items: start; }
.member-side .form-card { margin-bottom: 16px; padding: 22px; }
.member-side h3 { font-size: 16.5px; margin-bottom: 12px; }
.member-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.avatar { width: 58px; height: 58px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 26px; }
.member-stat { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 16px; margin-bottom: 18px; text-align: center; }

/* 会员中心：左侧导航 + 右侧内容（左侧固定，右侧自适应，避免表格被挤扁） */
.member-section { padding: 30px 0 60px; }
.member-layout { display: grid; grid-template-columns: 252px minmax(0, 1fr); gap: 26px; align-items: start; }
.member-nav { position: sticky; top: 96px; }
.member-nav-card {
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); overflow: hidden;
}
.member-nav-user { display: flex; align-items: center; gap: 12px; padding: 18px 18px 16px; border-bottom: 1px solid var(--border); background: linear-gradient(135deg, #eff6ff, #fff); }
.mn-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary-light); display: flex; align-items: center; justify-content: center; font-size: 20px; flex: 0 0 auto; }
.mn-meta { min-width: 0; display: flex; flex-direction: column; }
.mn-meta b { font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mn-meta span { font-size: 13.5px; color: var(--muted); }
.member-menu { display: flex; flex-direction: column; padding: 8px; }
.mm-item {
  display: flex; align-items: center; gap: 10px; position: relative;
  padding: 11px 12px; border-radius: 10px; font-size: 15.5px; color: var(--text); font-weight: 500;
}
.mm-item i { font-style: normal; font-size: 17px; width: 20px; text-align: center; }
.mm-item:hover { background: #f1f5f9; color: var(--primary); }
.mm-item.active { background: var(--primary); color: #fff; font-weight: 600; }
.mm-item.active:hover { color: #fff; }
.mm-dot {
  margin-left: auto; font-style: normal; min-width: 20px; height: 20px; padding: 0 6px;
  background: var(--err); color: #fff; border-radius: 999px; font-size: 13.5px; font-weight: 700;
  display: inline-flex; align-items: center; justify-content: center;
}
.mm-num { margin-left: auto; font-style: normal; font-size: 13.5px; color: var(--muted); }
.mm-item.active .mm-num { color: #fff; }
.member-nav-cta {
  display: block; margin: 2px 12px 12px; padding: 11px 14px; border-radius: 10px;
  background: #fff7ed; border: 1px solid #fed7aa; color: #9a3412; font-size: 14px; line-height: 1.6;
}
.member-nav-cta b { color: var(--err); font-size: 16px; }
.member-nav-exit { padding: 0 12px 14px; }
.member-nav-back { display: inline-block; margin-top: 12px; margin-left: 4px; font-size: 14.5px; color: var(--muted); }
.member-nav-back:hover { color: var(--primary); }

.member-content { min-width: 0; }
.member-content .form-card { max-width: 620px; }
.member-content .sec-title:first-child { margin-top: 0; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border-radius: var(--radius); }
.member-orders { min-width: 880px; }
.row-ops { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.msg-list { display: flex; flex-direction: column; gap: 12px; }
.msg-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.msg-item header { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 10px; }
.msg-item header b { font-size: 16.5px; }
.msg-item header time { margin-left: auto; }
.msg-body { font-size: 15px; color: #334155; }
.msg-reply { margin-top: 14px; padding: 12px 15px; background: #f0fdf4; border: 1px solid #bbf7d0; border-radius: 10px; }
.msg-reply b { font-size: 14.5px; color: #166534; display: block; margin-bottom: 4px; }
.msg-reply p { font-size: 15px; color: #14532d; }
.member-content .bank-pre { font-family: inherit; font-size: 15px; white-space: pre-wrap; word-break: break-all; line-height: 1.9; }
/* 订单筛选按钮组 */
.order-filter { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.of-btn {
  font-family: inherit; font-size: 14.5px; padding: 8px 16px; border-radius: 999px; cursor: pointer;
  background: #fff; border: 1px solid var(--border); color: var(--muted); transition: .15s;
}
.of-btn:hover { border-color: var(--primary); color: var(--primary); }
.of-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; font-weight: 600; }
/* 等级进度 */
.level-progress { margin-bottom: 20px; }
.lp-head { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 15px; margin-bottom: 10px; }
.lp-bar { height: 10px; border-radius: 999px; background: #eef2f7; overflow: hidden; }
.lp-bar i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #60a5fa, var(--primary)); transition: width .5s; }
.member-stat b { display: block; font-size: 21px; color: var(--primary); }
.member-stat span { font-size: 14px; color: var(--muted); }

/* ---------------- 页脚 ---------------- */
.site-footer { background: #0f172a; color: #94a3b8; margin-top: 0; padding: 52px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 32px; padding-bottom: 32px; }
.foot-col { display: flex; flex-direction: column; gap: 9px; font-size: 15px; }
.foot-col h4 { color: #fff; font-size: 16px; margin-bottom: 4px; }
.foot-col a { color: #94a3b8; }
.foot-col a:hover { color: #fff; }
.footer-brand { color: #fff; font-size: 19px; font-weight: 700; display: flex; align-items: center; gap: 9px; }
.footer-logo { height: 38px; width: auto; max-width: 200px; object-fit: contain; }
.foot-desc { font-size: 15px; line-height: 1.75; }
.foot-line { font-size: 15px; }
.footer-copy { border-top: 1px solid #1e293b; padding: 18px 20px; font-size: 14px; display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.footer-copy a { color: #94a3b8; }
.foot-sep { opacity: .5; }

/* 页脚二维码：深色页脚上必须留白底，否则二维码无法识别 */
.foot-qr { margin-top: 6px; }
.foot-qr-box {
  width: 132px; height: 132px; padding: 8px; background: #fff;
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 18px rgba(0, 0, 0, .28);
}
.foot-qr-box img { width: 116px; height: 116px; object-fit: contain; }
.foot-qr-box svg { width: 116px; height: 116px; display: block; }
.foot-qr-tip { font-size: 13.5px; color: #cbd5e1; margin-top: 8px; text-align: center; width: 132px; }

/* ---------------- 回到顶部 ---------------- */

/* ---------------- 浮动客服条 ---------------- */
.cs-widget {
  position: fixed; right: 22px; top: 50%; transform: translateY(-50%); z-index: 92;
  display: flex; flex-direction: column; gap: 9px;
}
.cs-main { display: none; }
.cs-list { display: flex; flex-direction: column; gap: 9px; }
.cs-item { position: relative; }
.cs-btn {
  display: flex; align-items: center; gap: 9px; width: 128px;
  padding: 11px 13px; font-family: inherit; font-size: 14.5px; text-align: left;
  background: #fff; border: 1px solid var(--border); border-radius: 12px;
  color: var(--text); cursor: pointer; box-shadow: var(--shadow);
  transition: background .18s, color .18s, transform .18s, border-color .18s;
}
.cs-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateX(-3px); }
.cs-btn i { font-style: normal; font-size: 19px; line-height: 1; flex: 0 0 auto; }
.cs-btn .cs-txt { flex: 1; white-space: nowrap; }
.cs-item.open > .cs-btn { background: var(--primary); border-color: var(--primary); color: #fff; }

.cs-pop {
  position: absolute; right: calc(100% + 12px); top: 0; width: 264px;
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 18px 16px; text-align: center;
  opacity: 0; visibility: hidden; transform: translateX(8px);
  transition: opacity .18s, transform .18s, visibility .18s;
}
.cs-item:hover .cs-pop, .cs-item.open .cs-pop { opacity: 1; visibility: visible; transform: none; }
.cs-pop h5 { font-size: 15.5px; margin-bottom: 10px; }
.cs-pop p { font-size: 14px; color: var(--muted); }
.cs-pop .cs-val { font-size: 17px; font-weight: 700; color: var(--text); display: block; margin: 4px 0; word-break: break-all; }
.cs-pop .cs-note { font-size: 13.5px; color: var(--muted); margin-top: 8px; }
.cs-qr {
  width: 172px; height: 172px; margin: 0 auto 10px; padding: 6px; background: #fff;
  border: 1px solid var(--border); border-radius: 12px; object-fit: contain;
}
/* 未上传微信二维码时的兜底：自动生成的站点二维码是内联 SVG，套一个同尺寸容器 */
.cs-qr-svg { display: flex; align-items: center; justify-content: center; }
.cs-qr-svg svg { width: 100%; height: 100%; display: block; }
.cs-pop-ops { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.cs-copy {
  display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-family: inherit;
  background: var(--primary-light); color: var(--primary); border: 1px solid transparent;
  border-radius: 9px; padding: 8px 14px; font-size: 14px; transition: .16s;
}
.cs-copy:hover { background: var(--primary); color: #fff; }
.cs-copy.done { background: #dcfce7; color: #15803d; }

/* 中等宽度：收起文字只留图标，减少对正文的遮挡 */
@media (max-width: 1399px) and (min-width: 901px) {
  .cs-btn { width: 46px; height: 46px; padding: 0; justify-content: center; gap: 0; border-radius: 12px; }
  .cs-btn .cs-txt { display: none; }
  .cs-btn i { font-size: 20px; }
}

.back-top {
  position: fixed; right: 20px; bottom: 26px; z-index: 95;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid var(--border);
  background: #fff; color: var(--primary); font-size: 21px; cursor: pointer;
  box-shadow: var(--shadow-lg); opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: .25s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }

/* =============================================================
   在线支付：收银台 / 结果页
   ============================================================= */
.pay-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 26px; align-items: start; }
.pay-main { min-width: 0; }
.pay-side { min-width: 0; }
.side-h { font-size: 16.5px; margin-bottom: 14px; }

/* 支付方式切换 */
.pay-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 16px; }
.pay-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 20px; border-radius: 12px; font-size: 16px; font-weight: 600;
  background: #fff; border: 1px solid var(--border); color: var(--text);
  box-shadow: var(--shadow); transition: .16s;
}
.pay-tab i { font-style: normal; }
.pay-tab:hover { border-color: var(--primary); color: var(--primary); }
.pay-tab.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.pay-tab.active:hover { color: #fff; }
.pay-tab.disabled { opacity: .6; }
.pay-tab-tip {
  font-style: normal; font-size: 13.5px; font-weight: 500;
  background: #fef3c7; color: #92400e; border-radius: 999px; padding: 1px 8px;
}
.pay-tab.active .pay-tab-tip { background: rgba(255, 255, 255, .26); color: #fff; }

.pay-card { padding: 28px; }
.pay-card-title { font-size: 20px; margin-bottom: 20px; }

/* 二维码区 */
.qr-stage { display: grid; grid-template-columns: 264px minmax(0, 1fr); gap: 28px; align-items: center; }
.qr-box {
  position: relative; width: 264px; height: 264px; padding: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow); display: flex; align-items: center; justify-content: center;
}
.qr-box img { width: 240px; height: 240px; }
.qr-mask {
  position: absolute; inset: 0; border-radius: 16px;
  background: rgba(255, 255, 255, .94); backdrop-filter: blur(2px);
  display: flex; align-items: center; justify-content: center; text-align: center;
}
.qr-mask-inner { font-size: 15px; color: var(--muted); line-height: 1.9; }
.qr-side { min-width: 0; }
.qr-amount { font-size: 17px; color: var(--muted); }
.qr-amount b { font-size: 34px; color: var(--price); font-weight: 700; letter-spacing: -.5px; }
.qr-steps { list-style: none; counter-reset: qs; margin: 14px 0 16px; }
.qr-steps li {
  counter-increment: qs; position: relative; padding-left: 30px;
  font-size: 15px; color: var(--muted); line-height: 2.1;
}
.qr-steps li::before {
  content: counter(qs); position: absolute; left: 0; top: 5px;
  width: 20px; height: 20px; border-radius: 50%; background: var(--primary-light);
  color: var(--primary); font-size: 13.5px; font-weight: 700;
  display: flex; align-items: center; justify-content: center; line-height: 1;
}
.qr-status {
  display: inline-flex; align-items: center; gap: 9px;
  background: #f8fafc; border: 1px solid var(--border); border-radius: 10px;
  padding: 9px 15px; font-size: 15px; font-weight: 600; color: #475569; margin-bottom: 10px;
}
.qr-status .dot {
  width: 9px; height: 9px; border-radius: 50%; background: #94a3b8;
  animation: payDot 1.4s ease-in-out infinite;
}
.qr-status[data-state="paid"] { background: #f0fdf4; border-color: #bbf7d0; color: #166534; }
.qr-status[data-state="paid"] .dot { background: var(--ok); animation: none; }
.qr-status[data-state="closed"], .qr-status[data-state="expired"] { background: #fef2f2; border-color: #fecaca; color: #991b1b; }
.qr-status[data-state="closed"] .dot, .qr-status[data-state="expired"] .dot { background: var(--err); animation: none; }
.qr-side .btn + .btn { margin-top: 8px; }
@keyframes payDot { 0%, 100% { opacity: 1; } 50% { opacity: .28; } }

.pay-ops {
  display: flex; flex-wrap: wrap; gap: 14px; align-items: center;
  margin-top: 24px; padding-top: 18px; border-top: 1px dashed var(--border);
}
.pay-note { font-size: 14.5px; color: var(--muted); background: #f8fafc; border-radius: 10px; padding: 12px 15px; margin-top: 16px; }
.cfg-issues { list-style: none; margin: 14px 0 18px; }
.cfg-issues li {
  position: relative; padding: 8px 12px 8px 30px; font-size: 14.5px; color: #92400e;
  background: #fffbeb; border: 1px solid #fde68a; border-radius: 9px; margin-bottom: 8px;
}
.cfg-issues li::before { content: "⚠"; position: absolute; left: 10px; top: 8px; }

/* 对公转账信息 */
.bank-box { background: #f8fafc; border: 1px solid var(--border); border-radius: 12px; padding: 18px 20px; }
.bank-line { display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px; align-items: start; padding: 9px 0; border-bottom: 1px dashed var(--border); }
.bank-line:last-child { border-bottom: none; }
.bank-line > span:first-child { color: var(--muted); font-size: 15px; }
.bank-line pre { font-family: inherit; font-size: 15.5px; white-space: pre-wrap; word-break: break-all; line-height: 1.9; }
.pay-amount { color: var(--price); font-size: 20px; }

/* 下单页支付方式选择 */
.pay-picker { display: grid; gap: 10px; }
.pay-opt { display: block; cursor: pointer; }
.pay-opt input { position: absolute; opacity: 0; width: 0; height: 0; }
.pay-opt-body {
  display: flex; align-items: center; gap: 12px; flex-wrap: wrap;
  padding: 14px 16px; border: 1.5px solid var(--border); border-radius: 12px;
  background: #fff; transition: .16s;
}
.pay-opt-body i { font-style: normal; font-size: 22px; }
.pay-opt-body b { font-size: 16px; }
.pay-opt-body em { font-style: normal; font-size: 14px; color: var(--muted); flex: 1 1 200px; }
.pay-opt:hover .pay-opt-body { border-color: #bfdbfe; }
.pay-opt input:checked + .pay-opt-body { border-color: var(--primary); background: var(--primary-light); }
.pay-opt input:focus-visible + .pay-opt-body { outline: 2px solid var(--primary); outline-offset: 2px; }
.pay-opt input:checked + .pay-opt-body::after {
  content: "✓"; margin-left: auto; color: var(--primary); font-weight: 700; font-size: 17px;
}

/* 支付结果页 */
.pay-result-section { padding: 56px 0 70px; }
.pay-result { text-align: center; padding: 40px 32px; }
.pay-result-ico { font-size: 58px; line-height: 1; margin-bottom: 14px; }
.pay-result h1 { font-size: 26px; margin-bottom: 10px; }
.pay-result.is-ok h1 { color: #166534; }
.pay-result.is-wait h1 { color: #92400e; }
.pay-result-amount { font-size: 17px; color: var(--muted); margin: 20px 0 24px; }
.pay-result-amount b { font-size: 36px; color: var(--price); font-weight: 700; }
.pay-result-list { text-align: left; background: #f8fafc; border-radius: 12px; padding: 8px 18px; }
.pay-result-list li { font-size: 15px; }
.pay-result-ops { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 26px; }

/* =============================================================
   响应式
   ============================================================= */
@media (max-width: 1080px) {
  .card-grid, .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid, .news-grid.cols-3, .news-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  .flow-grid, .why-grid, .level-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pay-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .detail-grid, .page-wrap, .member-grid { grid-template-columns: 1fr; }
  /* 会员中心：左栏变成顶部横向可滑动的标签条
     （列必须 minmax(0,1fr)：1fr 的隐式最小尺寸是 auto，
      横滑菜单的固有宽度会把整页撑到 800px+，手机上出现左右空白） */
  .member-layout { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .member-nav { position: static; min-width: 0; }
  .member-nav-card, .member-content { min-width: 0; }
  .member-nav-card { overflow: visible; }
  .member-nav-user { padding: 14px 16px; }
  .member-menu {
    flex-direction: row; overflow-x: auto; gap: 6px; padding: 10px 12px;
    scrollbar-width: none; -webkit-overflow-scrolling: touch;
  }
  .member-menu::-webkit-scrollbar { display: none; }
  .mm-item { flex: 0 0 auto; white-space: nowrap; padding: 9px 14px; font-size: 15px; background: #f8fafc; }
  .mm-item i { font-size: 16px; width: auto; }
  .member-nav-cta { margin: 0 12px 12px; }
  .member-nav-exit { padding: 0 12px 12px; }
  .member-nav-back { margin: 0 0 0 4px; }
  .stat-strip-inner { grid-template-columns: repeat(3, 1fr); row-gap: 20px; }
  .promise-row { grid-template-columns: repeat(2, 1fr); }
  .topbar .hide-sm, .header-tools .hide-sm { display: none; }
  .header-inner { height: 62px; gap: 12px; }
  /* 汉堡按钮靠右，不再紧贴 logo */
  .nav-toggle { display: block; margin-left: auto; flex: 0 0 auto; }
  .header-tools { display: none; }

  /* 移动端抽屉导航 */
  .nav {
    position: fixed; inset: 62px 0 auto 0;
    flex-direction: column; align-items: stretch; gap: 2px;
    background: #fff; border-bottom: 1px solid var(--border);
    padding: 12px 16px 20px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, .16);
    transform: translateY(-12px); opacity: 0; visibility: hidden;
    transition: .22s; max-height: calc(100vh - 62px); overflow-y: auto;
  }
  .nav-open .nav { transform: none; opacity: 1; visibility: visible; }
  .nav-link { width: 100%; justify-content: space-between; padding: 12px 12px; font-size: 16.5px; }
  .nav-drop {
    position: static; opacity: 1; visibility: visible; transform: none;
    box-shadow: none; border: none; padding: 0 0 6px 14px; background: transparent;
  }
  .nav-drop a { padding: 10px 12px; font-size: 15.5px; color: var(--muted); }
  .nav-mobile-tools { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; padding-top: 14px; border-top: 1px dashed var(--border); }
  /* 浮动客服：移动端收为圆形按钮，点开后向上展开（底部导航已移除，贴右下角即可） */
  .cs-widget { right: 14px; top: auto; bottom: 88px; transform: none; align-items: flex-end; }
  .cs-main {
    display: flex; align-items: center; justify-content: center;
    width: 52px; height: 52px; padding: 0; border: none; border-radius: 50%;
    background: var(--primary); color: #fff; font-family: inherit;
    box-shadow: var(--shadow-lg); cursor: pointer;
  }
  .cs-main i { font-style: normal; font-size: 22px; }
  .cs-main .cs-label { display: none; }
  .cs-list { position: absolute; right: 0; bottom: calc(100% + 10px); display: none; }
  .cs-widget.open .cs-list { display: flex; }
  .cs-btn { width: auto; min-width: 158px; transform: none; }
  .cs-btn:hover { transform: none; }
  .cs-item:hover .cs-pop { opacity: 0; visibility: hidden; transform: translateY(8px); }
  .cs-pop { position: fixed; left: 14px; right: 14px; top: auto; bottom: 154px; width: auto; transform: translateY(8px); }
  .cs-item.open .cs-pop { opacity: 1; visibility: visible; transform: none; }

  .back-top { bottom: 26px; right: 14px; }
}
@media (max-width: 760px) {
  /* 会员中心：订单 / 权益表转卡片（每行一张卡，字段名由 data-label 提供） */
  .table-card, table.member-orders { min-width: 0; }  /* 覆盖 .member-orders 的桌面横滚宽度 */
  .table-card { background: transparent; border: none; }
  .table-card thead { display: none; }
  .table-card, .table-card tbody { display: block; }
  .table-card tr {
    display: block; background: #fff; border: 1px solid var(--border);
    border-radius: 12px; padding: 4px 14px; margin-bottom: 12px;
  }
  .table-card tbody tr:hover td { background: transparent; }
  .table-card td {
    display: flex; align-items: center; justify-content: space-between; gap: 14px;
    padding: 9px 0; border-bottom: 1px dashed var(--border); text-align: right;
  }
  .table-card td::before {
    content: attr(data-label);
    flex: 0 0 auto; text-align: left;
    color: var(--muted); font-size: 13.5px;
  }
  .table-card td:last-child { border-bottom: none; }
  .table-card td .row-ops { justify-content: flex-end; }
  .table-card td .btn { flex: 0 0 auto; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .section { padding: 46px 0; }
  .card-grid, .cat-grid, .news-grid, .news-grid.cols-3, .news-grid.cols-4, .flow-grid, .why-grid, .level-grid { grid-template-columns: 1fr; }
  .topbar-right { display: none; }
  .stat-strip-inner { grid-template-columns: repeat(2, 1fr); }
  .carousel-track { height: clamp(360px, 84vw, 440px); }
  .car-arrow { display: none; }
  .slide-actions .btn { width: 100%; }
  .n-row { flex-direction: column; padding: 16px; }
  .n-row-cover { flex: none; width: 100%; height: 150px; }
  .form-grid2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .d-content, .a-content { padding: 20px; }
  .form-card { padding: 20px; }
  .member-stat { grid-template-columns: 1fr 1fr; }
  .qr-stage { grid-template-columns: 1fr; gap: 20px; justify-items: center; }
  .qr-side { width: 100%; }
  .qr-side .btn { width: 100%; }
  .qr-amount b { font-size: 30px; }
  .bank-line { grid-template-columns: 1fr; gap: 2px; }
  .pay-result { padding: 32px 20px; }
  .pay-result-amount b { font-size: 30px; }
  .pay-opt-body em { flex: 1 1 100%; }
}

/* =============================================================
   服务项目页（地区 × 关键词）· 地区落地页 · 详情页服务入口
   ============================================================= */
.svc-block { margin-bottom: 30px; }
.svc-block:last-child { margin-bottom: 0; }
.svc-h2 { font-size: 22px; margin-bottom: 10px; letter-spacing: -.3px; }
.svc-h3 { font-size: 18px; margin-bottom: 8px; }
.svc-block .d-content { color: #334155; }
.svc-points { list-style: none; margin-top: 12px; display: grid; gap: 10px; }
.svc-points li { position: relative; padding-left: 22px; font-size: 15.5px; color: #334155; }
.svc-points li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--primary); font-weight: 700; }
.svc-points li b { color: var(--text); }

.svc-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.svc-chip { font-size: 14px; padding: 5px 12px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); }
.svc-chip:hover { border-color: var(--primary); color: var(--primary); background: var(--primary-light); }

.svc-steps { list-style: none; counter-reset: s; }
.svc-steps li { counter-increment: s; position: relative; padding: 7px 0 7px 30px; font-size: 14.5px; color: #475569; border-bottom: 1px dashed var(--border); }
.svc-steps li:last-child { border-bottom: none; }
.svc-steps li::before {
  content: counter(s); position: absolute; left: 0; top: 9px;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--primary-light); color: var(--primary-dark);
  font-size: 13.5px; line-height: 20px; text-align: center; font-weight: 700;
}

.svc-linkgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(178px, 1fr)); gap: 10px; }
.svc-link { display: block; padding: 11px 14px; border: 1px solid var(--border); border-radius: 10px; background: #fff; font-size: 14.5px; color: var(--text); text-align: center; }
.svc-link:hover { border-color: var(--primary); color: var(--primary); box-shadow: var(--shadow); transform: translateY(-2px); }

/* 产品 / 文章详情页内嵌的「地区 × 关键词」服务入口 */
.svc-entry {
  background: linear-gradient(120deg, #0f2557 0%, #1d4ed8 100%);
  border-radius: var(--radius); padding: 26px 28px; color: #fff; margin: 30px 0 0;
}
.svc-entry h3 { font-size: 19px; margin-bottom: 6px; }
.svc-entry p { font-size: 14.5px; color: rgba(255, 255, 255, .82); margin-bottom: 16px; }
.svc-entry-links { display: flex; flex-wrap: wrap; gap: 10px; }
.svc-entry-links a {
  display: inline-block; padding: 9px 15px; border-radius: 9px;
  background: rgba(255, 255, 255, .14); border: 1px solid rgba(255, 255, 255, .24);
  color: #fff; font-size: 14.5px;
}
.svc-entry-links a:hover { background: #fff; color: var(--primary-dark); border-color: #fff; }

@media (max-width: 640px) {
  .svc-h2 { font-size: 19px; }
  .svc-entry { padding: 20px 18px; }
  .svc-entry-links a { flex: 1 1 calc(50% - 10px); text-align: center; }
  .svc-linkgrid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}

/* 详情页服务入口区：紧贴上方的详情区块，避免两个 section 叠加出现过大留白 */
.svc-entry-section { padding: 56px 0 0; }

/* ---------------- 图形验证码（前台 / 后台共用） ---------------- */
.captcha-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.captcha-row input[type="text"] { max-width: 160px; }
.captcha-img {
  height: 42px; width: 132px; display: block;
  border: 1px solid var(--border); border-radius: 8px; background: #fff;
  cursor: pointer; object-fit: contain;
}
.captcha-tip { font-size: 13.5px; color: var(--muted); }

/* 后台登录页 LOGO */
.login-logo { height: 40px; width: auto; max-width: 200px; object-fit: contain; vertical-align: -10px; margin-right: 8px; }

/* ---------------- 页脚友情链接 ---------------- */
.footer-links {
  display: flex; align-items: baseline; gap: 6px 14px; flex-wrap: wrap;
  padding: 16px 20px 0; font-size: 14px;
}
.footer-links .fl-label { color: #cbd5e1; font-weight: 600; }
.footer-links a { color: #94a3b8; }
.footer-links a:hover { color: #fff; }
