/* AI 智慧经营平台 — 首页样式 */

:root {
  --bg: #142a44;
  --bg-alt: #1a3554;
  --bg-card: rgba(255, 255, 255, 0.94);
  --bg-card-glass: rgba(248, 252, 255, 0.92);
  --text: #122033;
  --text-secondary: #3f5268;
  --text-muted: #5a687a;
  --text-on-dark: #f2f8fc;
  --text-on-dark-secondary: #c8dcef;
  --text-on-dark-muted: #a8bfd6;
  --border: #9eb8d4;
  --border-soft: rgba(158, 184, 212, 0.45);
  --accent: #0085d0;
  --accent-hover: #006eae;
  --accent-soft: rgba(0, 133, 208, 0.12);
  --accent-deep: #0a4f7a;
  --navy-hero: #16324f;
  --navy-mid: #123a6c;
  --navy-deep: #0f2844;
  --navy-panel: #152f4c;
  --glass-border: rgba(176, 200, 224, 0.72);
  --glass-border-strong: rgba(140, 175, 210, 0.55);
  --glass-highlight: rgba(255, 255, 255, 0.78);
  --success: #2a8fbf;
  --warning: #c47a28;
  --danger-soft: #eef3f9;
  --danger-text: #a85858;
  --shadow: 0 12px 40px rgba(4, 16, 32, 0.28);
  --shadow-soft: 0 6px 24px rgba(4, 16, 32, 0.18);
  --shadow-card: 0 8px 28px rgba(8, 24, 48, 0.14);
  --radius: 16px;
  --max: 1160px;
  --header-h: 72px;
  --photo-cool-filter: saturate(1.02) contrast(1.04) brightness(1.03);
  --service-photo-cool-filter: saturate(1.02) contrast(1.05) brightness(1.04);
  --breath-bg-top: #c5d9ec;
  --breath-bg-mid: #d2e3f2;
  --breath-bg-bottom: #bccfe3;
}

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

html {
  scroll-behavior: smooth;
}

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background:
    linear-gradient(180deg, var(--navy-hero) 0%, var(--navy-deep) 280px, var(--navy-deep) 100%);
  color: var(--text-on-dark);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 3px solid rgba(0, 133, 208, 0.45);
  outline-offset: 3px;
}

main#top,
section[id],
#login {
  scroll-margin-top: calc(var(--header-h) + 16px);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

.container {
  width: min(100% - 40px, var(--max));
  margin: 0 auto;
}

/* ── Buttons ── */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 12px;
  font-size: 15px;
  font-weight: 600;
  padding: 13px 26px;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, box-shadow 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 4px 14px rgba(0, 133, 208, 0.2);
}

.btn-primary:hover {
  background: var(--accent-hover);
}

.btn-secondary {
  background: rgba(255, 255, 255, 0.88);
  color: var(--accent-deep);
  border: 1px solid rgba(0, 133, 208, 0.22);
}

.btn-secondary:hover {
  background: #fff;
  border-color: rgba(0, 133, 208, 0.4);
}

.btn-light {
  background: #fff;
  color: var(--accent);
  border: 1px solid rgba(0, 133, 208, 0.18);
}

.btn-light:hover {
  border-color: rgba(0, 133, 208, 0.4);
  background: var(--accent-soft);
}

.btn-ghost-dark {
  background: transparent;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.45);
}

.btn-ghost-dark:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: #fff;
}

.btn-outline {
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  width: 100%;
}

.btn-outline:hover {
  background: var(--accent-soft);
}

/* ── Header ── */

.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid var(--glass-border);
}

.nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  min-height: var(--header-h);
  gap: 16px;
}

.nav > nav {
  justify-self: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 700;
  min-width: 0;
}

.brand-logo {
  width: 118px;
  height: auto;
  flex-shrink: 0;
}

.brand-text {
  display: flex;
  flex-direction: column;
  line-height: 1.15;
  min-width: 0;
}

.brand-text span {
  font-size: 15px;
  color: var(--text);
}

.brand-text small {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-muted);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px 22px;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  padding: 6px 2px;
}

.nav-links a:hover {
  color: var(--accent);
}

/* ── Hero ── */

#top {
  scroll-margin-top: 73px;
}

.hero {
  position: relative;
  min-height: max(640px, calc(100vh - var(--header-h)));
  display: flex;
  align-items: center;
  overflow: hidden;
  background: #16324f;
}

.hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: min(160px, 18vh);
  z-index: 2;
  pointer-events: none;
  background: linear-gradient(
    180deg,
    transparent 0%,
    rgba(15, 40, 68, 0.35) 42%,
    rgba(15, 40, 68, 0.92) 100%
  );
}

/* 单张整合照片包含办公室、人物与完整笔记本电脑。 */
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.hero-media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: brightness(1.14) contrast(1.02) saturate(1.05);
}

/* 桌面保留沉浸式背景；窄屏改用文案与登录卡之间的独立照片带。 */
.hero-mobile-visual {
  display: none;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(8, 36, 72, 0.64) 0%, rgba(18, 58, 108, 0.16) 38%, rgba(12, 40, 78, 0.04) 62%, rgba(12, 40, 78, 0.02) 100%),
    linear-gradient(180deg, rgba(8, 24, 48, 0.08) 0%, transparent 28%, rgba(6, 18, 36, 0.12) 100%);
}

.hero-inner {
  position: relative;
  z-index: 2;
  display: grid;
  width: 100%;
  max-width: none;
  margin: 0;
  box-sizing: border-box;
  grid-template-columns: minmax(380px, 1fr) minmax(300px, 370px);
  align-items: center;
  column-gap: clamp(20px, 3.2vw, 52px);
  min-height: max(640px, calc(100vh - var(--header-h)));
  padding: 40px clamp(28px, 5vw, 88px) 48px;
}

.hero-copy {
  position: relative;
  z-index: 3;
  max-width: min(540px, 46vw);
  padding: 8px 0 12px;
  background: transparent;
  color: #fff;
}

@media (min-width: 1151px) {
  .hero-copy {
    transform: translateY(clamp(-72px, calc(360px - 52vh), 0px));
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #fff;
  background: #2b86e8;
  border-radius: 999px;
  padding: 8px 16px;
  margin-bottom: 18px;
}

.hero-badge i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 133, 208, 0.15);
}

.hero h1 {
  font-size: clamp(38px, 4.6vw, 66px);
  line-height: 1.18;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  color: #fff;
}

.hero-sub {
  font-size: 16px;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 28px;
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 22px;
}

.hero .btn-secondary {
  background: #fff;
  color: #1c2b3a;
  border-color: transparent;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.86);
}

.hero-tags span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-tags span + span::before {
  content: "·";
  margin-right: 14px;
  color: var(--text-muted);
  opacity: 0.6;
}

.hero-login {
  position: relative;
  top: 0;
  z-index: 4;
  justify-self: end;
  width: min(100%, 330px);
}

@media (min-width: 1151px) {
  .hero-login {
    transform: translateY(clamp(0px, calc(420px - 58vh), 36px));
  }
}

@media (min-width: 1151px) and (max-width: 1320px) {
  .hero-copy {
    max-width: min(520px, 46vw);
  }

  .hero-login {
    width: min(100%, 330px);
  }
}

@media (min-width: 1151px) and (max-height: 720px) {
  .hero-inner {
    align-items: start;
    padding-top: 20px;
    padding-bottom: 20px;
    min-height: calc(100vh - var(--header-h));
  }

  .hero-copy {
    transform: translateY(0);
  }

  .hero-login {
    transform: translateY(0);
  }
}

.hero-login-card {
  /* 推荐卡与登录卡由 iframe 分别绘制，外层保持透明，露出卡片间距。 */
  background: transparent;
  /* iframe 在异常兜底时可自行滚动，卡片本身绝不能裁掉其末尾控件。 */
  overflow: visible;
}

.hero-login-frame {
  display: block;
  width: 100%;
  /* 首帧已有完整表单空间；正常情况下随后按 embed 实测高度扩展页面。 */
  height: 640px;
  border: 0;
  background: transparent;
  border-radius: inherit;
  transition: height 160ms ease-out;
}

/* ── Value strip ── */

.value-strip {
  position: relative;
  z-index: 5;
  margin-top: -40px;
  margin-bottom: 0;
  padding: 0 0 52px;
  background:
    radial-gradient(ellipse 90% 60% at 50% 0%, rgba(43, 134, 232, 0.14) 0%, transparent 58%),
    linear-gradient(180deg, rgba(15, 40, 68, 0.35) 0%, var(--navy-panel) 38%, var(--navy-deep) 100%);
}

.value-strip-inner {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.94) 0%, rgba(236, 245, 252, 0.88) 100%);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  box-shadow:
    var(--shadow-card),
    0 1px 0 var(--glass-highlight) inset;
  overflow: hidden;
  backdrop-filter: blur(14px) saturate(140%);
}

