/* ============================================================
   ITSTIME 正时科技 — 全站样式（唯一设计源）
   tech-dark · 深蓝简约科技风 · 零外部依赖
   ============================================================ */

/* ---------- Design Tokens ---------- */
:root {
  --primary: #2F6BFF;
  --primary-hover: #4D82FF;
  --accent: #38E1FF;
  --bg: #0f0f1d;
  --bg-soft: #0f0f1d;
  --surface: #101C33;
  --surface-2: #0f0f1d;
  --border: rgba(148, 175, 255, .14);
  --border-strong: rgba(148, 175, 255, .28);
  --text: #E8EFFC;
  --text-sub: #8FA3C4;
  --text-dim: #5D6F8F;
  --success: #3DDC97;
  --warning: #FFB454;
  --danger: #FF6B6B;
  --gradient: linear-gradient(135deg, #2F6BFF 0%, #38E1FF 100%);
  --glow: rgba(47, 107, 255, .25);
  --shadow: 0 12px 32px rgba(3, 8, 20, .45);
  --shadow-glow: 0 16px 48px rgba(74, 80, 247, .3);
  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;
  --header-h: 72px;
  --container: 1200px;
}

/* ---------- Reset / Base ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  /* 网格纹理 + 顶部径向光晕，固定在视口 */
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(800px 480px at 12% -6%, rgba(47, 107, 255, .16), transparent 62%),
    radial-gradient(720px 460px at 92% 4%, rgba(56, 225, 255, .08), transparent 60%),
    repeating-linear-gradient(0deg, rgba(148, 175, 255, .035) 0 1px, transparent 1px 72px),
    repeating-linear-gradient(90deg, rgba(148, 175, 255, .035) 0 1px, transparent 1px 72px),
    var(--bg);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, ol { list-style: none; }
button { font-family: inherit; cursor: pointer; }
input, textarea, select { font-family: inherit; }
::selection { background: rgba(47, 107, 255, .4); color: #fff; }

/* 自适应全屏：内容随视口宽度拉伸，两侧留自适应呼吸边距 */
.container { width: 100%; max-width: none; margin: 0 auto; padding: 0 clamp(20px, 4vw, 72px); }
.i { width: 20px; height: 20px; flex: none; }

/* ---------- 通用组件 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 26px;
  border-radius: 0;
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: #4A50F7;
  color: #fff;
  box-shadow: 0 8px 24px rgba(74, 80, 247, .35);
}
.btn-primary:hover { background: #5F66FF; transform: translateY(-2px); box-shadow: var(--shadow-glow); }
.btn-ghost {
  background: rgba(47, 107, 255, .08);
  border-color: var(--border-strong);
  color: var(--text);
}
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn-danger { background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .35); color: var(--danger); }
.btn-danger:hover { background: rgba(255, 107, 107, .2); }
.btn-sm { padding: 8px 18px; font-size: 14px; }
.btn-lg { padding: 15px 34px; font-size: 16px; }
.btn-block { width: 100%; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none !important; }

.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  border: 1px solid rgba(56, 225, 255, .3);
  background: rgba(56, 225, 255, .08);
  color: var(--accent);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: .04em;
}
.chip {
  padding: 8px 20px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  font-size: 14px;
  transition: all .18s ease;
}
.chip:hover { border-color: var(--border-strong); color: var(--text); }
.chip.active {
  background: var(--gradient);
  border-color: transparent;
  color: #fff;
  font-weight: 600;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}
.card:hover { transform: translateY(-4px); border-color: rgba(56, 225, 255, .35); box-shadow: var(--shadow-glow); }
button.card { padding: 0; appearance: none; width: 100%; }

/* 渐变描边高亮卡 */
.card-glow {
  position: relative;
  background: linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, rgba(47, 107, 255, .5), rgba(56, 225, 255, .35)) border-box;
  border: 1px solid transparent;
}

.icon-box {
  width: 52px; height: 52px;
  border-radius: var(--radius-sm);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(47, 107, 255, .12);
  border: 1px solid rgba(47, 107, 255, .3);
  color: var(--accent);
  flex: none;
}
.icon-box .i { width: 26px; height: 26px; }
.icon-box.lg { width: 64px; height: 64px; border-radius: var(--radius-md); }
.icon-box.lg .i { width: 30px; height: 30px; }

/* ---------- Section 标题 ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section-head.left { margin-left: 0; text-align: left; }
.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .18em;
  color: var(--accent);
  text-transform: uppercase;
  margin-bottom: 14px;
}
.section-eyebrow::before { content: ""; width: 24px; height: 2px; background: var(--gradient); border-radius: 2px; }
.section-title {
  font-size: 40px;
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.section-title em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.section-desc { margin-top: 14px; color: var(--text-sub); font-size: 16px; }

/* ---------- 入场动画 ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .08s; }
.reveal[data-delay="2"] { transition-delay: .16s; }
.reveal[data-delay="3"] { transition-delay: .24s; }
.reveal[data-delay="4"] { transition-delay: .32s; }
.reveal[data-delay="5"] { transition-delay: .4s; }

/* ---------- Header ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--header-h);
  /* transition: background .25s ease, border-color .25s ease, box-shadow .25s ease;
  border-bottom: 1px solid transparent; */
}
.site-header.scrolled {
  /* background: rgba(30, 30, 51, .86); */
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom-color: var(--border);
  /* box-shadow: 0 8px 28px rgba(3, 8, 20, .4); */
}
.header-inner { display: flex; align-items: center; gap: 32px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; flex: none; }
.brand-logo { height: 32px; width: auto; flex: none; display: block; }
.brand-name { font-size: 18px; font-weight: 800; letter-spacing: .01em; line-height: 1.15; }
.nav-links { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.nav-links a {
  position: relative;
  padding: 8px 16px;
  font-size: 15px;
  color: var(--text-sub);
  border-radius: var(--radius-sm);
  transition: color .18s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; bottom: 2px;
  height: 2px;
  border-radius: 2px;
  background: var(--gradient);
  transform: scaleX(0);
  transition: transform .2s ease;
}
.nav-links a.active { color: var(--text); font-weight: 600; }
.nav-links a.active::after { transform: scaleX(1); }
.header-actions { display: flex; align-items: center; gap: 14px; flex: none; }
.header-phone {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--text-sub);
  transition: color .18s ease;
}
.header-phone:hover { color: var(--accent); }
.header-phone .i { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 8px; color: var(--text); }

