/* AI 生图工作台 · 营销落地页样式
   暖石色调：#f0ebe3 底 / #1c1917 文字 / #ea580c 强调橙
   自包含，无外部字体、无框架依赖 */

:root {
  --bg: #f0ebe3;
  --bg-alt: #e9e2d7;
  --surface: #fbf9f5;
  --text: #1c1917;
  --muted: #6f655b;
  --accent: #ea580c;
  --accent-dark: #c2410c;
  --accent-soft: #fde8d8;
  --border: #ded4c6;
  --radius: 14px;
  --radius-lg: 20px;
  --shadow: 0 1px 2px rgba(28, 25, 23, 0.05), 0 4px 16px rgba(28, 25, 23, 0.06);
  --shadow-lg: 0 2px 6px rgba(28, 25, 23, 0.06), 0 12px 32px rgba(28, 25, 23, 0.1);
  --font: -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-dark); }

.container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}
.container-narrow { max-width: 800px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 20px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-dark); color: #fff; }
.btn-ghost { color: var(--text); background: transparent; }
.btn-ghost:hover { background: rgba(28, 25, 23, 0.06); color: var(--text); }
.btn-outline { border-color: var(--border); color: var(--text); background: var(--surface); }
.btn-outline:hover { border-color: var(--accent); color: var(--accent); }
.btn-light { background: #fff; color: var(--accent-dark); }
.btn-light:hover { background: #f5efe6; color: var(--accent-dark); }
.btn-lg { padding: 13px 28px; font-size: 17px; border-radius: 12px; }
.btn-block { width: 100%; }

/* ---------- 登录态「进入工作台」放大强化 ---------- */
.btn-gowork { font-weight: 700; letter-spacing: 0.5px; }
.nav-actions .btn-gowork {
  padding: 11px 28px;
  font-size: 16px;
  border-radius: 12px;
  box-shadow: 0 4px 16px rgba(234, 88, 12, 0.35);
}
.hero-actions .btn-gowork {
  padding: 20px 56px;
  font-size: 22px;
  border-radius: 16px;
  box-shadow: 0 12px 34px rgba(234, 88, 12, 0.4);
  animation: gowork-pulse 2.4s ease-in-out infinite;
}
@keyframes gowork-pulse {
  0%, 100% { box-shadow: 0 12px 34px rgba(234, 88, 12, 0.4); }
  50% { box-shadow: 0 14px 48px rgba(234, 88, 12, 0.65); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-actions .btn-gowork { animation: none; }
}

/* ---------- 已登录提示条 ---------- */
.auth-banner {
  background: var(--text);
  color: #f5efe6;
  font-size: 14px;
}
.auth-banner-inner {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 9px 24px;
  flex-wrap: wrap;
}
.auth-banner-link { color: #fdba74; font-weight: 600; }
.auth-banner-link:hover { color: #fff; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(240, 235, 227, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 24px;
  height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  flex-shrink: 0;
}
.brand:hover { color: var(--text); }
.brand-logo { border-radius: 8px; }
.nav-links {
  display: flex;
  gap: 4px;
  margin-right: auto;
}
.nav-links a {
  color: var(--muted);
  font-size: 15px;
  padding: 6px 12px;
  border-radius: 8px;
}
.nav-links a:hover { color: var(--text); background: rgba(28, 25, 23, 0.05); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text);
  cursor: pointer;
  padding: 6px;
}

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; overflow: hidden; }
.hero-inner {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 48px;
  align-items: center;
}
.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--accent-dark);
  background: var(--accent-soft);
  border: 1px solid #f5cfa8;
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 20px;
}
.hero h1 {
  font-size: 44px;
  line-height: 1.2;
  letter-spacing: -0.01em;
  margin-bottom: 18px;
  font-weight: 800;
}
.lead {
  font-size: 18px;
  color: var(--muted);
  margin-bottom: 30px;
  max-width: 520px;
}
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hero-note { font-size: 14px; color: var(--muted); }
.hero-visual img {
  width: 100%;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--border);
}
/* 主视觉缺失时：Hero 转为单列居中，不留空洞 */
.hero-inner.no-visual { grid-template-columns: minmax(0, 680px); justify-content: center; text-align: center; }
.hero-inner.no-visual .lead { margin-left: auto; margin-right: auto; }
.hero-inner.no-visual .hero-actions { justify-content: center; }

