/* ==========================================================================
   叛逆到死 · 交友墙 —— 苹果风格设计系统
   设计语言：大留白 / 系统字体 / 胶囊按钮 / 毛玻璃 / 柔和动效
   ========================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
  /* 色板 */
  --bg: #f5f5f7;
  --bg-deep: #e8e8ed;
  --card: #ffffff;
  --card-2: #fafafc;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --border: #d2d2d7;
  --border-light: #e5e5ea;
  --accent: #0071e3;          /* 苹果蓝 */
  --accent-hover: #0077ed;
  --accent-press: #006edb;
  --accent-soft: #e8f2fd;
  --success: #34c759;
  --success-dark: #248a3d;
  --warning: #ff9f0a;
  --warning-dark: #d97e00;
  --danger: #ff3b30;
  --danger-dark: #d70015;
  --purple: #af52de;
  --gold: #b45309;

  /* 形状 */
  --radius: 18px;
  --radius-sm: 12px;
  --radius-lg: 26px;
  --radius-pill: 980px;

  /* 阴影 */
  --shadow: 0 2px 14px rgba(0, 0, 0, .05);
  --shadow-hover: 0 10px 32px rgba(0, 0, 0, .10);
  --shadow-modal: 0 24px 80px rgba(0, 0, 0, .18);

  /* 字体 */
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display",
          "Helvetica Neue", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;

  /* 动效 */
  --ease: cubic-bezier(.4, 0, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --dur: .28s;

  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --tabbar-h: 64px;
}

/* ---------- 基础 ---------- */
* { margin: 0; padding: 0; box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  background: linear-gradient(180deg, #f8faff 0%, #f5f5f7 45%, #f1f3fa 100%);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  padding-bottom: calc(var(--tabbar-h, 64px) + var(--safe-bottom) + 30px);
  min-height: 100vh;
}
/* 背景氛围光晕 */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(640px 320px at 88% -8%, rgba(99, 102, 241, .10), transparent 62%),
    radial-gradient(520px 280px at -8% 12%, rgba(139, 92, 246, .08), transparent 60%),
    radial-gradient(460px 300px at 50% 110%, rgba(52, 199, 89, .05), transparent 65%);
}

img { display: block; max-width: 100%; }
button { font-family: inherit; outline: none; }
button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
input, textarea, select { font-family: inherit; color: var(--text); }

/* 滚动条（桌面端） */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-thumb { background: rgba(0,0,0,.18); border-radius: 4px; }
::-webkit-scrollbar-track { background: transparent; }

/* ---------- 页面容器与切换动效 ---------- */
.page {
  display: none;
  max-width: 430px;
  margin: 0 auto;
  padding: 0 0 1.2rem;
  animation: pageIn .38s var(--ease) both;
}
.page.active { display: block; }

@keyframes pageIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* 滚动淡入（IntersectionObserver 添加 .in） */
.animate-in { opacity: 0; transform: translateY(22px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.animate-in.in { opacity: 1; transform: translateY(0); }
/* PC 端（鼠标设备）：去掉位移，避免页面/卡片整体移动显得"倾斜" */
@media (hover: hover) and (pointer: fine) {
  .animate-in { opacity: 0; transform: none; transition: opacity .5s var(--ease); }
  .animate-in.in { opacity: 1; }
}
@media (prefers-reduced-motion: reduce) {
  .animate-in { opacity: 1; transform: none; transition: none; }
  .page { animation: none; }
}

/* ---------- 顶部导航（毛玻璃） ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  background: rgba(245, 245, 247, .78);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.topbar-inner {
  max-width: 430px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: .6rem;
  padding: .55rem 1rem;
}
.topbar-logo { font-size: 1.06rem; font-weight: 700; letter-spacing: -.01em; color: var(--text); display: flex; align-items: center; gap: .45rem; white-space: nowrap; }
.topbar-logo .dot { width: 9px; height: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--accent), var(--purple)); display: inline-block; }
.topbar-logo small { font-size: .7rem; font-weight: 500; color: var(--text-3); }

/* ---------- 主页 Hero（苹果式大标题） ---------- */
.hero {
  text-align: center;
  padding: 2.6rem 1.5rem 1.4rem;
  background:
    radial-gradient(120% 90% at 50% -10%, rgba(0, 113, 227, .10), transparent 55%),
    radial-gradient(100% 80% at 85% 0%, rgba(175, 82, 222, .08), transparent 50%);
}
.hero h1 {
  font-size: clamp(2.1rem, 7vw, 2.9rem);
  font-weight: 700;
  letter-spacing: -.02em;
  line-height: 1.12;
  color: var(--text);
}
.hero p { margin-top: .7rem; font-size: 1.02rem; color: var(--text-2); letter-spacing: -.01em; }

/* ---------- 搜索框 ---------- */
.search-bar {
  display: flex;
  align-items: center;
  gap: .5rem;
  margin: 1.1rem 1rem .4rem;
  background: rgba(255, 255, 255, .78);
  backdrop-filter: blur(14px) saturate(1.5);
  -webkit-backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid rgba(255, 255, 255, .7);
  border-radius: var(--radius-pill);
  padding: .15rem .3rem .15rem .95rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, .06), inset 0 .5px 0 rgba(255, 255, 255, .8);
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease);
}
.search-bar:focus-within { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(0, 113, 227, .12); }
.search-bar .s-icon { font-size: 1rem; opacity: .6; }
.search-bar input { flex: 1; min-width: 0; border: none; outline: none; background: none; font-size: .98rem; padding: .68rem 0; }
.search-bar button {
  border: none; background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff;
  font-size: .86rem; font-weight: 500;
  padding: .55rem 1.15rem; border-radius: var(--radius-pill);
  cursor: pointer; transition: background .2s var(--ease), transform .15s var(--ease);
  box-shadow: 0 4px 14px rgba(59, 130, 246, .28);
}
.search-bar button:active { transform: scale(.95); filter: brightness(.95); }

/* ---------- 板块 Tab（大胶囊） ---------- */
.board-nav {
  display: flex;
  gap: .5rem;
  padding: .7rem 1rem .2rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-x;
  scrollbar-width: none;
}
.board-nav::-webkit-scrollbar { display: none; }
.board-tab {
  flex-shrink: 0;
  white-space: nowrap;
  border: 1px solid var(--border-light);
  background: var(--card);
  color: var(--text-2);
  font-size: .92rem;
  font-weight: 500;
  padding: .5rem 1.15rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: all .25s var(--ease);
}
.board-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 4px 14px rgba(99, 102, 241, .32);
  font-weight: 600;
}
.board-tab:active { transform: scale(.95); }