/* ---------- Hero / 轮播 ---------- */
.hero { position: relative; padding-top: 0; }
.carousel { position: relative; height: min(100vh, 960px); min-height: 560px; overflow: hidden; }
.carousel-track { position: absolute; inset: 0; }
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0;
  transition: opacity .8s ease;
  display: flex;
  align-items: center;
}
.carousel-slide.active { opacity: 1; }
.carousel-bg {
  position: absolute; inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.08);
  transition: transform 6s linear;
}
.carousel-slide.active .carousel-bg { transform: scale(1); }
.carousel-bg::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(15, 15, 29, .92) 0%, rgba(15, 15, 29, .62) 46%, rgba(15, 15, 29, .18) 100%),
    linear-gradient(0deg, var(--bg) 0%, transparent 32%);
}
.carousel-content { position: relative; max-width: 640px; padding: 96px 0 120px; }
.carousel-badge { margin-bottom: 18px; }
.carousel-title { font-size: clamp(34px, 4.6vw, 60px); font-weight: 900; letter-spacing: -0.02em; line-height: 1.18; }
.carousel-title em { font-style: normal; background: var(--gradient); -webkit-background-clip: text; background-clip: text; color: transparent; }
.carousel-en { font-family: var(--mono); font-size: 13px; letter-spacing: .28em; color: var(--accent); text-transform: uppercase; margin: 10px 0 18px; }
.carousel-desc { font-size: 17px; color: var(--text-sub); max-width: 540px; margin-bottom: 34px; }
.carousel-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.carousel-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 46px; height: 46px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(30, 30, 51, .5);
  backdrop-filter: blur(8px);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  transition: all .2s ease;
}
.carousel-nav:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 20px rgba(56, 225, 255, .25); }
.carousel-nav.prev { left: 28px; }
.carousel-nav.next { right: 28px; }
.carousel-dots {
  position: absolute;
  bottom: 28px; left: 50%;
  transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 5;
}
.carousel-dot { width: 26px; height: 4px; border-radius: 4px; background: rgba(232, 239, 252, .22); border: none; transition: all .25s ease; }
.carousel-dot.active { background: var(--gradient); width: 40px; }

