/* ===== 自托管字体（OFL 授权）：思源宋体子集(标题) + Inter 可变(英文/数字) ===== */
@font-face {
  font-family: "Site Serif";
  src: url("../fonts/noto-serif-sc-regular.woff2") format("woff2");
  font-weight: 400; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Site Serif";
  src: url("../fonts/noto-serif-sc-bold.woff2") format("woff2");
  font-weight: 700; font-style: normal; font-display: block;
}
@font-face {
  font-family: "Inter";
  src: url("../fonts/inter-var-latin.woff2") format("woff2");
  font-weight: 100 900; font-style: normal; font-display: swap;
}

:root {
  --primary: #6b3ea6;
  --primary-dark: #4a2878;
  --primary-light: #f1eaf9;
  --accent: #8a4fc0;
  --brand-grad: linear-gradient(135deg, #2b1747 0%, #6b3ea6 55%, #8a4fc0 100%);
  --brand-grad-2: linear-gradient(135deg, #4a2878, #6b3ea6);
  --svc-ai-1: #4c2f9e;
  --svc-ai-2: #7b5cd0;
  --svc-dev-1: #7c2d7e;
  --svc-dev-2: #b15fbe;
  --svc-sec-1: #1f5f7c;
  --svc-sec-2: #3e92b4;
  --tracking-label: 0.2em;
  --text: #2e2a38;
  --text-light: #626b7a;
  --bg: #ffffff;
  --bg-soft: #f6f4fa;
  --border: #e6e1ee;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow-sm: 0 1px 2px rgba(35, 25, 60, 0.05);
  --shadow: 0 1px 2px rgba(35, 25, 60, 0.05), 0 6px 16px -8px rgba(35, 25, 60, 0.1);
  --shadow-hover: 0 2px 6px rgba(35, 25, 60, 0.08), 0 20px 40px -12px rgba(35, 25, 60, 0.18);
  --footer-bg: #1c1727;
  --footer-text: #aeb9c5;
  --footer-dim: rgba(255, 255, 255, 0.5);
  --max-w: 1120px;

  --font-display: "Site Serif", "Noto Serif CJK SC", "Songti SC", "SimSun", serif;
  --font-num: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* 1.25 模数 type scale */
  --fs-display: clamp(34px, 5vw, 56px);
  --fs-h1: clamp(26px, 3.4vw, 38px);
  --fs-h2: 28px;
  --fs-h3: 19px;
  --fs-body: 16px;
  --fs-sm: 14.5px;
  --fs-label: 12.5px;
  --fs-xs: 13px;

  --section-y: 84px;
}

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

a, button { -webkit-tap-highlight-color: rgba(107, 62, 166, 0.12); }

html { scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  line-height: 1.35;
}
h1 { letter-spacing: 2px; }
h2 { letter-spacing: 1.5px; }

.hero p, .page-banner p, .about-text p, .card p, .section-head p,
.cta p, .inquiry-card p, .location-text { text-wrap: pretty; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 200;
  background: var(--primary);
  color: #fff;
  padding: 10px 18px;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* 深色背景上 accent 焦点环对比度不足（1.38:1），改用白色 */
.hero a:focus-visible,
.cta a:focus-visible,
.page-banner a:focus-visible,
.site-footer a:focus-visible {
  outline-color: #fff;
}

::selection {
  background: var(--primary-light);
  color: var(--primary-dark);
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-kerning: normal;
  font-variant-numeric: tabular-nums;
  color: var(--text);
  background: var(--bg);
  font-size: var(--fs-body);
  line-height: 1.75;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

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

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.25s ease;
}
.site-header.scrolled { box-shadow: var(--shadow-sm); }

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 400;
  letter-spacing: 2px;
  color: var(--primary);
}
.brand img {
  height: 38px;
  width: auto;
  display: block;
}

.nav-list {
  display: flex;
  gap: 6px;
  list-style: none;
}
.nav-list a {
  display: block;
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 15px;
  color: var(--text);
  transition: color 0.2s, background 0.2s;
}
.nav-list a:hover { color: var(--primary); background: var(--primary-light); }
.nav-list a.active { color: var(--primary); background: var(--primary-light); font-weight: 600; }

.nav-phone { margin-left: 6px; }
.nav-list .nav-phone a {
  font-family: var(--font-num);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--primary);
  border-left: 1px solid var(--border);
  border-radius: 0;
  padding-left: 18px;
}
.nav-list .nav-phone a:hover { background: transparent; color: var(--primary-dark); }

.nav-toggle {
  display: none;
  border: none;
  background: none;
  cursor: pointer;
  padding: 10px;
  min-width: 44px;
  min-height: 44px;
}
.nav-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--text);
  margin: 5px 0;
  transition: transform 0.25s, opacity 0.25s;
}