/* ---------- 通知页分类 Tab ---------- */
.notify-tabs { display: flex; gap: .5rem; padding: .7rem 1rem .2rem; }
.notify-tab {
  flex: 1; text-align: center;
  border: 1px solid var(--border-light);
  background: var(--card);
  color: var(--text-2);
  font-size: .92rem; font-weight: 500;
  padding: .5rem 0;
  border-radius: var(--radius-pill);
  cursor: pointer;
}
.notify-tab.active {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff; border-color: transparent;
  font-weight: 600;
}
/* ---------- QQ 快捷登录 ---------- */
.qq-login-divider { display: flex; align-items: center; gap: .6rem; color: #bbb; font-size: .78rem; margin: .9rem 0 .6rem; }
.qq-login-divider::before, .qq-login-divider::after { content: ''; flex: 1; height: 1px; background: #eee; }
.btn-qq { background: #12b7f5; color: #fff; border: none; font-weight: 600; }
.btn-qq:active { opacity: .85; }

.sub-nav { display: flex; gap: .5rem; padding: .5rem 1rem .1rem; overflow-x: auto; scrollbar-width: none; }
.sub-nav::-webkit-scrollbar { display: none; }
.sub-tab {
  flex-shrink: 0;
  border: none; background: none;
  font-size: .86rem; color: var(--text-3);
  padding: .35rem .75rem; border-radius: var(--radius-pill);
  cursor: pointer; position: relative; transition: color .2s var(--ease);
}
.sub-tab.active { color: var(--accent); font-weight: 600; }
.sub-tab.active::after {
  content: ""; position: absolute; left: 50%; bottom: 0;
  width: 18px; height: 3px; border-radius: 2px;
  background: var(--accent); transform: translateX(-50%);
  animation: subLine .3s var(--spring);
}
@keyframes subLine { from { width: 0; opacity: 0; } }

/* ---------- 卡片 ---------- */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.3rem 1.15rem;
  box-shadow: var(--shadow);
  margin-bottom: .9rem;
}
.card + .card { margin-top: .9rem; }

/* ---------- 按钮系统（苹果胶囊） ----------
 * 全站按钮配色语义（新增按钮必须遵循，用户靠颜色识别操作类型）：
 *   btn-blue   蓝 = 主操作：提交/确定/支付/去支付/登录/立即/继续/保存/复制/售前
 *   btn-success 绿 = 成功/注册：注册并登录/保存成功/复制分享链接
 *   btn-warning 橙 = 修改/编辑：修改信息
 *   btn-danger / btn-outline-danger 红 = 危险：删除/注销/退出/举报
 *   btn-gray   灰 = 次要：取消/关闭/存草稿/上一页/售后
 * 禁用 btn-dark（黑色会与正文黑字混淆，用户无法一眼识别按钮）。
 * ---------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4rem;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 500;
  border-radius: var(--radius-pill);
  padding: .68rem 1.5rem;
  transition: transform .16s var(--ease), background .22s var(--ease),
              box-shadow .22s var(--ease), opacity .22s var(--ease), color .22s var(--ease);
  -webkit-user-select: none; user-select: none;
  text-decoration: none;
}
.btn:active { transform: scale(.96); }
.btn:disabled { opacity: .5; pointer-events: none; }

.btn-block { display: flex; width: 100%; }

.btn-blue { background: linear-gradient(135deg, #3b82f6, #6366f1); color: #fff; box-shadow: 0 4px 14px rgba(59, 130, 246, .28); }
.btn-blue:hover { filter: brightness(1.05); }
.btn-blue:active { filter: brightness(.95); box-shadow: 0 2px 8px rgba(59, 130, 246, .24); }

.btn-gray { background: var(--bg-deep); color: var(--text); }
.btn-gray:hover { background: #dddcE2; }

.btn-outline { background: transparent; border: 1px solid var(--border); color: var(--text); }
.btn-outline:hover { border-color: var(--text-2); }

.btn-white { background: #fff; color: var(--accent); border: 1px solid var(--border-light); }

.btn-success { background: var(--success); color: #fff; }
.btn-warning { background: var(--warning); color: #fff; }
.btn-danger { background: var(--danger); color: #fff; }
.btn-dark { background: var(--text); color: #fff; }

.btn-sm { font-size: .82rem; padding: .48rem 1rem; }
.btn-lg { font-size: 1.05rem; padding: .82rem 2rem; font-weight: 600; }

/* 幽灵文字按钮 */
.btn-link { background: none; border: none; color: var(--accent); font-size: .9rem; cursor: pointer; padding: .3rem .4rem; border-radius: 8px; }
.btn-link:active { background: var(--accent-soft); }

/* 返回按钮（统一精致圆形箭头） */
.back-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 2.3rem; height: 2.3rem;
  border-radius: 50%;
  background: var(--card);
  border: 1px solid var(--border-light);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .06);
  color: var(--text);
  font-size: 1.15rem; line-height: 1;
  padding: 0; margin: 0;
  cursor: pointer;
  flex-shrink: 0;
  transition: transform .15s var(--ease), background .2s var(--ease), box-shadow .2s var(--ease);
}
.back-btn:hover { background: var(--card-2); box-shadow: 0 3px 12px rgba(0, 0, 0, .10); }
.back-btn:active { transform: scale(.9); }

/* ---------- 表单 ---------- */
.field { margin-bottom: 1.1rem; }
.field-label {
  font-size: .86rem; font-weight: 600; color: var(--text);
  margin-bottom: .45rem; display: flex; align-items: center; gap: .3rem;
}
.field-label .req { color: var(--danger); }
.field-label .hint { font-weight: 400; color: var(--text-3); font-size: .76rem; }

.input, .textarea, .select {
  width: 100%;
  border: 1px solid var(--border-light);
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: .7rem .85rem;
  font-size: .95rem;
  outline: none;
  transition: border-color .22s var(--ease), box-shadow .22s var(--ease);
}
.input:focus, .textarea:focus, .select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .12);
}
.textarea { min-height: 86px; resize: vertical; line-height: 1.55; }
.char-count { text-align: right; font-size: .72rem; color: var(--text-3); margin-top: .3rem; }

/* 行内标签+输入 */
.form-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .95rem; }
.form-row > label { width: 4.2rem; flex-shrink: 0; font-size: .9rem; color: var(--text-2); }
.form-row .input { flex: 1; min-width: 0; }
.form-tip { font-size: .74rem; color: var(--text-3); margin: .2rem 0 0; }

/* 垂直标签表单（登录/注册，与全站表单风格统一） */
.form-field { margin-bottom: .95rem; }
.form-field > label { display: block; font-size: .86rem; font-weight: 600; color: var(--text); margin-bottom: .45rem; }

/* 注册同意勾选 */
.agree-row { display: flex; align-items: flex-start; gap: .4rem; margin: 0 0 1rem; font-size: .78rem; color: var(--text-2); line-height: 1.5; }
.agree-row input[type="checkbox"] { margin-top: 2px; }
.agree-row a { color: var(--accent); text-decoration: none; }

/* 登录勾选项 */
.login-opts { display: flex; justify-content: space-between; gap: .6rem; margin: 0 0 .9rem; font-size: .78rem; color: var(--text-2); }
.login-opts label { display: flex; align-items: center; gap: .3rem; cursor: pointer; }

/* 协议页面排版 */
.agreement-body { padding: .8rem 1.2rem 2rem; font-size: .88rem; color: var(--text-2); line-height: 1.8; }
.agreement-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--text); margin: 1rem 0 .5rem; }
.agreement-body h4 { font-size: .92rem; font-weight: 600; color: var(--text); margin: .8rem 0 .3rem; }
.agreement-body p { margin-bottom: .4rem; }
.agreement-body ul { margin: 0 0 .4rem 1rem; }
.agreement-body li { margin-bottom: .25rem; }

/* 设置页 */
.settings-title { font-size: .78rem; color: var(--text-3); margin: .6rem 0 .4rem; }
.settings-item {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: .9rem 1rem;
  margin-bottom: .6rem; cursor: pointer; font-size: .92rem; color: var(--text);
}
.settings-item:active { background: var(--card-2); }
.settings-item .settings-value { color: var(--text-3); font-size: .85rem; }
.settings-item .settings-arrow { color: var(--border); font-size: 1.1rem; }
.settings-item.danger { color: var(--danger); }
.settings-item.warn { color: #D97706; }  /* 橙黄色 */

/* ---------- 标签选择（胶囊多选） ---------- */
.tag-group { display: flex; flex-wrap: wrap; gap: .55rem; }
.tag-group input[type="checkbox"] { display: none; }
.tag-group label {
  background: var(--card);
  color: var(--text-2);
  border: 1px solid var(--border-light);
  padding: .42rem .95rem;
  border-radius: var(--radius-pill);
  cursor: pointer;
  font-size: .86rem;
  transition: all .22s var(--spring);
}
.tag-group label:active { transform: scale(.94); }
.tag-group input:checked + label {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 4px 14px rgba(0, 113, 227, .28);
}
.tags-more-btn {
  border: 1px dashed var(--text-3); background: none; color: var(--text-3);
  border-radius: var(--radius-pill); padding: .42rem .95rem; cursor: pointer; font-size: .84rem;
  transition: all .2s var(--ease);
}
.tags-more-btn:active { transform: scale(.95); }

/* ---------- 步骤区块 ---------- */
.form-section {
  background: var(--card-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem;
  margin-bottom: .95rem;
}
.section-title {
  font-weight: 600; font-size: .95rem; color: var(--text);
  display: flex; align-items: center; gap: .5rem; margin-bottom: .8rem;
}
.section-num {
  width: 24px; height: 24px; flex-shrink: 0;
  background: var(--accent); color: #fff;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .8rem; font-weight: 600;
}
.error-text { color: var(--danger); font-size: .78rem; margin-top: .45rem; display: none; }
.error-text.show { display: block; animation: shake .3s var(--ease); }
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-4px); } 75% { transform: translateX(4px); }
}

/* ---------- 上传区 ---------- */
.upload-box {
  display: flex; align-items: center; justify-content: center;
  min-height: 110px;
  background: var(--card-2);
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer; text-align: center;
  transition: border-color .2s var(--ease), background .2s var(--ease);
  padding: .8rem;
}
.upload-box:active { background: var(--accent-soft); border-color: var(--accent); }
.upload-box .up-hint { font-size: .84rem; color: var(--text-2); line-height: 1.7; }
.upload-box input[type="file"] { display: none; }
.qr-box-label { font-size: .78rem; color: var(--text-3); margin-bottom: .4rem; }
.qr-col { flex: 1; min-width: 0; }
.qr-row { display: flex; gap: .7rem; }

.preview-grid { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .6rem; }
.preview-item {
  width: 62px; height: 62px; border-radius: var(--radius-sm);
  overflow: hidden; position: relative; border: 1px solid var(--border-light);
  background: var(--card-2);
  animation: popIn .3s var(--spring);
}
@keyframes popIn { from { transform: scale(.8); opacity: 0; } }
.preview-item img { width: 100%; height: 100%; object-fit: cover; }
.preview-item .remove-btn {
  position: absolute; top: 3px; right: 3px;
  width: 18px; height: 18px;
  background: rgba(0, 0, 0, .65); color: #fff;
  border-radius: 50%; text-align: center; line-height: 18px;
  font-size: 11px; cursor: pointer;
  backdrop-filter: blur(4px);
}

