/* =============================================================
   外贸线索助手 — Apple.com.cn 风格设计系统
   --------------------------------------------------------------
   设计理念：
   - 极致克制的黑白灰 + 一个蓝色作强调
   - 系统字体（苹果上为真正的 SF Pro）
   - 大量留白、胶囊形按钮、柔和阴影、吸顶毛玻璃
   - 超大 Hero 字号，仿苹果"故事化"分节
   ============================================================= */

:root {
  --ink: #1d1d1f;
  --ink-soft: #424245;
  --muted: #6e6e73;
  --muted-2: #86868b;
  --bg: #ffffff;
  --bg-soft: #fbfbfd;
  --bg-section: #f5f5f7;
  --surface: #ffffff;
  --line: #d2d2d7;
  --line-soft: #e5e5e7;
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: #e8f1fd;
  --green-text: #00854d;
  --green-bg: #e6f4ec;
  --red-text: #d70015;
  --red-bg: #fdebea;
  --grey-text: #6e6e73;
  --grey-bg: #f2f2f4;

  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-pill: 980px;

  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.03);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.05), 0 8px 32px rgba(0, 0, 0, 0.04);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.08);

  --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
    "Segoe UI", Roboto, "Helvetica Neue", "PingFang SC", "Microsoft YaHei",
    sans-serif;

  --nav-h: 48px;
  --container: 980px;
  --container-narrow: 720px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--font);
  background: var(--bg);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.47059;
  letter-spacing: -0.022em;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: inherit; }

