/* ============================================================
   润致GEO · 全局设计变量 (Design Tokens) v2.2
   所有原型页面必须引用此文件
   最后更新：2026-06-28
   套餐价格常量（运营平台端标准价格，可覆盖）：
     月度套餐       ¥2,980 / 30天
     季度套餐       ¥4,800 / 90天
     年度套餐(基础) ¥9,800 / 365天
     年度套餐(完整) ¥15,800 / 365天  [推荐]
   ============================================================ */

:root {
  /* ── 品牌色 ── */
  --color-primary: #1565C0;
  --color-primary-light: #1E88E5;
  --color-primary-dark: #0D47A1;
  --color-primary-bg: #E3F2FD;
  --color-primary-gradient-end: #42A5F5;
  --color-accent: #FF6F00;
  --color-accent-light: #FF8F00;
  --color-accent-bg: #FFF3E0;
  --color-accent-gradient-end: #FF8F00;

  /* ── 功能色 ── */
  --color-success: #2E7D32;
  --color-success-bg: #E8F5E9;
  --color-danger: #E53935;
  --color-danger-bg: #FFEBEE;
  --color-warning: #F57C00;
  --color-warning-bg: #FFF3E0;
  --color-info: #0288D1;
  --color-info-bg: #E1F5FE;

  /* ── 标签扩展色 ── */
  --color-purple: #7B1FA2;
  --color-purple-bg: #F3E5F5;

  /* ── 背景 ── */
  --bg-page: #F5F6FA;
  --bg-card: #FFFFFF;
  --bg-input: #FAFBFC;
  --bg-border: #E8ECF1;
  --bg-body: #E8ECF1;

  /* ── 文字 ── */
  --text-primary: #1F1F1F;
  --text-secondary: #777777;
  --text-placeholder: #999999;

  /* ── 状态标签 ── */
  --badge-green-bg: #E8F5E9;
  --badge-green-text: #2E7D32;
  --badge-orange-bg: #FFF3E0;
  --badge-orange-text: #FF6F00;
  --badge-blue-bg: #E3F2FD;
  --badge-blue-text: #1565C0;
  --badge-gray-bg: #F5F5F5;
  --badge-gray-text: #999999;
  --badge-red-bg: #FFEBEE;
  --badge-red-text: #E53935;
  --badge-purple-bg: #F3E5F5;
  --badge-purple-text: #7B1FA2;

  /* ── 间距 ── */
  --space-page: 16px;
  --space-card: 16px;
  --space-item: 12px;
  --space-sm: 8px;
  --space-xs: 4px;

  /* ── 圆角 ── */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-card: 16px;
  --radius-btn: 12px;
  --radius-pill: 24px;
  --radius-tag: 10px;
  --radius-input: 10px;
  --radius-list: 12px;
  --phone-radius: 24px;

  /* ── 阴影 ── */
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.06);
  --shadow-md: 0 2px 8px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 24px rgba(0,0,0,0.12);
  --shadow-phone: 0 20px 60px rgba(0,0,0,0.3);

  /* ── 字体 ── */
  --font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-mono: "SF Mono", "Cascadia Code", "Consolas", monospace;
  --fs-title: 20px;
  --fs-section: 16px;
  --fs-body: 14px;
  --fs-caption: 12px;
  --fs-small: 11px;
  --fs-price: 20px;
  --fs-nav-title: 17px;
  --fw-bold: 700;
  --fw-semibold: 600;
  --fw-medium: 500;
  --fw-normal: 400;

  /* ── 动效时长 ── */
  --transition-fast: 0.15s;
  --transition-normal: 0.25s;

  /* ── 布局（小程序端） ── */
  --phone-width: 375px;
  --phone-height: 812px;
  --nav-height: 44px;
  --tabbar-height: 50px;
}

/* ==================== 全局重置 ==================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: var(--font-family);
  background: var(--bg-body);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 20px;
  -webkit-font-smoothing: antialiased;
}

/* ==================== 手机框 ==================== */
.phone-frame, .phone {
  width: var(--phone-width);
  height: var(--phone-height);
  background: var(--bg-page);
  border-radius: var(--phone-radius);
  box-shadow: var(--shadow-phone);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  position: relative;
}

.status-bar {
  height: 44px;
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  font-size: var(--fs-caption);
  flex-shrink: 0;
}

.nav-bar {
  height: var(--nav-height);
  background: var(--color-primary);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  flex-shrink: 0;
}
.nav-title {
  font-size: var(--fs-nav-title);
  font-weight: var(--fw-semibold);
  color: #fff;
}
.nav-back {
  position: absolute;
  left: 12px;
  font-size: 18px;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
}