.value-item {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 24px;
}

.value-item:not(:last-child) {
  border-right: 1px solid var(--border-soft);
}

.value-icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 133, 208, 0.12);
}

.value-icon svg {
  width: 20px;
  height: 20px;
}

.value-item h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 4px;
  line-height: 1.35;
}

.value-item p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.55;
}

/* ── Section heads ── */

section {
  padding: 56px 0;
}

.section-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent);
  margin-bottom: 12px;
}

.section-label::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: var(--accent);
}

.section-title {
  font-size: clamp(26px, 3.2vw, 32px);
  font-weight: 800;
  line-height: 1.28;
  margin-bottom: 12px;
  color: var(--text);
}

.section-lead {
  font-size: 16px;
  color: var(--text-secondary);
  max-width: 560px;
  line-height: 1.7;
}

.section-head {
  margin-bottom: 32px;
}

.section-head--left .section-lead {
  max-width: 640px;
}

.services .section-label,
.pricing .section-label {
  color: #7ec8f5;
}

.services .section-label::before,
.pricing .section-label::before {
  background: #4db3ef;
}

.services .section-title,
.pricing .section-title {
  color: var(--text-on-dark);
}

.services .section-lead,
.pricing .section-lead {
  color: var(--text-on-dark-secondary);
}

.how .section-label,
.assistants .section-label {
  color: var(--accent-deep);
}

.how .section-title,
.assistants .section-title {
  color: var(--navy-hero);
}

.how .section-lead,
.assistants .section-lead {
  color: #2f4560;
}

/* 浅色卡片/面板：显式深色基础字色，避免继承 body 的 on-dark 前景。 */
.value-strip-inner,
.service-card-body,
.service-card-text,
.delivery-float,
.step-card,
.price-card,
.addon-item,
.legal-modal-card {
  color: var(--text);
}

.value-item h3,
.service-card-text h3,
.step-card h3,
.assistant-body h3,
.price-card h3,
.addon-item h4,
.legal-modal-card h2 {
  color: var(--text);
}

.services .service-footnote {
  color: var(--text-on-dark-muted);
}

/* ── Core services ── */

.services {
  padding-top: 32px;
  background:
    radial-gradient(ellipse 85% 45% at 72% 8%, rgba(0, 133, 208, 0.16) 0%, transparent 52%),
    radial-gradient(ellipse 70% 40% at 12% 22%, rgba(43, 134, 232, 0.1) 0%, transparent 50%),
    linear-gradient(180deg, var(--navy-deep) 0%, #123a5e 48%, #16324f 100%);
}

.service-card {
  position: relative;
  margin-bottom: 22px;
}

.service-card:last-child {
  margin-bottom: 0;
}

.service-card-tag {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 3;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--border-soft);
  border-radius: 999px;
  padding: 4px 10px;
}

.service-card-body {
  display: grid;
  grid-template-columns: 46% 54%;
  min-height: 340px;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--glass-border-strong);
  box-shadow: var(--shadow-card);
  background: var(--bg-card-glass);
  isolation: isolate;
  backdrop-filter: blur(10px) saturate(130%);
}

.service-card--legal .service-card-body {
  grid-template-columns: 54% 46%;
}

.service-card-text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 32px 28px;
}

.service-card-text h3 {
  font-size: 26px;
  font-weight: 800;
  margin-bottom: 10px;
  line-height: 1.25;
}

.service-desc {
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.7;
  margin-bottom: 20px;
}

.check-list {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 22px;
}

.check-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 15px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.check-list li::before {
  content: "";
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--accent-soft);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath fill='%230085d0' d='M4.5 8.5L2 6l1-1 1.5 1.5L9 3l1 1z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 12px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
}

.service-link:hover {
  color: var(--accent-hover);
}

.service-card-photo {
  position: relative;
  min-height: 280px;
  background: linear-gradient(145deg, #8eb4d4 0%, #6a98bc 100%);
  overflow: hidden;
}

.service-card-photo::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.service-card-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-color: transparent;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal;
  filter: var(--service-photo-cool-filter);
}

.service-card--tax .service-card-photo::after {
  background-image:
    linear-gradient(
      165deg,
      rgba(72, 118, 158, 0.12) 0%,
      rgba(48, 92, 132, 0.06) 46%,
      transparent 100%
    ),
    url("tax-service-photo.png");
}

