/* ============================================================
   秒助力 · PXX 多人团组队 — 美化版样式
   主题色：#2f6bff / #5a8cff / #22b8e6
   ============================================================ */

:root {
    --primary: #2f6bff;
    --primary-light: #5a8cff;
    --primary-soft: #eef4ff;
    --accent: #22b8e6;
    --bg: #f6f8fc;
    --card-bg: rgba(255, 255, 255, 0.85);
    --border: #e8eef7;
    --text: #0f172a;
    --text-sub: #64748b;
    --text-mute: #94a3b8;
    --danger: #ef4444;
    --radius-lg: 20px;
    --radius-md: 14px;
    --radius-sm: 10px;
    --shadow-card: 0 4px 16px rgba(15, 23, 42, 0.04);
    --shadow-hover: 0 8px 24px rgba(15, 23, 42, 0.08);
    --shadow-btn: 0 6px 18px rgba(47, 107, 255, 0.35);
    --transition: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background:
        radial-gradient(800px 300px at 85% -50px, rgba(47,107,255,0.08), transparent 60%),
        radial-gradient(600px 260px at 0% 0%, rgba(124,58,237,0.05), transparent 55%),
        var(--bg);
    min-height: 100vh;
    color: var(--text);
    -webkit-font-smoothing: antialiased;
    padding-bottom: 90px;
}

.page { max-width: 620px; margin: 0 auto; padding: 0 14px calc(84px + env(safe-area-inset-bottom, 0px)) 14px; }