.page-content {
  flex: 1;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}
.page-content::-webkit-scrollbar { display: none; }

.tab-bar {
  height: var(--tabbar-height);
  background: var(--bg-card);
  border-top: 1px solid var(--bg-border);
  display: flex;
  align-items: center;
  flex-shrink: 0;
}
.tab-item {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 2px;
  font-size: 10px;
  color: var(--text-placeholder);
  cursor: pointer;
  padding: 4px 0;
}
.tab-item.active { color: var(--color-primary); }
.tab-item .tab-icon { font-size: 20px; }

/* ==================== 按钮 ==================== */
.btn-primary, .btn-accent, .btn-outline, .btn-float, .btn-weaken, .btn-full, .btn-block {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  cursor: pointer;
  font-family: var(--font-family);
  transition: opacity var(--transition-fast);
}
.btn-primary:active, .btn-accent:active, .btn-float:active { opacity: 0.8; }

.btn-primary {
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}
.btn-accent {
  background: var(--color-accent);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}
.btn-outline {
  background: var(--bg-card);
  color: var(--color-primary);
  border: 1.5px dashed var(--color-primary);
  border-radius: var(--radius-btn);
  padding: 12px 24px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}
.btn-float {
  background: linear-gradient(135deg, var(--color-accent), var(--color-accent-gradient-end));
  color: #fff;
  border-radius: var(--radius-pill);
  padding: 12px 32px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  box-shadow: 0 4px 12px rgba(255,111,0,0.3);
}
.btn-weaken {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.6);
  border-radius: 18px;
  padding: 8px 20px;
  font-size: 13px;
}
.btn-full, .btn-block {
  width: 100%;
  background: var(--color-primary);
  color: #fff;
  border-radius: var(--radius-btn);
  padding: 14px;
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
}
.btn-full.accent, .btn-block.accent { background: var(--color-accent); }
.btn-full:disabled, .btn-block:disabled {
  background: #CCC;
  cursor: not-allowed;
  opacity: 0.6;
}

/* ==================== 标签/徽章 ==================== */
.badge-green, .badge-orange, .badge-blue, .badge-gray, .badge-red, .badge-purple {
  display: inline-block;
  padding: 2px 8px;
  border-radius: var(--radius-tag);
  font-size: var(--fs-small);
  font-weight: var(--fw-medium);
}
.badge-green { background: var(--badge-green-bg); color: var(--badge-green-text); }
.badge-orange { background: var(--badge-orange-bg); color: var(--badge-orange-text); }
.badge-blue { background: var(--badge-blue-bg); color: var(--badge-blue-text); }
.badge-gray { background: var(--badge-gray-bg); color: var(--badge-gray-text); }
.badge-red { background: var(--badge-red-bg); color: var(--badge-red-text); }
.badge-purple { background: var(--badge-purple-bg); color: var(--badge-purple-text); }

/* ==================== 标签页 ==================== */
.tab-switch, .tabs {
  display: flex;
  background: var(--bg-card);
  border-bottom: 1px solid var(--bg-border);
}
.tab-option, .tab {
  flex: 1;
  text-align: center;
  padding: 12px 0;
  font-size: var(--fs-body);
  color: var(--text-secondary);
  cursor: pointer;
  border-bottom: 2px solid transparent;
  transition: all var(--transition-fast);
}
.tab-option.active, .tab.active {
  color: var(--color-primary);
  font-weight: var(--fw-semibold);
  border-bottom-color: var(--color-primary);
}

/* ==================== 卡片 ==================== */
.card {
  background: var(--bg-card);
  border-radius: var(--radius-card);
  padding: var(--space-card);
  box-shadow: var(--shadow-sm);
}
.card-title {
  font-size: var(--fs-body);
  font-weight: var(--fw-semibold);
  color: var(--text-primary);
  margin-bottom: 8px;
}
.card-desc {
  font-size: var(--fs-caption);
  color: var(--text-placeholder);
}
.list-card {
  background: var(--bg-card);
  border-radius: var(--radius-list);
  padding: 14px 16px;
  box-shadow: var(--shadow-sm);
}

/* ==================== 输入框 ==================== */
.input-field, .input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  font-size: var(--fs-body);
  font-family: var(--font-family);
  color: var(--text-primary);
  background: var(--bg-input);
  border: 1px solid var(--bg-border);
  border-radius: var(--radius-input);
  outline: none;
  transition: border-color var(--transition-fast);
}
.input-field:focus, .input:focus {
  border-color: var(--color-primary);
  background: var(--bg-card);
}
.input-field::placeholder, .input::placeholder { color: var(--text-placeholder); }

