/* ================================================
   向日葵订餐系统 - 推广宣传页公共样式
   风格：温暖 × 科技 × 现代
   配色：暖白 #faf8f5 / 琥珀金 #e6a23c / 暖棕 #5d4037
   ================================================ */

/* ===== CSS 变量 ===== */
:root {
  --c-bg: #faf8f5;
  --c-bg-alt: #fff8ed;
  --c-card: #ffffff;
  --c-primary: #e6a23c;
  --c-primary-light: #ffd89b;
  --c-primary-dark: #d4881a;
  --c-accent: #6c5ce7;
  --c-accent-light: #a29bfe;
  --c-text: #5d4037;
  --c-text-light: #8d7b6f;
  --c-text-muted: #b8a596;
  --c-footer: #4a3228;
  --c-border: #f0e6d6;
  --c-white: #ffffff;
  --shadow-sm: 0 2px 8px rgba(93,64,55,0.06);
  --shadow-md: 0 6px 24px rgba(93,64,55,0.10);
  --shadow-lg: 0 12px 40px rgba(230,162,60,0.18);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-full: 999px;
  --grad-primary: linear-gradient(135deg, #ffd89b 0%, #e6a23c 100%);
  --grad-hero: linear-gradient(135deg, #faf8f5 0%, #fff5e6 40%, #ffe8cc 100%);
  --grad-tech: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
  --font: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  --max-w: 1200px;
}

/* ===== 全局重置 ===== */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--c-text);
  background: var(--c-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
a { color: var(--c-primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--c-primary-dark); }
img { max-width: 100%; display: block; }

/* ===== 通用容器 ===== */
.section { width: 100%; padding: 90px 24px; display: flex; justify-content: center; }
.section--white { background: var(--c-white); }
.section--alt { background: var(--c-bg-alt); }
.section--dark { background: var(--c-footer); color: var(--c-bg); }
.container { width: 100%; max-width: var(--max-w); }
.section-title {
  font-size: 36px; font-weight: 700; color: var(--c-text);
  text-align: center; margin-bottom: 14px; letter-spacing: -0.5px;
}
.section-subtitle {
  font-size: 16px; color: var(--c-text-light);
  text-align: center; margin-bottom: 56px;
}
.section--dark .section-title { color: var(--c-bg); }
.section--dark .section-subtitle { color: var(--c-text-muted); }

/* ===== 顶部导航（推广页） ===== */
.navbar-promo {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  padding: 16px 24px;
  background: rgba(250,248,245,0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--c-border);
  display: flex; align-items: center; justify-content: space-between;
  transition: box-shadow .25s;
}
.navbar-promo.scrolled { box-shadow: var(--shadow-sm); }
.navbar-promo .brand {
  font-size: 20px; font-weight: 700; color: var(--c-text);
  display: flex; align-items: center; gap: 8px;
}
.navbar-promo .brand i { color: var(--c-primary); font-size: 22px; }
.navbar-promo .nav-right { display: flex; align-items: center; gap: 16px; }
.navbar-promo .btn-back {
  color: var(--c-text-light); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.navbar-promo .btn-back:hover { color: var(--c-primary); }
.navbar-promo .btn-consult {
  padding: 8px 22px; background: var(--c-primary); color: var(--c-white);
  border-radius: var(--radius-full); font-size: 14px; font-weight: 500;
  border: none; cursor: pointer; transition: all .25s;
  box-shadow: 0 4px 14px rgba(230,162,60,0.35);
}
.navbar-promo .btn-consult:hover {
  background: var(--c-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230,162,60,0.45);
}

/* ===== Hero 区 ===== */
.hero {
  position: relative; min-height: 88vh;
  display: flex; align-items: center;
  padding: 120px 24px 80px;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background: var(--grad-hero);
}
/* 科技装饰：浮动光晕 */
.hero-bg::before, .hero-bg::after {
  content: ''; position: absolute; border-radius: 50%;
  filter: blur(60px); opacity: 0.5;
  animation: float 20s ease-in-out infinite;
}
.hero-bg::before {
  width: 400px; height: 400px;
  background: rgba(230,162,60,0.25);
  top: -100px; right: -50px;
}
.hero-bg::after {
  width: 350px; height: 350px;
  background: rgba(108,92,231,0.15);
  bottom: -80px; left: 10%;
  animation-delay: -10s;
}
@keyframes float {
  0%, 100% { transform: translate(0, 0); }
  33% { transform: translate(30px, -30px); }
  66% { transform: translate(-20px, 20px); }
}
/* 科技装饰：网格线 */
.hero-grid {
  position: absolute; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(230,162,60,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(230,162,60,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
  -webkit-mask-image: radial-gradient(ellipse at center, black 30%, transparent 70%);
}
.hero-inner {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 56px;
  width: 100%; max-width: var(--max-w); margin: 0 auto;
}
.hero-img {
  flex: 0 0 auto; width: 300px; max-width: 36vw;
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 4px solid var(--c-white);
}
.hero-img img { width: 100%; height: auto; }
.hero-content { flex: 1 1 auto; max-width: 640px; }
.hero-badge {
  display: inline-block; padding: 7px 18px;
  background: rgba(230,162,60,0.12); color: var(--c-primary);
  border-radius: var(--radius-full); font-size: 13px;
  margin-bottom: 24px; letter-spacing: 0.5px;
  border: 1px solid rgba(230,162,60,0.2);
}
.hero h1 {
  font-size: 52px; font-weight: 700; color: var(--c-text);
  margin-bottom: 20px; line-height: 1.22; letter-spacing: -1px;
}
.hero h1 .accent {
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--c-primary);
}
.hero p.lead {
  font-size: 18px; color: var(--c-text-light); margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }

/* ===== 按钮 ===== */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 36px; background: var(--c-primary); color: var(--c-white);
  border-radius: var(--radius-full); font-size: 16px; font-weight: 500;
  border: none; cursor: pointer; transition: all .25s;
  box-shadow: 0 6px 20px rgba(230,162,60,0.35);
  position: relative; overflow: hidden;
}
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 100%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
  transition: left .5s;
}
.btn-primary:hover {
  background: var(--c-primary-dark); color: var(--c-white);
  transform: translateY(-2px);
  box-shadow: 0 8px 26px rgba(230,162,60,0.45);
}
.btn-primary:hover::after { left: 100%; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 32px; background: transparent; color: var(--c-primary);
  border: 2px solid var(--c-primary);
  border-radius: var(--radius-full); font-size: 15px;
  transition: all .25s; cursor: pointer;
}
.btn-outline:hover { background: var(--c-primary); color: var(--c-white); }

/* ===== 信任数据条 ===== */
.trust-bar {
  background: var(--c-white);
  border-top: 1px solid var(--c-border);
  border-bottom: 1px solid var(--c-border);
  padding: 36px 24px;
}
.trust-inner {
  max-width: var(--max-w); margin: 0 auto;
  display: flex; justify-content: space-around; align-items: center;
  flex-wrap: wrap; gap: 20px;
}
.trust-item { text-align: center; }
.trust-num {
  font-size: 36px; font-weight: 700;
  background: var(--grad-primary);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--c-primary);
  line-height: 1.2;
}
.trust-label { font-size: 14px; color: var(--c-text-light); margin-top: 4px; }

/* ===== 痛点区 ===== */
.pain-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.pain-card {
  background: var(--c-white); border-radius: var(--radius-md);
  padding: 36px 24px; text-align: center;
  border: 1px solid var(--c-border);
  transition: all .3s; position: relative; overflow: hidden;
}
.pain-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0;
  height: 3px; background: var(--grad-primary);
  transform: scaleX(0); transition: transform .3s;
  transform-origin: left;
}
.pain-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
}
.pain-card:hover::before { transform: scaleX(1); }
.pain-card .icon {
  width: 60px; height: 60px; line-height: 60px;
  border-radius: 50%; margin: 0 auto 20px;
  background: rgba(230,162,60,0.1); color: var(--c-primary);
  font-size: 24px;
}
.pain-card h3 { font-size: 17px; margin-bottom: 10px; color: var(--c-text); }
.pain-card p { font-size: 14px; color: var(--c-text-light); }