/* ===== Hero ===== */
.hero {
  background: var(--brand-grad);
  color: #fff;
  padding: 96px 0 84px;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.hero::before {
  content: "";
  position: absolute;
  left: -80px;
  bottom: -160px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.hero .container { position: relative; z-index: 1; }
.hero h1 {
  font-size: var(--fs-display);
  line-height: 1.3;
  margin-bottom: 18px;
  max-width: 900px;
}
.hero p {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.95);
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .kicker {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.82);
  margin-bottom: 16px;
}
.hero h1, .hero .kicker, .hero p, .hero-actions { animation: fade-up 0.8s ease both; }
.hero .kicker { animation-delay: 0.05s; }
.hero p { animation-delay: 0.15s; }
.hero-actions { animation-delay: 0.3s; }
@keyframes fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: none; }
}

.btn {
  display: inline-block;
  padding: 12px 28px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 2px;
  transition: transform 0.2s, box-shadow 0.2s, background 0.2s;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: #fff; color: var(--primary); }
.btn-primary:hover { box-shadow: 0 8px 20px rgba(28, 14, 52, 0.35); }
.btn-ghost { border: 1px solid rgba(255, 255, 255, 0.6); color: #fff; }
.btn-ghost:hover { background: rgba(255, 255, 255, 0.12); }
.btn-solid { background: var(--primary); color: #fff; }
.btn-solid:hover { background: var(--primary-dark); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary-light); }

/* ===== Page banner (内页头部) ===== */
.page-banner {
  background: var(--brand-grad-2);
  color: #fff;
  padding: 56px 0;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: "";
  position: absolute;
  right: -60px;
  top: -90px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
}
.page-banner .container { position: relative; z-index: 1; }
.page-banner .eyebrow {
  color: rgba(255, 255, 255, 0.8);
  justify-content: flex-start;
}
.page-banner .eyebrow::after { display: none; }
.page-banner h1 { font-size: var(--fs-h1); }
.page-banner p { color: rgba(255, 255, 255, 0.85); margin-top: 8px; max-width: 640px; }

.breadcrumbs { margin-bottom: 14px; }
.breadcrumbs ol {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: var(--fs-xs);
}
.breadcrumbs li {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.7);
}
.breadcrumbs li + li::before { content: "/"; opacity: 0.45; }
.breadcrumbs a { color: rgba(255, 255, 255, 0.82); transition: color 0.2s; }
.breadcrumbs a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.breadcrumbs [aria-current="page"] { color: #fff; }

.anchor-nav { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.anchor-nav a {
  font-size: 14px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.38);
  border-radius: 999px;
  padding: 5px 14px;
  transition: background 0.2s, border-color 0.2s;
}
.anchor-nav a:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.7);
}

/* ===== Sections ===== */
.section { padding: var(--section-y) 0; }
.section.alt { background: var(--bg-soft); }
.section-head { text-align: center; margin-bottom: 48px; }
.section-head h2 { font-size: var(--fs-h2); margin-bottom: 10px; }
.section-head p:not(.eyebrow) {
  color: var(--text-light);
  max-width: 34em;
  margin-inline: auto;
}
.eyebrow {
  font-family: var(--font-num);
  font-size: var(--fs-label);
  font-weight: 600;
  letter-spacing: var(--tracking-label);
  text-transform: uppercase;
  color: var(--accent);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-bottom: 12px;
}
.eyebrow::before, .eyebrow::after {
  content: "";
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.45;
}