/* ===== 通用布局 ===== */
#app { min-height: 100vh; display: flex; flex-direction: column; }
.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}
.container-narrow {
  max-width: var(--container-narrow);
  margin: 0 auto;
  padding: 0 22px;
  width: 100%;
}
.section { padding: 96px 0; }
.section-tight { padding: 64px 0; }
.section--soft { background: var(--bg-section); }
.section--dark { background: #000; color: #f5f5f7; }
.section--dark .eyebrow { color: #2997ff; }
.section--dark p { color: #a1a1a6; }

/* ===== 吸顶毛玻璃导航 ===== */
.masthead {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}
.masthead-inner {
  max-width: var(--container);
  margin: 0 auto;
  height: 100%;
  padding: 0 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 13px;
}
.wordmark {
  font-size: 17px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
  text-decoration: none;
}
.nav-links { display: flex; gap: 28px; align-items: center; }
.nav-links a {
  color: var(--ink);
  opacity: 0.85;
  font-weight: 400;
  font-size: 13px;
}
.nav-links a:hover { opacity: 1; text-decoration: none; }
.user-bar { display: flex; gap: 10px; align-items: center; }

/* ===== Hero ===== */
.hero {
  position: relative;
  padding: 88px 0 56px;
  text-align: center;
  background:
    radial-gradient(ellipse 80% 50% at 50% 0%, rgba(0, 113, 227, 0.07), transparent 70%),
    linear-gradient(180deg, var(--bg-soft) 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero-inner { position: relative; z-index: 1; }
.hero h1 {
  font-size: clamp(40px, 6.4vw, 80px);
  line-height: 1.05;
  letter-spacing: -0.035em;
  font-weight: 600;
  margin: 0 auto 14px;
  max-width: 900px;
}
.hero p.lede {
  font-size: clamp(17px, 1.6vw, 21px);
  line-height: 1.4;
  color: var(--muted);
  max-width: 640px;
  margin: 0 auto 32px;
  letter-spacing: -0.01em;
}
.hero-cta { display: flex; gap: 18px; justify-content: center; align-items: center; flex-wrap: wrap; }

/* ===== Eyebrow / 通用小标签 ===== */
.eyebrow {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 10px;
}

/* ===== 按钮（苹果胶囊形） ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 12px 22px;
  border-radius: var(--radius-pill);
  border: 1px solid transparent;
  font-size: 15px;
  font-weight: 400;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  line-height: 1.2;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-hover); text-decoration: none; }
.btn-secondary {
  background: var(--ink);
  color: #fff;
}
.btn-secondary:hover { background: #000; text-decoration: none; }
.btn-ghost {
  background: transparent;
  color: var(--accent);
  padding-left: 0;
  padding-right: 0;
}
.btn-ghost:hover { text-decoration: underline; }
.btn-outline {
  background: transparent;
  color: var(--ink);
  border-color: var(--ink);
}
.btn-outline:hover { background: var(--ink); color: #fff; text-decoration: none; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn[disabled],
.btn:disabled {
  background: var(--grey-bg);
  color: var(--muted);
  border-color: transparent;
  cursor: not-allowed;
}

/* ===== Feature section（仿苹果产品分节） ===== */
.feature {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.feature-text { padding: 24px 0; }
.feature-text h2 {
  font-size: clamp(32px, 4.4vw, 56px);
  line-height: 1.07;
  letter-spacing: -0.03em;
  font-weight: 600;
  margin: 0 0 14px;
  color: inherit;
}
.feature-text p {
  font-size: 18px;
  line-height: 1.45;
  color: var(--muted);
  max-width: 520px;
  margin: 0 0 22px;
}
.feature-visual {
  background: var(--bg-section);
  border-radius: var(--radius-lg);
  aspect-ratio: 4 / 3;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-md);
}
.section--dark .feature-visual { background: #1d1d1f; }

/* ===== 步骤（How it works）===== */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.step {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  text-align: left;
  box-shadow: var(--shadow-sm);
}
.step .num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-weight: 600;
  font-size: 15px;
  margin-bottom: 16px;
}
.step h3 {
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.01em;
  margin: 0 0 8px;
}
.step p { font-size: 15px; color: var(--muted); margin: 0; line-height: 1.5; }

/* ===== 卡片 ===== */
.card {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: 28px;
  margin-bottom: 20px;
}
.card h2 {
  margin: 0 0 20px;
  font-size: 22px;
  font-weight: 600;
  letter-spacing: -0.015em;
}

/* ===== 表单元素 ===== */
label {
  display: block;
  font-size: 13px;
  color: var(--muted);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
input, textarea, select {
  width: 100%;
  padding: 12px 14px;
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: var(--font);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}
input::placeholder, textarea::placeholder { color: #a1a1a6; }
input:focus, textarea:focus, select:focus {
  outline: none;
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(0, 113, 227, 0.12);
}
textarea { resize: vertical; min-height: 96px; line-height: 1.5; }

/* ===== 城市勾选列表 ===== */
.country-search { margin-bottom: 8px; }
.chk-list {
  margin: 0 0 16px;
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 4px 14px;
  background: var(--bg-soft);
}
.chk-group { padding: 12px 0; border-bottom: 1px solid var(--line-soft); }
.chk-group:last-child { border-bottom: none; }
.chk-group-title {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 12px; font-weight: 600; color: var(--muted);
  margin-bottom: 8px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.group-toggle {
  background: none; border: none; padding: 0;
  color: var(--accent); font-size: 12px; font-weight: 500; cursor: pointer;
}
.group-toggle:hover { text-decoration: underline; }
.chk-group-items { display: flex; flex-wrap: wrap; gap: 8px 18px; }
.chk { font-size: 13px; display: flex; align-items: center; gap: 6px; cursor: pointer; }
.country-search-empty {
  margin: 18px 0; text-align: center; color: var(--muted); font-size: 13px;
}

/* ===== 额度条 ===== */
.quota-strip {
  background: var(--surface);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  padding: 22px 28px;
  margin-bottom: 20px;
  box-shadow: var(--shadow-sm);
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 20px;
  align-items: center;
}
.quota-top { display: flex; flex-direction: column; gap: 4px; }
.quota-email { font-size: 13px; color: var(--muted); letter-spacing: 0.01em; }
.quota-figures { font-size: 28px; font-weight: 600; letter-spacing: -0.02em; }
.quota-figures .used { color: var(--ink); }
.quota-figures .of { color: var(--muted); font-size: 17px; font-weight: 400; margin-left: 6px; }
.quota-remaining { font-size: 13px; color: var(--muted); }
.quota-bar { height: 6px; background: var(--grey-bg); border-radius: 999px; overflow: hidden; }
.quota-bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), #2997ff); border-radius: inherit; transition: width 0.6s cubic-bezier(0.22, 1, 0.36, 1); }
.quota-side { text-align: right; }
.plan-pill {
  display: inline-block; padding: 4px 10px; border-radius: 999px;
  background: var(--accent-soft); color: var(--accent);
  font-size: 12px; font-weight: 600; letter-spacing: 0.02em;
}

/* ===== 任务表 ===== */
.row-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.row-header h2 { margin: 0; }
.refresh-group { display: flex; align-items: center; gap: 12px; }
.hint { font-size: 12px; color: var(--muted); }
.table-wrap { overflow-x: auto; }
table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
th, td {
  text-align: left;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line-soft);
}
th {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--bg-soft);
}
tbody tr:hover { background: var(--bg-soft); }
tbody tr:last-child td { border-bottom: none; }
.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500;
  background: var(--grey-bg); color: var(--grey-text);
}
.badge-running { background: rgba(0, 113, 227, 0.1); color: var(--accent); }
.badge-completed { background: var(--green-bg); color: var(--green-text); }
.badge-pending { background: var(--grey-bg); color: var(--grey-text); }
.badge-stopped { background: var(--grey-bg); color: var(--muted); }
.badge-error { background: var(--red-bg); color: var(--red-text); }
.dot { width: 6px; height: 6px; border-radius: 50%; display: inline-block; }
.dot-running { background: var(--accent); box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.4); animation: pulse 1.6s infinite; }
.dot-completed { background: var(--green-text); }
.dot-grey { background: var(--muted-2); }
.dot-error { background: var(--red-text); }
@keyframes pulse {
  0%   { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0.45); }
  70%  { box-shadow: 0 0 0 6px rgba(0, 113, 227, 0); }
  100% { box-shadow: 0 0 0 0 rgba(0, 113, 227, 0); }
}

/* ===== 通知条 ===== */
.notice {
  display: flex; align-items: center; gap: 10px;
  background: var(--grey-bg);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 20px;
  font-size: 14px;
}
.notice p { margin: 0; color: var(--ink); }
.notice-warn { background: #fff5e6; color: #8a5500; }
.notice-info { background: var(--accent-soft); color: var(--accent); }

/* ===== 消息提示 ===== */
.msg { font-size: 13px; color: var(--red-text); margin-top: 10px; min-height: 18px; }
.msg-ok { color: var(--green-text); }

/* ===== 登录/注册视图 ===== */
.auth-wrap {
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  padding: 80px 0 40px;
}
.auth-wrap h1 {
  font-size: clamp(34px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
  line-height: 1.1;
}
.auth-wrap .lede {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}
.auth-card { text-align: left; }
.switch { font-size: 14px; color: var(--muted); margin: 18px 0 0; text-align: center; }
.switch a { color: var(--accent); cursor: pointer; }

/* ===== CTA section ===== */
.cta-section {
  text-align: center;
  background: linear-gradient(180deg, var(--bg) 0%, var(--bg-section) 100%);
  padding: 120px 0;
}
.cta-section h2 {
  font-size: clamp(36px, 5vw, 64px);
  font-weight: 600;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 12px;
}
.cta-section p { font-size: 19px; color: var(--muted); margin: 0 0 28px; }

/* ===== 多栏页脚 ===== */
.site-footer {
  background: var(--bg-section);
  color: var(--muted);
  padding: 56px 0 28px;
  font-size: 12px;
  border-top: 1px solid var(--line-soft);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line-soft);
}
.footer-col h4 {
  color: var(--ink);
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 12px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 8px; }
.footer-col a { color: var(--muted); }
.footer-col a:hover { color: var(--ink); text-decoration: none; }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 18px;
  font-size: 12px;
  color: var(--muted-2);
}

/* ===== Dashboard 工作区 ===== */
.dashboard-section { padding: 56px 0 80px; }
.dashboard-section h1.section-title {
  font-size: clamp(32px, 4.4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.025em;
  margin: 0 0 6px;
  line-height: 1.1;
}
.dashboard-section p.section-sub {
  color: var(--muted);
  font-size: 17px;
  margin: 0 0 32px;
  letter-spacing: -0.01em;
}

/* ===== 滚动渐显 ===== */
.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.9s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.9s cubic-bezier(0.22, 1, 0.36, 1);
  transition-delay: var(--reveal-delay, 0ms);
}
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ===== 星空画布（很淡，几乎透明） ===== */
.starfield {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  pointer-events: none;
  z-index: 0;
  opacity: 0.55;
}

/* ===== 响应式 ===== */
@media (max-width: 880px) {
  .feature { grid-template-columns: 1fr; gap: 32px; }
  .feature-visual { aspect-ratio: 16 / 10; }
  .footer-cols { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps { grid-template-columns: 1fr; }
  .quota-strip { grid-template-columns: 1fr; }
  .quota-side { text-align: left; }
  .nav-links { display: none; }
  .section { padding: 64px 0; }
  .hero { padding: 56px 0 40px; }
  .cta-section { padding: 72px 0; }
  th, td { padding: 10px 12px; }
  .hide-mobile { display: none; }
  .price-preview-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .footer-cols { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; align-items: flex-start; }
  .dashboard-section { padding: 36px 0 56px; }
  .table-wrap table { font-size: 13px; }
  th, td { padding: 8px 10px; }
}

/* ===== 减少动效偏好 ===== */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .dot-running { animation: none; }
}

/* ===== 首页价格预览 ===== */
.price-preview-section {
  padding: 96px 0;
  background: linear-gradient(180deg, var(--bg) 0%, var(--panel-2) 100%);
  text-align: center;
}
.price-preview-section .eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  font-weight: 600;
  color: var(--muted);
  margin: 0 0 14px;
}
.price-preview-section h2 {
  font-size: clamp(28px, 4vw, 42px);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.price-preview-section > div > p {
  font-size: 17px;
  color: var(--muted);
  margin: 0 auto 40px;
  max-width: 600px;
}
.price-preview-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin: 0 auto;
  max-width: 980px;
}
.pp-card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 28px 18px;
  position: relative;
  text-align: left;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.pp-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 36px rgba(10, 132, 255, 0.12);
}
.pp-popular {
  background: linear-gradient(180deg, #0a84ff 0%, #0066cc 100%);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 14px 36px rgba(10, 132, 255, 0.3);
}
.pp-popular:hover {
  box-shadow: 0 20px 44px rgba(10, 132, 255, 0.4);
}
.pp-badge {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(120deg, #ffd60a, #ff9f0a);
  color: #1c1c1e;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: 999px;
  white-space: nowrap;
}
.pp-tier {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 12px;
  opacity: 0.85;
}
.pp-price {
  display: flex;
  align-items: baseline;
  gap: 3px;
  margin-bottom: 10px;
}
.pp-currency { font-size: 16px; opacity: 0.7; }
.pp-amount { font-size: 38px; font-weight: 700; letter-spacing: -0.02em; line-height: 1; }
.pp-cycle { font-size: 13px; opacity: 0.65; margin-left: 4px; }
.pp-meta {
  font-size: 13px;
  opacity: 0.75;
  border-top: 1px solid rgba(127,127,127,0.2);
  padding-top: 10px;
}
@media (max-width: 560px) {
  .price-preview-section { padding: 64px 0; }
  .price-preview-grid { grid-template-columns: 1fr; }
}