/* ---------- 数据条 ---------- */
.stats-band { position: relative; z-index: 6; margin-top: -64px; }
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(16, 28, 51, .9);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  overflow: hidden;
}
.stat-item { padding: 34px 20px; text-align: center; border-left: 1px solid var(--border); }
.stat-item:first-child { border-left: none; }
.stat-value {
  font-family: var(--mono);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: -0.02em;
  background: var(--gradient);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  line-height: 1.1;
}
.stat-label { margin-top: 6px; color: var(--text-sub); font-size: 14px; }

/* ---------- 网格布局 ---------- */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 24px; }
/* ---------- 优势卡 ---------- */
.adv-card { padding: 30px 26px; position: relative; overflow: hidden; }
.adv-card::before {
  content: "";
  position: absolute; top: -60px; right: -60px;
  width: 140px; height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 225, 255, .14), transparent 70%);
  opacity: 0;
  transition: opacity .3s ease;
}
.adv-card:hover::before { opacity: 1; }
.adv-card h3 { margin: 18px 0 10px; font-size: 18px; font-weight: 700;  }
.adv-card p { color: var(--text-sub); font-size: 14px; line-height: 1.75; }
.adv-index {
  position: absolute; top: 22px; right: 24px;
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text-dim);
  letter-spacing: .1em;
}

/* ---------- 服务卡 ---------- */
.svc-card { padding: 32px 28px; display: flex; flex-direction: column; }
.svc-card h3 { margin: 20px 0 4px; font-size: 20px; font-weight: 700; }
.svc-card .svc-en { font-family: var(--mono); font-size: 12px; letter-spacing: .16em; color: var(--text-dim); text-transform: uppercase; }
.svc-card p { margin: 12px 0 16px; color: var(--text-sub); font-size: 14px; flex: 1; }
.svc-features { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; }
.svc-features .tag { font-size: 12px; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; color: var(--accent); font-size: 14px; font-weight: 600; }
.svc-link .i { width: 16px; height: 16px; transition: transform .2s ease; }
.svc-link:hover .i { transform: translateX(4px); }

/* 服务详情交替布局 */
.svc-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 44px 0;
}
.svc-row + .svc-row { border-top: 1px solid var(--border); }
.svc-row .svc-visual { position: relative; }
.svc-row h3 { font-size: 26px; font-weight: 800; letter-spacing: -0.02em; }
.svc-row .svc-en { font-family: var(--mono); font-size: 12px; letter-spacing: .2em; color: var(--accent); text-transform: uppercase; }
.svc-row p.svc-summary { margin: 14px 0 18px; color: var(--text-sub); }
.svc-feat-list { display: grid; gap: 10px; }
.svc-feat-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-sub); font-size: 14px; }
.svc-feat-list .i { width: 18px; height: 18px; color: var(--success); margin-top: 3px; flex: none; }
.svc-num {
  position: absolute; top: -34px; left: -10px;
  font-family: var(--mono);
  font-size: 88px;
  font-weight: 800;
  color: transparent;
  -webkit-text-stroke: 1px rgba(56, 225, 255, .22);
  line-height: 1;
  user-select: none;
}

