/**
 * 蛋挞云 Eggtart Cloud (B03) - 全站核心设计系统与基础样式
 * Eggtart Conversion Engine Main Stylesheet
 */

:root {
  /* 品牌核心配色体系 */
  --color-cream-bg: #FFFCF7;
  --color-vibrant-orange: #FF8A35;
  --color-dark-coffee: #593A29;
  --color-tart-gold: #E8BE79;
  --color-light-caramel: #F2E5D5;
  --color-caramel-tint: #FAF3EB;
  --color-text-main: #302720;
  --color-text-muted: #806C5B;
  --color-card-white: #FFFFFF;
  --color-btn-cta: #B95D18;
  --color-btn-cta-hover: #9E4B0E;
  --color-border: #EADBCC;
  --color-border-subtle: #F0E6D8;
  --color-badge-bg: #FFF3E6;
  --color-badge-text: #B95D18;

  /* 阴影层级 */
  --shadow-sm: 0 2px 6px rgba(89, 58, 41, 0.05);
  --shadow-md: 0 8px 24px rgba(89, 58, 41, 0.08);
  --shadow-lg: 0 16px 36px rgba(89, 58, 41, 0.12);
  --shadow-orange: 0 8px 24px rgba(255, 138, 53, 0.25);

  /* 字体排版 */
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  --font-mono: SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;

  /* 容器限制 */
  --container-max: 1200px;
  --container-narrow: 860px;
  --radius-sm: 6px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
}

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

html {
  font-family: var(--font-sans);
  background-color: var(--color-cream-bg);
  color: var(--color-text-main);
  line-height: 1.68;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
}

body {
  background-color: var(--color-cream-bg);
  color: var(--color-text-main);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

/* 链接标准 */
a {
  color: var(--color-btn-cta);
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

a:hover {
  color: var(--color-vibrant-orange);
}

img, svg {
  max-width: 100%;
  height: auto;
  display: block;
}

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font-family: inherit;
  font-size: inherit;
  color: inherit;
}

/* 布局容器 */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.container-narrow {
  max-width: var(--container-narrow);
}

/* 章节通用标题与副标 */
.section-wrapper {
  padding: 84px 0;
  position: relative;
}

.section-wrapper.bg-alt {
  background-color: #FAF4EB;
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}

.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 52px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-badge-bg);
  color: var(--color-badge-text);
  border: 1px solid #FFD8B3;
  padding: 4px 14px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 14px;
  text-transform: uppercase;
}

.section-title {
  font-size: 32px;
  font-weight: 800;
  color: var(--color-dark-coffee);
  line-height: 1.32;
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}

.section-desc {
  font-size: 16px;
  color: var(--color-text-muted);
  line-height: 1.7;
}

/* 品牌通用按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  white-space: nowrap;
}

.btn-cta {
  background: linear-gradient(135deg, var(--color-vibrant-orange) 0%, var(--color-btn-cta) 100%);
  color: #FFFFFF !important;
  box-shadow: 0 4px 16px rgba(255, 138, 53, 0.32);
}

.btn-cta:hover {
  background: linear-gradient(135deg, #FFA056 0%, #B95D18 100%);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(185, 93, 24, 0.4);
}

.btn-secondary {
  background-color: #FFFFFF;
  color: var(--color-dark-coffee);
  border: 1.5px solid var(--color-border);
}

.btn-secondary:hover {
  background-color: var(--color-caramel-tint);
  border-color: var(--color-tart-gold);
  color: var(--color-btn-cta);
  transform: translateY(-2px);
}

.btn-outline {
  background: transparent;
  color: var(--color-dark-coffee);
  border: 1.5px solid var(--color-tart-gold);
}

.btn-outline:hover {
  background-color: var(--color-badge-bg);
  border-color: var(--color-vibrant-orange);
  color: var(--color-btn-cta);
}

.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 16px 36px;
  font-size: 17px;
  border-radius: var(--radius-lg);
}

/* 顶部悬浮导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 252, 247, 0.94);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}

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

.brand-logo-link {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

.brand-logo-icon {
  width: 38px;
  height: 38px;
  filter: drop-shadow(0 2px 6px rgba(185, 93, 24, 0.2));
}

.brand-text-block {
  display: flex;
  flex-direction: column;
}

.brand-title {
  font-size: 19px;
  font-weight: 900;
  color: var(--color-dark-coffee);
  letter-spacing: 0.5px;
  line-height: 1.1;
}

.brand-tagline-sm {
  font-size: 10px;
  font-weight: 700;
  color: var(--color-btn-cta);
  letter-spacing: 1.5px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 20px;
}

.nav-link {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark-coffee);
  padding: 6px 4px;
  position: relative;
  transition: color 0.2s ease;
}

.nav-link:hover, .nav-link.active {
  color: var(--color-btn-cta);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: -4px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--color-vibrant-orange);
  border-radius: 2px;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hamburger-btn {
  display: none;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  width: 42px;
  height: 42px;
  padding: 8px;
  cursor: pointer;
  flex-direction: column;
  justify-content: space-around;
}

.hamburger-btn span {
  display: block;
  width: 100%;
  height: 2.5px;
  background-color: var(--color-dark-coffee);
  border-radius: 2px;
  transition: all 0.3s ease;
}

/* 首页 Hero 区域 */
.hero-section {
  padding: 56px 0 68px;
  position: relative;
  background: radial-gradient(circle at 80% 20%, rgba(232, 190, 121, 0.15) 0%, transparent 60%),
              radial-gradient(circle at 10% 70%, rgba(255, 138, 53, 0.08) 0%, transparent 50%);
  border-bottom: 1px solid var(--color-border-subtle);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.25fr 0.95fr;
  gap: 48px;
  align-items: center;
}