.service-card--legal .service-card-photo::after {
  background-image:
    linear-gradient(
      165deg,
      rgba(72, 118, 158, 0.12) 0%,
      rgba(48, 92, 132, 0.06) 46%,
      transparent 100%
    ),
    url("legal-service-photo.png");
}

.service-card--tax .service-card-photo::before {
  background:
    linear-gradient(90deg, rgba(248, 252, 255, 0.55) 0%, rgba(140, 175, 205, 0.06) 34%, transparent 58%),
    linear-gradient(165deg, rgba(100, 150, 190, 0.08) 0%, transparent 100%);
}

.service-card--legal .service-card-photo::before {
  background:
    linear-gradient(270deg, rgba(248, 252, 255, 0.55) 0%, rgba(140, 175, 205, 0.06) 34%, transparent 58%),
    linear-gradient(195deg, rgba(100, 150, 190, 0.08) 0%, transparent 100%);
}

.delivery-float {
  position: absolute;
  z-index: 2;
  width: min(235px, calc(100% - 24px));
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--glass-border);
  border-radius: 12px;
  box-shadow: var(--shadow-soft);
  padding: 16px 16px 14px;
  backdrop-filter: blur(10px) saturate(125%);
}

.service-card--tax .delivery-float {
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
}

.service-card--legal .delivery-float {
  top: 50%;
  left: 20px;
  transform: translateY(-50%);
}

.delivery-float h4 {
  font-size: 14px;
  font-weight: 700;
  color: var(--accent-deep);
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0, 133, 208, 0.12);
}

.delivery-float ul {
  list-style: none;
  display: grid;
  gap: 8px;
}

.delivery-float li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-secondary);
}

.delivery-icon {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
}

.delivery-icon svg {
  width: 12px;
  height: 12px;
}

.delivery-bar {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  padding: 6px 10px;
  border-radius: 8px;
}

.delivery-bar--risk {
  background: var(--danger-soft);
  color: var(--danger-text);
}

.delivery-bar--suggest {
  background: rgba(0, 133, 208, 0.08);
  color: var(--accent-deep);
}

.delivery-bar--done {
  background: rgba(0, 133, 208, 0.1);
  color: var(--accent-deep);
}

.service-footnote {
  margin-top: 10px;
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.7;
  letter-spacing: 0.01em;
}

/* ── How ── */

.how {
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(255, 255, 255, 0.45) 0%, transparent 55%),
    linear-gradient(180deg, var(--breath-bg-top) 0%, var(--breath-bg-mid) 45%, var(--breath-bg-bottom) 100%);
}

.steps-row {
  display: flex;
  align-items: stretch;
  gap: 0;
}

.step-card {
  flex: 1;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  padding: 24px 22px;
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px) saturate(125%);
}

.step-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.step-num {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent);
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 14px;
  font-weight: 700;
  flex-shrink: 0;
}

.step-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 133, 208, 0.12);
}

.step-icon svg {
  width: 18px;
  height: 18px;
}

.step-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.step-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  flex-shrink: 0;
  color: var(--accent);
  font-size: 18px;
  opacity: 0.55;
}

/* ── Assistants ── */

.assistants {
  background:
    radial-gradient(ellipse 75% 45% at 50% 100%, rgba(255, 255, 255, 0.35) 0%, transparent 58%),
    linear-gradient(180deg, var(--breath-bg-bottom) 0%, var(--breath-bg-mid) 50%, var(--breath-bg-top) 100%);
}

.assistant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.assistant-card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-card);
  text-decoration: none;
  color: var(--text);
  transition: box-shadow 0.2s, border-color 0.2s;
  backdrop-filter: blur(8px) saturate(125%);
}

.assistant-card:hover {
  box-shadow: var(--shadow);
  border-color: rgba(0, 133, 208, 0.28);
}

.assistant-photo {
  position: relative;
  height: 150px;
  background-color: #62839c;
  background-image:
    linear-gradient(
      180deg,
      rgba(162, 194, 220, 0.10) 0%,
      rgba(124, 162, 192, 0.08) 55%,
      rgba(96, 136, 168, 0.06) 100%
    ),
    url("business-scenes-photo.png");
  background-size: 300% auto;
  background-repeat: no-repeat;
  background-blend-mode: normal, normal;
  filter: var(--photo-cool-filter);
}

.assistant-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(176, 204, 228, 0.08) 0%, rgba(112, 152, 184, 0.06) 100%);
  mix-blend-mode: normal;
  opacity: 0.5;
  pointer-events: none;
}

