/* ===== Lion Theme — 金色主题 · 手机端优先 ===== */
:root {
  --gold: #F5A623;
  --gold-dark: #D4891A;
  --gold-light: #FDEBD0;
  --bg: #FFFDF7;
  --card: #FFFFFF;
  --accent: #4A3728;
  --text: #2D2D2D;
  --text-light: #6B5E4F;
  --border: #F5E6CC;
  --success: #52C41A;
  --danger: #FF4D4F;
  --shadow: 0 2px 12px rgba(245, 166, 35, 0.12);
  --radius: 12px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  min-height: 100vh;
  padding-bottom: 70px; /* 底部导航高度 */
  max-width: 100vw;
  overflow-x: hidden;
}

a { color: var(--gold-dark); text-decoration: none; }
a:hover { color: var(--gold); }

/* ===== 顶部导航栏 ===== */
.navbar {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  padding: 0 1rem;
  box-shadow: 0 2px 8px rgba(212, 137, 26, 0.3);
  position: sticky; top: 0; z-index: 100;
}
.nav-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  height: 50px;
}
.nav-logo {
  font-size: 1.1rem; font-weight: 700; color: #fff;
  display: flex; align-items: center; gap: 0.3rem;
}
.nav-logo .emoji { font-size: 1.3rem; }
.nav-links { display: none; }

/* ===== 底部导航栏（手机端） ===== */
.bottom-nav {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: #fff; border-top: 1px solid var(--border);
  display: flex; z-index: 100;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.06);
  padding-bottom: env(safe-area-inset-bottom);
}
.bottom-nav a {
  flex: 1; display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 0.5rem 0.2rem; color: var(--text-light);
  font-size: 0.65rem; text-decoration: none; transition: color 0.2s;
}
.bottom-nav a .nav-icon { font-size: 1.3rem; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--gold-dark); }
.bottom-nav a:active { background: var(--gold-light); }

/* ===== 容器 ===== */
.container { max-width: 1100px; margin: 0 auto; padding: 1rem 0.75rem; }

/* ===== 页脚 ===== */
.footer {
  text-align: center; padding: 1.5rem 1rem;
  color: var(--text-light); font-size: 0.75rem;
  border-top: 1px solid var(--border); margin-top: 2rem; margin-bottom: 70px;
}
.footer a { color: var(--gold-dark); }

/* ===== 卡片 ===== */
.card {
  background: var(--card); border-radius: var(--radius);
  padding: 1rem; box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.card:active { transform: scale(0.98); }

/* ===== Hero ===== */
.hero {
  text-align: center; padding: 2rem 1rem;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--bg) 100%);
}
.hero .lion-icon { font-size: 3rem; }
.hero h1 { font-size: 1.4rem; color: var(--accent); margin-bottom: 0.3rem; }
.hero p { color: var(--text-light); font-size: 0.9rem; margin-bottom: 1rem; }

/* ===== 功能卡片列表（手机端单列） ===== */
.feature-grid {
  display: flex; flex-direction: column;
  gap: 0.75rem; padding: 1rem 0;
}
.feature-card {
  background: var(--card); border-radius: var(--radius);
  padding: 0.9rem 1rem; border: 1px solid var(--border);
  box-shadow: var(--shadow); display: flex;
  align-items: center; gap: 0.8rem;
  transition: all 0.15s; cursor: pointer;
}
.feature-card:active {
  border-color: var(--gold); transform: scale(0.98);
  background: var(--gold-light);
}
.feature-icon {
  font-size: 1.8rem; flex-shrink: 0;
  width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  background: var(--gold-light); border-radius: 12px;
}
.feature-info { flex: 1; }
.feature-info h3 { font-size: 1rem; color: var(--accent); margin-bottom: 0.15rem; }
.feature-info p { font-size: 0.78rem; color: var(--text-light); line-height: 1.3; }
.feature-arrow { color: var(--border); font-size: 1.2rem; }

/* ===== 按钮 ===== */
.btn {
  display: inline-block; padding: 0.55rem 1.2rem;
  border-radius: 8px; font-size: 0.9rem; font-weight: 600;
  cursor: pointer; border: none; transition: all 0.15s; text-align: center;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(0.96); }
