:root {
  --bg: #f7f4ee;
  --bg-elevated: #ffffff;
  --bg-tinted: #efeae0;
  --surface-soft: #f2ede3;
  --text: #14242b;
  --text-secondary: #3e525c;
  --text-muted: #64748b;
  --primary: #0d6e6e;
  --primary-hover: #095252;
  --primary-soft: rgba(13, 110, 110, 0.1);
  --accent: #c8553d;
  --accent-soft: rgba(200, 85, 61, 0.12);
  --border: rgba(20, 36, 43, 0.12);
  --border-light: rgba(20, 36, 43, 0.07);
  --shadow-sm: 0 2px 8px rgba(20, 36, 43, 0.06);
  --shadow-md: 0 10px 30px rgba(20, 36, 43, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 36, 43, 0.14);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --font-sans: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --font-serif: Georgia, "Times New Roman", "Songti SC", "SimSun", serif;
}

html.theme-dark {
  --bg: #0f171c;
  --bg-elevated: #17232a;
  --bg-tinted: #121d23;
  --surface-soft: #1d2c35;
  --text: #f1f5f9;
  --text-secondary: #cbd5e1;
  --text-muted: #94a3b8;
  --primary: #2dd4bf;
  --primary-hover: #14b8a6;
  --primary-soft: rgba(45, 212, 191, 0.14);
  --accent: #fb923c;
  --accent-soft: rgba(251, 146, 60, 0.15);
  --border: rgba(255, 255, 255, 0.12);
  --border-light: rgba(255, 255, 255, 0.07);
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.25);
  --shadow-md: 0 12px 32px rgba(0, 0, 0, 0.35);
  --shadow-lg: 0 20px 50px rgba(0, 0, 0, 0.5);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  min-height: 100%;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  font-family: var(--font-sans);
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

body {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

/* 顶部导航栏 */
.navbar {
  position: sticky;
  top: 0;
  z-index: 90;
  width: 100%;
  background: color-mix(in srgb, var(--bg-elevated) 90%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}

.nav-container {
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
  height: 64px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-sizing: border-box;
  position: relative;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex-shrink: 0;
}

.brand-portal-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s ease, opacity 0.2s ease;
  flex-shrink: 0;
}

.brand-portal-link:hover {
  transform: scale(1.06);
  opacity: 0.92;
}

.brand-portal-logo {
  height: 28px;
  width: 112px;
  aspect-ratio: 4 / 1;
  border-radius: 6px;
  object-fit: contain;
  display: block;
}

.nav-brand-sep {
  width: 1px;
  height: 18px;
  background: var(--border);
  flex-shrink: 0;
}

.nav-brand-text {
  font-size: 16px;
  font-weight: 700;
  color: var(--text);
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0 auto 0 24px;
  padding: 0;
  min-width: 0;
}

.nav-link {
  display: inline-flex;
  align-items: center;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-secondary);
  white-space: nowrap;
  transition: background 0.15s ease, color 0.15s ease;
}

.nav-link:hover {
  background: var(--primary-soft);
  color: var(--primary);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  min-width: 0;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-elevated);
  color: var(--text-secondary);
  cursor: pointer;
  flex-shrink: 0;
  transition: border-color 0.15s ease, color 0.15s ease;
}

.theme-toggle-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}

.theme-icon {
  width: 18px;
  height: 18px;
}

.moon-icon { display: none; }
html.theme-dark .sun-icon { display: none; }
html.theme-dark .moon-icon { display: block; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary {
  background: var(--primary);
  color: #ffffff;
  box-shadow: var(--shadow-sm);
}

.btn-primary:hover {
  background: var(--primary-hover);
  transform: translateY(-1px);
}

html.theme-dark .btn-primary {
  color: #091518;
}

.btn-outline {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-soft);
}

.btn-lg {
  padding: 12px 24px;
  font-size: 15px;
  border-radius: 10px;
}

.nav-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 10px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text);
  cursor: pointer;
  flex-shrink: 0;
}

.nav-toggle svg {
  width: 22px;
  height: 22px;
  fill: currentColor;
}

.nav-toggle .icon-close { display: none; }
.nav-toggle.active .icon-menu { display: none; }
.nav-toggle.active .icon-close { display: block; }

/* 主内容区 */
main {
  flex: 1 0 auto;
  width: 100%;
}

.hero-section {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px 48px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: 36px;
  align-items: center;
}

.hero-copy {
  min-width: 0;
}

.hero-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 18px;
  max-width: 100%;
}

.pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
}

.hero-title {
  margin: 0 0 18px;
  font-size: clamp(28px, 4.2vw, 46px);
  font-weight: 800;
  line-height: 1.22;
  letter-spacing: -0.02em;
  color: var(--text);
}