.assistant-card:nth-child(1) .assistant-photo {
  background-position: left center;
}

.assistant-card:nth-child(2) .assistant-photo {
  background-position: center center;
}

.assistant-card:nth-child(3) .assistant-photo {
  background-position: right center;
}

.assistant-body {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 18px 20px;
}

.assistant-body h3 {
  font-size: 17px;
  font-weight: 700;
  margin-bottom: 6px;
}

.assistant-body p {
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.assistant-arrow {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 133, 208, 0.12);
  display: grid;
  place-items: center;
}

.assistant-arrow svg {
  width: 14px;
  height: 14px;
}

/* ── Pricing ── */

.pricing {
  background:
    radial-gradient(ellipse 75% 42% at 28% 12%, rgba(43, 134, 232, 0.18) 0%, transparent 55%),
    radial-gradient(ellipse 60% 35% at 88% 28%, rgba(0, 133, 208, 0.12) 0%, transparent 50%),
    linear-gradient(175deg, #1a3f62 0%, var(--navy-deep) 52%, #142a44 100%);
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 24px 22px 22px;
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  background: var(--bg-card-glass);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(10px) saturate(130%);
}

.price-card--featured {
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.97) 0%, rgba(240, 248, 255, 0.94) 100%);
  border: 1px solid rgba(0, 133, 208, 0.55);
  box-shadow:
    var(--shadow-card),
    0 0 0 1px rgba(0, 133, 208, 0.12);
}

.price-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  font-size: 11px;
  font-weight: 700;
  color: #fff;
  background: #006eae;
  border-radius: 999px;
  padding: 3px 10px;
}

.price-card--featured .price-badge {
  font-size: 12px;
  padding: 5px 12px;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 12px rgba(0, 133, 208, 0.22);
}

.price-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.price-card h3 {
  font-size: 20px;
  font-weight: 700;
  margin-bottom: 14px;
}

.price-amount {
  font-size: 13px;
  color: var(--accent-deep);
  margin-bottom: 16px;
}

.price-amount strong {
  font-size: 36px;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1;
}

.price-card--featured .price-amount {
  margin-bottom: 18px;
}

.price-card--featured .price-amount strong {
  font-size: 42px;
  color: var(--accent);
}

.price-card--featured .btn-outline {
  background: #006eae;
  color: #fff;
  border-color: #006eae;
  box-shadow: 0 4px 14px rgba(0, 133, 208, 0.2);
  font-weight: 700;
}

.price-card--featured .btn-outline:hover {
  background: #07578b;
  border-color: #07578b;
  color: #fff;
}

.price-features {
  list-style: none;
  display: grid;
  gap: 9px;
  flex: 1;
  margin-bottom: 20px;
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.55;
}

.price-card--featured .price-features {
  color: #364a60;
}

.price-features li {
  position: relative;
  padding-left: 14px;
}

.price-features li::before {
  content: "";
  position: absolute;
  top: 9px;
  left: 0;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
}

.addon-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: 22px;
}

.addon-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: var(--bg-card-glass);
  border: 1px solid var(--glass-border-strong);
  border-radius: var(--radius);
  box-shadow: var(--shadow-card);
  backdrop-filter: blur(8px) saturate(125%);
}

.addon-icon {
  flex-shrink: 0;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid rgba(0, 133, 208, 0.12);
}

.addon-icon svg {
  width: 16px;
  height: 16px;
}

.addon-item h4 {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 2px;
}

.addon-item p {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.5;
}

.addon-price {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent-deep);
}