/* ---------- 案例卡 ---------- */
.case-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; text-align: left; }
.case-cover { position: relative; aspect-ratio: 4 / 3; overflow: hidden; }
.case-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.case-card:hover .case-cover img { transform: scale(1.06); }
.case-cover .tag { position: absolute; top: 14px; left: 14px; background: rgba(30, 30, 51, .78); backdrop-filter: blur(6px); }
.case-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.case-body h3 { font-size: 17px; font-weight: 700; line-height: 1.45;color: #fff}
.case-meta { margin-top: 10px; display: flex; gap: 14px; color: var(--text-dim); font-size: 13px; font-family: var(--mono); }
.case-summary { margin-top: 10px; color: var(--text-sub); font-size: 14px; flex: 1; }

/* ---------- 动态卡 ---------- */
.news-card { overflow: hidden; display: flex; flex-direction: column; cursor: pointer; }
.news-cover { aspect-ratio: 16 / 10; overflow: hidden; }
.news-cover img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.news-card:hover .news-cover img { transform: scale(1.06); }
.news-body { padding: 20px 22px 24px; flex: 1; display: flex; flex-direction: column; }
.news-meta { display: flex; align-items: center; gap: 12px; font-size: 12px; color: var(--text-dim); font-family: var(--mono); margin-bottom: 12px; }
.news-body h3 { font-size: 16px; font-weight: 700; line-height: 1.5; }
.news-body p { margin-top: 10px; color: var(--text-sub); font-size: 14px; flex: 1; }
.news-more { margin-top: 16px; color: var(--accent); font-size: 13px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; }
.news-more .i { width: 14px; height: 14px; }

/* ---------- CTA 带 ---------- */
.cta-band { position: relative; overflow: hidden; }
.cta-inner {
  position: relative;
  border-radius: var(--radius-lg);
  padding: 64px 56px;
  background: linear-gradient(135deg, rgba(47, 107, 255, .22), rgba(56, 225, 255, .1)), var(--surface);
  border: 1px solid var(--border-strong);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  overflow: hidden;
}
.cta-inner::before {
  content: "";
  position: absolute; right: -80px; top: -80px;
  width: 320px; height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(56, 225, 255, .18), transparent 70%);
}
.cta-inner h2 { font-size: 32px; font-weight: 800; letter-spacing: -0.02em; position: relative; }
.cta-inner p { color: var(--text-sub); margin-top: 10px; position: relative; }
.cta-actions { display: flex; gap: 14px; position: relative; flex: none; }

/* ---------- 关于页 ---------- */
.about-hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.about-img-wrap { position: relative; }
.about-img-wrap img { border-radius: var(--radius-lg); border: 1px solid var(--border-strong); box-shadow: var(--shadow); }
.about-img-wrap::before {
  content: "";
  position: absolute; inset: 18px -18px -18px 18px;
  border: 1px solid rgba(56, 225, 255, .25);
  border-radius: var(--radius-lg);
  z-index: -1;
}
.prose p { color: var(--text-sub); margin-bottom: 14px; }
.prose p strong { color: var(--text); }
.mv-card { padding: 30px 26px; }
.mv-card h3 { margin: 16px 0 10px; font-size: 18px; }
.mv-card p { color: var(--text-sub); font-size: 14px; }

/* 时间线 */
.timeline { position: relative; max-width: 760px; margin: 0 auto; padding-left: 28px; }
.timeline::before {
  content: "";
  position: absolute; left: 6px; top: 6px; bottom: 6px;
  width: 2px;
  background: linear-gradient(180deg, var(--primary), rgba(56, 225, 255, .2));
  border-radius: 2px;
}
.timeline-item { position: relative; padding: 0 0 36px 28px; }
.timeline-item:last-child { padding-bottom: 0; }
.timeline-item::before {
  content: "";
  position: absolute; left: -28px; top: 7px;
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 12px rgba(56, 225, 255, .5);
}
.timeline-year { font-family: var(--mono); color: var(--accent); font-weight: 700; font-size: 15px; letter-spacing: .06em; }
.timeline-item h3 { font-size: 17px; font-weight: 700; margin-top: 4px; }
.timeline-item p { color: var(--text-sub); font-size: 14px; margin-top: 6px; }

/* 荣誉 */
.honor-item { padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.honor-item .i { color: var(--warning); width: 24px; height: 24px; flex: none; }
.honor-item h3 { font-size: 15px; font-weight: 600; }
.honor-item p { font-size: 13px; color: var(--text-dim); }

/* 流程 */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: flow; }
.flow-step { padding: 28px 24px; position: relative; counter-increment: flow; }
.flow-step::before {
  content: "0" counter(flow);
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px; height: 40px;
  border-radius: 10px;
  border: 1px solid rgba(56, 225, 255, .35);
  background: rgba(56, 225, 255, .07);
  margin-bottom: 16px;
}
.flow-step h3 { font-size: 17px; margin-bottom: 8px; }
.flow-step p { color: var(--text-sub); font-size: 14px; }