.hero-content {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero-badge-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.hero-engine-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--color-btn-cta);
  background: var(--color-badge-bg);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid #FFD8B3;
  text-transform: uppercase;
}

.hero-h1 {
  font-size: 40px;
  font-weight: 900;
  color: var(--color-dark-coffee);
  line-height: 1.2;
  letter-spacing: -0.5px;
}

.hero-visual-subtitle {
  font-size: 18px;
  font-weight: 800;
  color: var(--color-vibrant-orange);
  letter-spacing: 1px;
}

.hero-slogan {
  font-size: 20px;
  font-weight: 700;
  color: var(--color-btn-cta);
  border-left: 4px solid var(--color-vibrant-orange);
  padding-left: 14px;
}

.hero-text {
  font-size: 16px;
  color: var(--color-text-main);
  line-height: 1.75;
}

.hero-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin: 12px 0;
  padding: 16px 20px;
  background: #FFFFFF;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.hero-stat-card {
  display: flex;
  flex-direction: column;
}

.hero-stat-val {
  font-size: 22px;
  font-weight: 900;
  color: var(--color-btn-cta);
  line-height: 1.1;
}

.hero-stat-lbl {
  font-size: 12px;
  color: var(--color-text-muted);
  margin-top: 4px;
  font-weight: 600;
}

.hero-cta-group {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 8px;
}

/* Hero 右侧转化仪表盘交互卡片 */
.hero-visual-card {
  background: #FFFFFF;
  border: 1.5px solid var(--color-tart-gold);
  border-radius: var(--radius-xl);
  padding: 32px 28px;
  box-shadow: var(--shadow-lg);
  position: relative;
}

.hero-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--color-border-subtle);
}

.hero-card-title {
  font-size: 16px;
  font-weight: 800;
  color: var(--color-dark-coffee);
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-plan-snapshot-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
}

.snapshot-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background-color: var(--color-caramel-tint);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  transition: all 0.2s ease;
}

.snapshot-item:hover {
  border-color: var(--color-vibrant-orange);
  background-color: #FFFFFF;
  transform: translateX(4px);
}

.snapshot-info {
  display: flex;
  flex-direction: column;
}

.snapshot-name {
  font-size: 14px;
  font-weight: 800;
  color: var(--color-dark-coffee);
}

.snapshot-spec {
  font-size: 12px;
  color: var(--color-text-muted);
}

.snapshot-price {
  text-align: right;
}

.snapshot-num {
  font-size: 18px;
  font-weight: 900;
  color: var(--color-btn-cta);
}

.snapshot-cycle {
  font-size: 11px;
  color: var(--color-text-muted);
}

.hero-card-footer {
  text-align: center;
}

.hero-card-footer .disclosure-text {
  font-size: 11px;
  color: var(--color-text-muted);
  margin-top: 10px;
  line-height: 1.5;
}

/* 页脚样式 */
.site-footer {
  background-color: var(--color-dark-coffee);
  color: #EDE3DA;
  padding: 68px 0 32px;
  margin-top: auto;
  border-top: 3px solid var(--color-tart-gold);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  margin-bottom: 48px;
}

.footer-col-title {
  font-size: 16px;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 20px;
  letter-spacing: 0.5px;
  position: relative;
  padding-bottom: 8px;
}

.footer-col-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 28px;
  height: 2px;
  background-color: var(--color-tart-gold);
}

.footer-brand-desc {
  font-size: 13.5px;
  color: #CFC2B6;
  line-height: 1.7;
  margin-top: 14px;
}

.footer-links-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-link {
  color: #DDD2C7;
  font-size: 13.5px;
  transition: color 0.2s ease, transform 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.footer-link:hover {
  color: var(--color-tart-gold);
  transform: translateX(3px);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  flex-direction: column;
  gap: 16px;
  font-size: 12.5px;
  color: #B5A597;
}

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

.footer-legal-disclosure {
  font-size: 11.5px;
  color: #A69586;
  line-height: 1.6;
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 84px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #FFFFFF;
  border: 1.5px solid var(--color-border);
  color: var(--color-dark-coffee);
  box-shadow: var(--shadow-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 990;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  background-color: var(--color-vibrant-orange);
  color: #FFFFFF;
  border-color: var(--color-vibrant-orange);
  transform: translateY(-3px);
}

/* 响应式断点 */
@media (max-width: 1024px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    height: 64px;
  }
  .site-nav {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: #FFFFFF;
    border-bottom: 2px solid var(--color-tart-gold);
    flex-direction: column;
    padding: 20px 24px;
    gap: 14px;
    box-shadow: var(--shadow-lg);
  }
  .site-nav.open {
    display: flex;
  }
  .hamburger-btn {
    display: flex;
  }
  .hero-h1 {
    font-size: 28px;
  }
  .hero-stats-row {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .footer-bottom-row {
    flex-direction: column;
    align-items: flex-start;
  }
}