.btn-primary {
  background: linear-gradient(135deg, var(--gold), var(--gold-dark));
  color: #fff; box-shadow: 0 2px 8px rgba(245,166,35,0.3);
}
.btn-outline {
  background: #fff; color: var(--gold-dark);
  border: 2px solid var(--gold);
}
.btn-outline:active { background: var(--gold-light); }
.btn-sm { padding: 0.35rem 0.8rem; font-size: 0.8rem; }
.btn-block { display: block; width: 100%; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-success { background: var(--success); color: #fff; }

/* ===== 表单 ===== */
.form-group { margin-bottom: 0.85rem; }
.form-label { display: block; font-weight: 600; margin-bottom: 0.3rem; color: var(--accent); font-size: 0.85rem; }
.form-input, .form-textarea, .form-select {
  width: 100%; padding: 0.6rem 0.75rem;
  border: 2px solid var(--border); border-radius: 8px;
  font-size: 0.95rem; transition: border-color 0.15s; background: #fff;
  font-family: inherit; -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus, .form-select:focus {
  outline: none; border-color: var(--gold);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.1);
}
.form-textarea { min-height: 100px; resize: vertical; }
.form-hint { font-size: 0.75rem; color: var(--text-light); margin-top: 0.25rem; }

/* ===== 列表项 ===== */
.list-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: 0.7rem 0.85rem; background: var(--card);
  border: 1px solid var(--border); border-radius: 8px;
  margin-bottom: 0.4rem; gap: 0.5rem;
}
.list-item:active { border-color: var(--gold); background: var(--gold-light); }
.list-item-code { font-family: 'Courier New', monospace; font-weight: 700; color: var(--accent); font-size: 0.9rem; word-break: break-all; }
.list-item-meta { font-size: 0.7rem; color: var(--text-light); white-space: nowrap; }

/* ===== 标签/Badge ===== */
.badge {
  display: inline-block; padding: 0.15rem 0.5rem; border-radius: 10px;
  font-size: 0.7rem; font-weight: 600; white-space: nowrap;
}
.badge-gold { background: var(--gold-light); color: var(--gold-dark); }
.badge-green { background: #E8F8E0; color: #389E0D; }
.badge-red { background: #FFF1F0; color: #CF1322; }
.badge-gray { background: #F0F0F0; color: #666; }

/* ===== Tabs ===== */
.tabs { display: flex; border-bottom: 2px solid var(--border); margin-bottom: 1rem; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.tab {
  padding: 0.5rem 0.9rem; cursor: pointer; font-weight: 600;
  color: var(--text-light); border-bottom: 2px solid transparent;
  margin-bottom: -2px; font-size: 0.85rem; white-space: nowrap; flex-shrink: 0;
}
.tab.active { color: var(--gold-dark); border-bottom-color: var(--gold); }

/* ===== 空状态 ===== */
.empty-state { text-align: center; padding: 2.5rem 1rem; color: var(--text-light); }
.empty-state .icon { font-size: 2.5rem; margin-bottom: 0.75rem; }
.empty-state h3 { color: var(--accent); margin-bottom: 0.3rem; font-size: 1rem; }
.empty-state p { font-size: 0.8rem; }

/* ===== Toast ===== */
.toast {
  position: fixed; top: 0.75rem; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; padding: 0.6rem 1.2rem;
  border-radius: 8px; font-size: 0.85rem; z-index: 999;
  box-shadow: 0 4px 12px rgba(0,0,0,0.2); animation: toastIn 0.3s ease;
  max-width: 90vw; text-align: center;
}
@keyframes toastIn { from { opacity:0; transform:translateX(-50%) translateY(-10px); } }

/* ===== 页面头部 ===== */
.page-header {
  text-align: center; padding: 1.5rem 1rem;
  background: linear-gradient(180deg, var(--gold-light) 0%, var(--bg) 100%);
}
.page-header h2 { font-size: 1.2rem; color: var(--accent); }
.page-header p { color: var(--text-light); margin-top: 0.2rem; font-size: 0.8rem; }

/* ===== 步骤条 ===== */
.steps { display: flex; gap: 0.25rem; margin: 1rem 0; }
.step {
  flex: 1; text-align: center; padding: 0.75rem 0.3rem;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 8px;
}
.step-num { font-size: 1.2rem; font-weight: 700; color: var(--gold); }
.step-title { font-size: 0.7rem; color: var(--text-light); margin-top: 0.2rem; }

/* ===== 开关 ===== */
.toggle {
  display: inline-flex; align-items: center; gap: 0.5rem; cursor: pointer;
}
.toggle-track {
  width: 44px; height: 24px; background: #ccc; border-radius: 12px;
  position: relative; transition: background 0.2s; flex-shrink: 0;
}
.toggle-track.on { background: var(--gold); }
.toggle-thumb {
  width: 20px; height: 20px; background: #fff; border-radius: 50%;
  position: absolute; top: 2px; left: 2px; transition: left 0.2s;
  box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}
.toggle-track.on .toggle-thumb { left: 22px; }

/* ===== 搜索框 ===== */
.search-box {
  display: flex; gap: 0.5rem; margin-bottom: 1rem;
}
.search-box .form-input { flex: 1; }

/* ===== 优惠券卡片 ===== */
.deal-grid { display: flex; flex-direction: column; gap: 0.75rem; }
.deal-card {
  background: var(--card); border-radius: var(--radius);
  padding: 1rem; border: 1px solid var(--border);
  box-shadow: var(--shadow); text-align: center;
}
.deal-card:active { border-color: var(--gold); }
.deal-platform { font-size: 1.3rem; font-weight: 700; color: var(--accent); }
.deal-desc { font-size: 0.85rem; color: var(--text-light); margin: 0.4rem 0; }
.deal-tag {
  display: inline-block; padding: 0.1rem 0.45rem;
  background: #FFF1F0; color: var(--danger); border-radius: 4px;
  font-size: 0.7rem; font-weight: 600;
}

/* ===== 可复制文本 ===== */
.copy-text {
  background: var(--gold-light); padding: 0.6rem 0.8rem;
  border-radius: 8px; font-family: 'Courier New', monospace;
  font-size: 0.85rem; word-break: break-all; position: relative;
  display: flex; align-items: center; justify-content: space-between;
  gap: 0.5rem;
}
.copy-btn {
  flex-shrink: 0; padding: 0.3rem 0.7rem; font-size: 0.75rem;
  background: var(--gold); color: #fff; border-radius: 6px; border: none;
  cursor: pointer; font-weight: 600;
}
.copy-btn:active { background: var(--gold-dark); }

/* ===== 统计数字 ===== */
.stats-row { display: flex; gap: 0.75rem; margin: 1rem 0; }
.stat-item {
  flex: 1; text-align: center; background: var(--card);
  border-radius: var(--radius); padding: 0.75rem; border: 1px solid var(--border);
}
.stat-num { font-size: 1.4rem; font-weight: 700; color: var(--gold-dark); }
.stat-label { font-size: 0.7rem; color: var(--text-light); margin-top: 0.15rem; }

/* ===== 分割线 ===== */
.divider {
  border: none; border-top: 1px solid var(--border); margin: 1rem 0;
}

/* ===== 小提示 ===== */
.tip-box {
  background: var(--gold-light); border-radius: 8px;
  padding: 0.7rem 0.85rem; font-size: 0.8rem; color: var(--accent);
  display: flex; align-items: flex-start; gap: 0.4rem;
  margin: 0.75rem 0;
}
.tip-box .tip-icon { flex-shrink: 0; font-size: 1rem; }

/* ===== 页面内容间距 ===== */
.section { margin-bottom: 1.5rem; }
.section-title { font-size: 1rem; color: var(--accent); margin-bottom: 0.6rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--gold); display: inline-block; }

/* ===== PC 端适配（大屏幕） ===== */
@media (min-width: 768px) {
  body { padding-bottom: 0; }
  .nav-links { display: flex; gap: 0.3rem; }
  .nav-links a {
    color: rgba(255,255,255,0.9); padding: 0.35rem 0.6rem;
    border-radius: 6px; font-size: 0.8rem;
  }
  .nav-links a:hover { background: rgba(255,255,255,0.2); color: #fff; }
  .bottom-nav { display: none; }
  .feature-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
  .deal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1rem; }
  .container { padding: 1.5rem 1rem; }
  .hero h1 { font-size: 1.8rem; }
  .footer { margin-bottom: 0; }
}
