/* ============================================================
 * 爱百搜 · 全局样式（深蓝科技风）
 * ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --bg-deep: #061229;
  --bg-dark: #0a1c3a;
  --bg-card: #0e2547;
  --bg-card-2: #102a52;
  --bg-glass: rgba(10, 28, 58, 0.72);
  --line: rgba(120, 170, 255, 0.16);
  --line-strong: rgba(120, 170, 255, 0.35);

  --primary: #2f80ed;
  --primary-2: #00d4ff;
  --accent: #4f9bff;
  --grad-brand: linear-gradient(120deg, #2f80ed 0%, #00d4ff 100%);
  --grad-brand-soft: linear-gradient(120deg, rgba(47,128,237,0.18), rgba(0,212,255,0.18));

  --text: #eaf2ff;
  --text-soft: #b8c8e6;
  --text-dim: #7e90b3;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px rgba(2, 12, 30, 0.45);
  --shadow-hover: 0 26px 70px rgba(0, 130, 220, 0.28);

  --maxw: 1200px;
  --nav-h: 72px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

/* ---------- 基础重置 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg-deep);
  color: var(--text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
input, textarea, select { font-family: inherit; font-size: 15px; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; position: relative; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 3px; text-transform: uppercase;
  color: var(--primary-2); margin-bottom: 14px; font-weight: 600;
}
.section-head h2 { font-size: 34px; font-weight: 800; letter-spacing: 1px; }
.section-head p { color: var(--text-soft); margin-top: 14px; font-size: 16px; }

/* ---------- 背景科技纹理 ---------- */
.tech-bg::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    radial-gradient(circle at 18% 22%, rgba(47,128,237,0.20), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(0,212,255,0.16), transparent 46%),
    linear-gradient(180deg, rgba(6,18,41,0) 0%, rgba(6,18,41,0.6) 100%);
}
.tech-grid::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: 0.5;
  background-image:
    linear-gradient(rgba(120,170,255,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(120,170,255,0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(circle at 50% 30%, #000 0%, transparent 78%);
}

/* ============================================================
 * 按钮
 * ============================================================ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-size: 15px; font-weight: 600;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s var(--ease), color .25s var(--ease);
  white-space: nowrap;
}
.btn-primary { background: var(--grad-brand); color: #fff; box-shadow: 0 10px 30px rgba(0,150,220,0.35); }
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(0,170,255,0.5); }
.btn-ghost { border: 1px solid var(--line-strong); color: var(--text); background: rgba(255,255,255,0.02); }
.btn-ghost:hover { border-color: var(--primary-2); color: var(--primary-2); transform: translateY(-3px); }
.btn-sm { padding: 9px 18px; font-size: 14px; }

/* ============================================================
 * Header / 导航
 * ============================================================ */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; height: var(--nav-h); z-index: 1000;
  display: flex; align-items: center; transition: background .3s var(--ease), backdrop-filter .3s var(--ease), border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.scrolled {
  background: var(--bg-glass); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: .5px; }
.logo .mark {
  width: 34px; height: 34px; border-radius: 9px; background: var(--grad-brand);
  display: grid; place-items: center; color: #fff; font-weight: 900; box-shadow: 0 6px 18px rgba(0,150,220,0.4);
}
.logo .mark span { font-size: 18px; }
.nav-menu { display: flex; align-items: center; gap: 6px; }
.nav-menu a {
  position: relative; padding: 8px 14px; color: var(--text-soft); font-size: 15px; border-radius: 8px;
  transition: color .2s;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 14px; right: 14px; bottom: 4px; height: 2px;
  background: var(--grad-brand); transform: scaleX(0); transform-origin: left; transition: transform .25s var(--ease);
}
.nav-menu a:hover, .nav-menu a.active { color: var(--text); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); }
.nav-right { display: flex; align-items: center; gap: 14px; }
.hamburger { display: none; width: 42px; height: 42px; border-radius: 10px; border: 1px solid var(--line); place-items: center; }
.hamburger span { display: block; width: 20px; height: 2px; background: var(--text); position: relative; transition: .3s; }
.hamburger span::before, .hamburger span::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); transition: .3s; }
.hamburger span::before { top: -6px; } .hamburger span::after { top: 6px; }
body.menu-open .hamburger span { background: transparent; }
body.menu-open .hamburger span::before { top: 0; transform: rotate(45deg); }
body.menu-open .hamburger span::after { top: 0; transform: rotate(-45deg); }