/* ===== Cards ===== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
}
.card {
  display: block;
  position: relative;
  background: var(--bg);
  border-radius: var(--radius);
  padding: 26px;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); transition: transform 0.25s, box-shadow 0.25s; }
.card h3 {
  font-size: var(--fs-h3);
  margin-bottom: 10px;
  letter-spacing: 1px;
  transition: color 0.2s;
}
a.card:hover h3 { color: var(--primary); }
.card p { color: var(--text-light); font-size: var(--fs-sm); }
.section-more {
  margin-top: 32px;
  text-align: center;
  font-size: var(--fs-sm);
}
.section-more a { color: var(--primary); font-weight: 600; transition: color 0.2s; }
.section-more a:hover { color: var(--primary-dark); text-decoration: underline; text-underline-offset: 4px; }

/* ===== 服务流程 ===== */
.process-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 24px;
}
.process-step { padding-top: 20px; border-top: 2px solid var(--border); }
.process-step .step-num {
  display: block;
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: var(--accent);
  margin-bottom: 8px;
}
.process-step h3 { font-size: 17px; margin-bottom: 6px; }
.process-step p { color: var(--text-light); font-size: var(--fs-sm); }
.process-notes {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin-top: 36px;
}
.process-notes li { font-size: var(--fs-sm); color: var(--text-light); }
.process-notes li::before {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 8px;
  vertical-align: 2px;
}

.card-thumb {
  height: 140px;
  border-radius: var(--radius-sm);
  margin: -26px -26px 18px;
  background: linear-gradient(135deg, var(--svc-ai-1), var(--svc-ai-2));
  display: grid;
  place-items: center;
  color: #fff;
  font-family: var(--font-num);
  font-size: 30px;
  font-weight: 700;
  letter-spacing: 5px;
}
.card-thumb.sec { background: linear-gradient(135deg, var(--svc-sec-1), var(--svc-sec-2)); }
.card-thumb.dev { background: linear-gradient(135deg, var(--svc-dev-1), var(--svc-dev-2)); }
.card-thumb.cjk { font-size: 20px; letter-spacing: 0.25em; text-indent: 0.25em; }
img.card-thumb.photo { width: calc(100% + 52px); object-fit: cover; }

.card.service-ai h3::before,
.card.service-dev h3::before,
.card.service-sec h3::before {
  content: "";
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  margin-right: 8px;
  vertical-align: 2px;
}
.card.service-ai h3::before { background: var(--svc-ai-2); }
.card.service-dev h3::before { background: var(--svc-dev-2); }
.card.service-sec h3::before { background: var(--svc-sec-2); }

.service-link {
  display: inline-block;
  margin-top: 16px;
  font-size: var(--fs-sm);
  font-weight: 600;
  color: var(--primary);
  transition: color 0.2s;
}
.service-link:hover {
  color: var(--primary-dark);
  text-decoration: underline;
  text-underline-offset: 4px;
}

/* ===== 产品页服务行 ===== */
.service-list { display: flex; flex-direction: column; }
.service-row {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(0, 1.4fr);
  gap: 44px;
  align-items: center;
  padding: 46px 0;
  border-top: 1px solid var(--border);
}
.service-row:first-child { border-top: 0; padding-top: 0; }
.service-row:last-child { padding-bottom: 0; }
.service-row:nth-child(even) .service-visual { order: 2; }
.service-visual {
  position: relative;
  min-height: 260px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  align-content: center;
  gap: 10px;
  color: #fff;
  overflow: hidden;
}
.service-visual::after {
  content: "";
  position: absolute;
  right: -60px;
  top: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.18);
}
.service-visual .svc-code {
  position: relative;
  z-index: 1;
  font-family: var(--font-num);
  font-size: 44px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-indent: 0.18em;
}
.service-visual .svc-label {
  position: relative;
  z-index: 1;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.22em;
  text-indent: 0.22em;
  color: rgba(255, 255, 255, 0.85);
}
.service-row.service-ai .service-visual { background: linear-gradient(135deg, var(--svc-ai-1), var(--svc-ai-2)); }
.service-row.service-dev .service-visual { background: linear-gradient(135deg, var(--svc-dev-1), var(--svc-dev-2)); }
.service-row.service-sec .service-visual { background: linear-gradient(135deg, var(--svc-sec-1), var(--svc-sec-2)); }
.service-body h3 { font-size: 24px; margin-bottom: 10px; letter-spacing: 1px; }
.service-body > p { color: var(--text-light); font-size: var(--fs-sm); max-width: 46em; }
.service-body .spec-list { margin-top: 18px; }
.service-body .service-link { margin-top: 18px; }

.ghost-num {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: var(--font-num);
  font-size: 40px;
  font-weight: 800;
  line-height: 1;
  color: #e9e1f4;
  pointer-events: none;
}

