/* ===== 基础变量与重置 ===== */
:root {
  --green: #13a55e;
  --green-deep: #0d8a4c;
  --green-soft: #e8f6ef;
  --orange: #ff7a1a;
  --orange-soft: #fff1e6;
  --bg: #f2f4f7;
  --card: #ffffff;
  --text: #1f2733;
  --text-sub: #7a8699;
  --line: #eceff3;
  --danger: #e5484d;
  --radius: 16px;
  --shadow: 0 6px 20px rgba(15, 40, 30, 0.08);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background: #dfe3e8;
  color: var(--text);
  -webkit-font-smoothing: antialiased;
}

button { font-family: inherit; border: none; background: none; cursor: pointer; color: inherit; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.phone {
  position: relative;
  max-width: 480px;
  min-height: 100vh;
  margin: 0 auto;
  background: var(--bg);
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.12);
}

/* 顶部导航 */
.topbar {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; padding: 0 16px; background: var(--card);
}
.topbar-title { font-size: 18px; font-weight: 700; }
.icon-btn { width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; border-radius: 10px; }
.icon-btn:active { background: var(--bg); }
.hamburger { position: relative; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.hamburger::before, .hamburger::after { content: ""; position: absolute; left: 0; width: 20px; height: 2px; background: var(--text); border-radius: 2px; }
.hamburger::before { top: -6px; }
.hamburger::after { top: 6px; }

.topbar-capsule { display: flex; align-items: center; gap: 10px; padding: 6px 12px; border: 1px solid var(--line); border-radius: 20px; }
.capsule-dots { display: flex; gap: 3px; }
.capsule-dots::before, .capsule-dots::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--text); }
.capsule-circle { width: 14px; height: 14px; border: 2px solid var(--text); border-radius: 50%; }

/* 卡片 / 按钮 / 列表行 */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 44px; padding: 0 18px; border-radius: 12px; font-size: 15px; font-weight: 600; transition: opacity .15s, transform .1s; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-green { background: var(--green); color: #fff; }
.btn-orange { background: var(--orange); color: #fff; }
.btn-ghost { background: var(--bg); color: var(--text); }
.btn-block { width: 100%; }

.row { display: flex; align-items: center; gap: 12px; padding: 16px; background: var(--card); }
.row + .row { border-top: 1px solid var(--line); }
.row-icon { width: 24px; height: 24px; flex: 0 0 24px; display: flex; align-items: center; justify-content: center; color: var(--text-sub); }
.row-label { flex: 1; font-size: 16px; }
.row-extra { font-size: 13px; color: var(--text-sub); }
.row-arrow { color: #c4ccd6; font-size: 16px; }

.tag { display: inline-block; padding: 3px 10px; border-radius: 8px; font-size: 12px; background: var(--green-soft); color: var(--green-deep); }

.page { padding: 16px; display: flex; flex-direction: column; gap: 14px; }
.page-title { font-size: 20px; font-weight: 700; }
.page-sub { font-size: 13px; color: var(--text-sub); }
.section-title { font-size: 17px; font-weight: 700; margin-bottom: 10px; }

.feedback-fab { position: fixed; right: max(16px, calc(50% - 224px + 16px)); bottom: 96px; padding: 8px 14px; border-radius: 16px; background: var(--card); color: var(--text-sub); font-size: 13px; box-shadow: var(--shadow); z-index: 15; }

/* Toast */
.toast-wrap { position: fixed; left: 50%; bottom: 120px; transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; align-items: center; z-index: 100; pointer-events: none; }
.toast { padding: 10px 18px; border-radius: 10px; background: rgba(30, 38, 48, 0.9); color: #fff; font-size: 14px; animation: toast-in .18s ease; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }

.empty { padding: 60px 20px; text-align: center; color: var(--text-sub); }
.empty .empty-icon { font-size: 40px; margin-bottom: 12px; }
.empty p { font-size: 14px; }

/* 表单通用 */
.form-item { margin-bottom: 14px; }
.form-item label { display: block; font-size: 13px; color: var(--text-sub); margin-bottom: 8px; }
.form-input, .form-select, .form-textarea { width: 100%; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px; font-size: 15px; font-family: inherit; background: #fff; color: var(--text); }
.form-textarea { resize: vertical; min-height: 72px; }