/* ---------- 数据条 ---------- */
.stats {
  background: var(--text);
  color: #f5efe6;
  padding: 36px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  text-align: center;
}
.stat-value { font-size: 28px; font-weight: 800; letter-spacing: -0.01em; }
.stat-unit { font-size: 15px; font-weight: 600; color: #d6cbbd; margin-left: 2px; }
.stat-label { font-size: 13px; color: #c9beb0; margin-top: 4px; }

/* ---------- 通用 Section ---------- */
.section { padding: 84px 0; }
.section-alt { background: var(--bg-alt); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 48px; }
.section-head h2 {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.01em;
  margin-bottom: 12px;
}
.section-sub { color: var(--muted); font-size: 16px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

/* ---------- 功能矩阵 ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.feature-card { padding: 28px 26px; }
.feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}
.feature-icon svg { width: 22px; height: 22px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; }
.feature-card p { font-size: 14.5px; color: var(--muted); }

/* ---------- 示例图墙 ---------- */
.showcase-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.shot {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  background: var(--surface);
}
.shot img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.shot:hover img { transform: scale(1.03); }
.showcase-empty { text-align: center; color: var(--muted); padding: 24px 0; }

/* ---------- 价格 ---------- */
.trial-banner {
  max-width: 720px;
  margin: 0 auto 32px;
  background: var(--accent-soft);
  border: 1px solid #f5cfa8;
  border-radius: var(--radius);
  padding: 18px 24px;
  display: flex;
  align-items: center;
  gap: 16px;
}
.trial-badge {
  flex-shrink: 0;
  background: var(--accent);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
}
.trial-banner p { font-size: 15px; }
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 380px));
  justify-content: center;
  gap: 24px;
  margin-bottom: 40px;
}
.price-card { padding: 32px 28px; position: relative; }
.price-card-featured {
  border-color: var(--accent);
  box-shadow: var(--shadow-lg);
}
.price-flag {
  position: absolute;
  top: -13px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--accent);
  color: #fff;
  font-size: 12.5px;
  font-weight: 700;
  padding: 3px 14px;
  border-radius: 999px;
  white-space: nowrap;
}
.price-card h3 { font-size: 20px; font-weight: 700; }
.price-model { color: var(--muted); font-size: 14px; margin: 2px 0 16px; }
.price-value { font-size: 40px; font-weight: 800; letter-spacing: -0.02em; }
.price-unit { font-size: 15px; font-weight: 600; color: var(--muted); margin-left: 4px; }
.price-list {
  list-style: none;
  margin: 20px 0 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.price-list li {
  font-size: 14.5px;
  color: var(--text);
  padding-left: 26px;
  position: relative;
}
.price-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23c2410c' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6L9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
.recharge { text-align: center; }
.recharge-title { font-size: 17px; font-weight: 700; margin-bottom: 14px; }
.recharge-tiers {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 10px;
}
.tier {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 8px 22px;
  font-weight: 700;
  font-size: 16px;
  box-shadow: var(--shadow);
}
.recharge-note { color: var(--muted); font-size: 14px; }

/* ---------- FAQ ---------- */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 2px solid var(--muted);
  border-bottom: 2px solid var(--muted);
  transform: rotate(45deg);
  flex-shrink: 0;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after { transform: rotate(-135deg); }
.faq-body { padding: 0 22px 18px; color: var(--muted); font-size: 15px; }

/* ---------- 底部 CTA ---------- */
.final-cta {
  background: var(--text);
  color: #f5efe6;
  padding: 72px 0;
  text-align: center;
}
.final-cta h2 { font-size: 30px; font-weight: 800; margin-bottom: 10px; letter-spacing: -0.01em; }
.final-cta p { color: #c9beb0; margin-bottom: 28px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: #171412;
  color: #b3a89c;
  padding: 56px 0 0;
  font-size: 14.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 32px;
  padding-bottom: 40px;
}
.footer-brand .brand { color: #f5efe6; margin-bottom: 14px; }
.footer-desc { line-height: 1.8; }
.footer-col { display: flex; flex-direction: column; gap: 10px; }
.footer-col h4 { color: #f5efe6; font-size: 15px; margin-bottom: 4px; }
.footer-col a { color: #b3a89c; }
.footer-col a:hover { color: #fdba74; }
.footer-contact { line-height: 1.7; }
.friend-link { color: #b3a89c; }
.friend-link:hover { color: #fdba74; }
.footer-bottom {
  border-top: 1px solid #2a2521;
  padding-top: 20px;
  padding-bottom: 20px;
  text-align: center;
  font-size: 13px;
  color: #8a7f73;
}

/* ---------- 浮动按钮 ---------- */
.float-cta {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 60;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  padding: 13px 22px;
  border-radius: 999px;
  box-shadow: 0 4px 20px rgba(234, 88, 12, 0.4);
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
  transition: opacity 0.25s ease, transform 0.25s ease, background 0.15s ease;
}
.float-cta.visible { opacity: 1; transform: translateY(0); pointer-events: auto; }
.float-cta:hover { background: var(--accent-dark); color: #fff; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .hero { padding: 56px 0 44px; }
  .hero-inner { grid-template-columns: 1fr; gap: 36px; }
  .hero h1 { font-size: 36px; }
  .hero-visual { max-width: 640px; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .showcase-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .container { padding: 0 16px; }
  .nav-inner { gap: 10px; }
  .brand-name { font-size: 16px; }
  .brand-logo { width: 26px; height: 26px; }
  .nav-links {
    display: none;
    position: absolute;
    top: 64px;
    left: 0;
    right: 0;
    background: var(--surface);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    padding: 8px 16px 16px;
    gap: 2px;
    box-shadow: var(--shadow-lg);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px; font-size: 16px; }
  .nav-toggle { display: block; }
  .nav-actions { margin-left: auto; }
  .nav-actions .btn { padding: 7px 14px; font-size: 14px; }
  .nav-actions .btn-gowork { padding: 9px 20px; font-size: 15px; }
  .hero-actions .btn-gowork { padding: 16px 36px; font-size: 19px; }
  .nav-actions .btn-ghost { display: none; } /* 小屏隐藏「登录」，页脚仍保留登录入口 */

  .section { padding: 56px 0; }
  .section-head { margin-bottom: 36px; }
  .section-head h2 { font-size: 26px; }
  .hero h1 { font-size: 30px; }
  .lead { font-size: 16px; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; }
  .stat-value { font-size: 22px; }
  .feature-grid { grid-template-columns: 1fr; }
  .showcase-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .pricing-grid { grid-template-columns: minmax(0, 420px); }
  .trial-banner { flex-direction: column; align-items: flex-start; gap: 8px; }
  .final-cta h2 { font-size: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .float-cta { right: 16px; bottom: 16px; padding: 12px 18px; }
}

@media (max-width: 400px) {
  .hero-actions .btn { width: 100%; }
  .showcase-grid { grid-template-columns: 1fr 1fr; }
}
