/* 租个车 Web · 前台样式 v2
   设计基调：新能源蓝绿渐变 + 大圆角 + 柔和阴影，移动端优先 + 桌面端增强 */

:root {
  --brand: #1763ff;
  --brand-deep: #0e49d6;
  --brand-2: #00b578;               /* 新能源绿 */
  --brand-soft: #eaf1ff;
  --warn: #ff8f1f;
  --warn-soft: #fff4e6;
  --danger: #f0433e;
  --ok: #22a552;
  --ink: #0f2340;
  --text: #22304a;
  --text-2: #5d6d84;
  --text-3: #96a3b7;
  --line: #e7ecf4;
  --bg: #f3f5fa;
  --card: #ffffff;
  --radius: 16px;
  --radius-md: 12px;
  --radius-sm: 9px;
  --shadow: 0 1px 2px rgba(15, 35, 95, .04), 0 8px 24px rgba(15, 35, 95, .06);
  --shadow-lg: 0 16px 40px rgba(15, 35, 95, .13);
  --tabbar-h: 58px;
}

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

body {
  background: var(--bg);
  color: var(--text);
  font: 15px/1.65 -apple-system, BlinkMacSystemFont, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  padding-bottom: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { margin: 0; font-weight: 700; color: var(--ink); letter-spacing: .01em; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
::selection { background: rgba(23, 99, 255, .18); }

/* ---------- 通用文本 ---------- */
.muted { color: var(--text-2); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.center { text-align: center; }
.ok { color: var(--ok); }
.mt { margin-top: 14px; }
.mono { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12px; }

/* ---------- 布局 ---------- */
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 760px; }
.main { display: block; min-height: 40vh; }

/* ---------- 顶栏 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .88);
  -webkit-backdrop-filter: blur(12px) saturate(1.4);
  backdrop-filter: blur(12px) saturate(1.4);
  border-bottom: 1px solid rgba(231, 236, 244, .8);
}
.topbar-inner { display: flex; align-items: center; gap: 16px; height: 62px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 18px; color: var(--ink); flex: none; }
.brand-mark {
  width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
  font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-2));
  box-shadow: 0 6px 14px rgba(23, 99, 255, .3);
}
.brand-text { background: linear-gradient(135deg, var(--brand), var(--brand-2)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.nav { display: flex; gap: 4px; flex: 1; min-width: 0; overflow: hidden; }
.nav a { padding: 8px 13px; border-radius: 999px; color: var(--text-2); font-size: 14px; white-space: nowrap; font-weight: 500; }
.nav a:hover { background: var(--bg); color: var(--ink); }
.nav a.on { color: #fff; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); box-shadow: 0 4px 12px rgba(23, 99, 255, .25); }
.topbar-right { display: flex; align-items: center; gap: 10px; flex: none; }
.search-mini {
  display: flex; align-items: center; background: var(--bg); border: 1px solid transparent; border-radius: 999px;
  padding: 3px 4px 3px 14px; transition: border-color .15s, background .15s;
}
.search-mini:focus-within { background: #fff; border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }
.search-mini input { border: 0; background: transparent; outline: none; width: 150px; font-size: 13px; color: var(--text); }
.search-mini button { border: 0; background: transparent; cursor: pointer; font-size: 14px; padding: 5px 8px; }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 5px;
  padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line);
  background: #fff; color: var(--text); font-size: 14px; font-weight: 600; cursor: pointer;
  transition: all .18s ease; white-space: nowrap; line-height: 1.2;
}
.btn:hover { border-color: #c8d4e4; background: #f8fafd; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(15, 35, 95, .07); }
.btn:active { transform: translateY(0); }
.btn-primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-color: transparent; color: #fff;
  box-shadow: 0 6px 16px rgba(23, 99, 255, .32);
}
.btn-primary:hover { background: linear-gradient(135deg, #2870ff, var(--brand-deep)); box-shadow: 0 8px 20px rgba(23, 99, 255, .4); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; color: var(--text-2); }
.btn-ghost:hover { background: var(--bg); border-color: transparent; box-shadow: none; transform: none; }
.btn-danger { color: var(--danger); border-color: #ffd2cf; background: #fff; }
.btn-danger:hover { background: #fff3f2; border-color: #ffb3ae; }
.btn-warn { background: linear-gradient(135deg, #ffa63d, #ff8f1f); border-color: transparent; color: #fff; box-shadow: 0 6px 16px rgba(255, 143, 31, .32); }
.btn-warn:hover { background: linear-gradient(135deg, #ffb35e, #ff8f1f); color: #fff; }
.btn-sm { padding: 7px 14px; font-size: 13px; }
.btn-xs { padding: 5px 11px; font-size: 12px; }
.btn-block { display: flex; width: 100%; }
.btn[disabled] { opacity: .55; cursor: not-allowed; box-shadow: none; transform: none; }

/* ---------- 页脚 ---------- */
.footer { background: #0f2340; color: #a8b6cc; margin-top: 48px; padding: 36px 0 30px; }
.footer-inner { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: flex-start; }
.footer strong { color: #fff; font-size: 16px; }
.footer .muted { color: #8c9cb6; max-width: 560px; margin-top: 6px; line-height: 1.8; }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; }
.footer-links a { color: #a8b6cc; }
.footer-links a:hover { color: #fff; }
.footer .tiny { margin-top: 18px; color: #6c7c96; border-top: 1px solid rgba(255, 255, 255, .08); padding-top: 16px; }

/* ---------- 底部标签栏（移动端） ---------- */
.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60;
  display: flex; background: rgba(255, 255, 255, .96);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-top: 1px solid rgba(231, 236, 244, .9);
  box-shadow: 0 -6px 20px rgba(15, 35, 95, .06);
  padding-bottom: env(safe-area-inset-bottom);
  height: calc(var(--tabbar-h) + env(safe-area-inset-bottom));
}
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11px; color: var(--text-3); gap: 3px; font-weight: 500; }
.tabbar a span { font-size: 20px; line-height: 1; transition: transform .15s; }
.tabbar a.on { color: var(--brand); font-weight: 700; }
.tabbar a.on span { transform: translateY(-2px); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 92px; transform: translateX(-50%) translateY(12px);
  background: rgba(15, 35, 64, .94); color: #fff; padding: 11px 20px; border-radius: 999px;
  font-size: 14px; z-index: 200; opacity: 0; pointer-events: none; transition: opacity .22s, transform .22s;
  max-width: 84vw; text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .25);
}
.toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ---------- 首页 Hero ---------- */
.hero {
  margin-top: 20px; padding: 30px 26px;
  border-radius: 20px;
  background: linear-gradient(115deg, #1557e6 0%, #1763ff 45%, #00a06c 100%);
  color: #fff; position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  box-shadow: 0 16px 36px rgba(23, 99, 255, .25);
}
.hero::before, .hero::after {
  content: ''; position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12);
}
.hero::before { width: 220px; height: 220px; right: -60px; top: -90px; }
.hero::after { width: 150px; height: 150px; right: 130px; bottom: -80px; }
.hero-copy { position: relative; z-index: 1; }
.hero-copy h1 { font-size: 27px; line-height: 1.3; color: #fff; letter-spacing: .02em; }
.hero-copy p { margin-top: 6px; font-size: 14px; opacity: .88; }
.seg { position: relative; z-index: 1; display: inline-flex; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: 4px; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.seg a { padding: 8px 20px; border-radius: 999px; font-size: 14px; color: rgba(255, 255, 255, .9); font-weight: 500; }
.seg a.on { background: #fff; color: var(--brand); font-weight: 700; box-shadow: 0 4px 12px rgba(0, 0, 0, .15); }

/* ---------- 筛选 ---------- */
.filters { margin: 18px 0 16px; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 10px; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: 5px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 15px; font-size: 13px; color: var(--text-2); font-weight: 500;
  transition: all .15s;
}
.chip:hover { border-color: #b9cbe4; color: var(--ink); }
.chip.on { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); border-color: transparent; color: #fff; font-weight: 700; box-shadow: 0 4px 12px rgba(23, 99, 255, .28); }
.adv { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 0 16px; }
.adv summary { cursor: pointer; padding: 13px 0; font-size: 14px; color: var(--text-2); font-weight: 500; }
.adv summary:hover { color: var(--brand); }
.adv-form { display: flex; flex-wrap: wrap; gap: 14px; padding: 6px 0 16px; align-items: flex-end; }
.adv-form label { display: flex; flex-direction: column; gap: 5px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.adv-form input, .adv-form select {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 9px 11px; font-size: 14px; width: 136px; background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.adv-form input:focus, .adv-form select:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(288px, 1fr)); gap: 16px; }
.card {
  background: var(--card); border-radius: var(--radius); overflow: hidden;
  border: 1px solid #edf1f7; box-shadow: var(--shadow);
  display: flex; flex-direction: column; transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card-thumb {
  position: relative; aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #eaf1fd, #e0f2ec); display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-thumb img { transform: scale(1.04); }
.ph-icon { font-size: 52px; opacity: .5; }
.card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.card-hd { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.card-hd h3 { font-size: 15.5px; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tag {
  display: inline-flex; align-items: center; gap: 3px;
  background: var(--bg); color: var(--text-2); border-radius: 6px; padding: 3px 8px; font-size: 12px; white-space: nowrap; font-weight: 500;
}
.tag-vip { background: linear-gradient(135deg, #fff0d2, #ffe1ae); color: #9a5b00; font-weight: 700; }
.tag-warn { background: var(--warn-soft); color: #b35c00; }
.tag-green { background: #e7f8ee; color: #177245; }
.tag-red { background: #ffedec; color: var(--danger); }
.card-ft { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-top: auto; }
.price { color: #ff5b2e; font-weight: 800; font-size: 19px; letter-spacing: -.01em; }
.price-unit { font-size: 12px; font-weight: 400; color: var(--text-3); margin-left: 2px; }
.card-sub { border-top: 1px dashed var(--line); padding-top: 9px; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 60px 22px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.empty.big { margin-top: 44px; }
.empty-icon { font-size: 52px; opacity: .5; margin-bottom: 12px; }
.empty h3 { font-size: 18px; margin-bottom: 8px; }
.empty p { margin-bottom: 20px; font-size: 14px; }
.empty-line { padding: 44px; text-align: center; color: var(--text-3); }

/* ---------- 分页 ---------- */
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; padding: 26px 0 8px; }

/* ---------- 搜索页 ---------- */
.searchbar { display: flex; gap: 10px; padding: 24px 0 12px; flex-wrap: wrap; }
.searchbar input {
  flex: 1; min-width: 200px; border: 1px solid var(--line); border-radius: 999px; padding: 12px 20px; font-size: 15px; background: #fff; color: var(--text); outline: none;
  transition: border-color .15s, box-shadow .15s;
}
.searchbar input:focus { border-color: var(--brand); box-shadow: 0 0 0 4px rgba(23, 99, 255, .12); }
.searchbar select { border: 1px solid var(--line); border-radius: 999px; padding: 12px 14px; font-size: 14px; background: #fff; color: var(--text); outline: none; }
.list-head { display: flex; align-items: baseline; justify-content: space-between; padding: 10px 0 14px; }
.list-head h2 { font-size: 18px; }

/* ---------- 面板 ---------- */
.panel {
  background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); margin-bottom: 16px;
  border: 1px solid #f0f3f8;
}
.panel h2 { font-size: 17px; margin-bottom: 14px; display: flex; align-items: center; gap: 8px; }
.panel h2::before { content: ''; width: 4px; height: 16px; border-radius: 2px; background: linear-gradient(180deg, var(--brand), var(--brand-2)); flex: none; }
.panel h3 { font-size: 14px; }
.page-title { font-size: 22px; padding: 24px 0 16px; }
.sub-title { font-size: 15px; margin: 20px 0 12px; padding-left: 10px; border-left: 4px solid var(--brand); color: var(--ink); }

/* ---------- 详情页 ---------- */
.detail-head { padding: 24px 0 16px; }
.detail-head h1 { font-size: 23px; line-height: 1.4; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 9px; color: var(--text-2); }
.detail-grid { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: start; }
.detail-main { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.gallery { background: #fff; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.gallery img { width: 100%; height: auto; }
.gallery.ph { display: flex; align-items: center; justify-content: center; min-height: 240px; background: linear-gradient(135deg, #eaf1fd, #e0f2ec); }
.gallery-ph { display: flex; align-items: center; justify-content: center; min-height: 260px; font-size: 72px; opacity: .4; }
.params { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 10px; }
.param {
  background: linear-gradient(180deg, #f7f9fd, #f3f6fb); border-radius: var(--radius-sm); padding: 11px 13px;
  display: flex; flex-direction: column; gap: 3px; border: 1px solid #edf1f7;
}
.param .muted { font-size: 12px; }
.param strong { font-size: 15px; color: var(--ink); }
.desc { font-size: 14.5px; color: var(--text-2); line-height: 1.85; white-space: pre-wrap; }
.detail-side { display: flex; flex-direction: column; gap: 16px; }
.price-big { color: #ff5b2e; font-size: 30px; font-weight: 800; line-height: 1.2; letter-spacing: -.01em; }
.side-title { font-size: 16px; margin: 18px 0 10px; padding-left: 10px; border-left: 4px solid var(--brand); color: var(--ink); }
.contact-row { display: flex; align-items: center; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.contact-row:last-of-type { border-bottom: 0; }
.contact-row .muted { flex: none; width: 64px; }
.contact-row strong { flex: 1; font-size: 15px; min-width: 0; word-break: break-all; color: var(--ink); }
.side-actions { display: flex; flex-direction: column; gap: 9px; margin-top: 16px; }
.notice { background: var(--brand-soft); color: #0d3f9e; border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; margin-top: 14px; line-height: 1.7; }
.notice.warn { background: var(--warn-soft); color: #8a4b00; }
.notice a { color: var(--brand); text-decoration: underline; font-weight: 600; }

/* ---------- 求租锁屏 ---------- */
.lock-wall { max-width: 540px; margin: 34px auto; }
.lock-card { background: #fff; border-radius: 20px; padding: 24px; box-shadow: var(--shadow-lg); }
.lock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.lock-title { font-size: 19px; margin-bottom: 12px; }
.lock-blur { position: relative; padding: 18px 0; margin: 14px 0; }
.blur-line { height: 13px; border-radius: 7px; background: linear-gradient(90deg, #e8edf5, #d9e2ee, #e8edf5); margin-bottom: 11px; filter: blur(1px); }
.blur-line.short { width: 58%; }
.blur-mask { text-align: center; font-size: 13px; color: var(--text-3); padding-top: 6px; }
.lock-bar { height: 7px; background: var(--bg); border-radius: 999px; overflow: hidden; margin-bottom: 16px; }
.lock-bar-in { height: 100%; background: linear-gradient(90deg, var(--brand), var(--brand-2)); transition: width .35s; border-radius: 999px; }
.link-center { display: block; text-align: center; margin-top: 18px; color: var(--brand); font-size: 14px; font-weight: 600; }

/* ---------- 会员中心 ---------- */
.vip-card { border-radius: 20px; padding: 22px; color: #fff; margin-bottom: 16px; position: relative; overflow: hidden; }
.vip-card.on { background: linear-gradient(135deg, #1c59d4 0%, #1763ff 50%, #00a06c 130%); box-shadow: 0 16px 36px rgba(23, 99, 255, .3); }
.vip-card.off { background: linear-gradient(135deg, #7b8799, #5d6a7e); box-shadow: var(--shadow); }
.vip-card::after { content: ''; position: absolute; width: 180px; height: 180px; border-radius: 50%; background: rgba(255, 255, 255, .1); right: -50px; top: -70px; }
.vip-hd { display: flex; align-items: center; justify-content: space-between; position: relative; z-index: 1; }
.vip-name { font-size: 19px; }
.vip-card .tiny { opacity: .9; margin-top: 4px; }
.vip-days { text-align: right; line-height: 1; }
.vip-days b { font-size: 38px; font-weight: 800; }
.vip-days span { font-size: 13px; opacity: .9; margin-left: 3px; }
.vip-bar { height: 7px; background: rgba(255, 255, 255, .28); border-radius: 999px; overflow: hidden; margin: 16px 0 12px; }
.vip-bar div { height: 100%; background: #ffd76a; border-radius: 999px; }
.vip-tip { opacity: .92; line-height: 1.75; position: relative; z-index: 1; }
.quota-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; }
.quota-row > div { background: linear-gradient(180deg, #f7f9fd, #f2f5fb); border: 1px solid #edf1f7; border-radius: var(--radius-sm); padding: 12px; text-align: center; }
.quota-row span { display: block; margin-bottom: 4px; }
.quota-row b { font-size: 18px; color: var(--ink); }
.switch-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px dashed var(--line); }
.switch-row:first-of-type { border-top: 0; padding-top: 4px; }
.switch-row p { margin-top: 3px; }
.switch-row strong { color: var(--ink); font-size: 14.5px; }
.switch { position: relative; display: inline-block; width: 48px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #ccd6e3; border-radius: 999px; transition: background .2s; cursor: pointer; }
.switch span::after { content: ''; position: absolute; left: 3px; top: 3px; width: 22px; height: 22px; background: #fff; border-radius: 50%; transition: transform .2s; box-shadow: 0 2px 4px rgba(0, 0, 0, .18); }
.switch input:checked + span { background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.switch input:checked + span::after { transform: translateX(20px); }
#autoTime { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 14px; background: #fff; color: var(--text); outline: none; }
.cmp { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.cmp th, .cmp td { text-align: left; padding: 11px 9px; border-bottom: 1px solid var(--line); }
.cmp th { color: var(--text-2); font-weight: 600; background: #f8fafd; border-radius: 4px; }
.cmp td:first-child { color: var(--text-2); }
.cmp tbody tr:hover { background: #fafcfe; }
.vip-cell { color: var(--brand); font-weight: 700; }
.invite-code { display: flex; align-items: center; justify-content: space-between; background: linear-gradient(180deg, #f7f9fd, #f2f5fb); border: 1px dashed #c8d4e4; border-radius: var(--radius-md); padding: 14px 16px; }
.invite-code span { display: block; }
.invite-code strong { font-size: 24px; letter-spacing: 4px; font-family: ui-monospace, Menlo, Consolas, monospace; color: var(--brand); }
.invite-list { margin-top: 14px; display: flex; flex-direction: column; gap: 9px; }
.invite-item { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: #f8fafd; border: 1px solid #edf1f7; border-radius: var(--radius-sm); padding: 11px 13px; }
.invite-item strong { color: var(--ink); }
.log-list { display: flex; flex-direction: column; }
.log-list li { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.log-list li:last-child { border-bottom: 0; }
.log-list strong { color: var(--ink); }
.ops { display: flex; flex-wrap: wrap; gap: 9px; }

/* ---------- 表单 ---------- */
.form-grid { display: grid; grid-template-columns: 1fr; gap: 14px; }
.field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; color: var(--text-2); font-weight: 500; }
.field.full { grid-column: 1 / -1; }
.field i { color: var(--danger); font-style: normal; }
.field input, .field select, .field textarea {
  border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px;
  font-size: 15px; background: #fff; color: var(--text); outline: none; width: 100%; font-family: inherit;
  transition: border-color .15s, box-shadow .15s;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }
.field input:disabled { background: #f2f5fa; color: var(--text-3); }
.field textarea { resize: vertical; }
.field.gated { position: relative; }
.field.gated .unlock-btn { align-self: flex-start; }
.check { display: flex; align-items: flex-start; gap: 9px; font-size: 13px; color: var(--text-2); margin: 18px 0; line-height: 1.7; }
.check input { margin-top: 3px; flex: none; width: 16px; height: 16px; accent-color: var(--brand); }
.step-actions { display: flex; gap: 12px; justify-content: flex-end; margin-top: 22px; }

/* ---------- 发布步骤 ---------- */
.steps { display: flex; gap: 10px; margin-bottom: 16px; }
.steps li {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 7px;
  background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 10px 8px;
  font-size: 13px; color: var(--text-3); font-weight: 600; transition: all .2s;
}
.steps li span {
  width: 22px; height: 22px; border-radius: 50%; background: var(--bg); color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; font-weight: 700;
}
.steps li.on { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }
.steps li.on span { background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; }
.steps li.done { color: var(--ok); border-color: #bfe6cd; }
.steps li.done span { background: var(--ok); color: #fff; }
.step-panel[hidden] { display: none; }
.preview { display: grid; grid-template-columns: repeat(auto-fill, minmax(96px, 1fr)); gap: 10px; margin-top: 14px; }
.preview img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--line); }
#images { border: 1.5px dashed #c3cfe0; border-radius: var(--radius-md); padding: 18px; width: 100%; background: #fafcfe; font-size: 13px; cursor: pointer; transition: border-color .15s; }
#images:hover { border-color: var(--brand); }

/* ---------- 我的 ---------- */
.user-card { display: flex; align-items: center; gap: 16px; background: #fff; border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); border: 1px solid #f0f3f8; }
.avatar {
  width: 58px; height: 58px; border-radius: 50%;
  background: linear-gradient(135deg, #4c9aff, var(--brand) 60%, var(--brand-2));
  color: #fff; display: flex; align-items: center; justify-content: center; font-size: 24px; font-weight: 700; flex: none;
  box-shadow: 0 6px 14px rgba(23, 99, 255, .28);
}
.user-main { flex: 1; min-width: 0; }
.user-main h1 { font-size: 19px; }
.user-main p { margin-top: 3px; }
.vip-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  border-radius: var(--radius); padding: 16px 18px; margin-top: 16px; color: #fff; transition: transform .15s;
}
.vip-banner:hover { transform: translateY(-1px); }
.vip-banner.on { background: linear-gradient(135deg, #1c59d4, #1763ff 55%, #00a06c 130%); box-shadow: 0 10px 26px rgba(23, 99, 255, .3); }
.vip-banner.off { background: linear-gradient(135deg, #7b8799, #5d6a7e); box-shadow: var(--shadow); }
.vip-banner strong { font-size: 16px; }
.vip-banner .tiny { opacity: .92; margin-top: 3px; }
.vip-go { font-size: 13px; flex: none; font-weight: 600; }
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin: 16px 0; }
.stat-row a, .stat-row div {
  background: #fff; border-radius: var(--radius-sm); padding: 14px 4px; text-align: center;
  box-shadow: var(--shadow); border: 1px solid #f0f3f8; transition: transform .15s;
}
.stat-row a:hover { transform: translateY(-2px); }
.stat-row b { display: block; font-size: 21px; color: var(--brand); font-weight: 800; }
.stat-row span { font-size: 12px; color: var(--text-3); margin-top: 2px; display: block; }
.link-list { display: flex; flex-direction: column; }
.link-list li a { display: flex; align-items: center; justify-content: space-between; padding: 14px 2px; border-bottom: 1px dashed var(--line); font-size: 15px; font-weight: 500; color: var(--ink); }
.link-list li:last-child a { border-bottom: 0; }
.link-list li a:hover { color: var(--brand); }
.link-list li a span { font-size: 13px; color: var(--text-3); font-weight: 400; }

/* ---------- 管理列表 ---------- */
.manage-list { display: flex; flex-direction: column; gap: 14px; }
.manage-item { display: flex; gap: 14px; background: #fff; border-radius: var(--radius); padding: 14px; box-shadow: var(--shadow); border: 1px solid #f0f3f8; }
.manage-thumb {
  width: 118px; flex: none; border-radius: var(--radius-sm); overflow: hidden;
  background: linear-gradient(135deg, #eaf1fd, #e0f2ec); display: flex; align-items: center; justify-content: center; aspect-ratio: 4 / 3;
}
.manage-thumb img { width: 100%; height: 100%; object-fit: cover; }
.manage-thumb span { font-size: 32px; opacity: .5; }
.manage-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 7px; }
.manage-body h3 { font-size: 15px; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.reject { background: #ffedec; color: #b0201f; border-radius: var(--radius-sm); padding: 7px 11px; font-size: 12.5px; }
.manage-body .ops { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 3px; }
.manage-body .ops form { display: inline-flex; }

/* ---------- 发布入口 ---------- */
.pick-grid { display: grid; grid-template-columns: 1fr; gap: 16px; margin-bottom: 16px; }
.pick { background: #fff; border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); display: block; border: 1px solid #f0f3f8; transition: all .2s; }
.pick:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: #d5e1f5; }
.pick-icon {
  width: 52px; height: 52px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; font-size: 26px;
  background: linear-gradient(135deg, var(--brand-soft), #e0f2ec);
}
.pick h3 { font-size: 17px; margin: 12px 0 5px; }
.pick .card-tags { margin-top: 12px; }
.quota-line { margin-top: 12px; font-size: 13px; color: var(--text-2); display: flex; align-items: center; gap: 8px; }
.quota-line b { color: var(--brand); font-size: 15px; }
.rules { counter-reset: r; padding-left: 0; }
.rules li { counter-increment: r; position: relative; padding-left: 30px; margin-bottom: 10px; font-size: 13.5px; color: var(--text-2); line-height: 1.75; }
.rules li::before {
  content: counter(r); position: absolute; left: 0; top: 2px;
  width: 21px; height: 21px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff;
  font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center;
}

/* ---------- 登录 ---------- */
.auth-wrap { display: flex; justify-content: center; padding: 34px 16px; }
.auth-card { width: 100%; max-width: 430px; }
.auth-card .page-title {
  padding-top: 0; text-align: center; font-size: 24px;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.auth-card > .muted { text-align: center; display: block; margin-bottom: 18px; }
.alert { background: #ffedec; color: #b0201f; border-radius: var(--radius-sm); padding: 11px 13px; font-size: 13px; margin-bottom: 16px; }
.tabs { display: flex; gap: 8px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tab { padding: 11px 18px; font-size: 15px; color: var(--text-2); border-bottom: 2px solid transparent; background: transparent; border-top: 0; border-left: 0; border-right: 0; cursor: pointer; font-weight: 500; }
.tab:hover { color: var(--brand); }
.tab.on { color: var(--brand); border-bottom-color: var(--brand); font-weight: 700; }
.auth-form { display: flex; flex-direction: column; gap: 15px; }
.auth-form[hidden] { display: none; }

/* ---------- 广告弹层 ---------- */
.modal {
  position: fixed; inset: 0; z-index: 150; display: flex; align-items: center; justify-content: center;
  background: rgba(15, 35, 64, .55); padding: 20px; -webkit-backdrop-filter: blur(4px); backdrop-filter: blur(4px);
}
.modal[hidden] { display: none; }
.modal-card {
  background: #fff; border-radius: 20px; width: 100%; max-width: 370px; padding: 24px; text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .3); animation: pop .22s ease;
}
@keyframes pop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal-title { font-size: 18px; margin-bottom: 8px; color: var(--ink); }
.modal-body { font-size: 13.5px; color: var(--text-2); line-height: 1.75; margin-bottom: 18px; }
.ad-screen {
  height: 158px; border-radius: var(--radius-md); margin: 16px 0 14px;
  background: linear-gradient(135deg, #16233f, #2b3f66); color: #fff;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
}
.ad-screen .ad-count { font-size: 38px; font-weight: 800; }
.ad-screen .ad-tip { font-size: 12px; opacity: .85; }
.modal-actions { display: flex; gap: 10px; }
.modal-actions .btn { flex: 1; }
.modal-field { width: 100%; margin-top: 14px; }
.modal-field select, .modal-field input {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 10px 12px; font-size: 14px; background: #fff; color: var(--text); outline: none;
}
.modal-field select:focus, .modal-field input:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(23, 99, 255, .12); }

/* ---------- 桌面端增强 ---------- */
@media (min-width: 768px) {
  body { padding-bottom: 0; font-size: 15.5px; }
  .tabbar { display: none; }
  .toast { bottom: 44px; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .field.full { grid-column: 1 / -1; }
  .pick-grid { grid-template-columns: repeat(2, 1fr); }
  .grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); }
}

@media (min-width: 1024px) {
  .detail-grid { grid-template-columns: minmax(0, 1fr) 330px; }
  .detail-side .sticky { position: sticky; top: 78px; }
  .hero-copy h1 { font-size: 32px; }
  .hero { padding: 34px 34px; }
}

@media (max-width: 767px) {
  .nav { display: none; }
  .hide-sm { display: none !important; }
  .topbar-inner { justify-content: space-between; height: 56px; }
  .search-mini { display: none; }
  .grid { grid-template-columns: repeat(2, 1fr); gap: 11px; }
  .card-body { padding: 11px 12px 13px; gap: 7px; }
  .card-hd h3 { font-size: 14px; }
  .card-ft { flex-wrap: wrap; gap: 2px 8px; }
  .price { font-size: 17px; }
  .card-tags .tag { font-size: 11px; padding: 2px 6px; }
  .manage-thumb { width: 92px; }
  .stat-row { gap: 8px; }
  .stat-row b { font-size: 18px; }
  .hero { margin-top: 14px; padding: 22px 18px; flex-direction: column; align-items: stretch; gap: 16px; }
  .hero-copy h1 { font-size: 22px; }
  .seg { width: 100%; }
  .seg a { flex: 1; text-align: center; }
  .steps { gap: 6px; }
  .steps li { font-size: 12px; padding: 8px 4px; }
  .steps li span { width: 19px; height: 19px; font-size: 11px; }
  .quota-row { grid-template-columns: repeat(2, 1fr); }
  .panel { padding: 16px; }
  .page-title { font-size: 20px; padding: 20px 0 14px; }
  .params { grid-template-columns: repeat(2, 1fr); }
  .detail-head h1 { font-size: 19px; }
  .price-big { font-size: 26px; }
}

@media (max-width: 374px) {
  .grid { grid-template-columns: 1fr; }
}
