/* ============================================================
   九悦户外 H5 — 全局样式
   移动端优先，桌面端居中列展示；扁平现代户外风
   ============================================================ */
:root {
  --primary: #2E9E5B;
  --primary-deep: #1F7A46;
  --primary-soft: #E8F6EE;
  --accent: #F59E0B;
  --accent-soft: #FEF3E2;
  --danger: #E5484D;
  --danger-soft: #FDEBEC;
  --bg: #F5F7F5;
  --card: #FFFFFF;
  --text: #1C2B22;
  --text-2: #5C6E63;
  --text-3: #96A69C;
  --line: #E7EDE8;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 2px 10px rgba(31, 60, 43, .06);
  --shadow-lg: 0 8px 28px rgba(31, 60, 43, .12);
  --tabbar-h: 58px;
  --header-h: 52px;
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 16px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  min-height: 100vh;
}
body::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(1200px 500px at 50% -200px, rgba(46, 158, 91, .08), transparent 60%);
}
#app-shell { position: relative; z-index: 1; max-width: 520px; margin: 0 auto; min-height: 100vh; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; cursor: pointer; color: inherit; }
input, select, textarea { font-family: inherit; font-size: 15px; color: var(--text); border: 0; outline: 0; background: transparent; }
ul, ol { list-style: none; }

.ic { width: 22px; height: 22px; flex: none; vertical-align: -4px; }

/* ---------- 布局容器 ---------- */
.page { padding: 0 0 calc(var(--tabbar-h) + var(--safe-b) + 24px); }
.page.no-tab { padding-bottom: 32px; }
.safe-top { padding-top: calc(var(--header-h) + env(safe-area-inset-top, 0px)); }
.no-top { padding-top: calc(env(safe-area-inset-top, 0px) + 4px); }

/* ---------- 顶栏 ---------- */
.app-header {
  position: fixed; top: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; height: var(--header-h);
  padding-top: env(safe-area-inset-top, 0px);
  display: flex; align-items: center; gap: 8px; padding-left: 14px; padding-right: 14px;
  background: rgba(255, 255, 255, .92); backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line); z-index: 50;
}
.app-header .brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; letter-spacing: .5px; }
.app-header .brand .logo { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, var(--primary), var(--primary-deep)); }
.app-header .brand .logo .ic { width: 18px; height: 18px; }
.app-header .title { font-size: 17px; font-weight: 700; }
.app-header .sub { font-size: 12px; color: var(--text-3); }
.header-btn { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--text-2); background: var(--bg); }
.header-btn .ic { width: 20px; height: 20px; }
.header-search { flex: 1; display: flex; align-items: center; gap: 6px; height: 38px; background: var(--bg); border-radius: 12px; padding: 0 12px; color: var(--text-3); }
.header-search .ic { width: 17px; height: 17px; }
.header-search input { flex: 1; font-size: 14px; background: none; }
.header-search input::placeholder { color: var(--text-3); }

/* ---------- 底部 TabBar ---------- */
.tabbar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; height: calc(var(--tabbar-h) + var(--safe-b));
  padding-bottom: var(--safe-b);
  display: flex; background: rgba(255, 255, 255, .96); backdrop-filter: blur(14px);
  border-top: 1px solid var(--line); z-index: 50;
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; font-size: 10.5px; color: var(--text-3); position: relative; }
.tabbar a .ic { width: 22px; height: 22px; }
.tabbar a.active { color: var(--primary); font-weight: 600; }
.tabbar .badge {
  position: absolute; top: 4px; left: calc(50% + 6px); min-width: 16px; height: 16px; padding: 0 4px;
  background: var(--danger); color: #fff; font-size: 10px; border-radius: 9px; display: grid; place-items: center;
}