.hero-accent {
  color: var(--primary);
}

.hero-desc {
  margin: 0 0 26px;
  font-size: 16px;
  color: var(--text-secondary);
  line-height: 1.75;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 32px;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.metric-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.metric-val {
  font-size: 18px;
  font-weight: 800;
  color: var(--text);
}

.metric-label {
  font-size: 12px;
  color: var(--text-muted);
  line-height: 1.45;
}

/* 右侧预览卡片 */
.hero-preview {
  min-width: 0;
}

.preview-board {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.preview-board-head {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.board-chip {
  padding: 3px 10px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.board-chip-teal {
  background: var(--primary-soft);
  color: var(--primary);
}

.board-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.preview-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ptag {
  padding: 4px 10px;
  border-radius: 6px;
  background: var(--surface-soft);
  font-size: 12px;
  color: var(--text-secondary);
}

.preview-plan-card {
  background: var(--bg);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-md);
  padding: 14px;
}

.pcard-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 6px;
  font-size: 14px;
}

.pcard-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent);
}

.pcard-text {
  margin: 0;
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.preview-route-strip {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: var(--surface-soft);
}

.rstop {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
}

.rstop-dot {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  color: #fff;
}

.rstop-start { background: #0d6e6e; }
.rstop-mid { background: #3b82f6; }
.rstop-end { background: #c8553d; }

.rstop-arrow {
  color: var(--text-muted);
  font-size: 12px;
}

.preview-board-foot {
  font-size: 12px;
  color: var(--text-muted);
}

/* 通用区块 */
.section-block {
  max-width: 1200px;
  margin: 0 auto;
  padding: 56px 20px;
}

.section-tinted {
  max-width: 100%;
  background: var(--bg-tinted);
}

.section-tinted > .section-header,
.section-tinted > .steps-grid {
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.section-header {
  text-align: center;
  margin-bottom: 36px;
}

.section-eyebrow {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--primary);
  margin-bottom: 8px;
}

.section-title {
  margin: 0 0 10px;
  font-size: clamp(22px, 3vw, 32px);
  font-weight: 800;
  color: var(--text);
}

.section-subtitle {
  margin: 0;
  font-size: 15px;
  color: var(--text-muted);
}

.cap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.cap-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  min-width: 0;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.cap-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.cap-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
}

.cap-icon-teal { background: rgba(13, 110, 110, 0.12); }
.cap-icon-amber { background: rgba(245, 158, 11, 0.15); }
.cap-icon-coral { background: rgba(200, 85, 61, 0.14); }
.cap-icon-indigo { background: rgba(59, 130, 246, 0.14); }

.cap-card h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  color: var(--text);
}

.cap-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.step-card {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 24px;
  min-width: 0;
}

.step-num {
  display: inline-block;
  font-family: var(--font-serif);
  font-size: 28px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 10px;
}

.step-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  font-weight: 700;
}

.step-card p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.65;
}

.coverage-banner {
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.coverage-text {
  flex: 1 1 360px;
  min-width: 0;
}

.coverage-text h2 {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 800;
}

.coverage-text p {
  margin: 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.7;
}

.coverage-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.region-badge {
  padding: 8px 16px;
  border-radius: 999px;
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 700;
}

.cta-bottom-box {
  text-align: center;
  padding: 36px 24px;
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--primary-soft), var(--accent-soft));
  border: 1px solid var(--border);
}

.cta-bottom-box h2 {
  margin: 0 0 8px;
  font-size: 24px;
  font-weight: 800;
}

.cta-bottom-box p {
  margin: 0 0 22px;
  font-size: 15px;
  color: var(--text-secondary);
}

.cta-bottom-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
}

/* YINUNU 通用品牌页脚与安全视口弹窗 */
.yinunu-footer {
  margin-top: auto;
  padding: 2.2rem 1.25rem 1.8rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.82rem;
  color: var(--text-muted);
  line-height: 1.8;
}

.yinunu-footer-brand {
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 0.35rem;
}

.yinunu-footer-links {
  margin-bottom: 0.45rem;
}

.yinunu-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
  transition: color 0.2s ease;
}

.yinunu-footer-links a:hover {
  color: var(--primary);
  text-decoration: underline;
}

.yinunu-footer-sep {
  margin: 0 0.5rem;
  opacity: 0.4;
}

.yinunu-footer-copy {
  font-size: 0.75rem;
  color: var(--text-muted);
}

.yinunu-products-modal[hidden] {
  display: none !important;
}

.yinunu-products-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem 1rem;
  box-sizing: border-box;
  overflow-x: hidden;
  font-family: var(--font-sans);
}