/* ===== 顶栏 ===== */
.topbar {
    display: flex; align-items: center; justify-content: space-between;
    padding: 10px 2px 8px 2px;
}
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; cursor: pointer; }
.brand:active { opacity: 0.75; }
.brand-logo { width: 38px; height: 38px; border-radius: 11px; display: block; box-shadow: 0 4px 12px rgba(47,107,255,0.28); }
.brand-name { font-size: 16px; font-weight: 800; letter-spacing: 0.5px; color: var(--text); display: flex; align-items: center; }
.brand-sub { font-size: 10.5px; color: var(--text-mute); margin-top: 1px; }
.top-actions { display: flex; gap: 8px; }
.icon-btn {
    height: 36px; padding: 0 12px; border-radius: 11px; border: 1px solid var(--border);
    background: #fff; cursor: pointer; font-size: 12.5px; font-weight: 700; color: var(--text-sub);
    display: flex; align-items: center; justify-content: center; text-decoration: none;
    box-shadow: 0 2px 8px rgba(15,23,42,0.04);
    transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.icon-btn:active { transform: scale(0.94); background: #f8fafc; }

/* ===== 频道导航（仅一个当前频道） ===== */
.channel-nav {
    display: flex; align-items: center; gap: 5px;
    margin: 2px 0 12px 0; padding: 3.5px;
    background: #eef3fb; border: 1px solid #dce6f5; border-radius: 999px;
}
.channel-tab {
    flex: 1; min-height: 38px; display: flex; align-items: center; justify-content: center;
    gap: 6px; text-decoration: none; border-radius: 999px; font-size: 13px; font-weight: 700;
    user-select: none; white-space: nowrap; padding: 0 10px;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}
.channel-tab.is-active {
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    color: #fff; box-shadow: 0 3px 10px rgba(47, 107, 255, 0.28); cursor: default;
}
.tab-badge {
    font-size: 10px; font-weight: 700; padding: 1.5px 6.5px; border-radius: 999px;
    line-height: 1.3; letter-spacing: 0.5px; display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff4d4f, #f5222d); color: #fff; box-shadow: 0 2px 5px rgba(245, 34, 45, 0.25);
}
@media (max-width: 480px) {
    .channel-nav { gap: 4px; margin: 0 0 10px 0; padding: 3px; }
    .channel-tab { min-height: 36px; font-size: 12.5px; padding: 0 6px; gap: 4px; }
    .tab-badge { font-size: 9.5px; padding: 1px 5px; }
}
@media (max-width: 360px) {
    .channel-tab { font-size: 11.5px; gap: 3px; padding: 0 3px; }
    .tab-badge { font-size: 9px; padding: 1px 4px; }
}

/* ===== 身份横幅 ===== */
.id-banner {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    background: #fff; border: 1px solid var(--border); border-radius: var(--radius-md);
    box-shadow: 0 2px 10px rgba(15,23,42,0.04); color: var(--text-sub);
    position: relative; overflow: hidden; padding: 9px 14px 9px 18px;
    margin: 10px 0 6px 0; font-size: 12.5px;
}
.id-banner::before {
    content: ''; position: absolute; left: 0; top: 8px; bottom: 8px; width: 4px;
    border-radius: 0 4px 4px 0; background: linear-gradient(180deg, var(--primary), var(--accent));
}
.id-banner.ok::before { background: linear-gradient(180deg, #10b981, #34d399); }

/* ===== Hero 标题 ===== */
.hero { text-align: center; padding: 14px 0 12px 0; }
.hero h1 {
    margin: 0; font-size: 23px; font-weight: 800; letter-spacing: 1px;
    color: var(--primary); text-shadow: 0 2px 8px rgba(37,99,235,0.15);
}
.hero-sub { margin-top: 6px; font-size: 12px; color: var(--text-mute); letter-spacing: 2px; }

/* ===== 搜索框 ===== */
.search-wrap { margin: 10px 0 10px 0; position: relative; }
.search-wrap input {
    width: 100%; border: 1.5px solid #dde6f2; border-radius: 13px;
    background: #f8fafd; height: 44px; padding: 0 36px 0 38px;
    font-size: 14px; color: var(--text); outline: none;
    box-shadow: 0 2px 8px rgba(15,23,42,0.02);
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.search-wrap input:focus {
    border-color: var(--primary); background: #fff; box-shadow: 0 0 0 3px rgba(47,107,255,0.12);
}
.search-wrap .s-icon {
    position: absolute; left: 13px; top: 50%; transform: translateY(-50%);
    color: var(--text-mute); display: flex; align-items: center; justify-content: center; pointer-events: none;
}
.search-wrap .s-clear {
    position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
    width: 22px; height: 22px; border-radius: 50%;
    background: #e2e8f0; color: var(--text-sub); font-size: 11px; line-height: 22px;
    text-align: center; border: none; cursor: pointer;
}

/* ===== Tab 行 ===== */
.tab-row {
    display: flex; align-items: center; gap: 2px;
    border-bottom: 1px solid var(--border); margin-bottom: 6px; position: relative;
}
.tab {
    border: none; background: none; cursor: pointer;
    font-size: 14.5px; color: var(--text-sub); padding: 9px 10px;
    position: relative; font-weight: 600; transition: color 0.15s;
}
.tab.active { color: var(--primary); font-weight: 800; }
.tab.active::after {
    content: ''; position: absolute; left: 50%; transform: translateX(-50%); bottom: -1px;
    width: 22px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--primary), var(--accent));
}
.tab-right { margin-left: auto; display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.countdown {
    background: #fff; border: 1px solid var(--border); color: var(--primary);
    border-radius: 999px; padding: 3px 8px; font-size: 11.5px; font-weight: 700;
    box-shadow: 0 2px 6px rgba(15,23,42,0.03); font-variant-numeric: tabular-nums;
}
.refresh-btn {
    display: flex; align-items: center; gap: 3px;
    border: 1px solid var(--border); background: #fff; cursor: pointer;
    font-size: 11.5px; font-weight: 700; color: var(--primary);
    border-radius: 999px; padding: 3px 9px;
    box-shadow: 0 2px 6px rgba(15,23,42,0.03);
    transition: transform 0.15s, background 0.15s;
}
.refresh-btn:active { transform: scale(0.95); background: #f0f5ff; }
.refresh-btn.spin .r-icon { animation: rotateSpin 0.5s linear infinite; }
@keyframes rotateSpin { from { transform: rotate(0deg); } to { transform: rotate(360deg); } }

/* ===== 拼团卡片 ===== */
.pt-card {
    background: var(--card-bg);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 234, 245, 0.8);
    border-radius: var(--radius-lg);
    padding: 13px 15px 12px 15px;
    margin-top: 11px;
    box-shadow: var(--shadow-card);
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.pt-card:active {
    transform: scale(0.988);
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.03);
    border-color: #cde0ff;
}
@media (hover: hover) {
    .pt-card:hover {
        transform: translateY(-2px);
        box-shadow: var(--shadow-hover);
        border-color: rgba(205, 224, 255, 0.9);
    }
}
.pt-card.st-full   { opacity: 0.85; }
.pt-card.st-expire { opacity: 0.55; }

.pt-row1 { display: flex; align-items: center; gap: 8px; min-width: 0; }
.team-tag {
    flex-shrink: 0; font-size: 11px; font-weight: 800; color: var(--primary);
    background: linear-gradient(135deg, #eef5ff, #e2eeff);
    border: 1px solid #cce0ff;
    padding: 2.5px 9px; border-radius: 999px; line-height: 1.25; letter-spacing: 0.3px;
}
.pt-goods-title {
    flex: 1; min-width: 0; font-size: 14px; font-weight: 700; color: var(--text);
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
    line-height: 1.45; word-break: break-all;
}
.pt-row2 { display: flex; align-items: baseline; gap: 8px; margin-top: 9px; }
.pt-nick {
    flex: 1; min-width: 0; font-size: 11.5px; color: var(--text-sub); font-weight: 500;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.price-box { flex: none; margin-left: auto; white-space: nowrap; display: flex; align-items: baseline; gap: 2px; }
.price-label { font-size: 10.5px; color: var(--text-mute); font-weight: 600; }
.price-num { font-size: 18px; font-weight: 900; color: var(--danger); letter-spacing: -0.5px; }
.price-num i { font-style: normal; font-size: 12px; font-weight: 800; margin-right: 1px; }

.join-btn {
    align-self: center;
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff;
    border: none; border-radius: 999px; padding: 7.5px 18px;
    font-size: 12.5px; font-weight: 800; letter-spacing: 0.8px;
    box-shadow: 0 4px 14px rgba(47, 107, 255, 0.32);
    cursor: pointer; transition: transform 0.12s, box-shadow 0.15s;
    white-space: nowrap; flex-shrink: 0;
}
.join-btn:active { transform: scale(0.95); }
.join-btn.done { background: #e2e8f0; color: var(--text-mute); box-shadow: none; }

.pt-marks {
    display: flex; align-items: center; gap: 7px; margin-top: 9px;
    border-top: 1px dashed #eaf0f8; padding-top: 9px;
}
.mk-btn {
    border: 1px solid #e2eaf5; background: #f8fafd; cursor: pointer;
    font-size: 11px; font-weight: 600; color: var(--text-sub);
    padding: 3.5px 11px; border-radius: 999px;
    transition: all 0.15s ease;
}
.mk-btn:active { background: #eef4ff; color: var(--primary); border-color: #cde0ff; transform: scale(0.96); }
.mk-btn.marked { color: var(--text-mute); background: #f1f5f9; border-color: #e2e8f0; cursor: default; }
.mk-status { margin-left: auto; font-size: 11px; font-weight: 700; padding: 2.5px 9px; border-radius: 999px; }
.mk-status.full { background: #fef3c7; color: #b45309; border: 1px solid #fde68a; }
.mk-status.expire { background: #fee2e2; color: #b91c1c; border: 1px solid #fecaca; }

/* ===== 加载更多 / 空状态 ===== */
.load-more {
    display: block; width: 100%; margin-top: 14px; border: none; cursor: pointer;
    background: #fff; color: var(--primary); font-size: 13px; font-weight: 600;
    padding: 12px 0; border-radius: 12px; box-shadow: 0 2px 10px rgba(15, 23, 42, 0.05);
}
.load-more:disabled { color: var(--text-mute); cursor: default; }
.empty-state { text-align: center; padding: 60px 0 30px 0; color: var(--text-mute); }
.empty-state .e-icon { font-size: 44px; }
.empty-state p { margin-top: 10px; font-size: 14px; }

/* ===== 发布按钮 / 回到顶部 ===== */
.publish-fab {
    position: fixed; left: 50%; transform: translateX(-50%);
    bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
    display: flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
    border: none; cursor: pointer; text-decoration: none;
    font-size: 14.5px; font-weight: 800; letter-spacing: 1.5px;
    padding: 12px 30px; border-radius: 999px;
    box-shadow: 0 6px 20px rgba(47,107,255, 0.38);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.publish-fab:hover { transform: translateX(-50%) translateY(-1px); }
.publish-fab:active { transform: translateX(-50%) scale(0.96); }

.back-top {
    position: fixed;
    right: max(16px, calc(50% - 260px - 58px));
    bottom: calc(24px + env(safe-area-inset-bottom, 0px));
    z-index: 45; width: 44px; height: 44px; border-radius: 50%;
    background: rgba(255, 255, 255, 0.72);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(220, 235, 255, 0.85);
    box-shadow: 0 4px 18px rgba(15, 23, 42, 0.08), 0 1px 4px rgba(47, 107, 255, 0.08);
    color: var(--primary);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer; outline: none; -webkit-tap-highlight-color: transparent;
    opacity: 0; pointer-events: none;
    transform: translateY(12px) scale(0.88);
    transition: opacity 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.28s cubic-bezier(0.16, 1, 0.3, 1),
                background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}
.back-top svg { display: block; transition: transform 0.2s ease; }
.back-top.visible { opacity: 1; pointer-events: auto; transform: translateY(0) scale(1); }
.back-top:hover { background: rgba(255, 255, 255, 0.88); border-color: rgba(191, 219, 254, 0.95); box-shadow: 0 6px 20px rgba(47, 107, 255, 0.16), 0 2px 6px rgba(15, 23, 42, 0.06); }
.back-top:hover svg { transform: translateY(-2px); }
.back-top:active { transform: translateY(0) scale(0.92); background: rgba(240, 246, 255, 0.92); }

/* ===== 弹层（移动端底部滑出） ===== */
.mask {
    display: none; position: fixed; inset: 0; z-index: 60;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
.mask.open { display: flex; align-items: flex-end; justify-content: center; padding: 0; }
.sheet {
    background: #fff; width: 100%; max-width: 500px;
    border-radius: 20px 20px 0 0; padding: 22px 20px calc(22px + env(safe-area-inset-bottom, 0px));
    box-shadow: 0 24px 64px rgba(15, 23, 42, .28);
    max-height: 88vh; overflow-y: auto; box-sizing: border-box;
    animation: sheetSlideUp 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes sheetSlideUp {
    from { transform: translateY(100%); }
    to   { transform: translateY(0); }
}
@media (min-width: 620px) {
    .mask.open { align-items: center; padding: 20px; }
    .sheet { border-radius: 20px; animation: sheetFadeIn 0.25s ease; }
    @keyframes sheetFadeIn {
        from { opacity: 0; transform: scale(0.96); }
        to   { opacity: 1; transform: scale(1); }
    }
}
.sheet-head {
    display: flex; align-items: center; justify-content: space-between;
    padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; margin-bottom: 14px;
}
.sheet-title { font-size: 17px; font-weight: 800; color: var(--text); display: flex; align-items: center; }
.sheet-title::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent)); margin-right: 8px;
}
.sheet-close {
    border: none; cursor: pointer; width: 28px; height: 28px; border-radius: 50%;
    background: #f1f5f9; color: var(--text-sub); font-size: 13px; line-height: 28px;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.15s, transform 0.15s;
}
.sheet-close:active { transform: scale(0.92); background: #e2e8f0; }
.sheet-body { font-size: 14px; color: #334155; line-height: 1.7; }

/* 发布/同款弹层内部 */
.pub-head { padding-bottom: 12px; border-bottom: 1px solid #f1f5f9; margin-bottom: 16px; }
.pub-title { display: flex; align-items: center; font-size: 18px; }
.pub-title::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(180deg, var(--primary), var(--accent)); margin-right: 8px;
}
.howto-steps {
    display: flex; align-items: center; justify-content: space-between;
    background: linear-gradient(135deg, #f0f5ff, #e6f0ff);
    border: 1px solid #dbe7ff; border-radius: 12px;
    padding: 10px 16px; margin-bottom: 14px;
}
.howto-steps .step { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: #1e40af; }
.howto-steps .step i {
    font-style: normal; width: 18px; height: 18px; border-radius: 50%;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
    font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center;
    box-shadow: 0 2px 6px rgba(47,107,255,0.3);
}
.howto-steps em { font-style: normal; color: var(--text-mute); font-weight: 800; }

.paste-wrap { position: relative; margin-bottom: 12px; }
.paste-wrap textarea {
    width: 100%; border: 1px solid #e2e8f0; outline: none; resize: none;
    border-radius: 12px; padding: 11px 14px; font-size: 13px; color: var(--text);
    background: #f8fafc; line-height: 1.6; box-sizing: border-box; font-family: inherit;
}
.paste-wrap textarea:focus { border-color: #93c5fd; background: #fff; box-shadow: 0 0 0 3px rgba(47,107,255,0.1); }
.paste-btn {
    position: absolute; top: 50%; right: 8px; transform: translateY(-50%);
    border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
    font-size: 12px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
    box-shadow: 0 2px 6px rgba(37, 99, 235, .3);
}
.parse-preview {
    background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px;
    padding: 12px 14px; margin-bottom: 12px;
}
.pp-line { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.pp-team { background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 6px; }
.pp-lack { font-size: 12px; color: var(--text-sub); }
.pp-title {
    font-size: 14px; font-weight: 600; color: var(--text); line-height: 1.5; margin-bottom: 6px;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.pp-price { font-size: 12px; color: var(--text-sub); text-align: right; }
.pp-price b { color: var(--danger); font-size: 18px; margin-left: 2px; }
.parse-err { font-size: 12px; color: var(--danger); text-align: center; margin-bottom: 12px; }
.pub-actions { display: flex; gap: 10px; }
.ghost-btn {
    flex: 0 0 30%; border: 1px solid var(--border); border-radius: 999px; cursor: pointer;
    background: #fff; color: var(--text-sub); font-size: 14px; font-weight: 700; padding: 11px 0;
    transition: background 0.15s;
}
.ghost-btn:active { background: #f8fafc; }
.pub-actions .pub-btn { flex: 1; padding: 11px 0; font-size: 14.5px; border-radius: 999px; }
.primary-btn:disabled { opacity: .45; cursor: not-allowed; }
.primary-btn {
    width: 100%; border: none; cursor: pointer;
    background: linear-gradient(135deg, var(--primary), var(--primary-light)); color: #fff;
    font-size: 15px; font-weight: 800; letter-spacing: 2px;
    padding: 13px 0; border-radius: 12px;
    box-shadow: var(--shadow-btn);
    transition: transform 0.15s;
}
.primary-btn:active { transform: scale(0.98); }

/* 规则文本 */
.rule-h {
    font-size: 13px; font-weight: 800; color: #1e40af;
    background: #f0f5ff; border: 1px solid #dbe7ff;
    padding: 3px 10px; border-radius: 6px; display: inline-block; margin: 12px 0 6px 0;
}
.rule-h:first-child { margin-top: 2px; }
.rule-p { font-size: 13px; color: var(--text-sub); line-height: 1.85; }

/* ===== 详情页 ===== */
.dt-main-card { padding: 18px 16px 0; border-radius: 16px; background: linear-gradient(165deg, #ffffff 55%, #f4f8ff); border: 1px solid var(--border); }
.dt-top { display: flex; align-items: center; gap: 8px; }
.dt-top .dt-nick { margin-left: auto; font-size: 12px; color: var(--text-mute); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dt-goods-title { margin-top: 12px; font-size: 17px; font-weight: 800; line-height: 1.55; color: var(--text); }
.dt-price-row { margin-top: 12px; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.dt-price-row .price-label { font-size: 12px; }
.dt-price { font-size: 32px; font-weight: 900; color: var(--danger); letter-spacing: -0.5px; }
.dt-price i { font-style: normal; font-size: 16px; font-weight: 800; margin-right: 2px; }
.dt-price-row .dt-countdown { margin-left: auto; }
.dt-countdown { font-size: 12px; color: var(--primary); background: #eef4ff; border: 1px solid #dbe7ff; border-radius: 999px; padding: 5px 12px; white-space: nowrap; }
.dt-marks-row { display: flex; gap: 10px; border-top: 1px solid #f1f5f9; margin: 16px -16px 0; padding: 14px 16px; }
.dt-marks-row .mk-btn { flex: 1; background: #f8fafc; border: 1px solid #eef2f7; border-radius: 10px; padding: 10px 0; font-size: 13px; color: var(--text-sub); }
.dt-marks-row .mk-btn:active { color: var(--primary); background: #eef4ff; border-color: #dbe7ff; }

.dt-join-card, .dt-sim-card { margin-top: 12px; padding: 14px; }
.dt-join-head { display: flex; align-items: center; margin-bottom: 10px; }
.dt-sec-title { font-size: 14.5px; font-weight: 800; color: var(--text); }
.dt-join-count { margin-left: auto; font-size: 12px; color: var(--text-sub); }
.dt-join-count b { color: var(--primary); font-size: 14px; font-weight: 800; }
.dt-joiner-list { display: flex; flex-direction: column; gap: 2px; }
.dt-joiner { display: flex; align-items: center; gap: 8px; padding: 7px 0; border-bottom: 1px solid #f8fafc; }
.dt-joiner:last-child { border-bottom: none; }
.dt-join-dot { width: 6px; height: 6px; border-radius: 50%; background: linear-gradient(135deg, var(--primary), var(--accent)); flex-shrink: 0; }
.dt-joiner-nick { font-size: 13px; color: var(--text); font-weight: 600; }
.dt-joiner-time { margin-left: auto; font-size: 11px; color: var(--text-mute); }

.dt-sim-empty { font-size: 13px; color: var(--text-mute); text-align: center; padding: 8px 0 2px 0; }
.dt-sim-item { display: flex; align-items: center; gap: 8px; padding: 10px 6px; border-radius: 10px; cursor: pointer; }
.dt-sim-item:active { background: #eff6ff; }
.dt-sim-title { flex: 1; min-width: 0; font-size: 13px; color: #334155; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-sim-price { font-size: 14px; font-weight: 800; color: var(--danger); flex-shrink: 0; }
.dt-refresh-sim { margin-left: auto; font-size: 12px; color: var(--primary); cursor: pointer; }

.dt-actionbar {
    position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
    width: 100%; max-width: 620px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 -4px 18px rgba(15, 23, 42, .06); border-top: 1px solid var(--border);
    display: flex; align-items: center; gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    z-index: 50; box-sizing: border-box;
}
.dt-price-mini { display: flex; flex-direction: column; line-height: 1.3; }
.dt-price-num { font-size: 22px; font-weight: 900; color: var(--danger); }
.dt-price-num i { font-style: normal; font-size: 13.5px; font-weight: 800; margin-right: 1px; }
.dt-join-big {
    flex: 1; padding: 12px 0; font-size: 15.5px; font-weight: 800; letter-spacing: 1px;
    border-radius: 999px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    box-shadow: 0 4px 14px rgba(47,107,255,0.35);
}
.dt-join-big:disabled, .dt-join-big.join-btn-done {
    background: #e2e8f0 !important; color: var(--text-mute) !important; box-shadow: none !important; cursor: not-allowed;
}

/* ===== Toast ===== */
.toast {
    position: fixed; left: 50%; top: 45%; transform: translate(-50%, -50%) scale(0.9);
    z-index: 99; pointer-events: none;
    background: rgba(15, 23, 42, 0.82); color: #fff;
    font-size: 14px; font-weight: 600; padding: 12px 22px; border-radius: 12px;
    opacity: 0; transition: opacity 0.2s, transform 0.2s;
    max-width: 80vw; text-align: center;
}
.toast.show { opacity: 1; transform: translate(-50%, -50%) scale(1); }

/* ===== 同款弹层内列表 ===== */
#sameMask .same-list { display: flex; flex-direction: column; }
#sameMask .same-list .pt-card { box-shadow: none; border-bottom: 1px solid #f1f5f9; border-radius: 0; padding: 12px 2px; }
#sameMask .same-list .pt-card:last-child { border-bottom: none; }
#sameMask .empty-hint { text-align: center; color: var(--text-mute); padding: 20px 0; }



/* ============================================================
   拼多多福袋互助 — 专属美化
   ============================================================ */

/* ---- 福袋 Hero：带福袋图标和光晕 ---- */
.fd-hero { position: relative; text-align: center; padding: 18px 0 8px 0; }
.fd-hero .fd-hero-icon {
    display: inline-flex; align-items: center; justify-content: center;
    width: 56px; height: 56px; border-radius: 18px; margin-bottom: 10px;
    background: linear-gradient(135deg, #ff6b6b 0%, #ff9a3c 100%);
    box-shadow: 0 10px 24px rgba(255, 107, 107, 0.35), 0 0 0 6px rgba(255, 107, 107, 0.08);
    position: relative;
}
.fd-hero .fd-hero-icon::after {
    content: ''; position: absolute; inset: -10px; border-radius: 24px;
    background: radial-gradient(circle, rgba(255,107,107,0.18), transparent 70%);
    z-index: -1; pointer-events: none;
}
.fd-hero h1 {
    margin: 0; font-size: 23px; font-weight: 800; letter-spacing: 1px;
    background: linear-gradient(135deg, #ff5c5c 0%, #ff8a3d 50%, #ffb13d 100%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-fill-color: transparent;
    filter: drop-shadow(0 2px 8px rgba(255,107,107,0.2));
}
.fd-hero-sub {
    margin-top: 6px; font-size: 12px; color: var(--text-mute); letter-spacing: 2px;
}

/* ---- 数据概览条：三个小统计 ---- */
.fd-stats {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px;
    margin: 14px 0 12px 0;
}
.fd-stat {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 234, 245, 0.8);
    border-radius: 14px; padding: 10px 8px; text-align: center;
    box-shadow: var(--shadow-card);
}
.fd-stat-num {
    font-size: 18px; font-weight: 900; letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    background: linear-gradient(135deg, #ff5c5c, #ff9a3c);
    -webkit-background-clip: text; background-clip: text; color: transparent;
    -webkit-text-fill-color: transparent;
}
.fd-stat-label {
    font-size: 11px; color: var(--text-mute); margin-top: 2px; font-weight: 600;
}

/* ---- 提交卡：福袋主题暖色调 ---- */
.fd-submit-card {
    background: var(--card-bg); backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 234, 245, 0.8);
    border-radius: 20px; padding: 16px; margin-bottom: 14px;
    box-shadow: 0 6px 24px rgba(255, 107, 107, 0.06);
}
.fd-input-wrap {
    display: flex; align-items: center; height: 48px;
    border: 1.5px solid #dde6f2; border-radius: 13px; background: #f8fafd;
    overflow: hidden;
    transition: border-color 0.25s ease, background 0.25s ease, box-shadow 0.25s ease;
}
.fd-input-wrap:focus-within {
    border-color: #ff8a3d; background: #fff;
    box-shadow: 0 0 0 3px rgba(255, 138, 61, 0.12);
}
.fd-input-wrap input {
    flex: 1; min-width: 0; height: 100%; border: none; background: transparent;
    padding: 0 14px; font-size: 15px; color: var(--text); outline: none;
    letter-spacing: 2px; font-weight: 700;
}
.fd-input-wrap input::placeholder {
    letter-spacing: 0; font-weight: 500; color: #94a3b8;
}
.fd-scan-btn {
    flex-shrink: 0; height: 100%; padding: 0 14px; border: none;
    border-left: 1.5px solid #dde6f2; background: #fff5ee; cursor: pointer;
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: 2px; transition: background 0.2s, transform 0.12s;
}
.fd-scan-btn:hover { background: #ffe8d6; }
.fd-scan-btn:active { transform: scale(0.94); background: #ffd9bb; }
.fd-scan-btn .scan-text { font-size: 10px; color: #ff6b3d; line-height: 1; font-weight: 700; }
.fd-scan-icon { position: relative; width: 17px; height: 17px; }
.fd-scan-icon::before, .fd-scan-icon::after,
.fd-scan-core::before, .fd-scan-core::after {
    content: ''; position: absolute; width: 5.5px; height: 5.5px;
}
.fd-scan-icon::before { top: 0; left: 0; border-top: 2px solid #ff6b3d; border-left: 2px solid #ff6b3d; border-top-left-radius: 3px; }
.fd-scan-icon::after { bottom: 0; right: 0; border-bottom: 2px solid #ff6b3d; border-right: 2px solid #ff6b3d; border-bottom-right-radius: 3px; }
.fd-scan-core { position: absolute; inset: 0; }
.fd-scan-core::before { top: 0; right: 0; border-top: 2px solid #ff6b3d; border-right: 2px solid #ff6b3d; border-top-right-radius: 3px; }
.fd-scan-core::after { bottom: 0; left: 0; border-bottom: 2px solid #ff6b3d; border-left: 2px solid #ff6b3d; border-bottom-left-radius: 3px; }
.fd-scan-line {
    position: absolute; left: 15%; right: 15%; top: 50%; height: 2px; margin-top: -1px;
    background: #ff6b3d; border-radius: 1px;
    animation: fdScanMove 1.6s ease-in-out infinite;
}
@keyframes fdScanMove { 0%,100% { opacity: 1; } 50% { opacity: 0.3; } }

.fd-submit-btn {
    width: 100%; height: 48px; margin-top: 10px; border: none; border-radius: 13px;
    font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 2px; cursor: pointer;
    background: linear-gradient(135deg, #ff6b3d 0%, #ff9a3c 100%);
    box-shadow: 0 6px 18px rgba(255, 107, 61, 0.35);
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.fd-submit-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(255, 107, 61, 0.42); }
.fd-submit-btn:active { transform: scale(0.97); }
.fd-submit-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }

/* ---- 列表标题：福袋主题 ---- */
.fd-list-title {
    display: flex; align-items: center; gap: 8px; padding: 4px 4px 12px 4px;
}
.fd-list-title::before {
    content: ''; width: 4px; height: 16px; border-radius: 2px;
    background: linear-gradient(180deg, #ff6b3d, #ffb13d);
}
.fd-list-title-text { font-size: 15px; font-weight: 800; color: var(--text); flex: 1; }
.fd-list-live {
    display: inline-flex; align-items: center; gap: 5px;
    font-size: 11px; color: #ff6b3d; font-weight: 700;
    background: #fff5ee; border: 1px solid #ffd9bb; padding: 3px 10px; border-radius: 999px;
}
.fd-list-live::before {
    content: ''; width: 6px; height: 6px; border-radius: 50%; background: #ff4d4f;
    box-shadow: 0 0 0 3px rgba(255, 77, 79, 0.18);
    animation: fdPulse 1.6s ease-in-out infinite;
}
@keyframes fdPulse { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: 0.5; transform: scale(0.85); } }

/* ---- 福袋卡片 ---- */
.fd-item {
    position: relative; overflow: hidden;
    display: flex; align-items: center; gap: 12px;
    background: var(--card-bg); backdrop-filter: blur(10px);
    border: 1px solid rgba(226, 234, 245, 0.8);
    border-radius: 16px; padding: 14px 16px; margin-bottom: 10px;
    box-shadow: var(--shadow-card);
    transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    animation: fdFadeIn 0.35s ease both;
}
@keyframes fdFadeIn {
    from { opacity: 0; transform: translateY(8px); }
    to   { opacity: 1; transform: translateY(0); }
}
.fd-item:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(15, 23, 42, 0.07); }
.fd-item.is-mine {
    background: linear-gradient(135deg, #fff9f4 0%, #fff3e6 100%);
    border-color: #ffd9bb;
}
.fd-item.is-mine::before {
    content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
    border-radius: 0 4px 4px 0;
    background: linear-gradient(180deg, #ff6b3d, #ffb13d);
}
.fd-item.is-used {
    background: #f8fafc; opacity: 0.6;
}
.fd-item.is-used .fd-code-num { color: #cbd5e1; text-decoration: line-through; text-decoration-thickness: 2px; }
.fd-item.is-used::before { display: none; }
.fd-item.is-just-used {
    border-color: #fecaca; background: #fffafa;
    animation: fdJustUsed 0.6s ease;
}
@keyframes fdJustUsed {
    0% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.35); }
    70% { box-shadow: 0 0 0 10px rgba(239, 68, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); }
}

.fd-info { flex: 1; min-width: 0; }
.fd-code-line { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.fd-code-num {
    font-size: 19px; font-weight: 900; letter-spacing: 3px; color: var(--text);
    font-variant-numeric: tabular-nums;
}
.fd-code-num .fd-mask { color: #94a3b8; letter-spacing: 3px; }
.fd-time { font-size: 11px; color: var(--text-mute); margin-top: 4px; }

.fd-tag {
    font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px;
    line-height: 1.4; white-space: nowrap;
}
.fd-tag.mine { color: #059669; background: #ecfdf5; border: 1px solid #b5ead0; }
.fd-tag.just { color: #dc2626; background: #fef2f2; border: 1px solid #fecaca; }
.fd-tag.new  { color: #2563eb; background: #eff6ff; border: 1px solid #bfdbfe; }

.fd-btn {
    flex-shrink: 0; border: none; border-radius: 999px; padding: 9px 20px;
    font-size: 13px; font-weight: 800; letter-spacing: 1px; cursor: pointer;
    color: #fff;
    background: linear-gradient(135deg, #ff6b3d 0%, #ff9a3c 100%);
    box-shadow: 0 4px 14px rgba(255, 107, 61, 0.35);
    transition: transform 0.12s, box-shadow 0.15s;
}
.fd-btn:hover { box-shadow: 0 6px 18px rgba(255, 107, 61, 0.45); }
.fd-btn:active { transform: scale(0.95); }
.fd-btn.used {
    background: #e2e8f0; color: #94a3b8; box-shadow: none; cursor: default;
}

/* ---- 空状态 ---- */
.fd-empty {
    text-align: center; padding: 50px 20px 30px 20px; color: var(--text-mute);
}
.fd-empty .fd-empty-icon { font-size: 50px; line-height: 1; filter: grayscale(0.2); }
.fd-empty .fd-empty-title { font-size: 14px; font-weight: 700; color: #64748b; margin-top: 12px; }
.fd-empty .fd-empty-sub { font-size: 12px; color: #94a3b8; margin-top: 6px; }

/* ---- 加载骨架 ---- */
.fd-skeleton {
    background: linear-gradient(90deg, #f1f5f9 25%, #e2e8f0 37%, #f1f5f9 63%);
    background-size: 400% 100%;
    animation: fdShimmer 1.4s ease infinite;
    border-radius: 16px; height: 72px; margin-bottom: 10px;
}
@keyframes fdShimmer {
    0% { background-position: 100% 0; }
    100% { background-position: -100% 0; }
}



/* ============================================================
   智能直达 & 打开拼多多确认弹层
   ============================================================ */

.fd-direct-btn {
    display: flex; align-items: center; justify-content: center; gap: 8px;
    width: 100%; height: 48px; margin-top: 10px;
    border: none; border-radius: 13px; cursor: pointer;
    font-size: 15px; font-weight: 800; color: #fff; letter-spacing: 2px;
    background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
    box-shadow: 0 6px 18px rgba(124, 58, 237, 0.32);
    position: relative;
    transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.fd-direct-btn:hover { transform: translateY(-1px); box-shadow: 0 8px 22px rgba(124, 58, 237, 0.4); }
.fd-direct-btn:active { transform: scale(0.97); }
.fd-direct-btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none; box-shadow: none; }
.fd-direct-btn .fd-direct-help {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    width: 20px; height: 20px; border-radius: 50%;
    background: rgba(255,255,255,0.25); color: #fff;
    font-size: 12px; line-height: 20px; text-align: center;
    font-weight: 700; cursor: pointer;
}

/* 确认弹层内容 */
.pdd-confirm-body { text-align: center; padding: 4px 4px 0; }
.pdd-confirm-icon {
    width: 64px; height: 64px; margin: 0 auto 14px;
    border-radius: 20px; display: flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, #ff6b3d, #ff9a3c);
    box-shadow: 0 10px 24px rgba(255, 107, 61, 0.3);
    position: relative;
}
.pdd-confirm-icon::after {
    content: ''; position: absolute; inset: -8px; border-radius: 26px;
    background: radial-gradient(circle, rgba(255,107,61,0.18), transparent 70%);
    z-index: -1; pointer-events: none;
}
.pdd-confirm-title {
    font-size: 17px; font-weight: 800; color: var(--text);
    margin-bottom: 8px;
}
.pdd-confirm-desc {
    font-size: 13px; color: var(--text-sub); line-height: 1.75;
    margin-bottom: 18px; padding: 0 8px;
}
.pdd-confirm-code {
    display: inline-block; padding: 3px 12px; border-radius: 8px;
    background: #fff5ee; color: #ff6b3d; font-weight: 800;
    letter-spacing: 2px; font-variant-numeric: tabular-nums;
    border: 1px dashed #ffd9bb; margin: 0 2px;
}
.pdd-confirm-actions { display: flex; gap: 10px; }
.pdd-confirm-actions .pdd-btn {
    flex: 1; height: 46px; border: none; border-radius: 12px; cursor: pointer;
    font-size: 14.5px; font-weight: 800; letter-spacing: 1px;
    transition: transform 0.12s;
}
.pdd-confirm-actions .pdd-btn:active { transform: scale(0.97); }
.pdd-confirm-actions .pdd-btn-cancel {
    background: #f1f5f9; color: #64748b;
}
.pdd-confirm-actions .pdd-btn-ok {
    background: linear-gradient(135deg, #ff6b3d, #ff9a3c); color: #fff;
    box-shadow: 0 4px 14px rgba(255, 107, 61, 0.32);
}