.pricing-note {
  text-align: center;
  font-size: 13px;
  color: var(--text-on-dark-muted);
  margin-top: 20px;
  line-height: 1.75;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ── Guarantee strip ── */

.guarantee-strip {
  margin-top: 0;
  margin-bottom: 0;
  padding: 48px 0 52px;
  background:
    radial-gradient(ellipse 80% 50% at 50% 100%, rgba(43, 134, 232, 0.1) 0%, transparent 55%),
    linear-gradient(180deg, #142a44 0%, var(--navy-panel) 55%, var(--navy-deep) 100%);
}

/* ── Contact CTA ── */

.contact-cta {
  padding: 20px 0 48px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, #0d2238 100%);
}

.contact-banner {
  border-radius: var(--radius);
  background: linear-gradient(125deg, var(--navy-hero) 0%, var(--navy-mid) 42%, #0085d0 100%);
  color: #fff;
  padding: 40px 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  box-shadow: 0 10px 32px rgba(10, 40, 72, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

.contact-banner h2 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 10px;
}

.contact-banner p {
  font-size: 16px;
  opacity: 0.92;
  max-width: 520px;
  line-height: 1.7;
}

.contact-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.contact-tel {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  text-align: left;
}

.contact-tel small {
  font-size: 12px;
  font-weight: 500;
  opacity: 0.85;
}

/* ── About ── */

.about {
  padding: 40px 0 48px;
  background: linear-gradient(180deg, #0d2238 0%, #102840 100%);
  border-top: 1px solid rgba(120, 160, 200, 0.22);
}

.about-inner {
  max-width: 880px;
}

.about-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #7ec8f5;
  margin-bottom: 8px;
}

.about-kicker::before {
  content: "";
  width: 3px;
  height: 14px;
  border-radius: 2px;
  background: #4db3ef;
}

.about-title {
  font-size: clamp(20px, 2.8vw, 24px);
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 12px;
  color: var(--text-on-dark);
}

.about-intro {
  font-size: 15px;
  color: var(--text-on-dark-secondary);
  line-height: 1.8;
  margin-bottom: 16px;
}

.about-meta {
  display: grid;
  gap: 10px;
  padding-top: 14px;
  border-top: 1px solid rgba(120, 160, 200, 0.28);
}

.about-meta dt {
  font-size: 12px;
  font-weight: 600;
  color: var(--text-on-dark-muted);
  margin-bottom: 2px;
}

.about-meta dd {
  font-size: 15px;
  color: var(--text-on-dark-secondary);
  line-height: 1.65;
}

.about-phone {
  color: #8fd4ff;
  text-decoration: none;
  font-weight: 600;
}

.about-phone:hover {
  text-decoration: underline;
}

/* ── Footer ── */

.site-footer {
  border-top: 1px solid rgba(120, 160, 200, 0.2);
  padding: 24px 0 32px;
  background: linear-gradient(180deg, #0a1c30 0%, #081828 100%);
  color: var(--text-on-dark-muted);
  font-size: 13px;
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 24px;
  justify-content: space-between;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.footer-logo {
  width: 100px;
  height: auto;
  flex-shrink: 0;
}

.site-footer a {
  color: inherit;
  text-decoration: none;
}

.site-footer a:hover {
  text-decoration: underline;
  color: var(--text-on-dark-secondary);
}

.footer-copy {
  margin-top: 6px;
}

.footer-nav {
  display: flex;
  gap: 16px;
}

/* ── Floating login ── */

.floating-login {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 18px rgba(0, 110, 174, 0.24);
  opacity: 0;
  transform: translateY(16px);
  pointer-events: none;
  transition: opacity 0.2s, transform 0.2s, background 0.2s;
}

.floating-login:hover {
  background: var(--accent-hover);
}

.floating-login.is-visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* ── Responsive ── */

@media (max-width: 900px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 1150px) {
  .hero {
    background: linear-gradient(180deg, #174c83 0%, #16324f 100%);
  }

  /* 竖屏不能把 16:9 整合照片作为全高 cover 背景，否则会横向裁掉人物和笔记本。 */
  .hero-media,
  .hero-overlay {
    display: none;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 24px;
    align-items: stretch;
    min-height: 0;
    padding: 36px 20px 28px;
    column-gap: 0;
  }

  .hero-copy {
    order: 1;
    max-width: none;
    width: 100%;
    border-radius: 0;
    box-shadow: none;
    background: transparent;
    color: #fff;
  }

  .hero-mobile-visual {
    display: block;
    order: 2;
    box-sizing: border-box;
    width: 100%;
    max-width: 720px;
    aspect-ratio: 1672 / 941;
    margin: 0 auto;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.34);
    border-radius: 18px;
    background: #d7e8f6;
    box-shadow: 0 12px 30px rgba(8, 24, 48, 0.2);
  }

  .hero-mobile-visual img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }

  .hero-actions {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }

  .hero-login {
    order: 3;
    justify-self: auto;
    width: 100%;
    max-width: 420px;
    margin: 0 auto;
  }
}

@media (max-width: 768px) {
  section {
    padding: 42px 0;
  }

  .hero {
    min-height: auto;
    align-items: stretch;
  }

  .hero-inner {
    display: flex;
    flex-direction: column;
    gap: 20px;
    padding: 32px 0 48px;
    width: 100%;
  }

  .hero-login {
    order: 3;
    width: 100%;
    margin-top: 0;
  }

  .hero-login-frame {
    height: 640px;
  }

  .hero-copy {
    order: 1;
    max-width: none;
    border-radius: 0;
    padding: 4px 0 8px;
    box-shadow: none;
    background: transparent;
    color: #fff;
  }

  .hero h1 {
    font-size: 32px;
    color: #fff;
  }

  .hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .value-strip {
    margin-top: -24px;
    margin-bottom: 0;
    padding-bottom: 36px;
  }

  .guarantee-strip {
    padding: 36px 0 40px;
  }

  .value-strip-inner {
    grid-template-columns: 1fr;
  }

  .value-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border-soft);
  }

  .value-item {
    padding: 16px 18px;
  }

  .service-card-body,
  .service-card--legal .service-card-body {
    grid-template-columns: 1fr;
    min-height: auto;
  }

  .service-card-text {
    order: 1;
    padding: 24px 20px 20px;
  }

  .service-card-photo {
    order: 2;
    min-height: 200px;
  }

  .service-card--tax .service-card-photo::before {
    background:
      linear-gradient(180deg, rgba(244, 248, 252, 0.88) 0%, rgba(140, 175, 205, 0.08) 24%, transparent 48%),
      linear-gradient(180deg, rgba(152, 186, 214, 0.3) 0%, rgba(108, 148, 180, 0.2) 100%);
  }

  .service-card--legal .service-card-photo::before {
    background:
      linear-gradient(180deg, rgba(244, 248, 252, 0.88) 0%, rgba(140, 175, 205, 0.08) 24%, transparent 48%),
      linear-gradient(180deg, rgba(152, 186, 214, 0.3) 0%, rgba(108, 148, 180, 0.2) 100%);
  }

  .service-card--tax .delivery-float,
  .service-card--legal .delivery-float {
    position: relative;
    top: auto;
    left: auto;
    right: auto;
    transform: none;
    width: calc(100% - 32px);
    margin: 24px auto;
  }

  .service-card-tag {
    top: 12px;
    right: 12px;
  }

  .steps-row {
    flex-direction: column;
    gap: 12px;
  }

  .step-arrow {
    display: none;
  }

  .assistant-grid {
    grid-template-columns: 1fr;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .addon-row {
    grid-template-columns: repeat(2, 1fr);
  }

  .contact-banner {
    padding: 28px 22px;
  }

  .contact-actions {
    width: 100%;
  }

  .contact-actions .btn {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(100% - 28px, var(--max));
  }

  .nav {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .brand-text span {
    white-space: nowrap;
  }

  .addon-row {
    grid-template-columns: 1fr;
  }

  .footer-inner {
    align-items: flex-start;
  }

  .floating-login {
    right: 16px;
    bottom: 16px;
    padding: 11px 16px;
  }

  .brand-logo {
    width: 104px;
  }

}

.legal-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.45);
}

.legal-modal.is-open {
  display: flex;
}

.legal-modal-card {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(720px, 100%);
  max-height: min(80vh, 760px);
  padding: 24px;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 24px 64px rgba(15, 23, 42, 0.2);
}

.legal-modal-card h2 {
  margin: 0 36px 12px 0;
  font-size: 20px;
  color: var(--text);
}

.legal-modal-body {
  overflow: auto;
  color: var(--text);
  font-size: 14px;
  line-height: 1.7;
}

.legal-modal-body h3,
.legal-modal-body h4 {
  margin: 16px 0 8px;
}

.legal-modal-body p {
  margin: 0 0 10px;
}

.legal-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 400px) {
  .brand-text small {
    display: none;
  }
}

@media (max-width: 320px) {
  .container {
    width: min(100% - 20px, var(--max));
  }

  .hero-copy {
    padding: 18px 16px;
  }

  .hero h1 {
    font-size: 24px;
  }

  .service-card-text h3 {
    font-size: 22px;
  }
}

/* Token Plan：照片向浅杏橙套餐区自然过渡。 */
.hero--token-horizon { display: block; min-height: calc(100svh - var(--header-h) - 1px); padding: 0; background: #fff0d9; }
.hero--token-horizon .hero-media { bottom: 0; }
.hero--token-horizon .hero-overlay { bottom: 0; }
.hero--token-horizon::after { bottom: 0; height: 220px; background: linear-gradient(180deg, transparent 0%, #ffd9a380 30%, #fff0d9e8 70%, #fff0d9 100%); }
.hero--token-horizon .hero-inner { z-index: 3; min-height: calc(100svh - var(--header-h) - 1px); padding-top: 16px; padding-bottom: 126px; }
.hero--token-horizon + .value-strip { margin-top: 0; padding: 48px 0 52px; }
.hero--token-horizon .hero-copy, .hero--token-horizon .hero-login { transform: none; top: 0; }
.token-horizon { position: absolute; inset: auto 0 0; z-index: 3; display: flex; align-items: center; gap: clamp(20px, 3vw, 52px); min-height: 116px; padding: 6px clamp(28px, 5vw, 88px) 10px; color: inherit; text-decoration: none; }
.token-horizon-gem { width: clamp(140px, 15vw, 230px); height: 110px; flex-shrink: 0; filter: sepia(1) saturate(2) hue-rotate(350deg) drop-shadow(0 6px 10px #c8893540); }
.token-horizon-copy { min-width: 0; flex: 1; }
.token-horizon-copy h2 { margin: 0; font-size: clamp(20px, 2vw, 32px); font-weight: 600; line-height: 1.4; letter-spacing: .02em; color: #a64f16; }
.token-horizon-copy p { margin: 8px 0 0; font-size: clamp(12px, 1.1vw, 16px); line-height: 1.7; color: #946b4b; }
.token-horizon-link { display: inline-flex; align-items: center; justify-content: center; gap: 20px; flex-shrink: 0; padding: 13px 30px; border-radius: 999px; background: linear-gradient(110deg, #ec9b3b, #d77921); color: white; font-size: 15px; font-weight: 600; text-decoration: none; box-shadow: 0 6px 20px #d7792126; }
.token-horizon:hover .token-horizon-link { background: #b65d16; }
.token-horizon:focus-visible { outline: 2px solid #b65d16; outline-offset: -4px; }
@media (min-width: 1151px) {
  .token-horizon { display: grid; grid-template-columns: clamp(140px, 15vw, 230px) minmax(0, 1fr) 330px; }
  .token-horizon-link { justify-self: start; }
}
@media (min-width: 1151px) and (max-height: 800px) {
  .hero--token-horizon .hero-inner { padding-top: 8px; padding-bottom: 136px; }
  .token-horizon { min-height: 96px; padding-top: 4px; padding-bottom: 8px; gap: 24px; grid-template-columns: 150px minmax(0, 1fr) 330px; }
  .token-horizon-gem { width: 150px; height: 100px; }
  .token-horizon-copy h2 { font-size: 22px; }
  .token-horizon-copy p { margin-top: 4px; font-size: 12px; }
}
@media (max-width: 1150px) {
  .hero--token-horizon { display: flex; flex-direction: column; background: linear-gradient(180deg, #174c83 0%, #16324f 100%); }
  .hero--token-horizon::after { display: none; }
  .hero--token-horizon .hero-inner { order: 2; min-height: 0; padding: 24px 20px 32px; }
  .hero--token-horizon .hero-copy { color: #fff; }
  .hero--token-horizon h1 { color: #fff; }
  .hero--token-horizon .hero-sub, .hero--token-horizon .hero-tags { color: #d7e8f6; }
  .token-horizon { position: relative; inset: auto; order: 1; width: 100%; min-height: 0; padding: 20px 24px; gap: 16px; background: linear-gradient(120deg, #fff8ec, #ffe3b9); }
  .token-horizon-gem { width: 95px; height: 80px; }
  .token-horizon-copy h2 { font-size: 20px; }
  .token-horizon-copy p { font-size: 12px; margin-top: 5px; }
  .token-horizon-link { padding: 10px 20px; font-size: 13px; gap: 10px; }
}
@media (max-width: 767px) {
  .token-horizon-link { display: none; }
}
@media (max-width: 600px) {
  .hero--token-horizon + .value-strip { padding-top: 28px; }
  .token-horizon { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px 12px; padding: 18px; }
  .token-horizon-gem { width: 56px; height: 60px; }
  .token-horizon-copy h2 { font-size: 16px; letter-spacing: 0; }
  .token-horizon-copy p { font-size: 11px; line-height: 1.65; }
  .token-horizon-link { grid-column: 2; justify-self: start; padding: 8px 18px; font-size: 12px; }
  .hero--token-horizon .hero-actions { flex-direction: row; }
  .hero--token-horizon .hero-actions .btn { padding: 10px 14px; font-size: 12px; }
  .hero--token-horizon .hero-inner { gap: 16px; }
}