.copy-btn {
  position: relative;
  margin-top: 12px;
  border: 1px solid var(--border);
  background: var(--bg);
  color: var(--text-light);
  font-family: inherit;
  font-size: var(--fs-xs);
  letter-spacing: 1px;
  padding: 5px 14px;
  border-radius: 6px;
  cursor: pointer;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
}
.copy-btn::after { content: ""; position: absolute; inset: -8px; }
.copy-btn:hover { color: var(--primary); background: var(--primary-light); border-color: var(--primary-light); }
.copy-btn:active { color: #fff; background: var(--primary); border-color: var(--primary); }
.copy-btn.copied { color: #fff; background: var(--primary); border-color: var(--primary); }

.spec-list {
  list-style: none;
  margin-top: 14px;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
}
.spec-list li {
  font-size: var(--fs-xs);
  color: var(--text-light);
  padding: 3px 0;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.spec-list li b { color: var(--text); font-weight: 600; flex-shrink: 0; }
.case-meta {
  font-size: var(--fs-xs);
  color: var(--text-light);
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.case-meta a {
  color: var(--primary);
  font-weight: 600;
  text-decoration: underline;
  text-decoration-color: transparent;
  text-underline-offset: 3px;
  transition: color 0.2s, text-decoration-color 0.2s;
}
.case-meta a:hover {
  color: var(--primary-dark);
  text-decoration-color: currentColor;
}
.case-note {
  margin-top: 32px;
  text-align: center;
  font-size: var(--fs-xs);
  color: var(--text-light);
}

/* ===== About ===== */
.about-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: start;
}
.about-text p { margin-bottom: 16px; color: var(--text); max-width: 36em; line-height: 1.9; }
.about-grid aside h2 { font-size: var(--fs-h3); letter-spacing: 1px; margin-bottom: 20px; }

.timeline { list-style: none; border-left: 2px solid var(--border); padding-left: 24px; }
.timeline li { position: relative; padding-bottom: 22px; }
.timeline li::before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--primary);
}
.timeline .year {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: 1px;
  color: var(--primary);
}
.timeline p { color: var(--text-light); font-size: 14px; }

/* ===== Contact ===== */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}
.contact-item { text-align: center; padding: 34px 24px; }
.contact-icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  display: grid;
  place-items: center;
}
.contact-icon svg {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}
.contact-item h3 { font-size: var(--fs-h3); margin-bottom: 6px; letter-spacing: 1px; }
.contact-item p { color: var(--text-light); font-size: var(--fs-sm); }

.inquiry-card {
  margin-top: 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 24px;
  padding: 28px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.inquiry-card h3 { font-size: 20px; margin-bottom: 6px; }
.inquiry-card p { color: var(--text-light); font-size: var(--fs-sm); max-width: 56em; }
.inquiry-card .btn { flex-shrink: 0; }
.inquiry-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }

.qr-card {
  margin-top: 24px;
  display: flex;
  align-items: center;
  gap: 28px;
  padding: 24px 32px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.qr-card img {
  width: 200px;
  height: 200px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
}
.qr-card h3 { font-size: 20px; margin-bottom: 6px; }
.qr-card p { color: var(--text-light); font-size: var(--fs-sm); max-width: 46em; }
.qr-card .qr-hint { margin-top: 6px; font-size: var(--fs-xs); }

.location-card {
  margin-top: 40px;
  padding: 44px 24px;
  text-align: center;
  border-radius: var(--radius);
  background: #f4eefb;
  border: 1px solid #ddd0ee;
}
.location-text {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: 1px;
  color: var(--text);
  margin-bottom: 20px;
}
.location-hint { margin-top: 16px; font-size: var(--fs-xs); color: var(--text-light); }

/* ===== CTA ===== */
.cta {
  background: var(--brand-grad-2);
  color: #fff;
  text-align: center;
  padding: 64px 0;
  position: relative;
  overflow: hidden;
}
.cta::after {
  content: "";
  position: absolute;
  right: -100px;
  bottom: -150px;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.cta::before {
  content: "";
  position: absolute;
  left: -60px;
  top: -80px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
}
.cta .container { position: relative; z-index: 1; }
.cta h2 { font-size: var(--fs-h2); margin-bottom: 12px; }
.cta p { color: rgba(255, 255, 255, 0.85); margin-bottom: 26px; }
.cta .cta-contact {
  margin: 18px 0 0;
  font-size: var(--fs-sm);
  color: rgba(255, 255, 255, 0.82);
}
.cta .cta-contact a { color: #fff; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }
.cta .cta-contact a:hover { opacity: 0.85; }
.cta .cta-contact .sep { margin: 0 8px; opacity: 0.55; }
.cta .cta-contact .cta-hours { white-space: nowrap; }

/* ===== Footer ===== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding: 48px 0 24px;
  font-size: var(--fs-sm);
  line-height: 1.9;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: var(--brand-grad);
  opacity: 0.5;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 0.8fr 1.6fr;
  gap: 40px;
  margin-bottom: 32px;
}
.site-footer h3 {
  color: #e9e2f2;
  font-family: inherit;
  font-size: var(--fs-xs);
  letter-spacing: var(--tracking-label);
  margin-bottom: 16px;
}
.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}
.footer-logo { height: 56px; width: auto; }
.footer-wordmark {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 22px;
  color: #fff;
  letter-spacing: 0.1em;
}
.footer-tag { margin-bottom: 4px; color: var(--footer-dim); }
.site-footer .fl { color: var(--footer-dim); }
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 8px; }
.site-footer a { transition: color 0.2s; }
.site-footer a:hover { color: #fff; }
.footer-phone { font-variant-numeric: tabular-nums; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  font-size: var(--fs-xs);
  color: var(--footer-dim);
}

.footer-bottom .icp { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; }
.footer-bottom .icp a { color: inherit; text-decoration: none; border-bottom: 1px solid transparent; }
.footer-bottom .icp a:hover { color: #fff; border-bottom-color: rgba(255, 255, 255, 0.35); }
.footer-bottom .icp-sep { opacity: 0.5; }

/* ===== Reveal 动画 ===== */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal.visible { opacity: 1; }
.reveal.visible:not(:hover) { transform: none; }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }

/* JS 禁用时内容保持可见 */
html.no-js .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .hero h1, .hero .kicker, .hero p, .hero-actions { animation: none; }
  * { transition-duration: 0.01ms !important; animation-duration: 0.01ms !important; }
}

/* ===== 响应式 ===== */
@media (max-width: 860px) {
  :root { --section-y: 56px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .site-footer { padding: 40px 0 20px; }
  .about-grid { grid-template-columns: 1fr; }
  .hero { padding: 68px 0 60px; }
  .hero p { font-size: 16px; }
  .location-text { font-size: 19px; }
  .card-thumb { font-size: 28px; letter-spacing: 4px; }
  .card-thumb.cjk { font-size: 19px; letter-spacing: 0.2em; text-indent: 0.2em; }
  .service-row { grid-template-columns: 1fr; gap: 24px; padding: 32px 0; }
  .service-row:nth-child(even) .service-visual { order: 0; }
  .service-visual { min-height: 180px; }
  .service-visual .svc-code { font-size: 36px; }
  .service-body h3 { font-size: 21px; }
}

@media (max-width: 900px) {
  :root { --fs-h2: 24px; }
  .nav-toggle { display: flex; flex-direction: column; align-items: center; justify-content: center; }
  .nav-list {
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #fff;
    flex-direction: column;
    gap: 0;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow);
    padding: 8px 16px 16px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
  }
  .nav-list.open { opacity: 1; visibility: visible; transform: none; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(12px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-12px) rotate(-45deg); }
  .nav-list a { padding: 12px 14px; }
  .nav-phone { margin-left: 0; }
  .nav-list .nav-phone a {
    border-left: 0;
    border-top: 1px solid var(--border);
    border-radius: 0;
    padding: 12px 14px;
  }
  .inquiry-card { padding: 24px; }
  .inquiry-card .inquiry-actions { width: 100%; flex-direction: column; align-items: stretch; }
  .inquiry-card .btn { width: 100%; text-align: center; }
  .qr-card { flex-direction: column; align-items: flex-start; padding: 24px; }
}

@media (max-width: 480px) {
  :root { --section-y: 44px; }
  .container { padding: 0 20px; }
  .section-head { margin-bottom: 32px; }
  .hero { padding: 56px 0 48px; }
  .page-banner { padding: 44px 0; }
  .cta { padding: 48px 0; }
  .location-card { padding: 36px 20px; }
  .service-row { padding: 28px 0; }
  .service-visual { min-height: 150px; }
  .hero-actions .btn { flex: 1 1 auto; text-align: center; }
  .footer-bottom { justify-content: center; text-align: center; }
}

/* ===== 打印 ===== */
@page { margin: 14mm 16mm; }

@media print {
  html { scroll-behavior: auto; }
  body {
    background: #fff !important;
    color: #000;
    font-size: 11pt;
    line-height: 1.6;
    -webkit-print-color-adjust: economy;
    print-color-adjust: economy;
  }
  body::before {
    content: "厦门安顺联科技有限公司  ·  18060920936  ·  manager@ansltech.com";
    display: block;
    font-size: 9pt;
    color: #444;
    border-bottom: 1px solid #999;
    padding-bottom: 6px;
    margin-bottom: 12px;
  }
  .container { max-width: none; padding: 0; }

  .site-header, .site-footer, .skip-link, .cta, .anchor-nav, .breadcrumbs,
  .nav-toggle, .copy-btn, .service-link, .section-more, .inquiry-card,
  .hero-actions, .btn, .ghost-num, .location-hint, .footer-bottom {
    display: none !important;
  }

  .hero, .page-banner {
    background: none !important;
    color: #000 !important;
    padding: 0 0 12pt !important;
    border-bottom: 1px solid #999;
  }
  .hero::before, .hero::after, .page-banner::before { display: none !important; }
  .hero h1, .page-banner h1 {
    font-size: 20pt !important;
    line-height: 1.3;
    letter-spacing: 1px;
    margin-bottom: 6pt;
  }
  .hero p, .page-banner p { font-size: 10.5pt !important; margin-bottom: 8pt; }
  .hero .kicker, .page-banner .eyebrow { font-size: 8pt !important; }
  .hero h1, .hero p, .hero .kicker,
  .page-banner h1, .page-banner p, .page-banner .eyebrow { color: #000 !important; }
  .hero h1, .hero .kicker, .hero p, .hero-actions { animation: none !important; }

  .section, .section.alt { padding: 12pt 0 !important; background: none !important; }
  .section-head { text-align: left; margin-bottom: 16pt !important; break-inside: avoid; break-after: avoid; }
  .process-grid { break-inside: avoid; }
  .section-head h2 { font-size: 15pt !important; }
  .section-head p, .eyebrow { color: #333 !important; }
  .eyebrow::before, .eyebrow::after { background: #666 !important; }

  .card, .process-step, .location-card, .contact-item {
    box-shadow: none !important;
    border: 1px solid #ccc !important;
    background: #fff !important;
    padding: 10pt !important;
    break-inside: avoid;
  }
  .card-grid, .contact-grid, .process-grid, .about-grid { display: block !important; }
  .card, .process-step, .contact-item { margin-bottom: 8pt; }
  .qr-card {
    display: flex !important;
    align-items: center;
    gap: 10mm;
    padding: 10pt !important;
    border: 1px solid #ccc !important;
    box-shadow: none !important;
    break-inside: avoid;
  }
  .qr-card img { width: 45mm; height: 45mm; }
  .qr-card p { color: #222 !important; font-size: 9.5pt !important; }
  .qr-card .qr-hint { display: none !important; }
  .card h3, .service-body h3 { font-size: 11.5pt !important; break-after: avoid; }
  .card h3::before { display: none !important; }
  .card p, .service-body > p, .contact-item p, .timeline p { font-size: 9.5pt !important; color: #222 !important; }
  .contact-icon { display: none !important; }

  .card-thumb, .service-visual {
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 8pt !important;
    padding: 6pt 8pt !important;
    display: block !important;
    color: #000 !important;
    background: #eee !important;
    border: 1px solid #ccc !important;
    font-size: 11pt !important;
    letter-spacing: 0.1em !important;
    text-indent: 0 !important;
  }
  .card-thumb::after, .service-visual::after { display: none !important; }
  .service-visual .svc-code { display: block; font-size: 14pt !important; color: #000 !important; letter-spacing: 0.1em; text-indent: 0; }
  .service-visual .svc-label { display: block; font-size: 10pt !important; color: #000 !important; letter-spacing: 0.1em; text-indent: 0; }

  .service-list { display: block !important; }
  .service-row {
    display: block !important;
    margin-bottom: 10pt;
    padding: 10pt !important;
    border: 1px solid #ccc !important;
    break-inside: avoid;
  }
  .service-row:nth-child(even) .service-visual { order: 0; }
  .service-body .spec-list { margin-top: 8pt; }
  .spec-list li { font-size: 9pt !important; break-inside: avoid; }
  .process-notes { display: block !important; margin-top: 10pt; }
  .process-notes li { margin-bottom: 3pt; }
  .timeline .year { font-size: 11pt !important; }

  .location-card { margin-top: 10pt; text-align: left; }
  .location-text { font-size: 12pt !important; margin-bottom: 4pt; }

  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  a { color: #000 !important; text-decoration: none !important; }
  img { max-width: 100% !important; }
  h1, h2, h3 { break-after: avoid; }
}