/* 技术栈标签墙 */
.tech-wall { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.tech-pill {
  font-family: var(--mono);
  font-size: 13px;
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--surface);
  color: var(--text-sub);
  transition: all .18s ease;
}
.tech-pill:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 16px rgba(56, 225, 255, .18); }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 48px; align-items: start; }
.contact-info-card { padding: 28px 26px; display: flex; gap: 18px; align-items: flex-start; }
.contact-info-card h3 { font-size: 16px; margin-bottom: 4px; }
.contact-info-card p { color: var(--text-sub); font-size: 14px; }
.contact-info-card p a:hover { color: var(--accent); }
.map-block {
  position: relative;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-strong);
  overflow: hidden;
  background:
    radial-gradient(420px 220px at 70% 40%, rgba(47, 107, 255, .3), transparent 70%),
    repeating-linear-gradient(0deg, rgba(148, 175, 255, .06) 0 1px, transparent 1px 40px),
    repeating-linear-gradient(90deg, rgba(148, 175, 255, .06) 0 1px, transparent 1px 40px),
    var(--surface);
  height: 240px;
}
.map-pin {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -100%);
  color: var(--accent);
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  text-align: center;
}
.map-pin .i { width: 34px; height: 34px; filter: drop-shadow(0 0 12px rgba(56, 225, 255, .6)); }
.map-pin span { font-size: 13px; color: var(--text-sub); background: rgba(30, 30, 51, .7); padding: 4px 12px; border-radius: 999px; border: 1px solid var(--border); white-space: nowrap; }
.map-block::after {
  content: "";
  position: absolute; left: 50%; top: 42%;
  width: 120px; height: 120px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 1px solid rgba(56, 225, 255, .3);
  animation: pulse 2.4s ease-out infinite;
}
@keyframes pulse {
  0% { transform: translate(-50%, -50%) scale(.5); opacity: 1; }
  100% { transform: translate(-50%, -50%) scale(1.6); opacity: 0; }
}

/* ---------- 表单 ---------- */
.form-card { padding: 36px 34px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.form-field { display: flex; flex-direction: column; gap: 8px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label { font-size: 14px; font-weight: 600; color: var(--text); }
.form-field label small { color: var(--text-dim); font-weight: 400; }
.input, .textarea, .select {
  width: 100%;
  background: var(--bg-soft);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  padding: 12px 14px;
  font-size: 14px;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.input::placeholder, .textarea::placeholder { color: var(--text-dim); }
.input:focus, .textarea:focus, .select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(47, 107, 255, .18);
}
.textarea { resize: vertical; min-height: 120px; }
.select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--text-sub) 50%), linear-gradient(135deg, var(--text-sub) 50%, transparent 50%); background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; }
.form-error { font-size: 12px; color: var(--danger); min-height: 16px; }
.form-field.invalid .input, .form-field.invalid .textarea, .form-field.invalid .select { border-color: var(--danger); }

/* ---------- Modal ---------- */
.modal-mask {
  position: fixed; inset: 0;
  z-index: 200;
  background: rgba(3, 8, 20, .7);
  backdrop-filter: blur(6px);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}
.modal-mask.open { display: flex; }
.modal {
  width: min(680px, 100%);
  max-height: 86vh;
  overflow-y: auto;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  animation: modalIn .25s ease;
}
@keyframes modalIn { from { opacity: 0; transform: translateY(18px) scale(.98); } to { opacity: 1; transform: none; } }
.modal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 26px;
  border-bottom: 1px solid var(--border);
  position: sticky; top: 0;
  background: var(--surface);
  z-index: 2;
}
.modal-head h3 { font-size: 18px; font-weight: 700; }
.modal-close { background: none; border: 1px solid var(--border); border-radius: var(--radius-sm); color: var(--text-sub); padding: 7px; display: flex; transition: all .18s ease; }
.modal-close:hover { color: var(--text); border-color: var(--border-strong); }
.modal-body { padding: 26px; }
.modal-foot { padding: 18px 26px; border-top: 1px solid var(--border); display: flex; justify-content: flex-end; gap: 12px; }

/* 案例详情 */
.case-detail-cover { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); margin-bottom: 20px; }
.case-detail-cover img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.case-detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.case-detail-body p { color: var(--text-sub); font-size: 14.5px; margin-bottom: 14px; }
.case-detail-body h4 { margin: 20px 0 10px; font-size: 15px; color: var(--accent); }
.case-gallery { margin-top: 22px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; }
.case-gallery-item { border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); }
.case-gallery-item img { display: block; width: 100%; height: 140px; object-fit: cover; }