/* ===== 推广页入口网格（主页用） ===== */
.promo-grid {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px;
}
.promo-card {
  display: block; background: var(--c-white);
  border-radius: var(--radius-md); padding: 28px 20px;
  text-align: center; border: 1px solid var(--c-border);
  transition: all .3s; color: var(--c-text);
  position: relative; overflow: hidden;
}
.promo-card::before {
  content: ''; position: absolute; bottom: 0; left: 0; right: 0;
  height: 3px; background: var(--grad-primary);
  transform: scaleX(0); transition: transform .3s;
}
.promo-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
  border-color: transparent;
  color: var(--c-text);
}
.promo-card:hover::before { transform: scaleX(1); }
.promo-card .icon {
  width: 56px; height: 56px; line-height: 56px;
  border-radius: var(--radius-md); margin: 0 auto 16px;
  background: var(--grad-primary); color: var(--c-white);
  font-size: 22px;
}
.promo-card h3 { font-size: 15px; margin-bottom: 8px; font-weight: 600; }
.promo-card p { font-size: 12px; color: var(--c-text-light); margin-bottom: 12px; }
.promo-card .link { font-size: 13px; color: var(--c-primary); font-weight: 500; }
.promo-card:hover .link { color: var(--c-primary-dark); }

/* ===== 优势区 ===== */
.advantage-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
}
.advantage-card {
  background: var(--c-white); border-radius: var(--radius-md);
  padding: 32px 22px; text-align: center;
  border: 1px solid var(--c-border); border-top: 3px solid var(--c-primary);
  transition: all .3s;
}
.advantage-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-md);
}
.advantage-card .icon {
  width: 52px; height: 52px; line-height: 52px;
  border-radius: 50%; margin: 0 auto 16px;
  background: rgba(230,162,60,0.1); color: var(--c-primary); font-size: 20px;
}
.advantage-card h3 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.advantage-card p { font-size: 13px; color: var(--c-text-light); }

