/* ============================================================
   视数科技 官网样式
   配色：科技蓝（深蓝主色 + 青色点缀），简约大气数据风
   ============================================================ */

:root {
  --primary: #1652f0;
  --primary-dark: #0f3fd1;
  --primary-deep: #0a2a8f;
  --accent: #00c2ff;
  --accent-2: #6f7dff;
  --navy: #071a44;
  --navy-2: #0d2a63;
  --ink: #0f1b33;
  --text: #33415c;
  --muted: #6b7894;
  --line: #e6ebf5;
  --bg: #ffffff;
  --bg-soft: #f5f8ff;
  --bg-soft-2: #eef3ff;
  --green: #13cbb9;
  --green-deep: #13cbb9;
  --green-bright: #14e1cd;
  --white: #ffffff;
  --shadow-sm: 0 4px 20px rgba(16, 52, 140, 0.06);
  --shadow-md: 0 14px 44px rgba(16, 52, 140, 0.12);
  --shadow-lg: 0 24px 70px rgba(10, 42, 143, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1200px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system,
    BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 80px; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }
button, input, select, textarea { font-family: inherit; font-size: inherit; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.text-gradient {
  background: linear-gradient(100deg, var(--primary) 0%, var(--accent) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
/* 绿色点缀文字：浅底用 .g，深底用 .g-light */
.g { color: var(--green-deep) !important; }
.g-light { color: var(--green-bright) !important; }

.section { padding: 100px 0; }
.section-soft { background: var(--bg-soft); }

.section-head { max-width: 720px; margin: 0 auto 56px; text-align: center; }
.section-head .eyebrow {
  display: inline-block;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 2.5px;
  color: var(--primary);
  background: var(--bg-soft-2);
  padding: 8px 20px;
  border-radius: 100px;
  margin-bottom: 18px;
}
.section-head h2 {
  font-size: clamp(28px, 4vw, 42px);
  color: var(--ink);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.5px;
}
.section-head p { margin-top: 16px; color: var(--muted); font-size: 16px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s ease;
  white-space: nowrap;
}
.btn-primary {
  background: linear-gradient(100deg, var(--primary), var(--accent-2));
  color: #fff;
  box-shadow: 0 10px 28px rgba(22, 82, 240, 0.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(22, 82, 240, 0.38); }
.btn-ghost { background: rgba(255, 255, 255, 0.08); color: #fff; border-color: rgba(255,255,255,0.28); }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.16); }
.btn-outline { background: transparent; color: var(--primary); border-color: var(--primary); }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-lg { padding: 16px 34px; font-size: 16px; }
.btn:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(0, 194, 255, 0.55);
  outline-offset: 2px;
}

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.logo { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.logo-mark {
  width: 40px; height: 40px; border-radius: 11px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 18px;
  box-shadow: 0 6px 16px rgba(22, 82, 240, 0.3);
  letter-spacing: -1px;
}
.logo-img {
  width: 42px; height: 42px; object-fit: contain; object-position: left center;
  flex-shrink: 0; display: block;
}
.logo-text strong { display: block; font-size: 18px; color: var(--ink); font-weight: 800; line-height: 1.2; }
.logo-text span { display: block; font-size: 9px; letter-spacing: 2.5px; color: var(--muted); font-weight: 700; }

.nav-menu { display: flex; align-items: center; gap: 38px; }
/* 参考数美科技：悬停文字变青绿 + 底部 3px 横线从左展开（0.5s ease） */
.nav-menu a {
  position: relative; padding: 6px 0;
  font-size: 17px; font-weight: 600; color: var(--text);
  transition: color 0.25s ease;
}
.nav-menu a::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px; height: 3px;
  background: var(--green); border-radius: 2px;
  transform: scaleX(0); transform-origin: right;
  transition: transform 0.5s ease;
}
.nav-menu a:hover, .nav-menu a.active { color: var(--green-deep); }
.nav-menu a:hover::after, .nav-menu a.active::after { transform: scaleX(1); transform-origin: left; }
.nav-actions { display: flex; align-items: center; gap: 14px; }
.nav-actions .admin-link { font-size: 14px; color: var(--muted); font-weight: 600; }
.nav-actions .admin-link:hover { color: var(--primary); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--ink); margin: 5px 0; border-radius: 2px; transition: 0.3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background: var(--navy);
  color: #fff;
  overflow: hidden;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background:
    radial-gradient(circle at 78% 22%, rgba(0, 194, 255, 0.16), transparent 42%),
    radial-gradient(circle at 15% 85%, rgba(111, 125, 255, 0.18), transparent 45%),
    linear-gradient(160deg, #103a86 0%, #1b4fa8 55%, #123a85 100%);
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.045) 1px, transparent 1px);
  background-size: 46px 46px;
  -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%);
  mask-image: linear-gradient(to bottom, #000, transparent 85%);
}
.hero-inner { position: relative; z-index: 2; display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 60px; align-items: center; padding: 80px 0 8px; }
/* 多页轮播：所有页绝对定位堆叠，容器高度固定，切换不跳动 */
.hero-slides { position: relative; min-width: 0; min-height: 430px; }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; visibility: hidden; transform: translateY(16px);
  transition: opacity .55s ease, transform .55s ease, visibility .55s;
  pointer-events: none;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: none; pointer-events: auto; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: #bcd2ff;
  border: 1px solid rgba(160, 190, 255, 0.28);
  background: rgba(255,255,255,0.05);
  padding: 7px 16px; border-radius: 100px; margin-bottom: 24px;
}
.hero-badge .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(19,203,185,0.18); }
.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -1px;
  color: #fff;
  max-width: 620px;
}
.hero h1 .hl {
  background: linear-gradient(100deg, #7ab4ff, #14e1cd);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero-lead { margin-top: 20px; font-size: 16.5px; color: #b8c8e8; max-width: 620px; line-height: 1.9; min-height: 3.8em; }
.hero-cta { display: flex; gap: 14px; margin-top: 32px; flex-wrap: wrap; }
/* 右侧配图随轮播切换：叠放淡入淡出 */
.hero-visual { position: relative; min-height: 320px; }
.hero-img {
  position: absolute; top: 0; left: 0; width: 100%; height: auto;
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.hero-img.active { opacity: 1; transform: none; position: relative; }
@media (max-width: 980px) { .hero-visual { min-height: 0; } }

/* 轮播进度指示器（横条进度，参考数美科技） */
.hero-dots {
  position: relative; z-index: 2;
  display: flex; justify-content: center; align-items: center; gap: 10px;
  padding: 18px 24px 30px;
}
.hero-dot {
  width: 46px; height: 4px; padding: 0; border: none; border-radius: 100px;
  background: rgba(255,255,255,0.2); cursor: pointer; overflow: hidden;
  transition: background .3s;
}
.hero-dot:hover { background: rgba(255,255,255,0.4); }
.hero-dot span {
  display: block; width: 0; height: 100%; border-radius: 100px;
  background: var(--green-bright);
}
.hero-dot.active { background: rgba(255,255,255,0.32); }
.hero-dot.active span { animation: dotProgress 5s linear forwards; }
.hero-dots.paused .hero-dot.active span { animation-play-state: paused; }
@keyframes dotProgress { from { width: 0; } to { width: 100%; } }

.hero-stats {
  position: relative; z-index: 2;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid rgba(255,255,255,0.12);
}
.hero-stats .stat { padding: 28px 10px 38px; border-right: 1px solid rgba(255,255,255,0.1); }
.hero-stats .stat:last-child { border-right: none; }
.hero-stats .num { font-size: clamp(28px, 4vw, 40px); font-weight: 800; color: #fff; line-height: 1; }
.hero-stats .num small { color: var(--green-bright); font-size: 20px; margin-left: 2px; }
.hero-stats .label { margin-top: 10px; font-size: 13px; color: #93a7cc; }

/* ---------- 合作伙伴 logo 墙 ---------- */
.partners { padding: 44px 0; background: #fff; border-bottom: 1px solid var(--line); }
.partners .lead { text-align: center; font-size: 13px; color: var(--muted); letter-spacing: 1px; margin-bottom: 26px; font-weight: 600; }
.partners-grid { display: flex; justify-content: center; align-items: center; gap: 22px; flex-wrap: wrap; }
.partner-logo {
  height: 46px; min-width: 130px; padding: 0 22px;
  border: 1px solid var(--line); border-radius: 10px;
  display: grid; place-items: center;
  font-weight: 700; font-size: 15px; color: #8a97b0;
  background: #fff;
  transition: all 0.25s;
}
.partner-logo:hover { color: var(--primary); border-color: #c9d8ff; box-shadow: var(--shadow-sm); }

/* ---------- 服务卡片 ---------- */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
/* 每项服务独立主题色：图标 / 标题 / 标签 / 顶部高亮线统一取色 */
/* 两色交替：奇数=天蓝（视频内容检索色），偶数=青绿（结构化数据标注色） */
.service-card:nth-child(odd)  { --sc: #0a9fd4; --sc-soft: #e2f5fd; }
.service-card:nth-child(even) { --sc: #0fae9c; --sc-soft: #e2f7f3; }
.service-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 24px; transition: all 0.3s ease; position: relative; overflow: hidden;
  display: flex; align-items: flex-start; gap: 18px;
}
.service-card::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--sc), transparent);
  transform: scaleX(0); transform-origin: left; transition: transform 0.35s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.service-card:hover::before { transform: scaleX(1); }
.service-icon {
  flex-shrink: 0; width: 56px; height: 56px; border-radius: 15px;
  background: var(--sc-soft); display: grid; place-items: center;
  transition: transform .3s ease, box-shadow .3s ease;
}
.service-card:hover .service-icon { transform: scale(1.07); box-shadow: 0 10px 20px -8px var(--sc); }
.service-icon svg { width: 29px; height: 29px; stroke: var(--sc); }
.service-icon svg .fill { fill: var(--sc); stroke: none; }
.service-body { flex: 1; min-width: 0; }
.service-card h3 { font-size: 18px; color: var(--sc); font-weight: 750; margin: 1px 0 9px; letter-spacing: .2px; }
.service-card p { font-size: 13.5px; color: var(--text); line-height: 1.72; }
.service-card .tags { display: flex; gap: 7px; flex-wrap: wrap; margin-top: 13px; }
.service-card .tags span {
  font-size: 11.5px; font-weight: 600; color: var(--sc); background: var(--sc-soft);
  padding: 3px 9px; border-radius: 6px;
}

/* ---------- 优势（左右布局） ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.split-visual { position: relative; }
.split-title h2 { font-size: clamp(28px, 4vw, 40px); color: var(--ink); font-weight: 800; line-height: 1.3; }
.split-title .eyebrow { display: inline-block; font-size: 17px; font-weight: 800; letter-spacing: 2.5px; color: var(--primary); margin-bottom: 16px; }
.split-title > p { margin-top: 16px; color: var(--muted); font-size: 16px; }
.adv-list { margin-top: 30px; display: grid; gap: 22px; }
.adv-item { display: flex; gap: 16px; }
.adv-item .ico {
  flex-shrink: 0; width: 44px; height: 44px; border-radius: 12px;
  background: var(--bg-soft-2); display: grid; place-items: center;
}
.adv-item .ico svg { width: 22px; height: 22px; stroke: var(--primary); }
.adv-item h4 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 4px; }
.adv-item p { font-size: 14px; color: var(--muted); }

.visual-card {
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  box-shadow: var(--shadow-lg); padding: 34px 32px; position: relative;
  min-height: 460px; display: flex; flex-direction: column; justify-content: space-between;
}
.visual-card .vc-head { display: flex; align-items: center; gap: 9px; margin-bottom: 30px; }
.visual-card .vc-head i { width: 12px; height: 12px; border-radius: 50%; background: #e0e6f0; }
.visual-card .vc-head i:nth-child(1){background:#ff6b6b} .visual-card .vc-head i:nth-child(2){background:#ffc93c} .visual-card .vc-head i:nth-child(3){background:#4ecb71}
.visual-card .vc-head span { margin-left: auto; font-size: 15px; color: var(--text); font-weight: 600; }
.bar-row { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.bar-row .bl { width: 106px; font-size: 15px; font-weight: 600; color: var(--text); flex-shrink: 0; }
.bar-track { flex: 1; height: 20px; background: var(--bg-soft-2); border-radius: 100px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 100px; background: linear-gradient(90deg, var(--primary), var(--green)); }
.bar-row .bv { width: 52px; text-align: right; font-size: 16px; font-weight: 800; color: var(--ink); }
.vc-foot { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; margin-top: 14px; padding-top: 26px; border-top: 1px solid var(--line); }
.vc-foot .m { text-align: center; }
.vc-foot .m b { display: block; font-size: 28px; color: var(--primary); font-weight: 800; }
.vc-foot .m span { font-size: 13px; color: var(--muted); margin-top: 4px; display: block; }

/* ---------- 流程 ---------- */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; position: relative; }
.flow-step { text-align: center; padding: 0 18px; position: relative; }
.flow-step:not(:last-child)::after {
  content: ""; position: absolute; top: 32px; left: calc(50% + 40px); right: calc(-50% + 40px);
  height: 2px; background: linear-gradient(90deg, var(--primary), #c9d8ff);
}
.flow-step .step-num {
  width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 50%;
  background: #fff; border: 2px solid var(--primary);
  display: grid; place-items: center; font-size: 22px; font-weight: 800; color: var(--primary);
  position: relative; z-index: 2; box-shadow: 0 8px 20px rgba(22,82,240,0.12);
}
.flow-step h4 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.flow-step p { font-size: 13.5px; color: var(--muted); }

/* ---------- 案例 ---------- */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card {
  border-radius: var(--radius); overflow: hidden; background: #fff;
  border: 1px solid var(--line); transition: all 0.3s;
}
.case-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); }
.case-thumb { height: 190px; position: relative; overflow: hidden; }
.case-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.case-card:hover .case-thumb img { transform: scale(1.05); }
.case-thumb .badge {
  position: absolute; top: 14px; left: 14px; font-size: 11px; font-weight: 700;
  background: rgba(7,26,68,0.82); color: #fff; padding: 5px 12px; border-radius: 100px;
  backdrop-filter: blur(6px);
}
.case-body { padding: 22px; }
.case-body h3 { font-size: 17px; color: var(--ink); font-weight: 700; margin-bottom: 8px; }
.case-body p { font-size: 13.5px; color: var(--muted); }

/* ---------- 关于 ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-big {
  background: linear-gradient(150deg, var(--primary-deep), var(--primary));
  border-radius: 20px; padding: 44px; color: #fff; position: relative; overflow: hidden;
}
.about-big::after {
  content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%;
  background: rgba(0,194,255,0.15); right: -80px; bottom: -100px;
}
.about-big .quote { font-size: 15px; opacity: 0.8; }
.about-big h3 { font-size: 27px; font-weight: 800; line-height: 1.5; margin: 18px 0 26px; }
.about-big .sig { display: flex; align-items: center; gap: 12px; font-size: 13px; opacity: 0.9; }
.about-big .sig .avatar { width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,0.2); display:grid;place-items:center;font-weight:700; }
.about-points { display: grid; gap: 20px; }
.about-point { display: flex; gap: 14px; align-items: flex-start; }
.about-point .tick {
  flex-shrink:0; width: 24px; height: 24px; border-radius: 50%; background: #e7f8f1;
  display: grid; place-items: center; color: var(--green); font-weight: 800; margin-top: 3px;
}
.about-point h4 { color: var(--ink); font-size: 16px; margin-bottom: 3px; }
.about-point p { font-size: 14px; color: var(--muted); }

/* ---------- CTA 横幅 ---------- */
.cta-banner {
  background: linear-gradient(120deg, var(--navy), var(--navy-2));
  border-radius: 24px; padding: 60px; text-align: center; color: #fff; position: relative; overflow: hidden;
}
.cta-banner::before {
  content:""; position:absolute; width:420px;height:420px;border-radius:50%;
  background: radial-gradient(circle, rgba(0,194,255,0.25), transparent 65%);
  top:-180px; left:50%; transform:translateX(-50%);
}
.cta-banner h2 { font-size: clamp(26px, 4vw, 38px); font-weight: 800; position: relative; }
.cta-banner p { color: #b8c8e8; margin: 14px 0 28px; font-size: 16px; position: relative; }
.cta-banner .btn-wrap { display:flex; gap:14px; justify-content:center; flex-wrap:wrap; position:relative; }

/* ---------- 表单 ---------- */
.contact-wrap { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 50px; }
.contact-info h2 { font-size: clamp(26px, 3.6vw, 36px); color: var(--ink); font-weight: 800; line-height: 1.3; }
.contact-info .eyebrow { display:inline-block; font-size:17px; font-weight:800; letter-spacing:2.5px; color:var(--primary); margin-bottom:14px; }
.contact-info > p { color: var(--muted); margin-top: 14px; }
.contact-detail { margin-top: 34px; display: grid; gap: 22px; }
.contact-detail .ci { display: flex; gap: 14px; align-items: flex-start; }
.contact-detail .ci .ico { width: 42px; height: 42px; border-radius: 11px; background: var(--bg-soft-2); display:grid;place-items:center; flex-shrink:0; }
.contact-detail .ci .ico svg { width: 20px; height: 20px; stroke: var(--primary); }
.contact-detail .ci b { display:block; color:var(--ink); font-size:15px; }
.contact-detail .ci span { color: var(--muted); font-size: 14px; }

.contact-form-box { background:#fff; border:1px solid var(--line); border-radius:20px; padding:38px; box-shadow: var(--shadow-md); }
.form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px; }
.field { display:flex; flex-direction:column; gap:7px; }
.field.full { grid-column:1 / -1; }
.field label { font-size:13px; font-weight:600; color:var(--ink); }
.field label .req { color:#e5484d; margin-left:2px; }
.field input, .field select, .field textarea {
  width:100%; padding:12px 14px; border:1px solid var(--line); border-radius:9px;
  background:#fbfcff; color:var(--ink); font-size:14px; transition:all .2s;
}
.field input:focus, .field select:focus, .field textarea:focus {
  border-color:var(--primary); background:#fff; box-shadow:0 0 0 3px rgba(22,82,240,.1); outline:none;
}
.field textarea { resize:vertical; min-height:110px; }
.form-note { font-size:12px; color:var(--muted); margin-top:16px; line-height:1.6; }
.form-msg { margin-top:16px; font-size:14px; font-weight:600; display:none; padding:12px 16px; border-radius:9px; }
.form-msg.ok { display:block; background:#e3faf6; color:#0a8f80; }
.form-msg.err { display:block; background:#fdeaea; color:#c9383e; }
.form-msg.loading { display:block; background:var(--bg-soft-2); color:var(--primary); }

/* ---------- 二维码占位（公众号 / 企业微信） ---------- */
.contact-qr { margin-top: 32px; padding-top: 24px; border-top: 1px dashed #d5e0f2; }
.contact-qr .qr-title { font-size: 14px; font-weight: 700; color: var(--ink); margin-bottom: 14px; }
.qr-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.qr-card {
  display: flex; align-items: center; gap: 12px; padding: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  transition: all .25s;
}
.qr-card:hover { border-color: #c9d8ff; box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.qr-card .qr-img {
  flex-shrink: 0; width: 78px; height: 78px; border-radius: 8px;
  overflow: hidden; background: #fff; border: 1px solid #eef1f7;
}
.qr-card .qr-img img { width: 100%; height: 100%; object-fit: cover; }
.qr-card .qr-meta strong { display: block; font-size: 14px; color: var(--ink); font-weight: 700; }
.qr-card .qr-meta span { display: block; font-size: 11.5px; color: var(--muted); line-height: 1.5; margin-top: 4px; }
.contact-qr .qr-hint { font-size: 11px; color: #9aa7bd; margin-top: 10px; }

/* ---------- 右侧悬浮挂件（参考数美科技：白底卡片 + 青绿色组合块） ---------- */
.side-widget {
  position: fixed; right: 0; top: 50%; transform: translateY(-50%);
  z-index: 95; display: flex; flex-direction: column; gap: 8px;
}
.sw-item {
  position: relative; width: 68px; min-height: 82px; padding: 14px 4px;
  border: none; text-decoration: none;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 7px;
  font-size: 12px; font-weight: 600; line-height: 1.35; text-align: center;
  cursor: pointer; transition: background .25s, color .25s;
}
.sw-item svg { width: 23px; height: 23px; flex-shrink: 0; }
.sw-item span { white-space: nowrap; }
/* 白底卡片：电话咨询 / 返回顶部 */
.sw-white { background: #fff; color: var(--ink); }
.sw-white svg { stroke: var(--green-deep); }
.sw-white:hover { background: #eefaf8; }
.side-widget > .sw-white:first-child { border-radius: 10px 0 0 10px; }
/* 青绿色组合块：微信 + 在线（上下排列，中间分隔线）
   注意：不要设置 overflow:hidden，否则会裁剪向左弹出的二维码浮层 */
.sw-teal-group { background: var(--green); border-radius: 10px 0 0 10px; }
.sw-teal { background: transparent; color: #fff; min-height: 78px; border-radius: 10px 0 0 10px; }
.sw-teal svg { stroke: #fff; }
.sw-teal:hover { background: rgba(255,255,255,.14); }
.sw-divider { height: 1px; background: rgba(255,255,255,.6); margin: 0 16px; }
/* 微信咨询需保持在浮层之上，形成完整可点击热区 */
#swWechat { z-index: 2; }
#swWechat:hover { z-index: 4; }
/* 返回顶部：滚动到一定位置才显示 */
.sw-top { min-height: 58px; padding: 10px 4px; display: none; border-radius: 10px 0 0 10px; }
.sw-top.show { display: flex; animation: swTopIn .3s ease; }
@keyframes swTopIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
/* 弹出框：白底 + 指向右侧的小三角 */
.sw-pop {
  position: absolute; right: calc(100% + 12px); top: 50%;
  transform: translateY(-50%) translateX(8px);
  background: #fff; border-radius: 8px; padding: 16px 20px;
  box-shadow: var(--shadow-lg); text-align: center; color: var(--ink);
  opacity: 0; visibility: hidden; pointer-events: none; transition: all .25s;
  white-space: nowrap;
}
.sw-pop::after {
  content: ""; position: absolute; right: -7px; top: 50%; margin-top: -7px;
  width: 14px; height: 14px; background: #fff; transform: rotate(45deg);
  box-shadow: 2px -2px 4px rgba(10,42,143,.05);
}
.sw-item:hover .sw-pop, .sw-item.open .sw-pop {
  opacity: 1; visibility: visible; transform: translateY(-50%) translateX(0);
}
.sw-pop-phone b { display: block; font-size: 17px; font-weight: 700; color: var(--ink); letter-spacing: .5px; }
.sw-pop-phone small { display: block; font-size: 11px; color: var(--muted); margin-top: 4px; }
.sw-pop-qr { padding: 14px; }
.sw-pop-qr img { width: 136px; height: 136px; object-fit: contain; margin: 0 auto 8px; display: block; background: #fff; }
.sw-pop-qr b { display: block; font-size: 13px; font-weight: 600; }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--navy); color: #9fb0cf; padding: 64px 0 26px; }
.footer-grid { display:grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.site-footer .logo-text strong { color:#fff; }
.site-footer .logo-text span { color:#7e91b8; }
.site-footer .about-txt { font-size:13.5px; line-height:1.9; margin-top:18px; max-width:300px; }
.footer-col h4 { color:#fff; font-size:15px; margin-bottom:18px; font-weight:700; }
.footer-col a, .footer-col li { display:block; font-size:13.5px; margin-bottom:11px; transition:color .2s; }
.footer-col a:hover { color:#fff; }
.site-footer .footer-col a[href="admin.html"] { color: var(--green-bright) !important; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; padding-top:24px; font-size:12.5px; color:#7589af; flex-wrap:wrap; gap:12px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity:0; transform:translateY(24px); transition:opacity .7s ease, transform .7s ease; }
.reveal.in { opacity:1; transform:none; }

/* ============================================================
   后台管理页
   ============================================================ */
.admin-body { background:#f4f6fb; min-height:100vh; }

/* 登录 */
.login-page { min-height:100vh; display:grid; place-items:center; padding:24px;
  background:
    radial-gradient(circle at 20% 20%, rgba(22,82,240,0.12), transparent 40%),
    radial-gradient(circle at 80% 80%, rgba(0,194,255,0.12), transparent 40%),
    #f4f6fb;
}
.login-card { width:100%; max-width:420px; background:#fff; border-radius:20px; padding:44px 40px; box-shadow:var(--shadow-lg); }
.login-card .logo { justify-content:center; margin-bottom:28px; }
.login-card h2 { text-align:center; color:var(--ink); font-size:24px; font-weight:800; }
.login-card .sub { text-align:center; color:var(--muted); font-size:14px; margin:8px 0 30px; }
.login-card .field { margin-bottom:18px; }
.login-card .btn { width:100%; }
.login-err { color:#c9383e; font-size:13px; margin-top:14px; text-align:center; min-height:20px; }
.login-hint { text-align:center; font-size:12px; color:#98a3b8; margin-top:22px; padding-top:18px; border-top:1px solid var(--line); }

/* 后台布局 */
.admin-app { display:flex; min-height:100vh; }
.sidebar { width:240px; background:var(--navy); color:#c7d4ee; display:flex; flex-direction:column; flex-shrink:0; position:fixed; top:0; bottom:0; left:0; }
.sidebar .logo { padding:24px 22px; border-bottom:1px solid rgba(255,255,255,0.08); }
.sidebar .logo-text strong { color:#fff; }
.sidebar .logo-text span { color:#7e91b8; }
.side-nav { padding:20px 14px; flex:1; }
.side-nav a {
  display:flex; align-items:center; gap:12px; padding:12px 14px; border-radius:10px;
  font-size:14px; font-weight:600; margin-bottom:6px; cursor:pointer; transition:all .2s;
}
.side-nav a svg { width:19px; height:19px; stroke:currentColor; }
.side-nav a:hover { background:rgba(255,255,255,0.06); color:#fff; }
.side-nav a.active { background:linear-gradient(100deg, var(--primary), var(--accent-2)); color:#fff; box-shadow:0 8px 20px rgba(22,82,240,.3); }
.sidebar-foot { padding:18px 20px; border-top:1px solid rgba(255,255,255,0.08); font-size:12px; }
.sidebar-foot button { background:none; border:none; color:#c7d4ee; cursor:pointer; display:flex; align-items:center; gap:8px; font-size:13px; }
.sidebar-foot button:hover { color:#fff; }

.admin-main { margin-left:240px; flex:1; min-width:0; }
.admin-topbar {
  height:68px; background:#fff; border-bottom:1px solid var(--line);
  display:flex; align-items:center; justify-content:space-between; padding:0 32px;
  position:sticky; top:0; z-index:20;
}
.admin-topbar h1 { font-size:19px; color:var(--ink); font-weight:800; }
.admin-topbar .who { display:flex; align-items:center; gap:10px; font-size:13px; color:var(--muted); }
.admin-topbar .who .av { width:34px;height:34px;border-radius:50%;background:var(--bg-soft-2);display:grid;place-items:center;color:var(--primary);font-weight:700; }
.admin-content { padding:30px 32px; }

.stat-cards { display:grid; grid-template-columns:repeat(4,1fr); gap:20px; margin-bottom:26px; }
.stat-card { background:#fff; border:1px solid var(--line); border-radius:14px; padding:22px 24px; display:flex; align-items:center; gap:16px; }
.stat-card .ic { width:50px;height:50px;border-radius:13px;display:grid;place-items:center;flex-shrink:0; }
.stat-card .ic svg { width:24px;height:24px; }
.stat-card .info b { display:block; font-size:28px; color:var(--ink); font-weight:800; line-height:1.1; }
.stat-card .info span { font-size:13px; color:var(--muted); }

.panel { background:#fff; border:1px solid var(--line); border-radius:14px; overflow:hidden; }
.panel-head { padding:20px 24px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; }
.panel-head h3 { font-size:16px; color:var(--ink); font-weight:700; }
.panel-tools { display:flex; gap:10px; }
.panel-tools input, .panel-tools select {
  padding:9px 12px; border:1px solid var(--line); border-radius:8px; font-size:13px; background:#fbfcff; color:var(--ink);
}
.panel-tools input { min-width:200px; }

.table-wrap { overflow-x:auto; }
table.data { width:100%; border-collapse:collapse; font-size:13.5px; }
table.data th { text-align:left; padding:13px 20px; background:#fafbfe; color:var(--muted); font-weight:600; font-size:12px; letter-spacing:.3px; white-space:nowrap; border-bottom:1px solid var(--line); }
table.data td { padding:15px 20px; border-bottom:1px solid #eef1f7; color:var(--text); vertical-align:middle; }
table.data tr:last-child td { border-bottom:none; }
table.data tbody tr:hover { background:#fafbff; }
table.data .name { font-weight:600; color:var(--ink); }
table.data .msg-cell { max-width:280px; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:var(--muted); }
.status-pill { display:inline-flex; align-items:center; gap:5px; font-size:12px; font-weight:600; padding:4px 11px; border-radius:100px; }
.status-new { background:#eef3ff; color:#1652f0; }
.status-contacted { background:#fff4e5; color:#d9820b; }
.status-closed { background:#e7f8f1; color:#0a8f5f; }
.status-pill .d { width:6px;height:6px;border-radius:50%;background:currentColor; }
.row-actions { display:flex; gap:6px; }
.icon-btn { width:32px;height:32px;border-radius:8px;border:1px solid var(--line);background:#fff;cursor:pointer;display:grid;place-items:center;color:var(--muted);transition:all .2s; }
.icon-btn:hover { color:var(--primary); border-color:#c9d8ff; background:var(--bg-soft); }
.icon-btn.danger:hover { color:#e5484d; border-color:#ffc9ca; background:#fff5f5; }
.icon-btn svg { width:16px;height:16px; }

.empty-state { text-align:center; padding:70px 20px; color:var(--muted); }
.empty-state svg { width:54px;height:54px;stroke:#c3cee0;margin-bottom:14px; }
.empty-state b { display:block; color:var(--ink); font-size:16px; margin-bottom:4px; }

/* 弹窗 */
.modal-mask { position:fixed; inset:0; background:rgba(7,26,68,.55); backdrop-filter:blur(3px); z-index:200; display:none; align-items:center; justify-content:center; padding:20px; }
.modal-mask.show { display:flex; }
.modal { background:#fff; border-radius:18px; width:100%; max-width:560px; max-height:88vh; overflow-y:auto; box-shadow:var(--shadow-lg); }
.modal-head { padding:22px 26px; border-bottom:1px solid var(--line); display:flex; align-items:center; justify-content:space-between; }
.modal-head h3 { font-size:18px; color:var(--ink); font-weight:700; }
.modal-head .x { background:none;border:none;cursor:pointer;font-size:24px;color:var(--muted);line-height:1; }
.modal-body { padding:26px; }
.modal-body .kv { display:grid; grid-template-columns:80px 1fr; gap:10px 14px; font-size:14px; margin-bottom:22px; }
.modal-body .kv dt { color:var(--muted); }
.modal-body .kv dd { color:var(--ink); font-weight:600; word-break:break-all; }
.modal-body .msg-box { background:var(--bg-soft); border-radius:10px; padding:16px; font-size:14px; color:var(--text); line-height:1.8; white-space:pre-wrap; margin-bottom:22px; }
.modal-foot { padding:18px 26px; border-top:1px solid var(--line); display:flex; justify-content:flex-end; gap:10px; }
.detail-reply { margin-top:8px; }
.detail-reply textarea { width:100%; min-height:80px; padding:12px; border:1px solid var(--line); border-radius:9px; resize:vertical; font-size:14px; }
.detail-status { display:flex; gap:8px; margin-top:8px; }
.detail-status button { padding:8px 14px; border-radius:8px; border:1px solid var(--line); background:#fff; cursor:pointer; font-size:13px; color:var(--text); }
.detail-status button.active { background:var(--primary); color:#fff; border-color:var(--primary); }

.toast { position:fixed; top:24px; right:24px; background:var(--ink); color:#fff; padding:13px 20px; border-radius:10px; font-size:14px; z-index:300; box-shadow:var(--shadow-lg); transform:translateY(-100px); opacity:0; transition:all .35s; }
.toast.show { transform:none; opacity:1; }
.toast.ok { background:#0a8f5f; }
.toast.err { background:#c9383e; }

.modal-notify .note { font-size:13.5px; color:var(--muted); line-height:1.8; background:var(--bg-soft); padding:16px; border-radius:10px; margin-top:16px; }

/* ---------- 后台：站点信息配置表单 ---------- */
.site-form-grid { display:grid; grid-template-columns:1fr 1fr; gap:20px 22px; }
.site-form-grid .field.full { grid-column:1 / -1; }
.site-form-grid .field label { font-size:13px; font-weight:600; color:var(--ink); }
.btn-sm { padding:8px 14px; font-size:13px; }
.qr-field { border-top:1px solid var(--line); padding-top:20px; }
.qr-edit-row { display:flex; gap:16px; align-items:flex-start; }
.qr-edit-preview { width:96px; height:96px; flex-shrink:0; object-fit:cover; border:1px solid var(--line); border-radius:10px; background:#fff; }
.logo-edit-preview { object-fit:contain; padding:8px; }
.qr-edit-ctrls { flex:1; min-width:0; display:flex; flex-direction:column; gap:10px; }
.qr-edit-ctrls > input { margin-top:0; }
.qr-upload-row { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.qr-upload-row .btn-outline { cursor:pointer; }
.upload-tip { font-size:12px; color:var(--muted); }
@media (max-width:640px){ .site-form-grid { grid-template-columns:1fr; } .qr-edit-row { flex-direction:column; } }

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .nav-menu, .nav-actions .admin-link { display:none; }
  .nav-toggle { display:block; }
  .nav-menu.open { display:flex; position:absolute; top:72px; left:0; right:0; background:#fff; flex-direction:column; gap:0; padding:12px 24px 22px; box-shadow:var(--shadow-md); align-items:stretch; }
  .nav-menu.open a { padding:12px 0; border-bottom:1px solid var(--line); }
  .hero-inner { grid-template-columns:1fr; gap:36px; padding:70px 0 30px; }
  .hero-slides { min-height: 480px; }
  .hero-visual { display:none; }
  .side-widget .sw-item { width: 52px; min-height: 62px; padding: 10px 2px; }
  .side-widget .sw-item span { font-size: 10px; }
  .hero-stats { grid-template-columns:repeat(2,1fr); }
  .hero-stats .stat:nth-child(2){border-right:none}
  .hero-stats .stat:nth-child(-n+2){border-bottom:1px solid rgba(255,255,255,0.1)}
  .services-grid, .cases-grid { grid-template-columns:repeat(2,1fr); }
  .split, .about-grid, .contact-wrap { grid-template-columns:1fr; gap:40px; }
  .flow-grid { grid-template-columns:repeat(2,1fr); gap:34px 0; }
  .flow-step:not(:last-child)::after { display:none; }
  .footer-grid { grid-template-columns:1fr 1fr; }
  .stat-cards { grid-template-columns:repeat(2,1fr); }
  .sidebar { width:76px; }
  .sidebar .logo-text, .side-nav a span, .sidebar-foot span { display:none; }
  .sidebar .logo { justify-content:center; padding:22px 0; }
  .side-nav a { justify-content:center; }
  .admin-main { margin-left:76px; }
}

@media (max-width: 640px) {
  .section { padding:70px 0; }
  .services-grid, .cases-grid, .form-grid, .stat-cards { grid-template-columns:1fr; }
  .cta-banner { padding:40px 24px; }
  .contact-form-box { padding:26px 20px; }
  .hero-stats .stat { padding:22px 6px 28px; }
  .footer-grid { grid-template-columns:1fr; gap:28px; }
  .admin-topbar, .admin-content { padding-left:18px; padding-right:18px; }
  .panel-head { flex-direction:column; align-items:stretch; }
  .panel-tools input { min-width:0; width:100%; }
  .side-widget { display: none; }
  .qr-list { grid-template-columns: 1fr; }
  .hero-lead { min-height: 0; }
  .hero-dot { width: 36px; }
}