/* ---------- Toast ---------- */
.toast-wrap { position: fixed; top: 88px; right: 24px; z-index: 300; display: flex; flex-direction: column; gap: 10px; }
.toast {
  display: flex; align-items: center; gap: 10px;
  background: var(--surface-2);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--success);
  border-radius: var(--radius-sm);
  padding: 13px 18px;
  font-size: 14px;
  box-shadow: var(--shadow);
  animation: toastIn .3s ease;
  max-width: 340px;
}
.toast.error { border-left-color: var(--danger); }
.toast .i { width: 18px; height: 18px; color: var(--success); flex: none; }
.toast.error .i { color: var(--danger); }
@keyframes toastIn { from { opacity: 0; transform: translateX(24px); } to { opacity: 1; transform: none; } }
.toast.hide { opacity: 0; transform: translateX(24px); transition: all .3s ease; }

/* ---------- 页脚 ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--border); background: rgba(30, 30, 51, .7); position: relative; }
body[data-page="home"] .site-footer { margin-top: 0; }
.footer-main { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-sub); font-size: 14px; max-width: 300px; }
.footer-col h4 { font-size: 15px; font-weight: 700; margin-bottom: 18px; letter-spacing: .04em; }
.footer-col ul { display: grid; gap: 12px; }
.footer-col a, .footer-col li { color: var(--text-sub); font-size: 14px; transition: color .18s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-contact li { display: flex; gap: 10px; align-items: flex-start; }
.footer-contact .i { width: 16px; height: 16px; color: var(--accent); margin-top: 4px; flex: none; }
.footer-bar { border-top: 1px solid var(--border); padding: 20px 0; }
.footer-bar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--text-dim); font-size: 13px; }
.footer-bar a:hover { color: var(--accent); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 30px;
  z-index: 90;
  width: 44px; height: 44px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  background: rgba(16, 28, 51, .9);
  color: var(--text);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none;
  transition: all .25s ease;
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 18px rgba(56, 225, 255, .3); }

/* ---------- 页面顶栏（内页 hero） ---------- */
.page-hero {
  position: relative;
  padding: calc(var(--header-h) + 84px) 0 72px;
  overflow: hidden;
}
.page-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(56, 225, 255, .3), transparent);
}
.page-hero .section-eyebrow { margin-bottom: 12px; }
.page-title { font-size: clamp(32px, 4vw, 48px); font-weight: 900; letter-spacing: -0.02em; }
.page-desc { margin-top: 14px; color: var(--text-sub); max-width: 620px; font-size: 16px; }
.breadcrumb { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--text-dim); margin-bottom: 18px; font-family: var(--mono); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .i { width: 13px; height: 13px; }

/* ============================================================
   后台 admin.html（独立 shell：登录卡 + 侧边栏 + 主区）
   ============================================================ */
.admin-body { display: none; }
body[data-page="admin"] .admin-body { display: block; }
.admin-layout { display: none; min-height: 100vh; }
.admin-layout.show { display: block; }