/* 移动端抽屉 */
.mobile-drawer {
  position: fixed; inset: var(--nav-h) 0 0 0; background: var(--bg-glass); backdrop-filter: blur(16px);
  z-index: 999; transform: translateX(100%); transition: transform .35s var(--ease); padding: 28px; display: flex; flex-direction: column; gap: 6px;
}
body.menu-open .mobile-drawer { transform: translateX(0); }
.mobile-drawer a { padding: 14px 16px; border-radius: 12px; color: var(--text-soft); font-size: 17px; border: 1px solid transparent; }
.mobile-drawer a:hover, .mobile-drawer a.active { background: var(--grad-brand-soft); color: var(--text); border-color: var(--line); }
.mobile-drawer .btn { margin-top: 16px; }

/* 弹层动效（后台/案例/文章编辑器共用） */
@keyframes pop { from { transform: scale(.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

/* ============================================================
 * Hero
 * ============================================================ */
.hero { position: relative; min-height: 100vh; display: flex; align-items: center; overflow: hidden; padding-top: var(--nav-h); }
.hero-bg { position: absolute; inset: 0; z-index: 0; }
.hero-bg .orb { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .55; animation: float 14s ease-in-out infinite; }
.hero-bg .orb.a { width: 520px; height: 520px; background: radial-gradient(circle, #2f80ed, transparent 70%); top: -120px; left: -100px; }
.hero-bg .orb.b { width: 460px; height: 460px; background: radial-gradient(circle, #00d4ff, transparent 70%); bottom: -140px; right: -80px; animation-delay: -7s; }
@keyframes float { 0%,100% { transform: translate(0,0); } 50% { transform: translate(40px,-30px); } }
.hero-bg .ring {
  position: absolute; border: 1px solid rgba(120,170,255,0.16); border-radius: 50%; top: 50%; left: 50%;
  transform: translate(-50%,-50%); animation: spin 40s linear infinite;
}
.hero-bg .ring.r1 { width: 680px; height: 680px; }
.hero-bg .ring.r2 { width: 980px; height: 980px; border-style: dashed; animation-duration: 60s; }
.hero-bg .ring.r3 { width: 1280px; height: 1280px; animation-duration: 90s; animation-direction: reverse; }
@keyframes spin { to { transform: translate(-50%,-50%) rotate(360deg); } }
.hero .container { position: relative; z-index: 2; }
.hero-content { max-width: 760px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px;
  border: 1px solid var(--line-strong); background: rgba(255,255,255,0.03); color: var(--text-soft); font-size: 14px; margin-bottom: 26px;
}
.hero-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--primary-2); box-shadow: 0 0 10px var(--primary-2); }
.hero h1 { font-size: clamp(38px, 6vw, 66px); line-height: 1.1; font-weight: 900; letter-spacing: 1px; }
.hero h1 .grad { background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-sub { margin-top: 22px; font-size: 18px; color: var(--text-soft); max-width: 620px; }
.hero-cta { margin-top: 38px; display: flex; gap: 16px; flex-wrap: wrap; }
.hero-scroll { position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%); z-index: 2; color: var(--text-dim); font-size: 13px; text-align: center; }
.hero-scroll .mouse { width: 24px; height: 38px; border: 2px solid var(--line-strong); border-radius: 14px; margin: 0 auto 8px; position: relative; }
.hero-scroll .mouse::before { content: ""; position: absolute; top: 7px; left: 50%; transform: translateX(-50%); width: 4px; height: 7px; background: var(--primary-2); border-radius: 2px; animation: scrolldot 1.6s infinite; }
@keyframes scrolldot { 0% { opacity: 0; top: 7px; } 40% { opacity: 1; } 80% { opacity: 0; top: 18px; } }

/* ============================================================
 * 数据信任墙
 * ============================================================ */
.stats-wall { background: var(--bg-dark); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.stat-card { text-align: center; padding: 18px 10px; }
.stat-num { font-size: 46px; font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; line-height: 1; }
.stat-label { margin-top: 10px; font-size: 16px; font-weight: 600; }
.stat-desc { margin-top: 6px; font-size: 13px; color: var(--text-dim); }

/* ============================================================
 * 卡片通用
 * ============================================================ */
.card {
  background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s;
  position: relative; overflow: hidden;
}
.card:hover { transform: translateY(-8px); box-shadow: var(--shadow-hover); border-color: var(--line-strong); }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }

/* 图标 */
.ic { width: 54px; height: 54px; border-radius: 14px; background: var(--grad-brand-soft); border: 1px solid var(--line); display: grid; place-items: center; margin-bottom: 18px; }
.ic svg { width: 28px; height: 28px; stroke: var(--primary-2); fill: none; stroke-width: 1.8; }

/* 封面（程序化渐变，无需外部图片） */
.cover { position: relative; overflow: hidden; border-radius: var(--radius-sm); }
.cover::after { content: ""; position: absolute; inset: 0; background: linear-gradient(160deg, rgba(255,255,255,0.10), transparent 60%); }
.cover .tag { position: absolute; top: 12px; left: 12px; z-index: 2; padding: 5px 12px; border-radius: 999px; background: rgba(6,18,41,0.6); backdrop-filter: blur(6px); font-size: 12px; color: var(--primary-2); border: 1px solid var(--line); }

/* 不同封面配色 */
.cv-trend { background: linear-gradient(135deg,#1e3a8a,#0ea5e9); }
.cv-brand { background: linear-gradient(135deg,#3730a3,#06b6d4); }
.cv-case  { background: linear-gradient(135deg,#0f766e,#22d3ee); }
.cv-report{ background: linear-gradient(135deg,#7c2d12,#f59e0b); }
.cv-tech  { background: linear-gradient(135deg,#312e81,#3b82f6); }
.cv-fin   { background: linear-gradient(135deg,#065f46,#10b981); }
.cv-retail{ background: linear-gradient(135deg,#9d174d,#ec4899); }
.cv-manu  { background: linear-gradient(135deg,#1e3a8a,#38bdf8); }
.cv-avatar{ background: linear-gradient(135deg,#1e40af,#06b6d4); }

.cover-art { position: absolute; inset: 0; opacity: .35; background-image:
  radial-gradient(circle at 80% 20%, rgba(255,255,255,.5), transparent 40%),
  linear-gradient(115deg, transparent 40%, rgba(255,255,255,.18) 50%, transparent 60%); }

/* ============================================================
 * 区块标题 / 更多链接
 * ============================================================ */
.more-link { display: inline-flex; align-items: center; gap: 6px; color: var(--primary-2); font-weight: 600; margin-top: 36px; transition: gap .2s; }
.more-link:hover { gap: 12px; }
.center-more { text-align: center; }

/* ============================================================
 * 预约 CTA 横幅
 * ============================================================ */
.cta-banner { background: var(--grad-brand); border-radius: 24px; padding: 60px 40px; text-align: center; position: relative; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.25), transparent 50%); }
.cta-banner h2 { font-size: 32px; font-weight: 800; position: relative; }
.cta-banner p { color: rgba(255,255,255,.85); margin: 14px 0 28px; position: relative; }
.cta-banner .btn { background: #fff; color: var(--primary); position: relative; }
.cta-banner .btn:hover { box-shadow: 0 14px 40px rgba(0,0,0,.25); }

/* ============================================================
 * Footer
 * ============================================================ */
.site-footer { background: var(--bg-dark); border-top: 1px solid var(--line); padding: 64px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer-grid h4 { font-size: 15px; margin-bottom: 16px; color: var(--text); }
.footer-grid a { color: var(--text-dim); display: inline-block; padding: 5px 0; transition: color .2s; }
.footer-grid a:hover { color: var(--primary-2); text-decoration: underline; }
.footer-about p { color: var(--text-soft); font-size: 14px; margin-top: 14px; }
.footer-contact p { color: var(--text-soft); font-size: 14px; margin: 8px 0; }
.footer-bottom { margin-top: 44px; padding-top: 22px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; color: var(--text-dim); font-size: 13px; }

/* ============================================================
 * 在线客服悬浮
 * ============================================================ */
.chat-fab {
  position: fixed; right: 26px; bottom: 26px; z-index: 1100; width: 60px; height: 60px; border-radius: 50%;
  background: var(--grad-brand); color: #fff; display: grid; place-items: center; box-shadow: 0 14px 36px rgba(0,140,220,0.5);
  transition: transform .25s var(--ease);
}
.chat-fab:hover { transform: scale(1.08); }
.chat-fab svg { width: 28px; height: 28px; fill: #fff; }
.chat-panel {
  position: fixed; right: 26px; bottom: 96px; z-index: 1100; width: 340px; max-width: calc(100vw - 40px);
  background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: 18px; box-shadow: var(--shadow);
  overflow: hidden; transform: translateY(20px) scale(.96); opacity: 0; pointer-events: none; transition: .3s var(--ease);
}
.chat-panel.open { transform: translateY(0) scale(1); opacity: 1; pointer-events: auto; }
.chat-head { background: var(--grad-brand); padding: 16px 18px; color: #fff; display: flex; justify-content: space-between; align-items: center; }
.chat-head .close { color: #fff; font-size: 20px; }
.chat-body { padding: 16px; max-height: 320px; overflow-y: auto; }
.chat-msg { background: var(--bg-dark); border: 1px solid var(--line); padding: 10px 14px; border-radius: 12px; font-size: 14px; color: var(--text-soft); margin-bottom: 12px; }
.chat-quick { display: flex; flex-wrap: wrap; gap: 8px; padding: 0 16px 16px; }
.chat-quick button { font-size: 13px; padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-soft); transition: .2s; }
.chat-quick button:hover { border-color: var(--primary-2); color: var(--primary-2); }
.chat-input { display: flex; border-top: 1px solid var(--line); }
.chat-input input { flex: 1; background: transparent; border: none; outline: none; padding: 14px 16px; color: var(--text); }
.chat-input button { padding: 0 18px; background: var(--grad-brand); color: #fff; font-weight: 600; }

/* ============================================================
 * 内页通用
 * ============================================================ */
.page-hero { padding: calc(var(--nav-h) + 70px) 0 50px; position: relative; text-align: center; }
.page-hero h1 { font-size: clamp(32px, 5vw, 48px); font-weight: 900; }
.page-hero p { color: var(--text-soft); margin-top: 16px; max-width: 640px; margin-left: auto; margin-right: auto; }
.breadcrumb { font-size: 13px; color: var(--text-dim); margin-bottom: 14px; }
.breadcrumb a:hover { color: var(--primary-2); }

/* 筛选栏 */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 40px; }
.filter-bar button {
  padding: 9px 18px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); font-size: 14px; transition: .2s;
}
.filter-bar button:hover { border-color: var(--primary-2); color: var(--text); }
.filter-bar button.active { background: var(--grad-brand); color: #fff; border-color: transparent; }

/* 文章/案例卡片 */
.post-card { display: flex; flex-direction: column; }
.post-card .cover { height: 180px; }
.post-card h3 { font-size: 18px; margin: 16px 0 10px; line-height: 1.4; }
.post-card .excerpt { color: var(--text-soft); font-size: 14px; flex: 1; }
.post-meta { display: flex; gap: 14px; margin-top: 14px; color: var(--text-dim); font-size: 13px; align-items: center; }

/* ============================================================
 * 服务体系页
 * ============================================================ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; margin: 10px 0 60px; }
.flow-step { text-align: center; position: relative; padding: 0 14px; }
.flow-step .num { width: 64px; height: 64px; margin: 0 auto 16px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; box-shadow: 0 10px 26px rgba(0,150,220,0.4); position: relative; z-index: 2; }
.flow-step:not(:last-child)::after { content: ""; position: absolute; top: 32px; left: 50%; width: 100%; height: 2px; background: linear-gradient(90deg, var(--line-strong), transparent); z-index: 1; }
.flow-step h4 { font-size: 18px; }
.flow-step p { color: var(--text-dim); font-size: 14px; margin-top: 6px; }

.service-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; align-items: start; }
.service-detail .info ul { margin-top: 12px; }
.service-detail .info li { padding: 6px 0 6px 22px; position: relative; color: var(--text-soft); font-size: 15px; }
.service-detail .info li::before { content: "✓"; position: absolute; left: 0; color: var(--primary-2); font-weight: 800; }
.detail-block { margin-top: 18px; }
.detail-block h5 { color: var(--primary-2); font-size: 14px; margin-bottom: 6px; }

.testimonial-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.testimonial { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.testimonial p { color: var(--text-soft); font-style: italic; }
.testimonial .who { margin-top: 16px; font-weight: 600; }
.testimonial .who span { display: block; color: var(--text-dim); font-weight: 400; font-size: 13px; }

/* ============================================================
 * 专家团队页
 * ============================================================ */
.expert-card { text-align: center; }
.expert-avatar { width: 96px; height: 96px; border-radius: 50%; margin: 0 auto 16px; display: grid; place-items: center; color: #fff; font-size: 30px; font-weight: 800; border: 2px solid var(--line-strong); }
.expert-card h3 { font-size: 19px; }
.expert-card .role { color: var(--primary-2); font-size: 14px; margin: 4px 0 12px; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; margin-bottom: 12px; }
.expert-tags span { font-size: 12px; padding: 4px 10px; border-radius: 999px; background: var(--grad-brand-soft); border: 1px solid var(--line); color: var(--text-soft); }
.expert-card .bio { font-size: 14px; color: var(--text-soft); }
.expert-card .ach { margin-top: 14px; font-size: 13px; color: var(--primary-2); font-weight: 600; }
.team-summary { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; margin-top: 50px; text-align: center; }
.team-summary .t-num { font-size: 40px; font-weight: 900; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ============================================================
 * 成功案例页
 * ============================================================ */
.case-card .cover { height: 160px; }
.case-metrics { display: flex; gap: 14px; margin-top: 14px; flex-wrap: wrap; }
.case-metrics .m b { display: block; font-size: 22px; color: var(--primary-2); font-weight: 800; }
.case-metrics .m span { font-size: 12px; color: var(--text-dim); }

/* 案例详情弹窗 */
.modal-mask { position: fixed; inset: 0; background: rgba(3,10,24,0.7); backdrop-filter: blur(5px); z-index: 1300; display: none; align-items: center; justify-content: center; padding: 24px; }
.modal-mask.open { display: flex; }
.modal { width: 100%; max-width: 720px; max-height: 86vh; overflow-y: auto; background: var(--bg-card); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: var(--shadow); animation: pop .3s var(--ease); }
.modal-head { display: flex; justify-content: space-between; align-items: flex-start; padding: 26px 28px 0; }
.modal-head h3 { font-size: 24px; max-width: 90%; }
.modal-body { padding: 22px 28px 30px; }
.modal-body h5 { color: var(--primary-2); margin: 20px 0 8px; font-size: 15px; }
.modal-body p { color: var(--text-soft); }
.modal-quote { margin-top: 18px; padding: 16px; border-left: 3px solid var(--primary-2); background: var(--grad-brand-soft); border-radius: 0 10px 10px 0; color: var(--text); font-style: italic; }

/* ============================================================
 * 预约咨询页
 * ============================================================ */
.contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 36px; align-items: start; }
.form-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; }
.tel-link { color: inherit; text-decoration: none; }
.tel-link:hover { color: var(--primary-2); text-decoration: underline; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 8px; color: var(--text-soft); }
.field label .req { color: #ff6b6b; }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; background: var(--bg-dark); color: var(--text);
  border: 1px solid var(--line); border-radius: var(--radius-sm); outline: none; transition: border-color .2s;
}
.field input:focus, .field textarea:focus, .field select:focus { border-color: var(--primary-2); }
.field textarea { resize: vertical; min-height: 110px; }
.field .err { color: #ff8a8a; font-size: 12px; margin-top: 6px; display: none; }
.field.invalid input, .field.invalid textarea, .field.invalid select { border-color: #ff6b6b; }
.field.invalid .err { display: block; }
.checks { display: flex; flex-wrap: wrap; gap: 10px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 1px solid var(--line); border-radius: 999px; cursor: pointer; font-size: 14px; color: var(--text-soft); transition: .2s; }
.checks label:hover { border-color: var(--primary-2); }
.checks input { width: auto; accent-color: var(--primary); }
.checks label.checked { background: var(--grad-brand-soft); border-color: var(--primary-2); color: var(--text); }
.form-note { font-size: 13px; color: var(--text-dim); margin-top: 6px; }

.contact-aside .info-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; margin-bottom: 20px; }
.contact-aside .info-card h4 { font-size: 16px; margin-bottom: 14px; }
.contact-aside .info-row { display: flex; gap: 12px; margin-bottom: 12px; color: var(--text-soft); font-size: 14px; }
.contact-aside .info-row .k { color: var(--text-dim); min-width: 64px; }
.guarantee { font-size: 13px; color: var(--text-dim); line-height: 1.8; }

/* 提交成功 */
.success-box { text-align: center; padding: 40px 20px; }
.success-box .check { width: 72px; height: 72px; border-radius: 50%; background: var(--grad-brand); display: grid; place-items: center; margin: 0 auto 20px; }
.success-box .check svg { width: 36px; height: 36px; stroke: #fff; fill: none; stroke-width: 3; }
.success-box h3 { font-size: 24px; }
.success-box p { color: var(--text-soft); margin-top: 12px; }

/* ============================================================
 * 文章详情页
 * ============================================================ */
.article-detail { max-width: 820px; margin: 0 auto; }
.article-detail .cover { height: 320px; margin: 24px 0; }
.article-body p { color: var(--text-soft); font-size: 16px; margin-bottom: 18px; }
.article-body h3 { font-size: 22px; margin: 28px 0 14px; }
.article-cta { margin: 40px 0; padding: 30px; border-radius: var(--radius); background: var(--grad-brand-soft); border: 1px solid var(--line); text-align: center; }

/* ============================================================
 * 后台管理系统
 * ============================================================ */
.admin-login { position: fixed; inset: 0; display: grid; place-items: center; background: var(--bg-deep); z-index: 2000; }
.admin-login .box { width: 360px; max-width: 90vw; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 36px; text-align: center; box-shadow: var(--shadow); }
.admin-login .box h2 { font-size: 22px; }
.admin-login .box p { color: var(--text-dim); font-size: 13px; margin: 10px 0 20px; }
.admin-shell { display: grid; grid-template-columns: 230px 1fr; min-height: 100vh; }
.admin-side { background: var(--bg-dark); border-right: 1px solid var(--line); padding: 24px 16px; }
.admin-side .logo { margin-bottom: 24px; }
.admin-side a { display: block; padding: 11px 14px; border-radius: 10px; color: var(--text-soft); margin-bottom: 6px; cursor: pointer; }
.admin-side a:hover, .admin-side a.active { background: var(--grad-brand-soft); color: var(--text); }
.admin-side .logout { margin-top: 24px; font-size: 13px; color: var(--text-dim); }
.admin-main { padding: 32px; overflow-y: auto; }
.admin-main h1 { font-size: 26px; margin-bottom: 6px; }
.admin-main .sub { color: var(--text-dim); margin-bottom: 24px; }
.stat-cards { display: grid; grid-template-columns: repeat(4,1fr); gap: 16px; margin-bottom: 28px; }
.stat-cards .c { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.stat-cards .c b { font-size: 30px; background: var(--grad-brand); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stat-cards .c span { display: block; color: var(--text-soft); font-size: 14px; margin-top: 6px; }
.toolbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; flex-wrap: wrap; gap: 12px; }
.table { width: 100%; border-collapse: collapse; background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.table th, .table td { padding: 13px 16px; text-align: left; border-bottom: 1px solid var(--line); font-size: 14px; }
.table th { background: var(--bg-dark); color: var(--text-soft); font-weight: 600; }
.table tr:last-child td { border-bottom: none; }
.scope-tag { font-size: 12px; padding: 3px 10px; border-radius: 999px; background: var(--grad-brand-soft); border: 1px solid var(--line); color: var(--primary-2); }
.row-actions button { font-size: 13px; padding: 6px 12px; border-radius: 8px; border: 1px solid var(--line); color: var(--text-soft); margin-right: 6px; }
.row-actions button:hover { border-color: var(--primary-2); color: var(--primary-2); }
.row-actions .danger:hover { border-color: #ff6b6b; color: #ff8a8a; }
/* 编辑器弹层 */
.modal-mask.admin-edit { z-index: 2100; }
.edit-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
/* 内容管理编辑器 */
.content-card { background: var(--bg-card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; }
.content-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.content-head h3 { font-size: 16px; }
.content-head .note { font-size: 12px; color: var(--text-dim); }
.content-item { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px 16px; margin-bottom: 14px; background: var(--bg-dark); }
.content-item-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.content-item-head b { font-size: 14px; color: var(--text-soft); }
.content-rm { width: 26px; height: 26px; border-radius: 6px; border: 1px solid var(--line); background: none; color: #ff8a8a; font-size: 15px; cursor: pointer; }
.content-rm:hover { border-color: #ff6b6b; }
@media (max-width: 860px){ .admin-shell{ grid-template-columns:1fr; } .stat-cards{ grid-template-columns:1fr 1fr; } .edit-grid{ grid-template-columns:1fr; } }
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============================================================
 * 响应式
 * ============================================================ */
@media (max-width: 980px) {
  .stats-grid, .flow { grid-template-columns: repeat(2, 1fr); gap: 28px 16px; }
  .flow-step:not(:last-child)::after { display: none; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .testimonial-grid, .team-summary { grid-template-columns: 1fr; }
  .service-detail, .contact-layout { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .nav-menu, .nav-right .btn { display: none; }
  .hamburger { display: grid; }
  .section { padding: 64px 0; }
  .section-head h2 { font-size: 26px; }
  .stats-grid, .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta { flex-direction: column; align-items: stretch; }
  .cta-banner { padding: 44px 22px; }
}
