/* ===== Design Tokens（参考 regio.pages.dev，强调色改为咖啡主题） ===== */
:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #1a120b;          /* 深咖底色，用于 CTA 区 */
  --text: #1d1d1f;
  --text-secondary: #6e6e73;
  --text-muted: #86868b;
  --text-on-dark: #f5f5f7;
  --border: rgba(0, 0, 0, 0.08);
  --card-border: rgba(0, 0, 0, 0.06);
  --accent: #c2410c;           /* 烘焙橙，咖啡主题强调色 */
  --accent-strong: #9a4a1e;
  --accent-soft: rgba(194, 65, 12, 0.08);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.1);
  --max-width: 1100px;
  --transition: 0.2s ease;
}

/* 暗色主题：呼应咖啡夜色 */
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0c0c0e;
    --bg-alt: #161618;
    --bg-dark: #0a0705;
    --text: #f5f5f7;
    --text-secondary: #a1a1a6;
    --text-muted: #6e6e73;
    --border: rgba(255, 255, 255, 0.1);
    --card-border: rgba(255, 255, 255, 0.08);
    --accent: #f97316;
    --accent-strong: #fb923c;
    --accent-soft: rgba(249, 115, 22, 0.12);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.4);
    --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.5);
  }
}

/* ===== Reset & Base ===== */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

/* ===== Navigation ===== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--border);
}
@media (prefers-color-scheme: dark) {
  .nav { background: rgba(12, 12, 14, 0.72); }
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.nav-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 16px; }
.nav-brand img { border-radius: 8px; box-shadow: var(--shadow-sm); }

.nav-links { display: flex; gap: 28px; font-size: 14px; color: var(--text-secondary); }
.nav-links a:hover { color: var(--text); }

.nav-cta {
  background: var(--accent);
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  transition: opacity var(--transition), transform var(--transition);
}
.nav-cta:hover { opacity: 0.9; transform: translateY(-1px); }

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

/* ===== Hero ===== */
.hero { padding: 96px 24px 64px; text-align: center; }
.hero-inner { max-width: 720px; margin: 0 auto; }

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-secondary);
  margin-bottom: 28px;
}

.hero-icon {
  width: 120px;
  height: 120px;
  border-radius: 28px;
  margin: 0 auto 28px;
  box-shadow: var(--shadow-lg);
}

.hero-title {
  font-size: clamp(36px, 6vw, 56px);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 20px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--text-secondary);
  max-width: 560px;
  margin: 0 auto 32px;
}

.hero-actions {
  display: flex;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 20px;
}

.hero-meta {
  font-size: 13px;
  color: var(--text-muted);
  display: flex;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* ===== Buttons ===== */
.btn-primary, .btn-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 24px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  transition: transform var(--transition), opacity var(--transition), box-shadow var(--transition), background var(--transition), border-color var(--transition);
}
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow-md); }
.btn-primary:hover { opacity: 0.92; transform: translateY(-1px); }
.btn-secondary { background: var(--bg-alt); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--accent-soft); border-color: var(--accent); color: var(--accent); }
.btn-large { padding: 16px 32px; font-size: 16px; }

/* ===== Sections ===== */
.section { padding: 80px 24px; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-dark { background: var(--bg-dark); color: var(--text-on-dark); padding: 64px 24px; }
.section-inner { max-width: var(--max-width); margin: 0 auto; }

.section-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; text-align: center; margin: 0 0 12px; }
.section-desc { text-align: center; color: var(--text-secondary); font-size: 17px; max-width: 560px; margin: 0 auto 48px; }
.section-dark .section-desc { color: var(--text-muted); }

/* ===== Feature Grid ===== */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; }
.feature-card {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition: transform var(--transition), border-color var(--transition);
}
.feature-card:hover { transform: translateY(-2px); border-color: var(--accent); }
.feature-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.feature-card p { font-size: 14px; color: var(--text-secondary); margin: 0; line-height: 1.5; }

/* ===== Steps ===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.step { background: var(--bg); border: 1px solid var(--card-border); border-radius: var(--radius-md); padding: 28px; }
.step-number {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
  margin-bottom: 16px;
}
.step h3 { font-size: 17px; font-weight: 600; margin: 0 0 8px; }
.step p { font-size: 14px; color: var(--text-secondary); margin: 0; }
@media (max-width: 768px) { .steps { grid-template-columns: 1fr; } }

/* ===== Grinder Cloud（对应参考站的 Region Cloud） ===== */
.grinder-cloud { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; max-width: 820px; margin: 0 auto; }
.grinder-tag {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg);
  font-size: 13px; font-weight: 500;
  color: var(--text-secondary);
  transition: border-color var(--transition), color var(--transition);
}
.grinder-tag:hover { border-color: var(--accent); color: var(--text); }
.grinder-tag.popular { background: var(--accent-soft); border-color: transparent; color: var(--accent); font-weight: 600; }