/* ---------- 价格列表 ---------- */
.price-list { display: flex; flex-direction: column; gap: .6rem; }
.price-item {
  display: grid; grid-template-columns: 1fr auto;
  align-items: center; gap: .4rem .8rem;
  background: var(--card-2);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: .78rem .95rem;
  cursor: pointer;
  transition: all .22s var(--ease);
}
.price-item:active { transform: scale(.98); }
.price-item .p-left { font-weight: 600; font-size: .92rem; color: var(--text); }
.price-item .p-origin { display: block; font-weight: 400; font-size: .76rem; color: var(--text-3); text-decoration: line-through; }
.price-item .p-price { text-align: right; font-weight: 700; font-size: .95rem; color: var(--accent); }
.price-item.selected { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(0,113,227,.10); }

/* ---------- 选择卡片（需求/平台/规格，图标+文字+圆形箭头） ---------- */
.choice {
  display: flex; align-items: center; gap: .9rem;
  width: 100%; text-align: left;
  background: var(--card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  cursor: pointer; color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  transition: all .22s var(--ease);
  position: relative;
}
.choice + .choice { margin-top: .75rem; }
.choice:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.choice:active { transform: scale(.98); }
/* 左侧图标圆角色块 */
.choice-icon {
  width: 2.9rem; height: 2.9rem; flex-shrink: 0;
  border-radius: 13px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
}
.choice-icon svg { width: 24px; height: 24px; color: var(--accent); }
/* 黑色图标变体（用于需要黑色线条的选项） */
.choice-icon.icon-dark svg { color: var(--text); }
/* 品牌图标（img 方式：QQ/微信等） */
.choice-icon img { width: 26px; height: 26px; object-fit: contain; }
/* 组合图标（QQ+微信 并排） */
.choice-icon.combo { gap: 2px; }
.choice-icon.combo img { width: 20px; height: 20px; }
/* 双图标轮换（QQ 图标 / 企鹅 每 0.5s 切换） */
.choice-icon.icon-swap { position: relative; }
.choice-icon.icon-swap img { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.choice-icon.icon-swap img.swap-a { animation: iconSwapA 1s steps(1) infinite; }
.choice-icon.icon-swap img.swap-b { animation: iconSwapB 1s steps(1) infinite; }
@keyframes iconSwapA { 0%, 49.9% { opacity: 1; } 50%, 100% { opacity: 0; } }
@keyframes iconSwapB { 0%, 49.9% { opacity: 0; } 50%, 100% { opacity: 1; } }
/* 文案内联小图标（价格列表等） */
.inline-icon {
  display: inline-block;
  width: 1.05rem; height: 1.05rem;
  vertical-align: -2px; border-radius: 3px;
  margin: 0 1px;
}
.choice b { font-size: 1.02rem; font-weight: 600; display: block; }
.choice small { display: block; font-weight: 400; font-size: .82rem; color: var(--text-3); margin-top: .25rem; line-height: 1.5; }
/* 右侧圆形箭头 */
.choice-arrow {
  margin-left: auto; flex-shrink: 0;
  width: 1.9rem; height: 1.9rem;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 1.15rem; line-height: 1;
  transition: all .25s var(--ease);
}
.choice:hover .choice-arrow { background: var(--accent); color: #fff; transform: translateX(2px); }

.choice-row { display: flex; gap: .75rem; }
.choice-row .choice { flex: 1; text-align: center; padding: 1.1rem .6rem; flex-direction: column; gap: .2rem; }
.choice-row .choice:hover { transform: translateY(-2px); }
.choice-row .choice .choice-icon { margin: 0 auto .4rem; }

.group-spec-item {
  background: var(--card);
  border: 1.5px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: .85rem .95rem; margin-bottom: .6rem;
  cursor: pointer; transition: all .22s var(--ease);
}
.group-spec-item:hover { border-color: var(--accent); }
.group-spec-item.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 0 0 3px rgba(0,113,227,.10); }
.group-spec-item .gs-main { display: flex; justify-content: space-between; align-items: center; font-weight: 600; font-size: .95rem; }
.group-spec-item .gs-main .gs-price { color: var(--accent); }
.group-spec-item .gs-sub { font-size: .78rem; color: var(--text-3); margin-top: .25rem; }

/* ---------- 状态统计（自助下单入口） ---------- */
.status-row { display: flex; gap: .7rem; margin: 1rem 0; }
.status-btn {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: .85rem .3rem;
  text-align: center; cursor: pointer;
  transition: all .22s var(--ease);
  box-shadow: var(--shadow);
}
.status-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); }
.status-btn:active { transform: scale(.97); }
.status-btn .num { font-size: 1.55rem; font-weight: 700; display: block; line-height: 1.3; }
.status-btn .num.green { color: var(--success); }
.status-btn .num.orange { color: var(--warning); }
.status-btn .num.blue { color: var(--accent); }
.status-btn .label { font-size: .76rem; color: var(--text-3); font-weight: 500; }

/* ---------- 帖子卡片 ---------- */
.post-card {
  background: var(--card);
  border-radius: 22px;
  border: 1px solid rgba(0, 0, 0, .035);
  box-shadow: 0 1px 3px rgba(0, 0, 0, .04), 0 8px 26px rgba(0, 0, 0, .055);
  margin-bottom: .9rem;
  overflow: hidden;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.post-card:hover { transform: translateY(-3px); box-shadow: 0 6px 16px rgba(0, 0, 0, .06), 0 16px 40px rgba(0, 0, 0, .10); }
.post-card.top { border: 1px solid var(--text); }

.post-top-badge {
  padding: .45rem .95rem .1rem; font-size: .78rem; font-weight: 600; color: var(--text);
  display: flex; align-items: center; gap: .35rem;
}
.post-head {
  display: flex; align-items: center; gap: .6rem;
  padding: .75rem .95rem .25rem;
}
.post-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  overflow: hidden; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.15rem; color: #fff;
}
.post-avatar img { width: 100%; height: 100%; object-fit: cover; }
.post-user { font-weight: 600; font-size: .92rem; }
.post-meta { font-size: .72rem; color: var(--text-3); margin-top: 2px; }

.post-more { position: relative; flex-shrink: 0; }
.card-more-btn {
  border: none; background: none; cursor: pointer;
  font-size: 1.1rem; color: var(--text-3); padding: .15rem .4rem; line-height: 1;
  letter-spacing: 1px; border-radius: 8px;
}
.card-more-btn:hover { background: var(--bg); }
.card-more-menu {
  display: none; position: absolute; right: 0; top: 110%;
  background: var(--card); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); box-shadow: var(--shadow-modal);
  z-index: 50; min-width: 120px; padding: .3rem;
  animation: menuIn .18s var(--ease);
}
@keyframes menuIn { from { opacity: 0; transform: scale(.92); } }
.card-more-report {
  display: block; width: 100%; text-align: left;
  border: none; background: none; cursor: pointer;
  padding: .55rem .8rem; font-size: .86rem; color: var(--danger);
  border-radius: 8px;
}
.card-more-report:hover { background: #fef2f2; }

.post-images { display: flex; flex-wrap: wrap; gap: 4px; padding: .4rem .95rem .35rem; }
.post-images img {
  width: calc(50% - 2px); aspect-ratio: 1/1;
  object-fit: cover; border-radius: 10px; cursor: zoom-in;
  transition: transform .25s var(--ease);
}
.post-images img:active { transform: scale(.97); }
.post-images .img-1 { width: min(100%, 300px); }
.post-images .img-3 { width: calc(33.33% - 3px); }
.post-images .img-5a { width: calc(33.33% - 3px); }
.post-images .img-5b { width: calc(50% - 2px); }
.post-images .img-6 { width: calc(33.33% - 3px); }

.post-id {
  padding: .2rem .95rem .15rem;
  font-size: .7rem; color: var(--text-3);
  display: flex; align-items: center; gap: .3rem;
}
.post-id .copy-btn {
  border: none; background: none; font-size: .7rem; color: var(--accent);
  cursor: pointer; padding: 0;
}

.post-actions {
  display: flex; gap: .5rem;
  padding: .4rem .8rem .85rem;
}
.post-actions .act {
  flex: 1;
  display: flex; align-items: center; justify-content: center; gap: .3rem;
  border: 1px solid var(--border-light);
  background: var(--card);
  color: var(--text-2);
  border-radius: var(--radius-pill);
  font-size: .84rem; cursor: pointer;
  padding: .5rem .3rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .05);
  transition: all .2s var(--ease);
}
.post-actions .act:hover { border-color: var(--accent); color: var(--accent); }
.post-actions .act:active { transform: scale(.93); }
.post-actions .act .num { font-variant-numeric: tabular-nums; }