/* ---------- 首页 Banner ---------- */
.banner { margin: 14px 14px 4px; position: relative; overflow: hidden; border-radius: var(--radius); height: 158px; box-shadow: var(--shadow); }
.banner-track { display: flex; height: 100%; transition: transform .45s cubic-bezier(.3,.9,.4,1); }
.banner-slide { min-width: 100%; height: 100%; position: relative; }
.banner-slide img { width: 100%; height: 100%; object-fit: cover; }
.banner-mask { position: absolute; inset: 0; background: linear-gradient(90deg, rgba(12,32,22,.55), rgba(12,32,22,.08) 70%); }
.banner-text { position: absolute; left: 18px; top: 50%; transform: translateY(-50%); color: #fff; z-index: 2; }
.banner-text h2 { font-size: 21px; font-weight: 800; letter-spacing: 1px; text-shadow: 0 2px 8px rgba(0,0,0,.25); }
.banner-text p { font-size: 12.5px; margin-top: 5px; opacity: .92; }
.banner-dots { position: absolute; bottom: 12px; left: 0; right: 0; display: flex; justify-content: center; gap: 6px; z-index: 3; }
.banner-dots i { width: 6px; height: 6px; border-radius: 4px; background: rgba(255,255,255,.5); transition: all .3s; }
.banner-dots i.on { width: 18px; background: #fff; }

/* ---------- 快捷入口 ---------- */
.quick { display: flex; margin: 0 14px; background: var(--card); border-radius: var(--radius); padding: 12px 4px; box-shadow: var(--shadow); }
.quick a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-2); font-weight: 600; }
.quick .q-ic { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.quick .q-ic .ic { width: 23px; height: 23px; }
.q-a { background: linear-gradient(135deg, #34B56D, #1F8A4C); }
.q-b { background: linear-gradient(135deg, #F5A623, #E07B12); }
.q-c { background: linear-gradient(135deg, #4A90E2, #2E6FC0); }
.q-d { background: linear-gradient(135deg, #7B61FF, #5B3FD4); }

/* ---------- 区块标题 ---------- */
.sec { margin-top: 22px; padding: 0 14px; }
.sec-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sec-title { display: flex; align-items: center; gap: 7px; font-size: 16.5px; font-weight: 800; }
.sec-title .t-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); }
.sec-title .t-ic .ic { width: 15px; height: 15px; }
.sec-more { display: flex; align-items: center; gap: 1px; font-size: 12.5px; color: var(--text-3); }
.sec-more .ic { width: 14px; height: 14px; }

/* ---------- 活动卡片 ---------- */
.act-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.act-card .cover { position: relative; height: 130px; }
.act-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.act-status {
  position: absolute; top: 10px; left: 10px; z-index: 2; font-size: 11px; font-weight: 700; color: #fff;
  padding: 3px 9px; border-radius: 8px; backdrop-filter: blur(4px);
}
.st-报名中 { background: rgba(46,158,91,.9); }
.st-名额紧张 { background: rgba(245,158,11,.92); }
.st-已满 { background: rgba(100,116,112,.88); }
.st-未开始 { background: rgba(59,130,246,.9); }
.act-type { position: absolute; top: 10px; right: 10px; z-index: 2; display: flex; align-items: center; gap: 4px; font-size: 11px; color: #fff; background: rgba(12,32,22,.42); backdrop-filter: blur(4px); padding: 3px 8px; border-radius: 8px; }
.act-type .ic { width: 13px; height: 13px; }
.act-body { padding: 11px 12px 12px; }
.act-title { font-size: 14.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.act-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 8px; font-size: 12px; color: var(--text-2); }
.act-meta span { display: inline-flex; align-items: center; gap: 4px; }
.act-meta .ic { width: 13.5px; height: 13.5px; color: var(--primary); }
.act-foot { display: flex; align-items: flex-end; justify-content: space-between; margin-top: 10px; }
.price { color: var(--danger); font-weight: 800; }
.price b { font-size: 17px; }
.price .ori { color: var(--text-3); font-weight: 400; font-size: 12px; text-decoration: line-through; margin-left: 5px; }
.seat { font-size: 11.5px; color: var(--text-3); }
.seat i { font-style: normal; color: var(--primary); font-weight: 700; }
.seat-bar { height: 4px; border-radius: 3px; background: var(--line); margin-top: 4px; overflow: hidden; }
.seat-bar b { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--primary), #5ECB8A); }
.seat-bar.warn b { background: linear-gradient(90deg, var(--accent), #F7C25E); }

/* 活动横向滚动 */
.h-scroll { display: flex; gap: 12px; overflow-x: auto; padding: 2px 14px 8px; scroll-snap-type: x mandatory; -webkit-overflow-scrolling: touch; }
.h-scroll::-webkit-scrollbar { display: none; }
.h-scroll .act-card { flex: none; width: 248px; scroll-snap-align: start; }
.h-scroll .act-card .cover { height: 120px; }

/* ---------- 领队卡片 ---------- */
.leader-card { flex: none; width: 132px; background: var(--card); border-radius: var(--radius); padding: 12px 10px; text-align: center; box-shadow: var(--shadow); scroll-snap-align: start; }
.leader-card .avatar { width: 62px; height: 62px; border-radius: 50%; margin: 0 auto 8px; border: 2.5px solid var(--primary-soft); overflow: hidden; }
.leader-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.leader-card .name { font-size: 14px; font-weight: 700; }
.leader-card .tag { font-size: 11px; color: var(--text-2); margin-top: 3px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.leader-card .stat { display: flex; justify-content: center; gap: 10px; margin-top: 8px; font-size: 10.5px; color: var(--text-3); }
.leader-card .stat b { color: var(--primary); font-size: 12px; display: block; }

/* ---------- 商品卡片 ---------- */
.prod-card { background: var(--card); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.prod-card .cover { height: 128px; position: relative; }
.prod-card .cover img { width: 100%; height: 100%; object-fit: cover; }
.prod-card .badge { position: absolute; top: 8px; left: 8px; font-size: 10.5px; font-weight: 700; color: #fff; background: var(--danger); padding: 2px 7px; border-radius: 7px; }
.prod-card .p-body { padding: 9px 10px 11px; }
.prod-card .p-name { font-size: 13.5px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; min-height: 36px; }
.prod-card .p-price { display: flex; align-items: baseline; gap: 4px; margin-top: 7px; }
.prod-card .p-price b { color: var(--danger); font-size: 16px; }
.prod-card .p-price .ori { font-size: 11px; color: var(--text-3); text-decoration: line-through; }
.prod-card .p-sales { margin-top: 2px; font-size: 11px; color: var(--text-3); }

/* 商品网格 */
.prod-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; padding: 2px 14px 8px; }

/* ---------- 列表页 ---------- */
.list-ver { padding: 4px 14px; display: flex; flex-direction: column; gap: 14px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 10px 14px 2px; -webkit-overflow-scrolling: touch; }
.tabs::-webkit-scrollbar { display: none; }
.tabs button { flex: none; padding: 7px 16px; border-radius: 20px; font-size: 13.5px; color: var(--text-2); background: var(--card); border: 1px solid var(--line); font-weight: 600; }
.tabs button.active { background: var(--primary); color: #fff; border-color: var(--primary); }

.sort-row { display: flex; align-items: center; gap: 4px; padding: 8px 14px 4px; font-size: 12px; color: var(--text-3); }
.sort-row .ic { width: 14px; height: 14px; }

/* ---------- 详情页 ---------- */
.detail-cover { position: relative; height: 240px; }
.detail-cover img { width: 100%; height: 100%; object-fit: cover; }
.detail-cover .back-btn {
  position: absolute; top: calc(env(safe-area-inset-top, 0px) + 12px); left: 14px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%; background: rgba(12,32,22,.4); backdrop-filter: blur(8px);
  color: #fff; display: grid; place-items: center;
}
.detail-card { background: var(--card); border-radius: 20px 20px 0 0; margin-top: -18px; position: relative; padding: 18px 16px 24px; }
.detail-title { font-size: 19px; font-weight: 800; line-height: 1.45; }
.detail-price { display: flex; align-items: baseline; gap: 8px; margin-top: 10px; }
.detail-price .price b { font-size: 24px; }
.tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; color: var(--text-2); background: var(--bg); border-radius: 8px; padding: 5px 10px; }
.tag .ic { width: 14px; height: 14px; color: var(--primary); }
.tag.hot { color: var(--accent); background: var(--accent-soft); }
.tag.hot .ic { color: var(--accent); }

.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.info-item { background: var(--bg); border-radius: 12px; padding: 10px 12px; display: flex; gap: 9px; align-items: flex-start; }
.info-item .ii-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; color: var(--primary); background: var(--primary-soft); }
.info-item .ii-ic .ic { width: 17px; height: 17px; }
.info-item label { display: block; font-size: 11px; color: var(--text-3); }
.info-item p { font-size: 13px; font-weight: 600; margin-top: 1px; line-height: 1.4; }

.sec-block { margin-top: 20px; }
.sec-block h3 { font-size: 15.5px; font-weight: 800; display: flex; align-items: center; gap: 7px; margin-bottom: 10px; }
.sec-block h3 .ic { width: 17px; height: 17px; color: var(--primary); }
.sec-block p { font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.li-check { display: flex; gap: 8px; font-size: 13.5px; color: var(--text-2); margin-top: 7px; line-height: 1.6; }
.li-check .ic { width: 16px; height: 16px; color: var(--primary); margin-top: 3px; }
.li-x { display: flex; gap: 8px; font-size: 13.5px; color: var(--text-3); margin-top: 7px; line-height: 1.6; }
.li-x .ic { width: 16px; height: 16px; color: var(--text-3); margin-top: 3px; }

.schedule-item { display: flex; gap: 12px; margin-bottom: 14px; position: relative; }
.schedule-item::before { content: ""; position: absolute; left: 19px; top: 32px; bottom: -14px; width: 2px; background: var(--line); }
.schedule-item:last-child::before { display: none; }
.sch-day { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: var(--primary); background: var(--primary-soft); }
.sch-time { font-size: 13.5px; font-weight: 700; }
.sch-desc { font-size: 13px; color: var(--text-2); margin-top: 3px; line-height: 1.6; }

.notice-box { background: var(--accent-soft); border-radius: 12px; padding: 12px 14px; }
.notice-box .li-check { color: #8a5a12; }
.notice-box .li-check .ic { color: var(--accent); }

/* 领队详情 */
.leader-hero { display: flex; gap: 14px; background: linear-gradient(135deg, #F0F9F2, #E6F3EA); border-radius: var(--radius); padding: 16px; margin: 14px 14px 0; }
.leader-hero .avatar { width: 76px; height: 76px; border-radius: 50%; border: 3px solid #fff; box-shadow: var(--shadow); overflow: hidden; flex: none; }
.leader-hero .avatar img { width: 100%; height: 100%; }
.leader-hero h2 { font-size: 18px; font-weight: 800; }
.leader-hero .title { font-size: 12px; color: var(--text-2); margin-top: 3px; line-height: 1.5; }
.leader-hero .skills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.leader-hero .skills span { font-size: 11px; background: #fff; color: var(--primary-deep); border-radius: 8px; padding: 3px 8px; font-weight: 600; }
.l-stat-row { display: flex; margin: 14px 14px 0; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.l-stat-row div { flex: 1; text-align: center; padding: 13px 4px; }
.l-stat-row div + div { border-left: 1px solid var(--line); }
.l-stat-row b { display: block; font-size: 17px; color: var(--primary); }
.l-stat-row span { font-size: 11px; color: var(--text-3); }

/* ---------- 表单 ---------- */
.form { padding: 14px; }
.form-card { background: var(--card); border-radius: var(--radius); padding: 6px 14px; box-shadow: var(--shadow); }
.form-item { display: flex; align-items: center; gap: 10px; padding: 13px 0; border-bottom: 1px solid var(--line); }
.form-item:last-child { border-bottom: 0; }
.form-item label { flex: none; width: 76px; font-size: 14px; font-weight: 600; color: var(--text-2); }
.form-item label .req { color: var(--danger); margin-left: 2px; }
.form-item input, .form-item textarea, .form-item select { flex: 1; font-size: 14.5px; }
.form-item input::placeholder, .form-item textarea::placeholder { color: var(--text-3); }
.form-item textarea { min-height: 64px; resize: none; padding: 4px 0; line-height: 1.6; }
.form-item .unit { font-size: 12.5px; color: var(--text-3); }
.stepper { display: flex; align-items: center; gap: 0; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.stepper button { width: 32px; height: 32px; display: grid; place-items: center; color: var(--text-2); background: var(--bg); }
.stepper button .ic { width: 14px; height: 14px; }
.stepper b { min-width: 40px; text-align: center; font-size: 14.5px; }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 46px; padding: 0 22px; border-radius: 14px; font-size: 15px; font-weight: 700; transition: transform .12s, opacity .2s; }
.btn:active { transform: scale(.97); }
.btn .ic { width: 18px; height: 18px; }
.btn-primary { background: linear-gradient(135deg, #34B56D, #1F8A4C); color: #fff; box-shadow: 0 4px 14px rgba(46,158,91,.32); }
.btn-outline { background: var(--card); color: var(--primary); border: 1.5px solid var(--primary); }
.btn-ghost { background: var(--bg); color: var(--text-2); }
.btn-danger { background: var(--danger-soft); color: var(--danger); }
.btn-block { width: 100%; }
.btn-sm { height: 34px; padding: 0 14px; font-size: 13px; border-radius: 10px; }
.btn-lg { height: 52px; font-size: 16px; border-radius: 16px; }
.btn:disabled { opacity: .55; }

/* 底部操作条 */
.footer-bar {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 100%; max-width: 520px; padding: 10px 14px calc(10px + var(--safe-b));
  background: rgba(255,255,255,.96); backdrop-filter: blur(14px); border-top: 1px solid var(--line);
  display: flex; gap: 10px; align-items: center; z-index: 50;
}
.footer-bar .fb-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--bg); display: grid; place-items: center; color: var(--text-2); position: relative; }
.footer-bar .fb-ic .ic { width: 21px; height: 21px; }
.footer-bar .fb-ic .badge { position: absolute; top: 2px; right: 0; min-width: 15px; height: 15px; padding: 0 3px; font-size: 10px; border-radius: 8px; background: var(--danger); color: #fff; display: grid; place-items: center; }
.footer-bar .fb-price { flex: 1; }
.footer-bar .fb-price b { color: var(--danger); font-size: 20px; }
.footer-bar .fb-price span { font-size: 11px; color: var(--text-3); }

/* ---------- 商品详情 ---------- */
.spec-sheet .spec-opts { display: flex; flex-wrap: wrap; gap: 9px; }
.spec-sheet .spec-opts button { padding: 9px 18px; border-radius: 10px; background: var(--bg); font-size: 13.5px; border: 1.5px solid transparent; font-weight: 600; }
.spec-sheet .spec-opts button.on { background: var(--primary-soft); color: var(--primary); border-color: var(--primary); }
.sheet-qty { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; }
.sheet-qty span { font-size: 14px; font-weight: 600; color: var(--text-2); }

/* ---------- 购物车 ---------- */
.cart-item { display: flex; gap: 11px; background: var(--card); border-radius: var(--radius); padding: 11px; box-shadow: var(--shadow); align-items: center; }
.cart-item .cover { width: 78px; height: 78px; border-radius: 11px; overflow: hidden; flex: none; }
.cart-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.cart-item .ci-main { flex: 1; min-width: 0; }
.cart-item .ci-name { font-size: 13.5px; font-weight: 700; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cart-item .ci-spec { font-size: 11.5px; color: var(--text-3); background: var(--bg); display: inline-block; border-radius: 6px; padding: 2px 7px; margin-top: 5px; }
.cart-item .ci-foot { display: flex; align-items: center; justify-content: space-between; margin-top: 7px; }
.radio { width: 20px; height: 20px; border-radius: 50%; border: 1.8px solid #C9D4CD; display: grid; place-items: center; color: transparent; flex: none; }
.radio.on { background: var(--primary); border-color: var(--primary); color: #fff; }
.radio .ic { width: 12px; height: 12px; }
.check-row { display: flex; align-items: center; gap: 10px; font-size: 13.5px; font-weight: 600; }

/* ---------- 订单 ---------- */
.order-card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.order-head { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-bottom: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.order-head b { color: var(--primary); font-weight: 700; }
.order-item { display: flex; gap: 10px; padding: 11px 14px; }
.order-item .cover { width: 60px; height: 60px; border-radius: 10px; overflow: hidden; flex: none; }
.order-item .cover img { width: 100%; height: 100%; object-fit: cover; }
.order-item .oi-name { font-size: 13px; font-weight: 600; line-height: 1.35; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.order-item .oi-spec { font-size: 11px; color: var(--text-3); margin-top: 2px; }
.order-item .oi-price { margin-left: auto; text-align: right; font-size: 13px; font-weight: 700; flex: none; }
.order-foot { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px 13px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--text-3); }
.order-foot .btn { margin-left: 8px; }

/* ---------- 个人中心 ---------- */
.mine-hero {
  margin: 14px 14px 0; border-radius: var(--radius); padding: 20px 18px; color: #fff; position: relative; overflow: hidden;
  background: linear-gradient(135deg, #2FA05F 0%, #1E7A46 60%, #155E34 100%);
}
.mine-hero::after { content: ""; position: absolute; right: -30px; top: -40px; width: 150px; height: 150px; border-radius: 50%; background: rgba(255,255,255,.09); }
.mine-hero::before { content: ""; position: absolute; right: 30px; bottom: -50px; width: 110px; height: 110px; border-radius: 50%; background: rgba(255,255,255,.07); }
.mh-top { display: flex; align-items: center; gap: 13px; position: relative; z-index: 2; }
.mh-avatar { width: 58px; height: 58px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.7); overflow: hidden; flex: none; background: rgba(255,255,255,.25); display: grid; place-items: center; color: #fff; }
.mh-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mh-avatar .ic { width: 28px; height: 28px; }
.mh-info h2 { font-size: 18px; font-weight: 800; }
.mh-info p { font-size: 12px; opacity: .85; margin-top: 3px; }
.mh-stats { display: flex; margin-top: 18px; position: relative; z-index: 2; }
.mh-stats div { flex: 1; text-align: center; border-right: 1px solid rgba(255,255,255,.22); }
.mh-stats div:last-child { border-right: 0; }
.mh-stats b { font-size: 19px; font-weight: 800; display: block; }
.mh-stats span { font-size: 11.5px; opacity: .85; }

.mine-menu { margin: 14px; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.mine-menu .mm-item { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-bottom: 1px solid var(--line); }
.mine-menu .mm-item:last-child { border-bottom: 0; }
.mm-ic { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; }
.mm-ic .ic { width: 18px; height: 18px; }
.mm-ic.green { background: var(--primary-soft); color: var(--primary); }
.mm-ic.amber { background: var(--accent-soft); color: var(--accent); }
.mm-ic.blue { background: #E8F0FD; color: #3B82F6; }
.mm-ic.purple { background: #F0ECFE; color: #7B61FF; }
.mm-ic.red { background: var(--danger-soft); color: var(--danger); }
.mm-ic.gray { background: var(--bg); color: var(--text-2); }
.mm-item .mm-label { flex: 1; font-size: 14.5px; font-weight: 600; }
.mm-item .mm-sub { font-size: 12px; color: var(--text-3); }
.mm-item .mm-arrow { color: #C4CEC7; }

/* ---------- 登录 ---------- */
.login-wrap { padding: 0 24px; }
.login-brand { display: flex; flex-direction: column; align-items: center; padding: 48px 0 34px; }
.login-logo { width: 76px; height: 76px; border-radius: 22px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #34B56D, #1F8A4C); box-shadow: 0 10px 28px rgba(46,158,91,.35); }
.login-logo .ic { width: 42px; height: 42px; }
.login-brand h1 { font-size: 24px; font-weight: 800; margin-top: 16px; letter-spacing: 2px; }
.login-brand p { font-size: 13px; color: var(--text-3); margin-top: 5px; }
.login-input { display: flex; align-items: center; gap: 10px; height: 52px; background: var(--card); border: 1.5px solid var(--line); border-radius: 14px; padding: 0 16px; margin-bottom: 14px; }
.login-input .ic { width: 19px; height: 19px; color: var(--text-3); }
.login-input input { flex: 1; font-size: 15.5px; }
.login-input input::placeholder { color: var(--text-3); }
.agree { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: var(--text-3); margin: 14px 0 20px; }
.agree .radio { width: 16px; height: 16px; }
.agree .radio .ic { width: 10px; height: 10px; }
.agree a { color: var(--primary); }

/* ---------- Toast / Modal ---------- */
#toast-wrap { position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); z-index: 300; display: flex; flex-direction: column; align-items: center; gap: 10px; pointer-events: none; }
.toast { background: rgba(20, 35, 28, .92); color: #fff; font-size: 13.5px; padding: 11px 20px; border-radius: 12px; max-width: 78vw; text-align: center; animation: toastIn .25s ease; box-shadow: var(--shadow-lg); }
.toast.ok { background: rgba(31, 122, 70, .94); }
.toast.err { background: rgba(229, 72, 77, .94); }
@keyframes toastIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.modal-mask { position: fixed; inset: 0; background: rgba(12, 26, 18, .45); z-index: 200; display: flex; align-items: flex-end; justify-content: center; animation: fadeIn .2s; }
.modal-mask.center { align-items: center; padding: 24px; }
.modal-sheet { width: 100%; max-width: 520px; background: #fff; border-radius: 20px 20px 0 0; padding: 18px 16px calc(20px + var(--safe-b)); animation: sheetUp .28s cubic-bezier(.3,.9,.4,1); max-height: 82vh; overflow-y: auto; }
.modal-center { width: 100%; max-width: 400px; background: #fff; border-radius: 20px; padding: 24px 18px; animation: sheetUp .28s; text-align: center; }
.modal-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.modal-head h3 { font-size: 16.5px; font-weight: 800; }
.modal-close { width: 30px; height: 30px; border-radius: 50%; background: var(--bg); display: grid; place-items: center; color: var(--text-2); }
.modal-close .ic { width: 15px; height: 15px; }
@keyframes fadeIn { from { opacity: 0; } }
@keyframes sheetUp { from { transform: translateY(60px); opacity: .6; } }

/* ---------- 成功页 ---------- */
.success-wrap { padding: 60px 30px 20px; text-align: center; }
.success-ic { width: 92px; height: 92px; border-radius: 50%; margin: 0 auto; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #34B56D, #1F8A4C); box-shadow: 0 14px 34px rgba(46,158,91,.35); }
.success-ic .ic { width: 46px; height: 46px; }
.success-wrap h2 { font-size: 21px; font-weight: 800; margin-top: 20px; }
.success-wrap p { color: var(--text-2); font-size: 13.5px; margin-top: 8px; }
.success-card { background: var(--card); border-radius: var(--radius); padding: 16px; margin-top: 26px; box-shadow: var(--shadow); text-align: left; }
.success-card .sc-row { display: flex; justify-content: space-between; padding: 8px 2px; font-size: 13.5px; border-bottom: 1px dashed var(--line); }
.success-card .sc-row:last-child { border-bottom: 0; }
.success-card .sc-row span { color: var(--text-3); }
.success-card .sc-row b { font-weight: 700; }

/* ---------- 空状态 ---------- */
.empty { padding: 60px 20px; text-align: center; color: var(--text-3); }
.empty .ic { width: 54px; height: 54px; color: #C9D4CD; }
.empty p { font-size: 13.5px; margin-top: 12px; }
.empty .btn { margin-top: 18px; }

/* ---------- 通用小件 ---------- */
.card { background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.row { display: flex; align-items: center; }
.gap8 { gap: 8px; } .gap12 { gap: 12px; } .mt8 { margin-top: 8px; } .mt12 { margin-top: 12px; } .mt16 { margin-top: 16px; }
.mt20 { margin-top: 20px; } .mb12 { margin-bottom: 12px; } .flex1 { flex: 1; min-width: 0; }
.text-2 { color: var(--text-2); } .text-3 { color: var(--text-3); } .text-primary { color: var(--primary); }
.text-danger { color: var(--danger); } .bold { font-weight: 700; } .fs12 { font-size: 12px; } .fs13 { font-size: 13px; } .fs14 { font-size: 14px; }
.divider { height: 8px; background: var(--bg); margin: 0 -16px; }
.rate { display: inline-flex; align-items: center; gap: 3px; color: var(--accent); font-size: 12px; font-weight: 700; }
.rate .ic { width: 13px; height: 13px; fill: currentColor; color: var(--accent); }

/* 难度点 */
.diff { display: inline-flex; align-items: center; gap: 3px; }
.diff .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--line); }
.diff .dot.on { background: var(--primary); }

/* 骨架屏 */
.skel { background: linear-gradient(90deg, #EEF2EF 25%, #F7F9F7 50%, #EEF2EF 75%); background-size: 200% 100%; animation: skel 1.3s infinite; border-radius: 10px; }
@keyframes skel { to { background-position: -200% 0; } }

/* 桌面适配 */
@media (min-width: 560px) {
  body { background: #E9EFEA; }
  #app-shell { box-shadow: 0 0 0 1px var(--line), 0 20px 60px rgba(31,60,43,.14); min-height: 100vh; }
}

/* 打印友好 */
@media print { .tabbar, .app-header, .footer-bar { display: none !important; } }

/* 报名多成员卡片 */
.member-card { background: var(--bg); border-radius: 12px; padding: 2px 12px 8px; margin-top: 4px; border: 1px solid var(--line); }
.member-card .member-title { font-size: 12.5px; font-weight: 700; color: var(--text-2); padding: 10px 0 0; display: flex; align-items: center; gap: 6px; }
.member-card .member-title::before { content: ""; width: 4px; height: 14px; border-radius: 2px; background: var(--primary); display: inline-block; }
.member-card .form-item { padding: 9px 0; }
.member-card .form-item label { width: 64px; font-size: 13px; }

/* 首页品牌 Logo 头 */
.home-brand { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 16px 6px; }
.home-brand img { width: 40px; height: 40px; border-radius: 12px; box-shadow: var(--shadow); }
.home-brand span { font-size: 19px; font-weight: 800; letter-spacing: 2px; color: var(--text-1); }
.home-brand em { font-style: normal; font-size: 12px; color: var(--text-3); padding: 3px 8px; border-radius: 20px; background: var(--primary-soft); }