/* ===== Product Showcase（产品预览卡片） ===== */
.showcase { padding: 24px 24px 80px; }
.showcase-inner { max-width: 460px; margin: 0 auto; }
.converter-mock {
  background: var(--bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}
.mock-head { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--text-muted); margin-bottom: 18px; }
.mock-card {
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 18px;
  background: var(--bg-alt);
}
.mock-brand { font-size: 12px; color: var(--text-muted); font-weight: 600; letter-spacing: 0.02em; }
.mock-model { font-size: 20px; font-weight: 700; margin: 2px 0 12px; }
.mock-setting { display: flex; align-items: baseline; gap: 8px; }
.mock-value { font-size: 40px; font-weight: 700; letter-spacing: -0.02em; }
.mock-unit { font-size: 14px; color: var(--text-muted); }
.mock-swap { display: flex; justify-content: center; margin: 14px 0; }
.mock-swap span {
  width: 40px; height: 40px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.mock-result .mock-value { color: var(--accent); }
.mock-range { font-size: 13px; color: var(--text-secondary); margin-top: 10px; }
.mock-confidence {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 10px;
  font-size: 12px; font-weight: 600;
  color: #15803d;
  background: rgba(21, 128, 61, 0.1);
  padding: 4px 10px; border-radius: 999px;
}
@media (prefers-color-scheme: dark) { .mock-confidence { color: #4ade80; background: rgba(74, 222, 128, 0.12); } }

/* ===== Pro / Pricing ===== */
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; max-width: 820px; margin: 0 auto 36px; }
.pricing-item { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.pricing-check {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700;
}
.price-row { display: flex; justify-content: center; align-items: baseline; gap: 8px; margin-bottom: 8px; flex-wrap: wrap; }
.price-now { font-size: 44px; font-weight: 700; letter-spacing: -0.02em; }
.price-old { font-size: 18px; color: var(--text-muted); text-decoration: line-through; }
.price-note { font-size: 14px; color: var(--text-muted); }

/* ===== CTA ===== */
.cta-block { text-align: center; }
.cta-block h2 { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.cta-block p { color: var(--text-muted); font-size: 17px; margin: 0 0 20px; }
.cta-note { font-size: 13px; color: var(--text-muted); margin-top: 20px; }

/* ===== Footer ===== */
.footer { border-top: 1px solid var(--border); padding: 32px 24px; background: var(--bg); }
.footer-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 13px; color: var(--text-muted);
}
.footer-brand { display: flex; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.footer-brand img { border-radius: 6px; }
.footer-links { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-links a:hover { color: var(--text); }
@media (max-width: 480px) { .footer-inner { flex-direction: column; text-align: center; } }

/* ===== Privacy Page ===== */
.privacy { padding: 72px 24px 80px; }
.privacy-inner { max-width: 760px; margin: 0 auto; }
.privacy-back {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; color: var(--text-secondary);
  margin-bottom: 24px;
}
.privacy-back:hover { color: var(--accent); }
.privacy-title { font-size: clamp(28px, 4vw, 40px); font-weight: 700; letter-spacing: -0.02em; margin: 0 0 8px; }
.privacy-meta { font-size: 13px; color: var(--text-muted); margin: 0 0 32px; }
.privacy-meta a { color: var(--accent); }
.privacy-section { margin-bottom: 32px; }
.privacy-section h2 { font-size: 19px; font-weight: 600; margin: 0 0 12px; letter-spacing: -0.01em; }
.privacy-section p { font-size: 15px; line-height: 1.7; margin: 0 0 12px; color: var(--text); }
.privacy-section ul { font-size: 15px; line-height: 1.7; margin: 0 0 12px; padding-left: 20px; }
.privacy-section ul li { margin-bottom: 6px; }
.privacy-section a { color: var(--accent); }
.privacy-section a:hover { text-decoration: underline; }
.privacy-section code { font-family: "SF Mono", Menlo, Monaco, monospace; background: var(--bg-alt); padding: 2px 6px; border-radius: 6px; font-size: 13px; }

/* 隐私表格 */
.privacy-table-wrap { width: 100%; overflow-x: auto; margin: 12px 0 16px; }
.privacy-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.privacy-table th { text-align: left; padding: 10px 12px; background: var(--bg-alt); font-weight: 600; font-size: 13px; border-bottom: 1px solid var(--border); white-space: nowrap; }
.privacy-table td { padding: 10px 12px; border-bottom: 1px solid var(--border); line-height: 1.5; vertical-align: top; }

/* 折叠多语言区块 */
.privacy-lang { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 4px 18px; margin-top: 8px; background: var(--bg-alt); }
.privacy-lang summary { cursor: pointer; font-size: 15px; font-weight: 600; padding: 12px 0; color: var(--text); }
.privacy-lang summary:hover { color: var(--accent); }
.privacy-lang[open] summary { border-bottom: 1px solid var(--border); margin-bottom: 12px; }