.admin-sidebar {
  position: fixed; top: 0; left: 0; bottom: 0;
  width: 240px;
  background: var(--bg-soft);
  border-right: 1px solid var(--border);
  display: flex; flex-direction: column;
  z-index: 50;
}
.admin-brand { display: flex; align-items: center; gap: 10px; padding: 20px 22px; border-bottom: 1px solid var(--border); }
.admin-nav { padding: 16px 12px; display: grid; gap: 4px; flex: 1; overflow-y: auto; }
.admin-nav button {
  display: flex; align-items: center; gap: 12px;
  width: 100%;
  padding: 11px 14px;
  background: none;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--text-sub);
  font-size: 14px;
  text-align: left;
  transition: all .18s ease;
}
.admin-nav button:hover { color: var(--text); background: rgba(47, 107, 255, .08); }
.admin-nav button.active {
  color: var(--text);
  background: rgba(47, 107, 255, .14);
  border-color: rgba(47, 107, 255, .3);
}
.admin-nav button .i { width: 18px; height: 18px; }
.admin-sidebar-foot { padding: 16px 22px; border-top: 1px solid var(--border); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.admin-user { font-size: 13px; color: var(--text-sub); display: flex; align-items: center; gap: 8px; min-width: 0; }
.admin-user b { color: var(--text); font-size: 13px; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.admin-main { margin-left: 240px; padding: 28px 32px 48px; min-height: 100vh; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 26px; }
.admin-topbar h1 { font-size: 22px; font-weight: 800; letter-spacing: -0.01em; }
.admin-topbar .admin-topbar-sub { color: var(--text-dim); font-size: 13px; margin-top: 2px; }

.admin-panel { display: none; }
.admin-panel.active { display: block; animation: modalIn .25s ease; }

/* 仪表盘 */
.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 26px; }
.stat-card { padding: 22px 24px; display: flex; align-items: center; gap: 16px; }
.stat-card .icon-box { width: 48px; height: 48px; }
.stat-card .icon-box .i { width: 24px; height: 24px; }
.stat-card b { font-family: var(--mono); font-size: 26px; font-weight: 700; line-height: 1.2; display: block; }
.stat-card span { color: var(--text-sub); font-size: 13px; }

/* 表格 */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.admin-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 720px; }
.admin-table th {
  text-align: left;
  padding: 13px 16px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--text-dim);
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
  white-space: nowrap;
}
.admin-table td { padding: 13px 16px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.admin-table tr:last-child td { border-bottom: none; }
.admin-table tbody tr { transition: background .15s ease; }
.admin-table tbody tr:hover { background: rgba(47, 107, 255, .05); }
.admin-table .thumb { width: 72px; height: 48px; border-radius: 6px; object-fit: cover; border: 1px solid var(--border); background: var(--bg-soft); }
.admin-table .cell-title { font-weight: 600; max-width: 260px; }
.admin-table .cell-sub { color: var(--text-dim); font-size: 12.5px; margin-top: 2px; }
.row-actions { display: flex; gap: 8px; }
.icon-btn {
  width: 32px; height: 32px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: none;
  color: var(--text-sub);
  display: inline-flex; align-items: center; justify-content: center;
  transition: all .18s ease;
}
.icon-btn .i { width: 15px; height: 15px; }
.icon-btn:hover { color: var(--accent); border-color: rgba(56, 225, 255, .4); }
.icon-btn.danger:hover { color: var(--danger); border-color: rgba(255, 107, 107, .4); }
.icon-btn.feat-btn.on { color: var(--warning); border-color: rgba(255, 180, 84, .45); }
.icon-btn.feat-btn.on .i { fill: currentColor; }
.badge { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12px; border: 1px solid var(--border); color: var(--text-sub); }
.badge.unread { border-color: rgba(255, 180, 84, .4); color: var(--warning); background: rgba(255, 180, 84, .08); }
.badge.read { border-color: rgba(61, 220, 151, .35); color: var(--success); background: rgba(61, 220, 151, .07); }
.admin-empty { padding: 56px 20px; text-align: center; color: var(--text-dim); }
.admin-empty .i { width: 40px; height: 40px; margin: 0 auto 14px; opacity: .5; }
.panel-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.panel-head h2 { font-size: 16px; font-weight: 700; }

/* 上传区 */
.upload-zone {
  border: 1.5px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: var(--bg-soft);
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: all .2s ease;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-sub);
  font-size: 13.5px;
}
.upload-zone:hover, .upload-zone.dragover { border-color: var(--accent); background: rgba(56, 225, 255, .05); }
.upload-zone .i { width: 28px; height: 28px; color: var(--accent); }
.upload-preview { margin-top: 14px; display: none; }
.upload-preview.show { display: block; }
.upload-preview img { width: 100%; max-height: 220px; object-fit: contain; border-radius: var(--radius-sm); border: 1px solid var(--border); background: var(--bg-soft); }
.gallery-list { margin-top: 14px; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 10px; }
.gallery-empty { color: var(--text-dim); font-size: 13px; }
.gallery-item { position: relative; border-radius: var(--radius-sm); overflow: hidden; border: 1px solid var(--border); background: var(--bg-soft); }
.gallery-item img { display: block; width: 100%; height: 90px; object-fit: cover; }
.gallery-del {
  position: absolute; top: 6px; right: 6px; width: 22px; height: 22px;
  display: flex; align-items: center; justify-content: center;
  border: none; border-radius: 50%; cursor: pointer;
  background: rgba(10, 12, 24, .72); color: #fff; font-size: 15px; line-height: 1;
}
.gallery-del:hover { background: var(--danger); }