/* 热门榜 TOP 徽章（钻石/黄金/黄铜奖杯） */
.post-top-badge .top-icon { width: 1.05rem; height: 1.05rem; }
.post-top-badge.top1 { color: #3b82f6; }   /* 钻石蓝 */
.post-top-badge.top2 { color: #f59e0b; }   /* 黄金 */
.post-top-badge.top3 { color: #b87333; }   /* 黄铜 */

/* 分享链接定位高亮 */
.post-card.post-highlight { animation: postGlow 2.6s var(--ease); }
@keyframes postGlow {
  0% { box-shadow: 0 0 0 3px var(--accent); background: rgba(59, 130, 246, .08); }
  70% { box-shadow: 0 0 0 3px var(--accent); background: rgba(59, 130, 246, .08); }
  100% { box-shadow: none; background: var(--card); }
}
.post-actions .act.liked { color: var(--danger); background: #fef2f2; }
.post-actions .act.liked .heart { animation: heartPop .4s var(--spring); }
.post-actions .act.faved { color: var(--warning); background: #fff8e6; }
@keyframes heartPop {
  0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); }
}

/* ---------- 骨架屏 ---------- */
.skeleton-card {
  background: var(--card); border-radius: var(--radius);
  padding: 1rem; margin-bottom: .9rem; box-shadow: var(--shadow);
}
.sk { background: linear-gradient(90deg, #ececf0 25%, #f5f5f8 50%, #ececf0 75%); background-size: 200% 100%; animation: shimmer 1.4s infinite; border-radius: 8px; }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-head { display: flex; gap: .6rem; align-items: center; margin-bottom: .8rem; }
.sk-ava { width: 38px; height: 38px; border-radius: 50%; }
.sk-line { height: 12px; }
.sk-block { aspect-ratio: 2/1; border-radius: var(--radius-sm); }

/* ---------- 空状态 ---------- */
.empty {
  text-align: center; color: var(--text-3);
  padding: 3rem 1rem; font-size: .92rem;
  animation: pageIn .5s var(--ease);
}
.empty .e-icon { font-size: 3rem; margin-bottom: .8rem; }

/* ---------- 列表项 ---------- */
.list-item {
  background: var(--card);
  border-radius: var(--radius);
  padding: 1rem 1.05rem;
  margin-bottom: .8rem;
  box-shadow: var(--shadow);
  animation: popIn .35s var(--spring);
}
.item-spec { font-weight: 600; font-size: .98rem; color: var(--text); }
.item-tags { display: flex; gap: .3rem; margin: .45rem 0; flex-wrap: wrap; }
.item-tags span {
  background: var(--card-2); color: var(--text-2);
  padding: .15rem .6rem; border-radius: var(--radius-pill); font-size: .74rem;
}
.item-message { font-size: .88rem; margin-top: .3rem; color: var(--text-2); }
.item-photos { display: flex; gap: 5px; margin-top: .4rem; flex-wrap: wrap; }
.item-photos img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; border: 1px solid var(--border-light); }
.item-actions { display: flex; gap: .5rem; margin-top: .85rem; flex-wrap: wrap; }
.item-actions .btn { flex: 1; min-width: 84px; }
.review-badge { font-size: .8rem; margin-bottom: .5rem; font-weight: 600; }

/* 草稿条 */
.draft-item {
  display: flex; align-items: center; gap: .6rem;
  background: var(--card-2);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-sm);
  padding: .75rem .85rem; margin-bottom: .55rem;
}
.draft-info { flex: 1; min-width: 0; }
.draft-spec { font-weight: 600; font-size: .88rem; }
.draft-meta { font-size: .74rem; color: var(--text-3); margin-top: .2rem; }
.draft-actions { display: flex; gap: .4rem; flex-shrink: 0; }
.draft-actions button {
  border: none; border-radius: var(--radius-pill);
  font-size: .78rem; padding: .4rem .85rem; cursor: pointer;
  transition: transform .15s var(--ease);
}
.draft-actions button:active { transform: scale(.93); }
.pay-draft { background: var(--accent); color: #fff; }
.delete-draft { background: var(--bg-deep); color: var(--danger); }

/* ---------- 我的（个人中心） ---------- */
.mine-card {
  display: flex; align-items: center; gap: .85rem;
  background: var(--card);
  border-radius: var(--radius);
  padding: 1.05rem;
  box-shadow: var(--shadow); margin-bottom: .85rem;
}
.mine-avatar {
  width: 64px; height: 64px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem; color: #fff; overflow: hidden; cursor: pointer;
  box-shadow: 0 6px 18px rgba(0, 113, 227, .22);
}
.mine-avatar img { width: 100%; height: 100%; object-fit: cover; }
.mine-name { font-size: 1.16rem; font-weight: 700; cursor: pointer; }
.mine-id { font-size: .8rem; color: var(--text-3); margin-top: .2rem; }
.pcoin-chip {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: .8rem; font-weight: 600; color: var(--gold);
  background: #fffbeb; border: 1px solid #fde68a;
  border-radius: var(--radius-pill); padding: .3rem .7rem; cursor: pointer;
  transition: transform .15s var(--ease);
}
.pcoin-chip:active { transform: scale(.95); }

.menu-list { display: flex; flex-direction: column; gap: .5rem; margin: .85rem 0; }
.menu-item {
  display: flex; align-items: center; gap: .7rem;
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: .9rem 1rem;
  cursor: pointer; color: var(--text);
  transition: all .2s var(--ease);
  box-shadow: var(--shadow);
}
.menu-item:hover { transform: translateX(3px); }
.menu-item:active { transform: scale(.98); }
.menu-item .mi { font-size: 1.2rem; }
.menu-item .mi-arrow { margin-left: auto; color: var(--border); font-size: 1.1rem; }

/* 登录/注册切换 */
.auth-tabs {
  display: flex; background: var(--bg-deep);
  border-radius: var(--radius-pill); padding: .22rem;
  margin: .8rem 0 1.2rem; position: relative;
}
.auth-tab {
  flex: 1; border: none; background: none; cursor: pointer;
  font-size: .95rem; color: var(--text-2);
  padding: .55rem; border-radius: var(--radius-pill);
  transition: all .28s var(--ease); position: relative; z-index: 1;
}
.auth-tab.active { background: var(--card); color: var(--text); font-weight: 600; box-shadow: 0 2px 10px rgba(0,0,0,.08); }

/* ---------- 弹窗（苹果 sheet 风格） ---------- */
.modal-overlay {
  display: none; position: fixed; inset: 0; z-index: 999;
  background: rgba(0, 0, 0, .4);
  justify-content: center; align-items: center;
  padding: 1rem;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.modal-overlay.active { display: flex; animation: fadeIn .25s var(--ease); }
@keyframes fadeIn { from { opacity: 0; } }

.modal {
  position: relative;
  background: var(--card);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem;
  max-width: 360px; width: 100%;
  max-height: 82vh; overflow-y: auto;
  text-align: center;
  box-shadow: var(--shadow-modal);
  animation: modalIn .38s var(--spring);
}
@keyframes modalIn {
  from { opacity: 0; transform: scale(.9) translateY(16px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}
.modal-title { font-size: 1.12rem; font-weight: 700; margin-bottom: .3rem; }
.modal-icon { font-size: 2.6rem; margin-bottom: .55rem; }
.modal-desc { font-size: .92rem; color: var(--text-2); margin-bottom: 1.2rem; line-height: 1.6; white-space: pre-line; }
.modal-actions { display: flex; gap: .6rem; }
.modal-actions .btn { flex: 1; }
/* 支付方式卡片（微信/支付宝选择） */
.pay-choice-card {
  display: flex; align-items: center; gap: .6rem;
  padding: .8rem .9rem; border: 1px solid var(--border-light);
  border-radius: 14px; background: var(--card); cursor: pointer;
  transition: all .2s var(--ease);
}
.pay-choice-card:active { transform: scale(.98); background: #f7f8fa; }
.pay-choice-card .pc-icon { font-size: 1.4rem; }
.pay-choice-card .pc-name { font-size: 1rem; font-weight: 700; }
.pay-choice-card .pc-sub { font-size: .78rem; color: #64748b; }
.pay-choice-card .pc-arrow { margin-left: auto; color: #cbd5e1; font-size: 1.1rem; }

.modal-back {
  position: absolute; top: .5rem; left: .55rem;
  width: 34px; height: 34px; border-radius: 50%;
  border: none; background: transparent; color: var(--text-2);
  font-size: 1.25rem; cursor: pointer; line-height: 1;
  display: flex; align-items: center; justify-content: center;
}
.modal-back:active { background: var(--bg); }
.modal-close-x {
  position: absolute; top: .8rem; right: .8rem;
  width: 28px; height: 28px; border-radius: 50%;
  border: none; background: var(--bg); color: var(--text-2);
  font-size: 1rem; cursor: pointer; line-height: 1;
}
.modal-close-x:active { transform: scale(.9); }

/* 底部弹层 */
.sheet { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1000; }
.sheet-inner {
  max-width: 430px; margin: 0 auto;
  background: var(--card);
  border-radius: 22px 22px 0 0;
  padding: 1.2rem 1rem calc(1.2rem + var(--safe-bottom));
  box-shadow: var(--shadow-modal);
  animation: sheetUp .4s var(--spring);
  max-height: 84vh; overflow-y: auto;
}
@keyframes sheetUp { from { transform: translateY(100%); } }

/* ---------- Toast ---------- */
#quick-toast {
  position: fixed; left: 50%; top: 12%;
  transform: translateX(-50%);
  background: rgba(20, 20, 20, .88); color: #fff;
  padding: .7rem 1.3rem; border-radius: var(--radius-pill);
  font-size: .88rem; z-index: 99999;
  pointer-events: none; display: none;
  backdrop-filter: blur(10px);
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
  animation: toastIn .3s var(--spring);
}
@keyframes toastIn { from { opacity: 0; transform: translate(-50%, -12px) scale(.9); } }

/* 成功大弹窗 */
.toast-modal { display: none; position: fixed; inset: 0; z-index: 1001; background: rgba(0,0,0,.45); justify-content: center; align-items: center; padding: 1rem; backdrop-filter: blur(6px); }
.toast-modal.active { display: flex; animation: fadeIn .25s var(--ease); }
.toast-box {
  background: var(--card); border-radius: var(--radius-lg);
  padding: 1.6rem 1.4rem; max-width: 340px; width: 100%; text-align: center;
  box-shadow: var(--shadow-modal); animation: modalIn .4s var(--spring);
}
.toast-icon { font-size: 3rem; margin-bottom: .5rem; animation: heartPop .5s var(--spring); }
.toast-title { font-size: 1.2rem; font-weight: 700; margin-bottom: .3rem; }
.toast-desc { font-size: .9rem; color: var(--text-2); margin-bottom: 1.1rem; line-height: 1.6; }
.toast-btn { width: 100%; background: var(--accent); color: #fff; border: none; border-radius: var(--radius-pill); padding: .7rem; font-size: .95rem; cursor: pointer; transition: background .2s var(--ease); }

/* 大图预览 */
.image-viewer {
  position: fixed; inset: 0; z-index: 99999;
  background: rgba(0, 0, 0, .92);
  display: flex; align-items: center; justify-content: center;
  cursor: zoom-out; animation: fadeIn .25s var(--ease);
}
.image-viewer img { max-width: 94vw; max-height: 94vh; border-radius: 12px; object-fit: contain; animation: modalIn .3s var(--spring); }

/* 帮助弹窗（统一头部：左上返回 + 居中标题） */
.help-modal { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.help-modal .subpage-head { position: sticky; top: 0; z-index: 2; flex-shrink: 0; }
#help-modal-body { overflow-y: auto; max-height: 62vh; }

/* ---------- 底部导航（最普通 · 白底贴底 · 无任何动效） ---------- */
.tabbar {
  position: fixed; left: 20px; right: 20px; bottom: calc(8px + var(--safe-bottom)); z-index: 100;
  background: rgba(255, 255, 255, .74);
  backdrop-filter: blur(20px) saturate(1.7);
  -webkit-backdrop-filter: blur(20px) saturate(1.7);
  border: 1px solid rgba(255, 255, 255, .65);
  border-radius: 24px;
  box-shadow: 0 8px 26px rgba(0, 0, 0, .11), inset 0 .5px 0 rgba(255, 255, 255, .8);
  padding-bottom: 0;
}
.tabbar-inner {
  max-width: 430px; margin: 0 auto;
  display: flex;
  padding: .2rem .32rem;
  gap: .2rem;
}
.nav-item {
  flex: 1;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 0;
  padding: .34rem 0 .3rem;
  color: #6e6e73; font-size: .66rem;
  cursor: pointer;
  border-radius: 18px;
  transition: color .22s var(--ease), background .22s var(--ease), transform .18s var(--spring), box-shadow .22s var(--ease);
}
.nav-item .icon { font-size: 1.12rem; line-height: 1; }
/* 下单按钮：结构突出（无底色），选中时才上主题色 */
.nav-item.nav-cta {
  margin: -4px 4px 0;
  background: transparent;
  color: var(--text) !important;
  border-radius: 999px;
  border: 1.5px solid var(--border-light);
  padding: .36rem 0 .36rem;
  transform: translateY(-2px);
  font-weight: 700;
}
.nav-item.nav-cta .icon { font-size: 1.28rem; }
.nav-item.nav-cta .icon svg { stroke-width: 2.4; }   /* 图标更粗更显眼 */
.nav-item.nav-cta.active { color: #fff !important; }
.nav-item.active {
  color: #fff; font-weight: 600;
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  box-shadow: 0 4px 12px rgba(99, 102, 241, .34);
}
.nav-item.active .icon { color: #fff; }
.nav-item:active { transform: scale(.94); }

/* ---------- 全屏客服对话页（人工派单） ---------- */
#page-kf-chat { height: 100vh; display: none; flex-direction: column; padding-bottom: 0; }
#page-kf-chat.active { display: flex; }
#page-kf-chat .kf-chat-wrap {
  flex: 1; min-height: 0;
  display: flex; flex-direction: column;
  padding: .8rem;
}
#page-kf-chat .kf-chat-msgs {
  flex: 1; min-height: 0; overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: .9rem;
}

/* ---------- 帮助悬浮按钮（💬 帮助，点击打开当前页面帮助） ---------- */
#kf-fab {
  position: fixed; right: 1.1rem; bottom: calc(var(--tabbar-h, 64px) + var(--safe-bottom) + 1.05rem);
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .6rem 1.05rem;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-pill);
  background: var(--card);
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  cursor: pointer;
  font-size: .9rem; font-weight: 600; color: var(--text);
  z-index: 95;
  transition: transform .15s var(--spring), box-shadow .2s var(--ease);
}
#kf-fab .fab-icon { font-size: 1.15rem; line-height: 1; }
#kf-fab:active { transform: scale(.95); box-shadow: 0 6px 18px rgba(0, 0, 0, .22); }


/* 客服面板 */
#kf-panel {
  position: fixed; right: 1rem; bottom: calc(var(--tabbar-h, 64px) + var(--safe-bottom) + 1.05rem);
  width: min(92vw, 360px); height: min(68vh, 520px);
  background: var(--card);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  z-index: 96;
  display: flex; flex-direction: column; overflow: hidden;
  transform: scale(.9) translateY(20px); opacity: 0; pointer-events: none;
  transition: all .3s var(--spring);
}
#kf-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: auto; }
.kf-head {
  display: flex; align-items: center; gap: .55rem;
  padding: .85rem 1rem;
  background: linear-gradient(135deg, var(--accent), var(--purple));
  color: #fff;
}
.kf-head img { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; background: rgba(255,255,255,.25); }
.kf-head b { font-size: .98rem; }
.kf-head .kf-name { font-size: .78rem; opacity: .85; }
.kf-head .kf-time { margin-left: auto; font-size: .68rem; opacity: .75; }
.kf-close { border: none; background: none; color: #fff; font-size: 1.25rem; cursor: pointer; padding: 0 .2rem; line-height: 1; }
#kf-msgs { flex: 1; overflow-y: auto; padding: .9rem; background: var(--bg); }
.kf-row { display: flex; gap: 8px; align-items: flex-end; margin-bottom: 10px; }
.kf-row.user { flex-direction: row-reverse; }
.kf-msg {
  max-width: 78%;
  padding: .6rem .8rem; border-radius: 18px;
  font-size: .86rem; line-height: 1.5; word-break: break-word;
  white-space: pre-line;
  animation: popIn .3s var(--spring);
}
.kf-msg.ai { background: var(--card); border: 1px solid var(--border-light); border-bottom-left-radius: 6px; color: var(--text); }
.kf-msg.user { background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.kf-input-bar { display: flex; gap: .5rem; padding: .7rem; border-top: 1px solid var(--border-light); background: var(--card); }
.kf-input-bar input {
  flex: 1; min-width: 0;
  border: 1px solid var(--border-light); border-radius: var(--radius-pill);
  padding: .6rem .95rem; font-size: .9rem; outline: none;
  transition: border-color .2s var(--ease);
}
.kf-input-bar input:focus { border-color: var(--accent); }
.kf-input-bar button {
  border: none; background: var(--accent); color: #fff;
  border-radius: var(--radius-pill); padding: .6rem 1.1rem;
  font-size: .88rem; cursor: pointer;
  transition: transform .15s var(--ease);
}
.kf-input-bar button:active { transform: scale(.94); }

/* ---------- 帮助分页（表单帮助/二维码教程） ---------- */
.help-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: .9rem; }
.help-head b { font-size: 1rem; }
.help-pages { text-align: left; }
.help-page { display: none; animation: pageIn .3s var(--ease); }
.help-page.active { display: block; }
.help-page-title { font-size: 1rem; font-weight: 700; margin-bottom: .6rem; }
.help-page-title span { font-weight: 400; font-size: .76rem; color: var(--danger); }
.help-page p { font-size: .88rem; color: var(--text-2); line-height: 1.9; margin-bottom: .5rem; }
.help-tag-list { font-size: .88rem; color: var(--text-2); line-height: 2.1; background: var(--card-2); border-radius: var(--radius-sm); padding: .7rem .9rem; }
.help-tag-list img { width: 100%; border-radius: 10px; margin-top: .3rem; }
.help-note { margin-top: .8rem; padding: .6rem .85rem; background: var(--accent-soft); border-radius: 10px; font-size: .85rem; color: var(--text); }
.help-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 1rem; }
.help-dots { display: flex; gap: 5px; }
.help-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--border); transition: all .25s var(--ease); }
.help-dot.on { background: var(--accent); transform: scale(1.3); }
.tut-btn { flex: 1; border: none; border-radius: var(--radius-sm); padding: .7rem; font-size: .9rem; font-weight: 600; cursor: pointer; color: #fff; transition: transform .15s var(--ease); }
.tut-btn:active { transform: scale(.96); }
.tut-btn.wechat { background: linear-gradient(135deg, var(--success), #30d158); }
.tut-btn.qq { background: linear-gradient(135deg, var(--accent), var(--purple)); }
.tut-page { text-align: center; }
.tut-page .tut-step { font-size: .95rem; font-weight: 600; margin-bottom: .8rem; }
.tut-page img { max-width: 78%; max-height: 55vh; border-radius: 10px; border: 1px solid var(--border-light); }

/* ---------- 派单大厅 / 客服页 ---------- */
.section-title-lg { font-size: 1.3rem; font-weight: 700; text-align: center; margin: .6rem 0 1rem; letter-spacing: -.01em; }
.service-card {
  display: flex; align-items: center; justify-content: center;
  width: 100%; text-align: center;
  background: var(--card);
  border: 1px solid var(--border-light);
  border-radius: var(--radius);
  padding: 1.05rem 1.1rem;
  cursor: pointer;
  box-shadow: var(--shadow);
  transition: all .25s var(--ease);
  margin-bottom: .8rem;
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text);
}
.service-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-hover); border-color: var(--accent); }
.service-card:active { transform: scale(.98); }
.service-card .sc-icon { font-size: 1.8rem; }
.service-card .sc-body { flex: 1; min-width: 0; }
.service-card .sc-title { font-weight: 700; font-size: 1rem; color: var(--text); }
.service-card .sc-desc { font-size: .8rem; color: var(--text-3); margin-top: .2rem; }
.service-card .sc-arrow { color: var(--border); font-size: 1.2rem; transition: transform .25s var(--ease); }
.service-card:hover .sc-arrow { transform: translateX(3px); color: var(--accent); }

/* FAQ 手风琴 */
.faq-item {
  background: var(--card);
  border-radius: var(--radius-sm);
  margin-bottom: .7rem;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.faq-q {
  display: flex; align-items: center; gap: .55rem;
  padding: .9rem 1rem; cursor: pointer;
  font-size: .92rem; font-weight: 600; color: var(--text);
}
.faq-q .q-mark {
  width: 22px; height: 22px; border-radius: 50%; flex-shrink: 0;
  background: var(--bg-deep); color: var(--text-2);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 700;
}
.faq-q .arrow { margin-left: auto; color: var(--text-3); font-size: .7rem; transition: transform .3s var(--ease); }
.faq-q.open .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0; overflow: hidden; opacity: 0;
  transition: max-height .35s var(--ease), opacity .3s var(--ease), padding .3s var(--ease);
  padding: 0 1rem; font-size: .87rem; color: var(--text-2); line-height: 1.85;
}
.faq-a.show { max-height: 320px; opacity: 1; padding: 0 1rem .9rem; }

/* ---------- 支付结果页 ---------- */
.result-page { display: flex; align-items: center; justify-content: center; min-height: 62vh; padding: 2rem 1rem; }
.result-box { text-align: center; max-width: 360px; width: 100%; }
.result-icon { font-size: 4.2rem; animation: heartPop .6s var(--spring); }
.result-title { font-size: 1.5rem; font-weight: 700; margin: .7rem 0 .35rem; letter-spacing: -.01em; }
.result-desc { color: var(--text-2); font-size: .95rem; margin-bottom: 1.6rem; }

/* ---------- 支付加热 ---------- */
.heat-tier-btn {
  border: 1.5px solid var(--border-light); border-radius: var(--radius-sm);
  padding: .7rem .3rem; background: var(--card);
  color: var(--text-2); cursor: pointer; text-align: center;
  transition: all .2s var(--ease);
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.heat-tier-btn b { font-size: .9rem; color: var(--text); font-weight: 700; }
.heat-tier-btn span { font-size: .7rem; color: var(--text-3); }
.heat-tier-btn:active { transform: scale(.94); }
.heat-tier-btn.sel { border-color: var(--accent); background: var(--accent-soft); box-shadow: 0 4px 12px rgba(0,113,227,.14); }
.heat-tier-btn.sel b, .heat-tier-btn.sel span { color: var(--accent); }
.heat-tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: .8rem; }
.qiang-free-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .8rem; }
.qiang-free-row .input { flex: 1; min-width: 0; }
.qiang-free-x { font-size: .85rem; font-weight: 600; color: var(--text-2); white-space: nowrap; }

.qiang-step-card {
  display: flex; align-items: center; justify-content: space-between;
  width: 100%;
  background: var(--card); border: 1.5px solid var(--border-light);
  border-radius: var(--radius); padding: 1rem 1.1rem;
  cursor: pointer; margin-bottom: .7rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .04);
  transition: all .22s var(--ease);
}
.qiang-step-card:hover { border-color: var(--accent); box-shadow: var(--shadow-hover); transform: translateY(-2px); }
.qiang-step-card:active { transform: scale(.98); }
.qiang-step-card .qs-icon {
  width: 2.9rem; height: 2.9rem; flex-shrink: 0;
  border-radius: 13px;
  background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.45rem;
  margin-right: .8rem;
}
.qiang-step-card .qs-icon svg { width: 24px; height: 24px; color: var(--accent); }
/* 黑色图标变体 */
.qiang-step-card .qs-icon.icon-dark svg { color: var(--text); }
.qiang-step-card .qs-text {
  font-weight: 600; font-size: .96rem;
  display: flex; align-items: center;
}
.qiang-step-card .qs-arrow {
  width: 1.9rem; height: 1.9rem; flex-shrink: 0;
  border-radius: 50%;
  background: var(--bg-deep);
  display: flex; align-items: center; justify-content: center;
  color: var(--text-2); font-size: 1.15rem; line-height: 1;
  transition: all .25s var(--ease);
}
.qiang-step-card:hover .qs-arrow { background: var(--accent); color: #fff; transform: translateX(2px); }

/* ---------- 数字统计卡（P币等） ---------- */
.pcoin-hero {
  background: linear-gradient(135deg, #ff9f0a, #ff6b2c);
  border-radius: var(--radius-lg);
  padding: 1.4rem 1.2rem; color: #fff; text-align: center;
  margin-bottom: .85rem;
  box-shadow: 0 14px 34px rgba(255, 111, 44, .30);
  animation: pageIn .5s var(--ease);
}
.pcoin-hero .pc-label { font-size: .82rem; opacity: .9; }
.pcoin-hero .pc-bal { font-size: 2.4rem; font-weight: 700; margin: .25rem 0; letter-spacing: -.01em; }
.pcoin-hero .pc-hint { font-size: .72rem; opacity: .82; }
.log-row {
  display: flex; justify-content: space-between; align-items: center;
  background: var(--card); border-radius: var(--radius-sm);
  padding: .7rem .95rem; margin-bottom: .5rem;
  border: 1px solid var(--border-light);
  animation: popIn .3s var(--spring);
}
.log-row .lr-desc { font-size: .85rem; color: var(--text); }
.log-row .lr-time { font-size: .72rem; color: var(--text-3); margin-top: .15rem; }
.log-row .lr-amt { font-weight: 700; font-variant-numeric: tabular-nums; }
.amt-plus { color: var(--success); } .amt-minus { color: var(--danger); }

/* 订单/投稿卡片（我的面板内） */
.sub-card {
  background: var(--card);
  border-radius: var(--radius-sm);
  padding: .8rem .95rem; margin-bottom: .6rem;
  border: 1px solid var(--border-light);
  animation: popIn .3s var(--spring);
}
.sub-card .sc-top { display: flex; justify-content: space-between; align-items: center; gap: .5rem; }
.sub-card .sc-title { font-weight: 600; font-size: .9rem; }
.status-pill {
  font-size: .7rem; color: #fff;
  border-radius: 6px; padding: .18rem .55rem; flex-shrink: 0; font-weight: 600;
}
.sub-card .sc-sub { font-size: .78rem; color: var(--text-2); margin-top: .3rem; }
.sub-card .sc-time { font-size: .72rem; color: var(--text-3); margin-top: .3rem; }
.sub-card .sc-actions { display: flex; gap: .5rem; margin-top: .7rem; }

/* 分享/邀请弹窗内容 */
.share-link-box {
  width: 100%;
  border: 1px solid var(--border-light); background: var(--card-2);
  border-radius: var(--radius-sm); padding: .6rem .8rem;
  font-size: .8rem; color: var(--text-2); margin-bottom: .8rem;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.qr-wrap { margin-bottom: .8rem; background: var(--card-2); border-radius: var(--radius-sm); padding: .6rem; display: flex; justify-content: center; }
.invite-code-box {
  font-size: 1.7rem; font-weight: 700; color: var(--accent);
  letter-spacing: .3rem; background: var(--card-2);
  border-radius: var(--radius-sm); padding: .85rem; margin-bottom: .6rem;
  text-align: center;
}

/* 错误条 */
#errbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 99999;
  background: var(--danger); color: #fff;
  padding: 8px 12px; font-size: 13px; text-align: center;
}

/* ---------- 工具类 ---------- */
.hidden { display: none !important; }
.flex { display: flex; } .flex-1 { flex: 1; min-width: 0; }
.gap-sm { gap: .5rem; } .gap-md { gap: .75rem; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; }
.text-center { text-align: center; }
.text-muted { color: var(--text-2); }
.text-faint { color: var(--text-3); }
.text-danger { color: var(--danger); }
.text-accent { color: var(--accent); }
.text-warning { color: var(--warning); }
.text-sm { font-size: .82rem; } .text-xs { font-size: .74rem; }
.pill-note {
  background: var(--card-2); border: 1px solid var(--border-light);
  border-radius: var(--radius-sm); padding: .7rem .95rem;
  font-size: .85rem; color: var(--text-2); line-height: 1.6; margin-bottom: .8rem;
}
.warn-note {
  background: #fff7ed; border: 1px solid #fed7aa;
  border-radius: var(--radius-sm); padding: .7rem .95rem;
  font-size: .84rem; color: #9a3412; line-height: 1.7; margin-bottom: .9rem;
}

/* ---------- 统一子页面头（左上返回 + 顶部居中菜单名） ---------- */
.subpage-head {
  position: sticky; top: 0; z-index: 100;
  display: flex; align-items: center; justify-content: center;
  padding: .65rem 1rem .55rem;
  background: var(--bg);
  border-bottom: 1px solid var(--border-light);
}
.subpage-head .back-btn {
  position: absolute; left: .85rem; top: 50%;
  transform: translateY(-50%); margin: 0;
}
.subpage-head-title {
  font-size: 1.1rem; font-weight: 700; letter-spacing: -.01em; color: var(--text);
}

/* ---------- 统计数字滚动 ---------- */
.count-up { font-variant-numeric: tabular-nums; }

/* ==========================================================================
   工具类扩展（统一规范 v2）
   全站统一：间距 / 显示 / 文字 / 标题 / 提示，替代散落的内联 style
   ========================================================================== */

/* 间距（间距阶梯 0.25 / 0.5 / 0.75 / 1 / 1.5 / 2 rem） */
.mt-0 { margin-top: 0 !important; } .mb-0 { margin-bottom: 0 !important; }
.mt-1 { margin-top: .5rem; } .mt-2 { margin-top: 1rem; } .mt-3 { margin-top: 1.5rem; } .mt-4 { margin-top: 2rem; }
.mb-1 { margin-bottom: .5rem; } .mb-2 { margin-bottom: 1rem; } .mb-3 { margin-bottom: 1.5rem; } .mb-4 { margin-bottom: 2rem; }
.mt-auto { margin-top: auto; } .mb-auto { margin-bottom: auto; }
.mx-auto { margin-left: auto; margin-right: auto; }
.p-1 { padding: .5rem; } .p-2 { padding: 1rem; } .p-3 { padding: 1.5rem; } .p-4 { padding: 2rem; }
.px-1 { padding-left: .5rem; padding-right: .5rem; } .px-2 { padding-left: 1rem; padding-right: 1rem; } .px-3 { padding-left: 1.5rem; padding-right: 1.5rem; }
.py-1 { padding-top: .5rem; padding-bottom: .5rem; } .py-2 { padding-top: 1rem; padding-bottom: 1rem; } .py-3 { padding-top: 1.5rem; padding-bottom: 1.5rem; }
.gap-xs { gap: .35rem; } .gap-lg { gap: 1rem; }

/* 显示 / 布局 */
/* 注意：.d-none 不加 !important —— 老代码用 el.style.display 控制显隐，需能被内联覆盖 */
.d-none { display: none; }
.d-block { display: block; }
.d-flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.align-center { align-items: center; }
.align-start { align-items: flex-start; }
.align-end { align-items: flex-end; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }
.w-100 { width: 100%; }
.w-auto { width: auto; }
.min-w-0 { min-width: 0; }
.flex-shrink-0 { flex-shrink: 0; }
.nowrap { white-space: nowrap; }
.word-break { word-break: break-all; }
.overflow-hidden { overflow: hidden; }
.mw-480 { max-width: 480px; margin-left: auto; margin-right: auto; }
.pt-1 { padding-top: .5rem; } .pb-1 { padding-bottom: .5rem; } .pb-2 { padding-bottom: 1rem; }
.min-h-10 { min-height: 10rem; }

/* 文字（字号阶梯） */
.text-lg { font-size: 1.05rem; }
.text-xl { font-size: 1.2rem; }
.text-2xl { font-size: 1.3rem; }
.fw-400 { font-weight: 400; } .fw-500 { font-weight: 500; } .fw-600 { font-weight: 600; } .fw-700 { font-weight: 700; }
.text-left { text-align: left; } .text-right { text-align: right; }
.lh-1-6 { line-height: 1.6; }

/* ---------- 统一标题体系 ---------- */
/* 页面级大标题（派单大厅 / 客服中心 / 投稿流程各步骤） */
.page-title {
  font-size: 1.3rem; font-weight: 700; letter-spacing: -.01em;
  margin-bottom: 1rem;
}
.page-title.text-center { text-align: center; }
/* 卡片级标题（表单 / 弹窗内的区块标题） */
.card-title {
  font-size: 1.25rem; font-weight: 700; text-align: center;
  margin-bottom: .4rem;
}
/* 卡片标题下的小字说明 */
.card-sub {
  text-align: center; color: var(--text-3); font-size: .86rem;
  margin-bottom: 1rem;
}

/* ---------- 统一提示 / 标记 ---------- */
/* 必填星标 */
.req-mark { color: var(--danger); font-weight: 400; }
/* 次要提示（跟在字段标题后的小字） */
.hint-text { font-weight: 400; font-size: .75rem; color: var(--text-3); }
/* 步骤标题（带序号圆点）已在 .section-title 统一，这里补序号蓝点样式别名 */
.section-num-circle { width: 24px; height: 24px; flex-shrink: 0; background: var(--accent); color: #fff; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; }

/* ---------- 按钮统一补丁 ---------- */
/* 危险描边按钮（退出/注销/删除，统一用） */
.btn-outline-danger { background: transparent; border: 1px solid var(--border); color: var(--danger); }
.btn-outline-danger:hover { border-color: var(--danger); background: #fef2f2; }

/* 状态胶囊颜色（替代 JS 内联动态背景色） */
.status-pill.ok { background: #16a34a; }
.status-pill.warn { background: var(--warning); }
.status-pill.bad { background: #ef4444; }
.status-pill.purple { background: var(--purple); }
.status-pill.gray { background: var(--text-3); }

/* 提交/保存按钮语义色（统一：提交=蓝，危险=红，次要=灰） */
.btn-submit { background: var(--accent); color: #fff; }
.btn-submit:hover { background: var(--accent-hover); }

/* 小标签 chip（列表/草稿里的标签） */
.tag-chip {
  background: var(--card-2); color: var(--accent);
  border-radius: 5px; padding: .1rem .35rem; margin-right: .25rem;
  font-size: .72rem;
}
/* 二维码缩略图（白底内边距，便于扫） */
.thumb-white { padding: 2px; background: #fff; }
/* 单行省略 */
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .9rem; }

/* ============ 签到 / P币 / 商城 ============ */
.sign-bar { display: flex; align-items: center; gap: .6rem; margin-bottom: .85rem; padding: .7rem .8rem; border-radius: 14px; background: linear-gradient(135deg, #fff7e6, #fff3d6); border: 1px solid #ffe3a3; }
.sb-title { font-size: .95rem; font-weight: 700; }
.sb-streak { color: var(--accent); font-size: .8rem; margin-left: .3rem; }
.sb-hint { font-size: .72rem; color: #a0782a; margin-top: .15rem; }
.pc-section { margin-top: .9rem; }
.pc-sec-title { font-size: .9rem; font-weight: 700; margin-bottom: .5rem; }
.inv-grid, .shop-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.inv-item, .shop-item { border: 1px solid var(--border); border-radius: 12px; padding: .7rem .4rem; text-align: center; background: var(--card); }
.inv-icon, .si-icon { font-size: 1.3rem; }
.inv-name, .si-name { font-size: .8rem; margin-top: .2rem; }
.inv-num { font-size: .8rem; font-weight: 700; color: var(--accent); }
.si-price { font-size: .72rem; color: var(--muted); margin: .2rem 0 .35rem; }
.pc-tip { font-size: .72rem; color: var(--muted); margin-top: .45rem; }

/* ============ 话题筛选与表单话题 ============ */
.topic-nav { display: flex; gap: .4rem; overflow-x: auto; padding: .45rem .75rem .2rem; }
.topic-tab { flex-shrink: 0; font-size: .78rem; padding: .28rem .7rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); }
.topic-tab.active { background: var(--accent); border-color: var(--accent); color: #fff; font-weight: 600; }
.topic-row { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .4rem; }
.topic-chip { font-size: .78rem; padding: .28rem .65rem; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--muted); }
.topic-chip.active { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ============ 通知中心 ============ */
.bell-btn { position: relative; margin-left: .3rem; border: none; background: transparent; font-size: 1.15rem; padding: .2rem .25rem; line-height: 1; }
.bell-dot { position: absolute; top: -2px; right: -4px; min-width: 16px; height: 16px; border-radius: 999px; background: #ff3b30; color: #fff; font-size: .62rem; line-height: 16px; text-align: center; padding: 0 3px; }
.notify-list { max-height: 55vh; overflow-y: auto; }
.nt-item { display: flex; align-items: center; gap: .6rem; padding: .65rem .3rem; border-bottom: 1px solid var(--border); cursor: pointer; }
.nt-item:last-child { border-bottom: none; }
.nt-item.unread { background: rgba(59, 130, 246, .06); }
.nt-icon { font-size: 1.15rem; flex-shrink: 0; }
.nt-text { font-size: .85rem; }
.nt-time { font-size: .7rem; color: var(--muted); margin-top: .15rem; }
.nt-dot { width: 8px; height: 8px; border-radius: 50%; background: #ff3b30; flex-shrink: 0; }
.modal-scroll { max-height: 70vh; overflow-y: auto; }

/* ============ 匿名发布（iOS 风格滑块开关） ============ */
.switch-item { display: inline-flex; align-items: center; gap: .55rem; margin-top: .6rem; font-size: .86rem; color: var(--text-2); cursor: pointer; user-select: none; }
.switch-item input { display: none; }
.switch-track { width: 48px; height: 28px; border-radius: 999px; background: #e2e8f0; position: relative; transition: background .25s ease; flex-shrink: 0; box-shadow: inset 0 1px 3px rgba(0,0,0,.12); }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 22px; height: 22px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0,0,0,.22); transition: transform .28s cubic-bezier(.4,0,.2,1); }
.switch-item input:checked + .switch-track { background: linear-gradient(135deg, #6366f1, #8b5cf6); box-shadow: inset 0 1px 3px rgba(0,0,0,.08); }
.switch-item input:checked + .switch-track .switch-thumb { transform: translateX(20px); }
.switch-item input:checked ~ .switch-label { color: #6366f1; font-weight: 600; }

/* ============ VIP / 道具操作 ============ */
.vip-name { color: #d4a017; font-weight: 700; }
.sc-ops { display: flex; gap: .35rem; flex-wrap: wrap; margin-top: .5rem; }

/* ============ 按钮补充 ============ */
.btn-orange { background: var(--warning); color: #fff; }
.btn-xs { font-size: .72rem; padding: .22rem .5rem; border-radius: 8px; }
.float-right { margin-left: auto; }
.mp-head { position: relative; text-align: center; margin-bottom: .5rem; padding-bottom: .2rem; }

/* ============ 头像（昵称首字符渐变，无自定义头像时） ============ */
.post-ava-txt { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 1rem; font-weight: 700; color: #fff; background: linear-gradient(135deg, #6366f1, #8b5cf6); }

/* ============ 签到日历弹窗 ============ */
.sign-stats { display: flex; gap: 8px; }
.ss-item { flex: 1; background: var(--bg); border-radius: 14px; padding: 12px 4px; text-align: center; }
.ss-num { font-size: 22px; font-weight: 800; color: var(--text); }
.ss-lbl { font-size: 11px; color: var(--muted); margin-top: 3px; }
.sign-cal { margin-top: 12px; background: var(--bg); border-radius: 16px; padding: 12px 8px; }
.cal-week { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; text-align: center; font-size: 11px; color: var(--muted); margin-bottom: 4px; padding: 0 8px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 4px; padding: 0 8px; }
.cal-cell { position: relative; height: 36px; border-radius: 10px; display: flex; align-items: center; justify-content: center; font-size: 13px; color: var(--text-2); }
.cal-cell.empty { visibility: hidden; }
.cal-cell.other { color: var(--text-3); opacity: .4; font-weight: 400; }
.cal-cell.signed { background: var(--accent); color: #fff; font-weight: 700; }
.cal-cell.today { box-shadow: 0 0 0 1.5px var(--accent); }
.cal-cell .cal-ok { position: absolute; top: 2px; right: 3px; width: 11px; height: 11px; font-size: 8px; font-style: normal; line-height: 11px; text-align: center; border-radius: 50%; background: #fff; color: var(--accent); font-weight: 800; }
.cal-cell.signed.today { box-shadow: 0 0 0 1.5px var(--accent); }
.cal-month { text-align: center; font-size: 15px; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.sign-tip { font-size: 12px; color: var(--muted); text-align: center; margin-top: 12px; }

/* ============ 我的P币整行（iOS 列表式） ============ */
.mine-edit { font-size: 13px; font-weight: 600; color: var(--accent); padding: 6px 12px; border: 1px solid rgba(0,113,227,.3); border-radius: 999px; flex-shrink: 0; }
.mine-pcoin-row { display: flex; align-items: center; gap: .6rem; background: var(--card); border-radius: var(--radius); padding: .8rem 1rem; box-shadow: var(--shadow); margin-bottom: .85rem; cursor: pointer; }
.mine-pcoin-row:active { background: var(--bg); }
.mp-icon { font-size: 1.15rem; }
.mp-label { flex: 1; font-size: .95rem; font-weight: 600; color: var(--text); }
.mp-bal { font-size: 1rem; font-weight: 800; color: var(--text); }
.mp-arrow { color: var(--text-3); font-size: 1.1rem; }

/* ============ 投稿加热教程 ============ */
.qiang-guide { margin: .8rem 1rem .6rem; background: var(--accent-soft); border: 1px solid rgba(59,130,246,.2); border-radius: 16px; padding: .9rem 1rem; }
.qg-title { font-size: .92rem; font-weight: 700; color: var(--accent); }
.qg-text { font-size: .82rem; color: var(--text-2); line-height: 1.7; margin-top: .35rem; }
.qiang-mine-item { margin: 0 0 .7rem; }

/* ============ 加热投稿卡片容器 ============ */
.qiang-target-card { background: var(--bg); border-radius: 16px; padding: .8rem .9rem; margin-bottom: .9rem; }
.qtc-title { font-size: .95rem; font-weight: 700; color: var(--text); margin-bottom: .6rem; }

/* ============ 选择投稿卡片（内容+右侧居中按钮） ============ */
.qiang-mine-item { display: flex; align-items: center; gap: .7rem; margin: 0 0 .7rem; }
.qiang-mine-item .qmi-content { flex: 1; min-width: 0; }
.qiang-mine-item .qmi-btn { flex-shrink: 0; }

/* 隐藏自定义金额输入框的上下调节按钮 */
.qiang-free-row input[type=number]::-webkit-outer-spin-button,
.qiang-free-row input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.qiang-free-row input[type=number] { -moz-appearance: textfield; appearance: textfield; }

/* ============ 我的订单（已支付）分组 ============ */
.order-group-title { font-size: .82rem; font-weight: 700; color: var(--text-2); margin: .4rem 0 .5rem; padding-left: .15rem; }
.heat-card { border-left: 3px solid var(--warning); }

/* ============ 墙币充值 ============ */
.charge-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; }
.charge-opt { border: 1.5px solid var(--border-light); border-radius: 14px; padding: .7rem .3rem; background: var(--card); display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.charge-opt b { font-size: .95rem; color: var(--text); }
.charge-opt span { font-size: .7rem; color: var(--text-3); }
.charge-opt.sel { border-color: var(--accent); background: var(--accent-soft); }
.charge-opt.sel b, .charge-opt.sel span { color: var(--accent); }
.charge-free { display: flex; align-items: center; gap: .6rem; margin-top: .8rem; }
.charge-free .input { flex: 1; min-width: 0; }
.charge-free span { font-size: .8rem; color: var(--text-2); white-space: nowrap; }
.charge-tip { font-size: .72rem; color: var(--muted); margin-top: .6rem; text-align: center; }

/* ============ 墙币余额操作按钮（脱离余额卡片，稍大） ============ */
.pcoin-actions { display: flex; gap: .7rem; margin: .4rem 0 .85rem; }
.pcoin-actions .btn { flex: 1; padding: .55rem 0; font-size: .92rem; }
.pcoin-hero .pc-label { font-size: .95rem; font-weight: 700; }

/* 余额卡片内的充值按钮：白色醒目，区别于橙色容器 */
.pcoin-hero .btn-charge { background: #fff; color: #ff6b2c; font-weight: 700; padding: .5rem 2.2rem; margin-top: .35rem; box-shadow: 0 4px 14px rgba(0,0,0,.2); }
.pcoin-hero .btn-charge:active { filter: brightness(.95); transform: scale(.97); }