/* ==================== 模态框/弹窗 ==================== */
.modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.5);
  z-index: 1000;
  align-items: flex-end;
  justify-content: center;
}
.modal-overlay.show { display: flex; }
.modal-content {
  background: var(--bg-card);
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  width: 100%;
  max-width: var(--phone-width);
  padding: 20px 16px;
  animation: slideUp var(--transition-normal) ease;
}
@keyframes slideUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}

/* ==================== 搜索栏 ==================== */
.search-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--bg-card);
}
.search-bar input {
  flex: 1;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--bg-border);
  border-radius: 18px;
  font-size: var(--fs-body);
  background: var(--bg-input);
  outline: none;
}

/* ==================== 空状态 ==================== */
.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-placeholder);
  font-size: var(--fs-body);
}

/* ==================== 加载指示器 ==================== */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.loading-spinner {
  width: 20px; height: 20px;
  border: 2px solid var(--bg-border);
  border-top-color: var(--color-primary);
  border-radius: 50%;
  animation: spin 0.6s linear infinite;
  display: inline-block;
}

/* ==================== Iconify 图标 ==================== */
iconify-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  vertical-align: middle;
}

/* ==================== 底部安全区 ==================== */
.safe-bottom { height: 34px; flex-shrink: 0; }


/* ==================== PRD 面板 ==================== */
.prd-panel { flex:1; max-width:700px; min-height:812px; background:var(--bg-card); border-radius:var(--radius-card); box-shadow:var(--shadow-md); display:flex; flex-direction:column; overflow:hidden; }
.prd-panel-header { padding:16px 20px; border-bottom:1px solid var(--bg-border); display:flex; align-items:center; gap:8px; flex-shrink:0; }
.prd-panel-header .dot { width:8px; height:8px; border-radius:50%; background:var(--color-accent); }
.prd-panel-header .name { font-size:15px; font-weight:600; color:var(--text-primary); }
.prd-panel-body { flex:1; overflow-y:auto; padding:20px; }
.prd-panel-body::-webkit-scrollbar { width:4px; }
.prd-panel-body::-webkit-scrollbar-thumb { background:#D0D5DD; border-radius:2px; }
.prd-sec { margin-bottom:18px; }
.prd-sec:last-child { margin-bottom:0; }
.prd-sec-title { font-size:14px; font-weight:700; color:var(--color-primary); margin-bottom:8px; padding-left:10px; border-left:3px solid var(--color-primary); }
.prd-sec-body { font-size:13px; color:var(--text-secondary); line-height:1.8; padding-left:13px; }
.prd-sec-body ul { padding-left:16px; }
.prd-sec-body li { margin-bottom:4px; }
.prd-sec-body strong { color:var(--text-primary); }
.prd-sec-body .hi { background:#FFF8E1; padding:1px 5px; border-radius:3px; color:#E65100; font-weight:600; }
.prd-sec-body table { width:100%; border-collapse:collapse; margin:6px 0; font-size:12px; }
.prd-sec-body table th { background:var(--bg-page); padding:6px 8px; text-align:left; font-weight:600; border-bottom:2px solid var(--bg-border); }
.prd-sec-body table td { padding:6px 8px; border-bottom:1px solid var(--bg-border); }


/* ==================== 从 style.css 迁移的组件 ==================== */
/* === Phone Frame === */
.phone-frame {
  width: 375px;
  height: 812px;
  background: #F5F6FA;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 10px 40px rgba(0,0,0,0.15);
  display: flex;
  flex-direction: column;
  position: relative;
}

/* === Buttons === */
.btn {
  display: block;
  width: 100%;
  padding: 14px;
  border: none;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  text-decoration: none;
  transition: opacity 0.2s;
}
.btn:active { opacity: 0.8; }
.btn-primary { background: #1565C0; color: #fff; }
.btn-accent { background: #FF6F00; color: #fff; }
.btn-outline {
  background: #fff;
  color: #1565C0;
  border: 1.5px dashed #1565C0;
}
.btn-sm {
  padding: 8px 16px;
  font-size: 13px;
  border-radius: 8px;
  width: auto;
  display: inline-block;
}

/* === Form Elements === */
.form-group {
  margin-bottom: 16px;
}
.form-label {
  font-size: 14px;
  color: #333;
  margin-bottom: 8px;
  display: block;
  font-weight: 500;
}
.form-input {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #E0E0E0;
  border-radius: 10px;
  font-size: 15px;
  background: #F5F6FA;
  color: #333;
  outline: none;
  transition: border-color 0.2s;
}
.form-input:focus { border-color: #1565C0; }
.form-input:disabled { background: #EEE; color: #999; }

.form-row {
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-row .form-input { flex: 1; }

/* === Hero Section === */
/* === Status Toggle === */
.status-toggle {
  display: flex;
  background: #E8E8E8;
  border-radius: 8px;
  margin: 12px 16px;
  overflow: hidden;
}
.status-toggle button {
  flex: 1;
  padding: 10px;
  border: none;
  background: transparent;
  font-size: 13px;
  font-weight: 500;
  color: #666;
  cursor: pointer;
  transition: all 0.2s;
}
.status-toggle button.active {
  background: #1565C0;
  color: #fff;
}

/* === Stats Row === */
.stats-row {
  display: flex;
  justify-content: space-around;
  padding: 16px 0;
}
.stat-item {
  text-align: center;
}
.stat-num {
  font-size: 28px;
  font-weight: 700;
  color: #1565C0;
}
.stat-label {
  font-size: 12px;
  color: #999;
  margin-top: 4px;
}

/* === Progress Bar === */
.progress-bar {
  width: 100%;
  height: 8px;
  background: #E0E0E0;
  border-radius: 4px;
  overflow: hidden;
  margin-top: 8px;
}
.progress-fill {
  height: 100%;
  background: #1565C0;
  border-radius: 4px;
  transition: width 0.3s;
}

/* === Step Indicator === */
.step-indicator {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 16px;
  gap: 0;
}
.step-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #999;
}
.step-circle {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #E0E0E0;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  flex-shrink: 0;
}
.step-item.active .step-circle { background: #1565C0; }
.step-item.done .step-circle { background: #4CAF50; }
.step-item.active { color: #1565C0; font-weight: 600; }
.step-item.done { color: #4CAF50; }
.step-line {
  width: 40px;
  height: 1px;
  background: #E0E0E0;
  margin: 0 4px;
}
.step-line.done { background: #4CAF50; }

/* === Upload Area === */
.upload-area {
  border: 1.5px dashed #B0BEC5;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: #FAFAFA;
  transition: border-color 0.2s;
  overflow: hidden;
  position: relative;
}
.upload-area:active { border-color: #1565C0; }
.upload-area .upload-icon { font-size: 32px; margin-bottom: 6px; }
.upload-area .upload-text { font-size: 13px; color: #999; }
.upload-area .upload-preview {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  top: 0;
  left: 0;
}
.upload-area .reupload {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  font-size: 11px;
  padding: 4px 10px;
  border-radius: 10px;
  cursor: pointer;
}

/* === OCR Loading === */
.ocr-loading {
  text-align: center;
  padding: 12px;
  color: #1565C0;
  font-size: 14px;
}

/* === Alert/Info Bar === */
.info-bar {
  background: #E3F2FD;
  padding: 12px 16px;
  font-size: 13px;
  color: #1565C0;
  margin: 0 16px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.success-bar {
  background: #E8F5E9;
  color: #2E7D32;
}

/* === Badge === */
.badge {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 500;
}
.badge-green { background: #E8F5E9; color: #2E7D32; }
.badge-yellow { background: #FFF3E0; color: #E65100; }
.badge-orange { background: #FFF3E0; color: #FF6F00; }

/* === Company List Item === */
.company-item {
  padding: 16px;
  border: 1.5px solid #E0E0E0;
  border-radius: 12px;
  margin-bottom: 10px;
  cursor: pointer;
  transition: border-color 0.2s;
  position: relative;
}
.company-item.selected {
  border-color: #1565C0;
  background: #F5F8FF;
}
.company-item .company-name {
  font-size: 15px;
  font-weight: 600;
  color: #333;
  margin-bottom: 4px;
}
.company-item .company-code {
  font-size: 12px;
  color: #999;
  margin-bottom: 6px;
}
.company-item .check-icon {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #1565C0;
  font-size: 20px;
  display: none;
}
.company-item.selected .check-icon { display: block; }

/* === Fixed Bottom === */
.fixed-bottom {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 12px 16px;
  background: #fff;
  border-top: 1px solid #E0E0E0;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.section-desc {
  font-size: 13px;
  color: #999;
  margin-bottom: 12px;
}

.text-link {
  color: #1565C0;
  text-decoration: none;
}

.text-small { font-size: 12px; }

.text-gray { color: #999; }

.text-white-50 { color: rgba(255,255,255,0.5); }

.text-center { text-align: center; }

.mt-8 { margin-top: 8px; }

.mt-12 { margin-top: 12px; }

.mt-16 { margin-top: 16px; }

.mb-8 { margin-bottom: 8px; }

.mb-12 { margin-bottom: 12px; }

.mb-16 { margin-bottom: 16px; }

.flex-center { display: flex; align-items: center; justify-content: center; }

.gap-8 { gap: 8px; }