/* 登录卡 */
.login-wrap {
  min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  position: relative;
  overflow: hidden;
}
.login-wrap::before {
  content: "";
  position: absolute; top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 720px; height: 480px;
  background: radial-gradient(closest-side, rgba(47, 107, 255, .22), transparent);
  pointer-events: none;
}
.login-card {
  width: min(420px, 100%);
  padding: 44px 40px;
  border-radius: var(--radius-lg);
  background: rgba(16, 28, 51, .82);
  backdrop-filter: blur(14px);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow);
  position: relative;
}
.login-brand { display: flex; flex-direction: column; align-items: center; gap: 14px; margin-bottom: 30px; text-align: center; }
.login-brand .brand-logo { height: 44px; }
.login-brand h1 { font-size: 20px; font-weight: 800; }
.login-brand p { color: var(--text-dim); font-size: 13px; }
.login-form { display: grid; gap: 16px; }
.login-hint { margin-top: 18px; text-align: center; font-size: 12.5px; color: var(--text-dim); }
.login-hint code { font-family: var(--mono); color: var(--accent); background: rgba(56, 225, 255, .07); padding: 1px 7px; border-radius: 5px; }

/* 消息详情 */
.msg-detail dt { font-size: 12.5px; color: var(--text-dim); margin: 14px 0 4px; }
.msg-detail dt:first-child { margin-top: 0; }
.msg-detail dd { font-size: 14.5px; color: var(--text); }
.msg-detail .msg-content { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin-top: 4px; line-height: 1.8; }

/* ============================================================
   响应式
   ============================================================ */
@media (max-width: 1024px) {
  .section { padding: 76px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(3) { border-left: none; }
  .stat-item:nth-child(n+3) { border-top: 1px solid var(--border); }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 36px; }
  .about-hero-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .svc-row { grid-template-columns: 1fr; gap: 28px; padding: 36px 0; }
  .svc-row .svc-visual { order: -1; }
  .flow-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .header-phone { display: none; }
}

@media (max-width: 768px) {
  .nav-links {
    position: fixed;
    top: var(--header-h);
    left: 0; right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    margin: 0;
    padding: 16px 20px 22px;
    background: rgba(30, 30, 51, .97);
    backdrop-filter: blur(16px);
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    transform: translateY(-12px);
    opacity: 0;
    pointer-events: none;
    transition: all .25s ease;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 13px 14px; font-size: 16px; border-radius: var(--radius-sm); }
  .nav-links a::after { display: none; }
  .nav-links a.active { background: rgba(47, 107, 255, .12); }
  .nav-toggle { display: inline-flex; }
  .site-header { background: rgba(30, 30, 51, .86); backdrop-filter: blur(14px); border-bottom-color: var(--border); }

  .section-title { font-size: 30px; }
  .carousel { min-height: 520px; height: 78vh; }
  .carousel-content { padding: 72px 0 110px; }
  .carousel-nav { display: none; }
  .grid-2 { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .stats-band { margin-top: -40px; }
  .stat-value { font-size: 32px; }
  .form-grid { grid-template-columns: 1fr; }
  .cta-inner { flex-direction: column; align-items: flex-start; padding: 44px 30px; }
  .page-hero { padding: calc(var(--header-h) + 52px) 0 52px; }
  .admin-sidebar { width: 200px; }
  .admin-main { margin-left: 200px; padding: 22px 18px 40px; }
}

@media (max-width: 480px) {
  .container { padding: 0 18px; }
  .section { padding: 60px 0; }
  .grid-4, .flow-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr; }
  .stat-item { border-left: none !important; border-top: 1px solid var(--border); }
  .stat-item:first-child { border-top: none !important; }
  .carousel-actions .btn { width: 100%; }
  .footer-main { grid-template-columns: 1fr; gap: 30px; padding: 48px 0 36px; }
  .brand-name { font-size: 16px; }
  .header-actions .btn { display: none; }
  .stat-cards { grid-template-columns: 1fr; }
  .admin-sidebar { width: 76px; padding: 0; }
  .admin-brand { justify-content: center; padding: 16px 8px; }
  .admin-brand .brand-name { display: none; }
  .admin-nav button span, .admin-user b, .admin-user::after { display: none; }
  .admin-nav button { justify-content: center; padding: 12px; }
  .admin-sidebar-foot { justify-content: center; padding: 14px 8px; }
  .admin-main { margin-left: 76px; padding: 18px 14px 36px; }
  .admin-topbar { flex-direction: column; align-items: flex-start; }
  .toast-wrap { right: 14px; left: 14px; }
  .toast { max-width: none; }
}