.yinunu-products-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.yinunu-products-card {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 680px;
  max-height: calc(100vh - 4.5rem);
  max-height: min(82svh, calc(100svh - 3.5rem));
  background: #181c2a;
  color: #f1f5f9;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.55);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.yinunu-products-header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.1rem 1.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.yinunu-products-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
}

.yinunu-products-title {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 600;
  color: #f8fafc;
}

.yinunu-products-subtitle {
  margin: 0;
  font-size: 0.78rem;
  color: #94a3b8;
}

.yinunu-products-close {
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #94a3b8;
  cursor: pointer;
  padding: 0.35rem 0.6rem;
  border-radius: 6px;
  min-width: 44px;
  min-height: 44px;
}

.yinunu-products-close:hover {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.yinunu-products-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 1.25rem 1.4rem 1.4rem;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  word-break: break-word;
}

.yinunu-products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 0.75rem;
}

.yinunu-product-item {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 0.85rem 1rem;
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  min-width: 0;
}

.yinunu-product-item:hover {
  border-color: #38bdf8;
  background: rgba(56, 189, 248, 0.06);
}

.yinunu-product-name {
  font-size: 0.9rem;
  font-weight: 600;
  color: #f1f5f9;
  margin-bottom: 0.3rem;
}

.yinunu-product-url {
  font-size: 0.75rem;
  color: #94a3b8;
  word-break: break-all;
}

.yinunu-privacy-body {
  font-size: 0.85rem;
  line-height: 1.75;
  color: #cbd5e1;
}

.privacy-loading-tip {
  text-align: center;
  color: #94a3b8;
  padding: 2rem 0;
}

.yinunu-privacy-lead {
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px dashed rgba(255, 255, 255, 0.1);
  color: #f1f5f9;
}

.yinunu-privacy-body h4 {
  margin: 1.1rem 0 0.4rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: #38bdf8;
}

.yinunu-privacy-body p {
  margin: 0.4rem 0;
}

.yinunu-privacy-bullet {
  padding-left: 0.85rem;
  position: relative;
}

.yinunu-privacy-bullet::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #38bdf8;
}

.yinunu-privacy-footer {
  flex-shrink: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: 0.85rem 1.4rem calc(0.85rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.18);
}

.yinunu-privacy-agree-btn {
  background: #0284c7;
  color: #ffffff;
  border: none;
  border-radius: 6px;
  padding: 0.55rem 1.25rem;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

/* 响应式断点 */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .steps-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 768px) {
  .nav-container {
    padding: 0 12px;
  }
  .nav-toggle {
    display: inline-flex;
  }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    width: 100%;
    background: var(--bg-elevated);
    flex-direction: column;
    align-items: stretch;
    padding: 8px 12px 14px;
    border-bottom: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    z-index: 99;
    margin: 0;
  }
  .nav-links.active {
    display: flex;
    animation: navSlideDown 0.2s ease-out;
  }
  .nav-link {
    width: 100%;
    padding: 12px 16px;
    font-size: 15px;
    min-height: 48px;
    border-bottom: 1px solid var(--border-light);
  }
  .nav-links li:last-child .nav-link {
    border-bottom: none;
  }
  @keyframes navSlideDown {
    from { opacity: 0; transform: translateY(-8px); }
    to { opacity: 1; transform: translateY(0); }
  }

  .cap-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .hero-metrics {
    grid-template-columns: minmax(0, 1fr);
  }
  .yinunu-products-modal {
    padding-top: max(1.75rem, calc(env(safe-area-inset-top, 0px) + 1.25rem));
    padding-bottom: max(1.75rem, calc(env(safe-area-inset-bottom, 0px) + 1.25rem));
    padding-left: max(0.85rem, calc(env(safe-area-inset-left, 0px) + 0.5rem));
    padding-right: max(0.85rem, calc(env(safe-area-inset-right, 0px) + 0.5rem));
  }
  .yinunu-products-card {
    max-height: calc(100vh - 4.5rem);
    max-height: min(80svh, calc(100svh - env(safe-area-inset-top, 0px) - env(safe-area-inset-bottom, 0px) - 3rem));
    max-width: calc(100vw - 1.5rem);
  }
}

@media (max-width: 480px) {
  .nav-brand-sep,
  .nav-brand-text {
    display: none;
  }
  .brand-portal-logo {
    height: 24px;
    width: 96px;
  }
  .nav-cta {
    padding: 7px 12px;
    font-size: 13px;
  }
  .hero-section {
    padding: 32px 14px 28px;
  }
  .section-block {
    padding: 36px 14px;
  }
  .yinunu-products-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .yinunu-privacy-footer {
    justify-content: stretch;
  }
  .yinunu-privacy-agree-btn {
    width: 100%;
    text-align: center;
  }
}