/* ===== 案例数据区 ===== */
.case-box {
  background: var(--c-white); border-radius: var(--radius-lg);
  padding: 40px 36px; border: 1px solid var(--c-border);
  box-shadow: var(--shadow-sm); margin-bottom: 24px;
}
.case-box .case-tag {
  display: inline-block; padding: 4px 14px;
  background: rgba(108,92,231,0.1); color: var(--c-accent);
  border-radius: var(--radius-full); font-size: 12px; margin-bottom: 16px;
}
.case-box h3 { font-size: 20px; margin-bottom: 14px; color: var(--c-text); }
.case-box .case-body { font-size: 15px; color: var(--c-text-light); margin-bottom: 24px; }
.case-stats {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  padding-top: 24px; border-top: 1px solid var(--c-border);
}
.case-stat { text-align: center; }
.case-stat .num {
  font-size: 30px; font-weight: 700; color: var(--c-primary); line-height: 1.2;
}
.case-stat .num .unit { font-size: 16px; }
.case-stat .label { font-size: 13px; color: var(--c-text-light); margin-top: 4px; }

/* ===== 为什么好用区 ===== */
.benefit-list {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px;
}
.benefit-item {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--c-white); border-radius: var(--radius-md);
  padding: 28px 24px; border: 1px solid var(--c-border);
  transition: all .3s;
}
.benefit-item:hover {
  box-shadow: var(--shadow-sm);
  transform: translateY(-3px);
}
.benefit-item .num-badge {
  flex: 0 0 auto; width: 40px; height: 40px; line-height: 40px;
  text-align: center; border-radius: 50%;
  background: var(--grad-primary); color: var(--c-white);
  font-size: 16px; font-weight: 700;
}
.benefit-item .content h4 { font-size: 17px; margin-bottom: 8px; color: var(--c-text); }
.benefit-item .content p { font-size: 14px; color: var(--c-text-light); }

/* ===== 操作步骤区 ===== */
.steps-wrap {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; flex-wrap: nowrap;
}
.step-card {
  flex: 1; max-width: 260px;
  background: var(--c-white); border-radius: var(--radius-md);
  padding: 36px 24px; text-align: center;
  border: 1px solid var(--c-border);
  position: relative; transition: all .3s;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--c-primary);
}
.step-card .step-num {
  width: 44px; height: 44px; line-height: 44px;
  border-radius: 50%; margin: 0 auto 16px;
  background: var(--grad-primary); color: var(--c-white);
  font-size: 18px; font-weight: 700;
}
.step-card .step-icon { color: var(--c-primary); font-size: 30px; margin-bottom: 12px; }
.step-card h4 { font-size: 17px; margin-bottom: 8px; color: var(--c-text); }
.step-card p { font-size: 13px; color: var(--c-text-light); }
.step-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; color: var(--c-primary); font-size: 24px;
  flex-shrink: 0;
}

/* ===== 使用流程区（主页） ===== */
.flow-wrap {
  display: flex; align-items: stretch; justify-content: center;
  gap: 0; flex-wrap: nowrap;
}
.flow-step {
  flex: 1; max-width: 240px;
  background: var(--c-white); border-radius: var(--radius-md);
  padding: 32px 22px; text-align: center;
  border: 1px solid var(--c-border); transition: all .3s;
}
.flow-step:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.flow-step .step-num {
  width: 42px; height: 42px; line-height: 42px;
  border-radius: 50%; margin: 0 auto 14px;
  background: var(--grad-primary); color: var(--c-white);
  font-size: 18px; font-weight: 600;
}
.flow-step .step-icon { color: var(--c-primary); font-size: 28px; margin-bottom: 10px; }
.flow-step h4 { font-size: 16px; margin-bottom: 8px; font-weight: 600; }
.flow-step p { font-size: 13px; color: var(--c-text-light); }
.flow-arrow {
  display: flex; align-items: center; justify-content: center;
  width: 44px; color: var(--c-primary); font-size: 24px; flex-shrink: 0;
}

