/* =========================================================
   三角洲 账号出租平台 - 粉色主题 (移动端优先)
   参考「玩艺游」UI 风格
   ========================================================= */
:root {
  --pink: #ff4d7e;
  --pink-light: #fff0f4;
  --pink-deep: #e63b6b;
  --orange: #ff8a3d;
  --text: #333;
  --text-sub: #888;
  --bg: #f7f7f9;
  --card: #fff;
  --line: #f0f0f0;
  --radius: 14px;
  --shadow: 0 2px 10px rgba(255, 77, 126, 0.06);
}
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html { font-size: 14px; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Helvetica Neue", "Microsoft YaHei", sans-serif;
  background: var(--bg); color: var(--text); max-width: 480px; margin: 0 auto;
  padding-bottom: 74px; /* 给底部导航留位 */
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
img { max-width: 100%; display: block; }

/* ---------- 顶部 ---------- */
.topbar { position: sticky; top: 0; z-index: 20; background: #fff; padding: 12px 14px 8px; }
.topbar-row { display: flex; align-items: center; gap: 10px; }
.brand { font-size: 18px; font-weight: 700; color: var(--pink); white-space: nowrap; }
.search {
  flex: 1; display: flex; align-items: center; background: var(--bg); border-radius: 999px;
  padding: 8px 14px; color: var(--text-sub); font-size: 13px;
}
.search::before { content: "🔍"; margin-right: 6px; }
.topbar-right { display: flex; gap: 10px; color: var(--text-sub); font-size: 13px; }

/* ---------- 防骗提醒 ---------- */
.notice {
  margin: 0 12px 10px; border-radius: var(--radius);
  background: linear-gradient(135deg, #fff0f4, #ffe3ec);
  border: 1px solid #ffd0dc; padding: 12px 14px; color: var(--pink-deep);
}
.notice-title { font-weight: 700; margin-bottom: 4px; }
.notice p { font-size: 12px; line-height: 1.6; color: #c23a60; }

/* ---------- 功能宫格 ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin: 0 12px 12px; background: var(--card); border-radius: var(--radius); padding: 14px 6px; box-shadow: var(--shadow); }
.grid-item { text-align: center; padding: 8px 2px; }
.grid-item .icon { width: 42px; height: 42px; margin: 0 auto 6px; border-radius: 14px; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.grid-item .t1 { font-size: 13px; font-weight: 600; }
.grid-item .t2 { font-size: 11px; color: var(--text-sub); margin-top: 2px; }
.icon-pink { background: var(--pink-light); color: var(--pink); }
.icon-orange { background: #fff3e8; color: var(--orange); }
.icon-purple { background: #f3eeff; color: #8b5cf6; }
.icon-blue { background: #e8f4ff; color: #3b82f6; }

/* ---------- 横向滚动分类 ---------- */
.hscroll { display: flex; gap: 8px; overflow-x: auto; padding: 0 12px 12px; scrollbar-width: none; }
.hscroll::-webkit-scrollbar { display: none; }
.chip {
  flex: 0 0 auto; padding: 7px 16px; border-radius: 999px; background: var(--card);
  color: var(--text-sub); font-size: 13px; box-shadow: var(--shadow);
}
.chip.active { background: var(--pink); color: #fff; }

/* ---------- 筛选条 ---------- */
.filters { display: flex; gap: 14px; padding: 0 14px 12px; color: var(--text); font-size: 13px; align-items: center; }
.filters .f { display: flex; align-items: center; gap: 3px; }
.filters .f.on { color: var(--pink); font-weight: 600; }

/* ---------- 账号卡片 ---------- */
.acc-card { background: var(--card); border-radius: var(--radius); margin: 0 12px 12px; box-shadow: var(--shadow); padding: 12px; }
.acc-head { display: flex; justify-content: space-between; align-items: center; font-size: 12px; color: var(--text-sub); margin-bottom: 8px; }
.acc-no { color: var(--pink); font-weight: 600; }
.acc-tags { display: flex; gap: 6px; flex-wrap: wrap; font-size: 12px; }
.acc-tags .tag { background: var(--bg); padding: 3px 8px; border-radius: 6px; color: var(--text); }
.acc-tags .tag.b { color: var(--pink); background: var(--pink-light); }
.acc-info { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--text-sub); margin-top: 8px; }
.acc-bottom { display: flex; justify-content: space-between; align-items: flex-end; margin-top: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.price { font-size: 18px; font-weight: 700; color: var(--pink); }
.price small { font-size: 12px; }
.deposit { font-size: 12px; color: var(--text-sub); }
.btn-rent { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); color: #fff; padding: 8px 18px; border-radius: 999px; font-size: 13px; }
.region-line { font-size: 11px; color: var(--text-sub); }

/* ---------- 悬浮按钮 ---------- */
.float { position: fixed; right: 12px; bottom: 96px; z-index: 30; display: flex; flex-direction: column; gap: 8px; }
.float .fb { width: 52px; background: var(--card); border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,.1); text-align: center; padding: 8px 0; font-size: 10px; color: var(--text-sub); }
.float .fb b { display: block; font-size: 18px; }

/* ---------- 底部导航 ---------- */
.bottom-nav {
  position: fixed; left: 0; right: 0; bottom: 0; max-width: 480px; margin: 0 auto;
  background: #fff; display: flex; justify-content: space-around; padding: 8px 0 calc(8px + env(safe-area-inset-bottom));
  box-shadow: 0 -2px 12px rgba(0,0,0,.05); z-index: 40;
}
.bottom-nav a { text-align: center; font-size: 11px; color: var(--text-sub); }
.bottom-nav a .i { font-size: 20px; display: block; margin-bottom: 2px; }
.bottom-nav a.active { color: var(--pink); }

/* ---------- 页面容器 ---------- */
.page-head { display: flex; align-items: center; justify-content: center; position: relative; padding: 14px; background: #fff; font-weight: 600; }
.page-head .back { position: absolute; left: 14px; font-size: 18px; }
.card { background: var(--card); border-radius: var(--radius); margin: 12px; padding: 14px; box-shadow: var(--shadow); }
.card-title { font-weight: 600; margin-bottom: 10px; display: flex; justify-content: space-between; align-items: center; }
.card-title .more { font-size: 12px; color: var(--text-sub); font-weight: 400; }

/* ---------- 表单 ---------- */
.form-group { margin-bottom: 16px; }
.form-label { font-size: 13px; color: var(--text); margin-bottom: 8px; }
.form-label .req { color: var(--pink); }
.form-label .hint { color: var(--text-sub); font-size: 11px; }
.input {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14px; background: #fafafa;
}
.input:focus { outline: none; border-color: var(--pink); background: #fff; }
.select-row { display: flex; gap: 8px; flex-wrap: wrap; }
.opt {
  flex: 0 0 auto; padding: 8px 16px; border-radius: 999px; background: var(--bg);
  font-size: 13px; color: var(--text);
}
.opt.active { background: var(--pink); color: #fff; }
.btn-block {
  width: 100%; padding: 12px; border-radius: 999px; background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff; font-size: 15px; font-weight: 600;
}
.btn-block.gray { background: #eee; color: var(--text-sub); }
.btn-lg { padding: 14px; font-size: 16px; }

/* ---------- 双按钮 ---------- */
.two-btn { display: flex; gap: 10px; margin: 0 12px 12px; }
.two-btn > div { flex: 1; text-align: center; padding: 16px; border-radius: var(--radius); color: #fff; }
.two-btn .rent { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.two-btn .post { background: linear-gradient(135deg, var(--orange), #ff6b2c); }
.two-btn b { font-size: 16px; display: block; margin-bottom: 4px; }
.two-btn span { font-size: 12px; opacity: .9; }

/* ---------- 列表项 ---------- */
.list-item { display: flex; align-items: center; gap: 12px; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.list-item:last-child { border-bottom: none; }
.list-item .ic { width: 34px; height: 34px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 auto; }
.list-item .ic.p { background: var(--pink-light); }
.list-item .ic.o { background: #fff3e8; }
.list-item .mid { flex: 1; }
.list-item .mid b { display: block; font-size: 14px; font-weight: 500; }
.list-item .mid span { font-size: 12px; color: var(--text-sub); }
.list-item .right { color: var(--text-sub); font-size: 13px; }
.list-item .right.on { color: var(--pink); }

/* ---------- 状态标签 ---------- */
.st { font-size: 11px; padding: 2px 8px; border-radius: 6px; }
.st-0 { background: #fff3e8; color: #e67e22; }
.st-1 { background: #e8f7ee; color: #2ecc71; }
.st-2 { background: var(--pink-light); color: var(--pink); }
.st-3 { background: #eef2ff; color: #4f6ef7; }
.st-4 { background: #f1f1f1; color: var(--text-sub); }

/* ---------- 登录/注册页 ---------- */
.auth-wrap { padding: 40px 24px; }
.auth-title { font-size: 24px; font-weight: 700; margin-bottom: 6px; }
.auth-sub { color: var(--text-sub); margin-bottom: 26px; font-size: 13px; }
.auth-foot { text-align: center; margin-top: 18px; font-size: 13px; color: var(--text-sub); }
.auth-foot a { color: var(--pink); font-weight: 600; }

/* ---------- 公告/空状态 ---------- */
.empty { text-align: center; color: var(--text-sub); padding: 40px 0; font-size: 13px; }
.msg-box { background: var(--pink-light); color: var(--pink-deep); border-radius: 10px; padding: 10px 12px; font-size: 12px; margin-bottom: 16px; }
.hidden { display: none; }

/* 下单金额条 */
.amount-bar { background: var(--pink-light); border-radius: var(--radius); padding: 14px; margin-bottom: 12px; display: flex; justify-content: space-between; align-items: center; }
.amount-bar b { font-size: 22px; color: var(--pink); }
.pay-types { display: flex; gap: 10px; }
.pay-types .pt { flex: 1; text-align: center; padding: 14px; border: 1px solid var(--line); border-radius: 12px; font-size: 13px; }
.pay-types .pt.active { border-color: var(--pink); color: var(--pink); background: var(--pink-light); }

/* ================= 新版式(对齐截图) ================= */

/* 功能宫格图标配色扩展 */
.icon-red{background:#ffe3e8;color:#ff4d7e}
.icon-green{background:#e5f7ed;color:#27ae60}
.icon-teal{background:#e4f6f6;color:#16a085}
.icon-indigo{background:#eef2ff;color:#4f6ef7}
.icon-gold{background:#fff6e0;color:#f39c12}
.icon-gray{background:#f1f1f4;color:#7f8c8d}

/* 账号卡片：皮肤名行 */
.acc-skin{display:flex;align-items:center;gap:6px;margin-top:6px;font-size:12px;color:var(--text-sub)}
.acc-skin .skin{color:#fff;background:linear-gradient(135deg,var(--pink),var(--orange));padding:2px 10px;border-radius:999px;font-size:11px}
.acc-badges{display:flex;gap:6px;flex-wrap:wrap;font-size:12px;margin-top:6px}
.acc-badges .bd{background:var(--bg);padding:3px 9px;border-radius:6px}
.acc-badges .bd.hi{background:var(--pink-light);color:var(--pink)}

/* 个人中心模块四宫格 */
.mod4{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;margin:12px;background:#fff;border-radius:var(--radius);padding:16px 6px;box-shadow:var(--shadow)}
.mod4 .m{text-align:center}
.mod4 .m .ic{font-size:22px;margin-bottom:6px}
.mod4 .m .t1{font-size:13px;font-weight:600}
.mod4 .m .t2{font-size:11px;color:var(--text-sub);margin-top:2px}

/* 订单四状态宫格 */
.order-st{display:grid;grid-template-columns:repeat(4,1fr);gap:6px;padding:6px 0}
.order-st .os{text-align:center;font-size:12px;color:var(--text-sub)}
.order-st .os .n{font-size:20px;font-weight:700;color:var(--pink);display:block}

/* 推广收益 */
.promo-stat{display:grid;grid-template-columns:repeat(4,1fr);padding:12px 0;text-align:center}
.promo-stat .ps .v{font-size:16px;font-weight:700;color:var(--pink)}
.promo-stat .ps .k{font-size:11px;color:var(--text-sub);margin-top:2px}
.copy-link{display:flex;align-items:center;justify-content:space-between;background:var(--pink-light);border:1px dashed var(--pink);border-radius:10px;padding:12px;margin-top:10px;font-size:13px;color:var(--pink)}

/* 订单类型入口卡 */
.order-entry{background:#fff;border-radius:var(--radius);margin:12px;padding:18px;box-shadow:var(--shadow);display:flex;align-items:center;gap:14px}
.order-entry .oe-ic{width:52px;height:52px;border-radius:14px;display:flex;align-items:center;justify-content:center;font-size:24px}
.order-entry b{font-size:16px;display:block}
.order-entry span{font-size:12px;color:var(--text-sub);display:block;line-height:1.6;margin-top:4px}
.order-entry .go{margin-left:auto;color:var(--text-sub);font-size:18px}

/* 悬浮按钮双行 */
.float .fb .s{font-size:10px;color:var(--text-sub);display:block;line-height:1.2}

/* 道具行：数量步进 + 无/送/不租 */
.item-bar{display:flex;align-items:center;gap:8px}
.stepper{display:flex;align-items:center;gap:6px;border:1px solid var(--line);border-radius:999px;padding:3px 6px}
.stepper button{width:22px;height:22px;border-radius:50%;background:var(--bg);font-size:14px;line-height:1}
.stepper span{min-width:18px;text-align:center;font-size:13px}
.mode{display:flex;gap:6px}
.mode .md{padding:4px 10px;border-radius:999px;background:var(--bg);font-size:12px;color:var(--text-sub)}
.mode .md.on{background:var(--pink);color:#fff}

/* 步骤页脚 */
.step-foot{display:flex;justify-content:center;gap:14px;padding:12px;color:var(--text-sub);font-size:12px}
.step-foot .dot{width:8px;height:8px;border-radius:50%;background:#ddd}
.step-foot .dot.on{background:var(--pink)}

/* 须知弹层 */
.modal-mask{position:fixed;inset:0;background:rgba(0,0,0,.5);z-index:60;display:none;align-items:center;justify-content:center;padding:24px}
.modal-mask.show{display:flex}
.modal-box{background:#fff;border-radius:14px;padding:20px;max-width:420px;width:100%;max-height:70vh;overflow:auto}
.modal-box h3{font-size:15px;margin-bottom:12px}
.modal-box p{font-size:13px;color:var(--text);line-height:1.7;margin-bottom:10px}
.modal-box .close{text-align:center;margin-top:14px}

/* 提示条 */
.tip{font-size:11px;color:var(--text-sub);margin-top:4px;line-height:1.5}
.tip.warn{color:#c23a60}

/* 出号须知卡 */
.know{background:var(--pink-light);border-radius:10px;padding:10px 12px;margin-bottom:12px;font-size:12px;color:#c23a60;line-height:1.6}

/* ---------- 个人中心：我的服务 / 客服 两列宫格 ---------- */
.grid2{display:grid;grid-template-columns:repeat(2,1fr);gap:16px 12px;padding:6px 2px}
.grid2 .g2{display:flex;flex-direction:column;align-items:flex-start;gap:7px}
.grid2 .g2 .gi{width:40px;height:40px;border-radius:12px;display:flex;align-items:center;justify-content:center;font-size:20px;flex:0 0 auto}
.grid2 .g2 b{font-size:14px;font-weight:600;line-height:1.1}
.grid2 .g2 span{font-size:11px;color:var(--text-sub)}