/* ===== CTA 区 ===== */
.cta-section {
  background: linear-gradient(135deg, var(--c-footer) 0%, #3a2820 100%);
  color: var(--c-bg); text-align: center;
}
.cta-section .section-title { color: var(--c-bg); }
.cta-section .section-subtitle { color: var(--c-text-muted); }
.cta-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; margin-top: 20px;
}
.cta-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: var(--radius-md); padding: 36px 24px;
  transition: all .3s;
}
.cta-card:hover {
  background: rgba(255,255,255,0.1); transform: translateY(-3px);
}
.cta-card .icon {
  width: 60px; height: 60px; line-height: 60px;
  border-radius: 50%; margin: 0 auto 18px;
  background: rgba(230,162,60,0.2); color: var(--c-primary-light);
  font-size: 24px;
}
.cta-card h4 { font-size: 18px; margin-bottom: 10px; color: var(--c-bg); }
.cta-card p { font-size: 13px; color: var(--c-text-muted); margin-bottom: 16px; }
.cta-card .contact-info {
  font-size: 18px; color: var(--c-primary-light); font-weight: 500;
  margin: 8px 0 16px; letter-spacing: 0.5px;
}
.cta-card .qr-placeholder {
  width: 120px; height: 120px; margin: 0 auto;
  background: var(--c-bg); border-radius: 10px;
  overflow: hidden; display: flex; align-items: center; justify-content: center;
}
.cta-card .qr-placeholder img {
  width: 100%; height: 100%; object-fit: cover; border-radius: 10px;
}
.cta-card .btn-primary { width: 100%; justify-content: center; padding: 12px; }

/* ===== 页脚 ===== */
.footer {
  background: var(--c-footer); color: var(--c-text-muted);
  text-align: center; padding: 32px 20px; font-size: 13px;
}
.footer a { color: var(--c-text-muted); }
.footer a:hover { color: var(--c-primary-light); }
.footer .footer-main { margin-bottom: 14px; }
.footer .footer-sub { font-size: 12px; }

/* ===== 右上角管理后台入口（主页用） ===== */
.admin-entry {
  position: fixed; top: 20px; right: 20px; z-index: 999;
  display: inline-flex; align-items: center;
  padding: 8px 18px;
  background: rgba(230,162,60,0.92); color: var(--c-white);
  border-radius: var(--radius-full); font-size: 14px; font-weight: 500;
  box-shadow: 0 4px 14px rgba(230,162,60,0.35);
  transition: all .25s;
}
.admin-entry:hover {
  background: var(--c-primary-dark); color: var(--c-white);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(230,162,60,0.45);
}
.admin-entry i { margin-right: 6px; }

/* ===== 滚动入场动画 ===== */
.fade-in-up {
  opacity: 0; transform: translateY(30px);
  transition: opacity .6s ease, transform .6s ease;
}
.fade-in-up.visible { opacity: 1; transform: translateY(0); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .promo-grid { grid-template-columns: repeat(3, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .benefit-list { grid-template-columns: 1fr; }
  .case-stats { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 768px) {
  .section { padding: 60px 18px; }
  .section-title { font-size: 26px; }
  .hero { min-height: auto; padding: 100px 20px 60px; }
  .hero-inner { flex-direction: column; gap: 28px; }
  .hero-img { width: 70vw; max-width: 280px; }
  .hero-content { text-align: center; }
  .hero h1 { font-size: 34px; }
  .hero p.lead { font-size: 15px; }
  .hero-actions { justify-content: center; }
  .btn-outline { display: block; margin: 14px auto 0; max-width: 200px; }
  .promo-grid { grid-template-columns: repeat(2, 1fr); }
  .pain-grid { grid-template-columns: repeat(2, 1fr); }
  .advantage-grid { grid-template-columns: repeat(2, 1fr); }
  .case-stats { grid-template-columns: 1fr; gap: 16px; }
  .cta-grid { grid-template-columns: 1fr; }
  .steps-wrap { flex-direction: column; align-items: center; }
  .step-arrow { transform: rotate(90deg); margin: 6px 0; }
  .flow-wrap { flex-direction: column; align-items: center; }
  .flow-arrow { transform: rotate(90deg); margin: 6px 0; }
  .trust-inner { flex-direction: column; gap: 24px; }
  .navbar-promo .btn-back { display: none; }
}
@media (max-width: 480px) {
  .promo-grid { grid-template-columns: 1fr; }
  .pain-grid { grid-template-columns: 1fr; }
  .advantage-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 28px; }
}
