/* ========================================
   互助平台 - acdog风格对齐版
   区块化堆叠布局、居中窄容器、卡片式组件
   ======================================== */

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

:root {
    --primary: #0d9488;
    --primary-light: #f0fdfa;
    --primary-dark: #0f766e;
    --danger: #ef4444;
    --warning: #f59e0b;
    --success: #10b981;
    --text: #1e293b;
    --text-light: #64748b;
    --text-lighter: #94a3b8;
    --bg: #f1f5f9;
    --bg-white: #fff;
    --border: #e2e8f0;
    --shadow: 0 1px 3px rgba(0,0,0,0.06), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --radius: 12px;
    --radius-sm: 8px;
    /* 主题变量 */
    --theme-primary: #0d9488;
    --theme-primary-light: #f0fdfa;
    --theme-primary-dark: #0f766e;
    --theme-nav-bg: rgba(255,255,255,0.95);
    --theme-nav-text: #334155;
    --theme-card-green: #10b981;
    --theme-card-orange: #f59e0b;
    --theme-card-pink: #ec4899;
    --theme-card-red: #ef4444;
    --theme-button: #0d9488;
    --theme-accent: #f59e0b;
    --theme-page-bg: #f1f5f9;
    --theme-footer-bg: #f8fafc;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'PingFang SC', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

/* ---- Page container ---- */
.container {
    max-width: 440px;
    margin: 0 auto;
    padding: 0 12px 40px;
}

.page-body {
    max-width: 440px;
    margin: 0 auto;
    padding: 8px 12px 40px;
}

/* ---- 水印 ---- */
.watermark {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    pointer-events: none;
    z-index: 9998;
    overflow: hidden;
}

.watermark-text {
    position: absolute;
    font-size: 16px;
    color: rgba(0,0,0,0.04);
    transform: rotate(-30deg);
    white-space: nowrap;
    font-weight: 600;
    letter-spacing: 4px;
}

/* ========================================
   导航栏 - acdog风格 sticky header
   ======================================== */
.global-nav {
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(226,232,240,0.8);
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 1px 2px rgba(0,0,0,0.04);
}

.nav-inner {
    max-width: 768px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 16px;
    height: 56px;
    gap: 12px;
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    color: var(--text);
    flex-shrink: 0;
    min-width: 0;
}

.nav-brand-logo {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    object-fit: cover;
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    border: 1px solid var(--border);
}

.nav-brand-text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.nav-brand-name {
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-brand-path {
    font-size: 11px;
    color: var(--text-lighter);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.nav-menu-btn {
    display: none;
    align-items: center;
    justify-content: center;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 8px;
    font-size: 20px;
    cursor: pointer;
    color: var(--text-light);
    flex-shrink: 0;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex: 1;
    justify-content: flex-end;
}

.nav-links::-webkit-scrollbar { display: none; }

.nav-link {
    display: flex;
    align-items: center;
    gap: 3px;
    padding: 6px 10px;
    text-decoration: none;
    color: var(--text-light);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    border-radius: 6px;
    transition: background 0.15s, color 0.15s;
}

.nav-link:hover, .nav-link.active {
    background: var(--primary-light);
    color: var(--primary);
}

.nav-link.active { font-weight: 600; }

.nav-label {
    display: inline-block;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 4px;
    color: #fff;
    line-height: 1.3;
    font-weight: 500;
}

.nav-label--hot { background: #ef4444; }
.nav-label--new { background: #f59e0b; color: #333; }
.nav-label--beta { background: #8b5cf6; }
.nav-label--tool { background: #6366f1; }
.nav-label--limited { background: #ec4899; }

/* 移动端汉堡菜单 */
@media (max-width: 768px) {
    .nav-menu-btn { display: flex; }
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 8px;
        box-shadow: 0 4px 16px rgba(0,0,0,0.08);
        border-top: 1px solid var(--border);
        justify-content: flex-start;
    }
    .nav-links.open { display: flex; }
    .nav-link {
        padding: 10px 12px;
        font-size: 14px;
        border-radius: var(--radius-sm);
    }
}

/* ========================================
   首页 Landing
   ======================================== */

/* Hero */
.landing-hero {
    text-align: center;
    padding: 28px 0 16px;
}

.landing-hero-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    margin: 0 auto 12px;
    display: block;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.landing-title {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.02em;
}

.landing-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 6px;
}

/* 微信关注引导 */
.wechat-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 20px;
    text-decoration: none;
    color: var(--text);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.wechat-banner__icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, #07c160, #06ae56);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 18px;
    flex-shrink: 0;
}

.wechat-banner__body {
    flex: 1;
    min-width: 0;
}

.wechat-banner__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    display: block;
}

.wechat-banner__sub {
    font-size: 12px;
    color: var(--text-lighter);
    display: block;
    margin-top: 2px;
}

.wechat-banner__chev {
    color: var(--text-lighter);
    font-size: 18px;
    flex-shrink: 0;
}

/* Section head */
.section-head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    margin-bottom: 12px;
}

.section-lead {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.section-lead-accent {
    font-size: 13px;
    color: var(--text-lighter);
    font-weight: 400;
}

/* Entry card list - spot style like acdog */
.entry-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.spot {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 14px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    transition: transform 0.15s, box-shadow 0.15s;
    position: relative;
}

.spot:active { transform: scale(0.98); }

.spot-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 20px;
}

.spot-icon--pdd { background: linear-gradient(135deg, #fe2c55, #ff6090); }
.spot-icon--takeout { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.spot-icon--pin { background: linear-gradient(135deg, #fe2c55, #ff8a9e); }
.spot-icon--taobao { background: linear-gradient(135deg, #ef4444, #f87171); }
.spot-icon--neutral { background: linear-gradient(135deg, #6366f1, #818cf8); }

.spot-logo {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.spot-logo--single { width: 28px; height: 28px; }

.spot-logos {
    display: flex;
    gap: 3px;
}

.spot-body {
    flex: 1;
    min-width: 0;
}

.spot-title-row {
    display: flex;
    align-items: center;
    gap: 6px;
}

.spot-title {
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}

.spot-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    color: #fff;
    font-weight: 500;
    line-height: 1.4;
}

.spot-tag--hot { background: #ef4444; }
.spot-tag--new { background: #3b82f6; }
.spot-tag--limited { background: #ec4899; }
.spot-tag--tool { background: #6366f1; }
.spot-tag--beta { background: #8b5cf6; }

.spot-desc {
    font-size: 12px;
    color: var(--text-lighter);
    margin-top: 3px;
    line-height: 1.4;
}

.spot-sub-metrics {
    font-size: 11px;
    color: var(--text-lighter);
    margin-top: 2px;
}

.spot-chevron {
    color: var(--text-lighter);
    flex-shrink: 0;
    display: flex;
    align-items: center;
}

.spot-chevron-svg {
    width: 18px;
    height: 18px;
}

/* 优惠券横幅 */
.coupon-banner {
    margin-bottom: 12px;
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.banner-img {
    width: 100%;
    display: block;
    aspect-ratio: 2.5;
    object-fit: cover;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
}

/* 额外入口文字链 */
.extra-links {
    display: flex;
    flex-wrap: wrap;
    gap: 16px 24px;
    margin-top: 12px;
    padding-top: 8px;
}

.extra-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.15s;
}

.extra-link:hover { color: var(--primary); }

/* ---- Footer ---- */
.site-footer {
    text-align: center;
    padding: 24px 16px;
    color: var(--text-lighter);
    font-size: 12px;
}

.site-footer p { margin-bottom: 4px; }

.footer-link {
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
}

.footer-link:hover { color: var(--primary); }

/* ========================================
   子页面通用 - Card 区块化布局
   ======================================== */

/* Hero card */
.hero-card {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: var(--radius);
    padding: 20px 16px 16px;
    margin-bottom: 10px;
    color: #fff;
    position: relative;
    overflow: hidden;
}

.hero-card::after {
    content: '';
    position: absolute;
    top: -30px;
    right: -30px;
    width: 100px;
    height: 100px;
    background: rgba(255,255,255,0.08);
    border-radius: 50%;
}

.hero-card__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.hero-card__title {
    font-size: 20px;
    font-weight: 700;
    letter-spacing: -0.01em;
}

.hero-card__follow-btn {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 16px;
    padding: 5px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    backdrop-filter: blur(4px);
    transition: background 0.15s;
    text-decoration: none;
}

.hero-card__follow-btn:hover { background: rgba(255,255,255,0.3); }

.hero-card__author {
    font-size: 12px;
    color: rgba(255,255,255,0.8);
    margin-top: 4px;
}

.hero-card__author a {
    color: #fff;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.hero-card__version {
    font-size: 11px;
    color: rgba(255,255,255,0.6);
    margin-top: 2px;
}

/* Action buttons row */
.action-btns-row {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.action-chip {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    text-decoration: none;
    transition: all 0.15s;
    white-space: nowrap;
}

.action-chip:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--primary-light);
}

.action-chip--accent {
    background: var(--primary-light);
    border-color: var(--primary);
    color: var(--primary);
}

/* 双栏入口卡片 */
.dual-entry-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
}

.dual-entry {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 14px 8px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-decoration: none;
    color: var(--text);
    text-align: center;
    transition: transform 0.15s;
    position: relative;
}

.dual-entry:active { transform: scale(0.97); }

.dual-entry__icons {
    display: flex;
    gap: 4px;
}

.dual-entry__icon {
    width: 24px;
    height: 24px;
    border-radius: 6px;
}

.dual-entry__title {
    font-size: 13px;
    font-weight: 600;
}

.dual-entry__desc {
    font-size: 11px;
    color: var(--text-lighter);
}

.dual-entry__badge {
    position: absolute;
    top: 6px;
    right: 6px;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 4px;
    color: #fff;
    background: #ef4444;
    font-weight: 600;
}

/* Card wrapper */
.page-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px 14px;
    margin-bottom: 10px;
}

/* Tip bar */
.tip-bar {
    background: #fefce8;
    border: 1px solid #fde68a;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 12px;
    color: #92400e;
    margin-bottom: 10px;
    line-height: 1.5;
}

.tip-bar--green {
    background: #f0fdf4;
    border-color: #bbf7d0;
    color: #166534;
}

.tip-bar--blue {
    background: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.tip-bar strong { font-weight: 600; }

/* 公告 */
.announcement-bar {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: flex-start;
    gap: 8px;
}

.announcement-bar__badge {
    background: #ef4444;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
    margin-top: 2px;
}

/* 推广横幅 */
.promo-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #f59e0b, #fbbf24);
    border-radius: var(--radius);
    text-decoration: none;
    color: #fff;
    margin-bottom: 10px;
}

.promo-banner-icon { font-size: 24px; flex-shrink: 0; }
.promo-banner-text { flex: 1; }
.promo-banner-title { font-size: 14px; font-weight: 600; }
.promo-banner-sub { font-size: 12px; opacity: 0.9; }

/* Section heading */
.section-heading {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.section-heading__left {
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-heading__title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
}

.section-heading__count {
    font-size: 12px;
    color: var(--text-lighter);
    background: var(--bg);
    padding: 1px 6px;
    border-radius: 8px;
}

.section-heading__right {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Tab switch */
.tab-switch {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.tab-switch-btn {
    flex: 1;
    padding: 8px 0;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.tab-switch-btn.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* Code list */
.code-list { list-style: none; }

.code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--bg);
    gap: 8px;
}

.code-item:last-child { border-bottom: none; }

.code-item--used .code-text { color: var(--text-lighter); }

.code-main {
    flex: 1;
    min-width: 0;
}

.code-text {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    font-family: 'SF Mono', 'Monaco', 'Menlo', 'Consolas', monospace;
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.code-meta {
    font-size: 11px;
    color: var(--text-lighter);
    margin-top: 2px;
    display: block;
}

.code-actions {
    display: flex;
    gap: 6px;
    flex-shrink: 0;
}

/* Buttons */
.use-btn {
    padding: 5px 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: opacity 0.15s;
}

.use-btn:hover { opacity: 0.85; }

.copy-btn {
    padding: 5px 12px;
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.15s;
}

.copy-btn:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.share-btn {
    padding: 5px 12px;
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

/* Submit section */
.submit-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 10px;
}

.submit-input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    transition: border-color 0.15s;
}

.submit-input:focus { border-color: var(--primary); }

.submit-input::placeholder { color: var(--text-lighter); }

.agreement-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 10px 0;
    font-size: 12px;
    color: var(--text-light);
}

.agreement-bar input[type="checkbox"] {
    width: 16px;
    height: 16px;
    accent-color: var(--primary);
}

.submit-btn {
    width: 100%;
    padding: 12px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.15s;
}

.submit-btn:hover { opacity: 0.9; }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

/* Refresh / Action row */
.action-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 8px;
}

.refresh-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--bg);
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    color: var(--text-light);
    cursor: pointer;
}

.refresh-btn:hover { border-color: var(--primary); color: var(--primary); }

.smart-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 5px 10px;
    background: var(--primary-light);
    border: 1px solid var(--primary);
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    color: var(--primary);
    cursor: pointer;
}

/* Clock bar */
.clock-bar {
    text-align: right;
    font-size: 11px;
    color: var(--text-lighter);
    margin-bottom: 6px;
}

/* Stats bar */
.stats-bar {
    text-align: center;
    padding: 8px;
    background: var(--primary-light);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--primary-dark);
    margin-bottom: 10px;
}

.stats-bar strong { font-weight: 700; }

/* Empty tip */
.empty-tip {
    text-align: center;
    padding: 32px 16px;
    color: var(--text-lighter);
    font-size: 14px;
}

.empty-tip p { margin-bottom: 6px; }

.empty-tip__line1 { font-size: 14px; }
.empty-tip__line2 { font-size: 12px; color: var(--text-lighter); }

/* Load more */
.load-more-btn {
    display: block;
    width: 100%;
    padding: 10px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-light);
    cursor: pointer;
    margin-top: 8px;
    text-align: center;
}

/* Banned tip */
.banned-tip {
    text-align: center;
    padding: 12px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: var(--radius-sm);
    color: #dc2626;
    font-size: 13px;
}

/* Report / Warn buttons */
.action-btn {
    padding: 5px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    color: var(--text-light);
}

.action-btn.warn {
    border-color: #fecaca;
    color: #dc2626;
    background: #fef2f2;
}

/* ========================================
   外卖互助页 - 平台Tab
   ======================================== */
.platform-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.platform-tab {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 8px 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.15s;
}

.platform-tab.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow);
}

/* Steps flow */
.flow-panel {
    margin-bottom: 10px;
}

.flow-lead {
    display: flex;
    align-items: center;
    gap: 6px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.flow-lead__label {
    font-size: 12px;
    font-weight: 600;
    color: var(--primary);
    background: var(--primary-light);
    padding: 2px 8px;
    border-radius: 4px;
}

.flow-lead__step {
    font-size: 12px;
    color: var(--text);
    font-weight: 500;
}

.flow-lead__arrow {
    color: var(--text-lighter);
    font-size: 12px;
}

.flow-note {
    font-size: 12px;
    color: var(--text-lighter);
    margin-bottom: 8px;
}

.flow-cta-wrap {
    display: flex;
    gap: 8px;
}

.flow-cta-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    border-radius: var(--radius-sm);
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: opacity 0.15s;
}

.flow-cta-btn--primary {
    background: var(--primary);
    color: #fff;
}

.flow-cta-btn--secondary {
    background: var(--bg);
    color: var(--text-light);
    border: 1px solid var(--border);
}

/* Coupon link bar */
.coupon-link-bar {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.coupon-btn {
    display: inline-block;
    padding: 4px 10px;
    background: var(--primary);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    text-decoration: none;
    font-weight: 500;
}

/* Stats row */
.stats-row {
    font-size: 11px;
    color: var(--text-lighter);
    margin-bottom: 6px;
}

/* ========================================
   多人团页 - Pin
   ======================================== */

/* Pin topbar */
.pin-topbar {
    margin-bottom: 10px;
}

.pin-topbar__row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pin-topbar__brand {
    display: flex;
    align-items: center;
    gap: 8px;
}

.pin-topbar__title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
}

.pin-topbar__quick {
    display: flex;
    gap: 6px;
}

/* Pin tabs */
.pin-tabs-row {
    margin-bottom: 10px;
}

.pin-tabs {
    display: flex;
    gap: 0;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 3px;
    margin-bottom: 6px;
}

.pin-tab {
    flex: 1;
    padding: 8px 0;
    text-align: center;
    border: none;
    background: transparent;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    border-radius: 6px;
    transition: all 0.15s;
}

.pin-tab.active {
    background: #fff;
    color: var(--primary);
    font-weight: 600;
    box-shadow: var(--shadow);
}

.pin-tab--soon {
    font-size: 9px;
    color: var(--text-lighter);
    display: block;
}

.pin-tabs-meta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    color: var(--text-lighter);
}

/* Pin notice */
.pin-notice {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #fff;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow);
    margin-bottom: 10px;
    font-size: 13px;
    color: var(--text-light);
}

.pin-notice__badge {
    background: #3b82f6;
    color: #fff;
    font-size: 10px;
    padding: 1px 5px;
    border-radius: 4px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Search box */
.search-box {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
}

.search-input {
    flex: 1;
    padding: 10px 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: #fff;
    outline: none;
}

.search-input:focus { border-color: var(--primary); }

.search-btn {
    padding: 10px 16px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
}

/* Category filter */
.category-filter {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
    scrollbar-width: none;
}

.category-filter::-webkit-scrollbar { display: none; }

.filter-btn {
    display: inline-block;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: 500;
    text-decoration: none;
    color: var(--text-light);
    background: #fff;
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: all 0.15s;
}

.filter-btn.active {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

/* Group card (pin deal) */
.group-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 10px;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
}

.group-avatar {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--primary-light);
    color: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 11px;
    font-weight: 600;
    flex-shrink: 0;
}

.group-nickname {
    font-size: 13px;
    font-weight: 500;
    color: var(--text);
}

.group-time {
    font-size: 12px;
    color: var(--text-lighter);
    margin-left: auto;
}

.group-info {
    margin-bottom: 8px;
}

.group-people-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    background: #fef2f2;
    color: #dc2626;
    font-weight: 500;
    margin-right: 6px;
}

.group-product {
    font-size: 14px;
    color: var(--text);
    line-height: 1.4;
}

.group-price {
    font-size: 14px;
    font-weight: 600;
    color: #dc2626;
    margin-bottom: 8px;
}

.group-price__label {
    font-size: 11px;
    color: var(--text-lighter);
    font-weight: 400;
    margin-right: 2px;
}

.group-command {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.command-label {
    font-size: 10px;
    padding: 1px 4px;
    background: var(--border);
    border-radius: 3px;
    color: var(--text-lighter);
    flex-shrink: 0;
}

.command-text {
    flex: 1;
    font-size: 12px;
    color: var(--text-light);
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-family: 'SF Mono', monospace;
}

.group-actions {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.group-action-btn {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    background: #fff;
    color: var(--text-light);
    transition: all 0.15s;
}

.group-action-btn.primary {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
}

.group-action-btn.warn {
    color: #dc2626;
    border-color: #fecaca;
}

/* FAB */
.fab-btn {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(13,148,136,0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 50;
    transition: transform 0.15s;
}

.fab-btn:active { transform: scale(0.92); }

/* ========================================
   淘宝页 - TB
   ======================================== */
.tb-hero {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    border-radius: 0 0 24px 24px;
    padding: 28px 16px 20px;
    text-align: center;
    color: #fff;
    margin: 0 -12px 12px;
}

.tb-hero h2 {
    font-size: 20px;
    font-weight: 700;
}

.tb-hero p {
    font-size: 13px;
    opacity: 0.9;
    margin-top: 4px;
}

.tb-action-btns {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    justify-content: center;
}

.tb-action-btn {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 8px 14px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
}

.tb-action-btn:hover {
    border-color: #ef4444;
    color: #ef4444;
}

.tb-answer-banner {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #ef4444, #f87171);
    border-radius: var(--radius);
    text-decoration: none;
    color: #fff;
    margin-bottom: 10px;
}

.tb-answer-banner-icon { font-size: 20px; }

.tb-answer-banner-text {
    flex: 1;
    font-size: 14px;
    font-weight: 500;
}

.tb-tabs {
    display: flex;
    gap: 0;
    margin-bottom: 10px;
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 3px;
}

.tb-tab {
    flex: 1;
    text-align: center;
    padding: 8px 0;
    text-decoration: none;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    border-radius: 6px;
    transition: all 0.15s;
}

.tb-tab.active {
    background: #fff;
    color: #ef4444;
    font-weight: 600;
    box-shadow: var(--shadow);
}

.tb-tab .tab-count {
    font-size: 11px;
    background: var(--bg);
    padding: 1px 5px;
    border-radius: 8px;
    margin-left: 2px;
}

/* Steps box */
.steps-box {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 10px;
}

.step-item {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: var(--text-light);
    padding: 6px 0;
    line-height: 1.5;
}

.step-num {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fef2f2;
    color: #ef4444;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 600;
    flex-shrink: 0;
}

/* Amount filter */
.amount-filter {
    display: flex;
    gap: 6px;
    align-items: center;
    margin-bottom: 10px;
}

.amount-input {
    width: 80px;
    padding: 8px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 13px;
    text-align: center;
    outline: none;
}

.amount-input:focus { border-color: #ef4444; }

.amount-filter-btn {
    padding: 8px 12px;
    background: #ef4444;
    color: #fff;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    cursor: pointer;
}

.status-filter-btns {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    overflow-x: auto;
}

.status-filter-btn {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 14px;
    font-size: 12px;
    text-decoration: none;
    color: var(--text-light);
    background: #fff;
    border: 1px solid var(--border);
    white-space: nowrap;
    transition: all 0.15s;
}

.status-filter-btn.active {
    background: #ef4444;
    color: #fff;
    border-color: #ef4444;
}

/* Team card */
.team-card {
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 14px;
    margin-bottom: 10px;
}

.team-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 6px;
}

.team-id {
    font-size: 13px;
    color: var(--text-lighter);
}

.team-time {
    font-size: 12px;
    color: var(--text-lighter);
}

.team-info {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 6px;
    display: flex;
    gap: 12px;
}

.team-command {
    background: var(--bg);
    border-radius: var(--radius-sm);
    padding: 8px 10px;
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.team-status {
    display: flex;
    align-items: center;
}

.status-tag {
    display: inline-block;
    font-size: 11px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
}

.status-tag.active { background: #dcfce7; color: #166534; }
.status-tag.full { background: #fef3c7; color: #92400e; }
.status-tag.locked { background: #f1f5f9; color: #64748b; }

.total-help {
    text-align: center;
    padding: 8px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
}

.total-help strong { color: #ef4444; }

/* form-row for two inputs */
.form-row {
    display: flex;
    gap: 8px;
}

.form-half {
    flex: 1;
}

/* ========================================
   Modal
   ======================================== */
.modal-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
    padding: 16px;
}

.modal-content {
    background: #fff;
    border-radius: var(--radius);
    padding: 20px;
    width: 100%;
    max-width: 400px;
    max-height: 85vh;
    overflow-y: auto;
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 14px;
    text-align: center;
}

/* ========================================
   Toast
   ======================================== */
.toast {
    position: fixed;
    top: 80px;
    left: 50%;
    transform: translateX(-50%) translateY(-10px);
    background: rgba(0,0,0,0.75);
    color: #fff;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    z-index: 300;
    opacity: 0;
    transition: all 0.3s;
    pointer-events: none;
}

.toast.show {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
}

/* ========================================
   响应式
   ======================================== */
@media (max-width: 600px) {
    .container { padding: 0 10px 30px; }
    .page-body { padding: 6px 10px 30px; }
    .nav-inner { padding: 0 12px; }
    .tb-hero { margin: 0 -10px 10px; }
}

/* Desktop: center like mobile app */
@media (min-width: 520px) {
    body { background: #e2e8f0; }
    .global-nav { box-shadow: 0 1px 3px rgba(0,0,0,0.06); }
}

/* Tiny icons */
.tiny-icon {
    width: 16px;
    height: 16px;
    border-radius: 4px;
    vertical-align: middle;
}

/* tag new */
.tag-new {
    display: inline-block;
    font-size: 9px;
    padding: 1px 5px;
    border-radius: 4px;
    color: #fff;
    background: #3b82f6;
    font-weight: 600;
    margin-left: 4px;
    vertical-align: middle;
}

/* Version */
.version {
    font-size: 11px;
    color: var(--text-lighter);
}

/* Form select */
.form-select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    font-size: 14px;
    background: var(--bg);
    color: var(--text);
    outline: none;
    -webkit-appearance: none;
    appearance: none;
}

/* Wechat guide (legacy support for index) */
.wechat-guide {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    text-decoration: none;
    color: var(--text);
    border: none;
    cursor: pointer;
    width: 100%;
    text-align: left;
}

.wechat-guide-icon { font-size: 24px; flex-shrink: 0; }
.wechat-guide-text { flex: 1; }
.wechat-guide-title { font-size: 14px; font-weight: 600; color: var(--text); }
.wechat-guide-sub { font-size: 12px; color: var(--text-lighter); }
.wechat-guide-arrow { color: var(--text-lighter); font-size: 16px; }

/* Site header (legacy, for index page) */
.site-header {
    text-align: center;
    padding: 24px 0 12px;
}

.header-inner {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.site-logo {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.header-text h1 {
    font-size: 22px;
    font-weight: 700;
    color: var(--text);
}

.site-subtitle {
    font-size: 14px;
    color: var(--text-light);
    margin-top: 4px;
}

/* Legacy footer links */
.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 12px 24px;
    margin-top: 20px;
    justify-content: center;
}

.footer-link {
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.15s;
}

.footer-link:hover { color: var(--primary); }

.link-icon { font-size: 16px; }

/* Legacy module cards */
.module-cards {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 16px;
}

.module-card {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #fff;
    border-radius: var(--radius);
    padding: 14px;
    text-decoration: none;
    color: var(--text);
    box-shadow: var(--shadow);
    transition: transform 0.15s;
}

.module-card:active { transform: scale(0.98); }

.card-icons { display: flex; gap: 4px; flex-shrink: 0; }
.card-icon { width: 36px; height: 36px; border-radius: 8px; }
.card-info { flex: 1; min-width: 0; }
.card-title { font-size: 15px; font-weight: 600; display: inline; }

.card-tag {
    display: inline-block;
    font-size: 10px;
    padding: 1px 6px;
    border-radius: 4px;
    color: #fff;
    margin-left: 6px;
    vertical-align: middle;
}

.card-tag.hot { background: #ef4444; }
.card-tag.popular { background: #ec4899; }
.card-tag.new { background: #3b82f6; }
.card-tag.limited { background: #f59e0b; }

.card-desc { font-size: 12px; color: var(--text-lighter); margin-top: 3px; line-height: 1.4; }
.card-arrow { font-size: 20px; color: var(--text-lighter); flex-shrink: 0; }

/* Section title (legacy) */
.section-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 12px;
    color: var(--text);
}

.section-title-left {
    display: flex;
    align-items: center;
    gap: 8px;
}

.section-title-right {
    font-size: 12px;
    color: var(--text-lighter);
    font-weight: 400;
}

.dot {
    width: 4px;
    height: 16px;
    background: var(--primary);
    border-radius: 2px;
}

/* Page header (legacy) */
.page-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid var(--border);
    margin-bottom: 10px;
    gap: 8px;
}

.page-header h2 {
    font-size: 18px;
    font-weight: 600;
    white-space: nowrap;
}

.back-btn {
    color: var(--primary);
    text-decoration: none;
    font-size: 14px;
    white-space: nowrap;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 6px;
}

.follow-btn {
    display: inline-flex;
    align-items: center;
    gap: 3px;
    font-size: 12px;
    color: var(--primary);
    text-decoration: none;
}

/* Code section (legacy) */
.code-section {
    margin-bottom: 10px;
}

/* Quick links (legacy) */
.quick-links {
    display: flex;
    gap: 8px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.quick-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 7px 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 20px;
    font-size: 13px;
    font-weight: 500;
    color: var(--text-light);
    text-decoration: none;
    cursor: pointer;
    transition: all 0.15s;
    white-space: nowrap;
}

.quick-link:hover {
    border-color: var(--primary);
    color: var(--primary);
}

/* announcement (legacy) */
.announcement {
    background: #fff;
    border-radius: var(--radius-sm);
    padding: 10px 12px;
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 10px;
    box-shadow: var(--shadow);
}

.announcement.green {
    background: #f0fdf4;
    box-shadow: none;
    border: 1px solid #bbf7d0;
    color: #166534;
}

.announcement.pink {
    background: #fdf2f8;
    box-shadow: none;
    border: 1px solid #fbcfe8;
    color: #9d174d;
}

/* Nav button hint text */
.nav-btn-hint {
    font-size: 12px;
    color: var(--primary);
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
}

/* Quick links grid */
.quick-links-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 12px;
    margin-top: 8px;
    padding: 12px 16px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.quick-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    padding: 12px 4px;
    text-decoration: none;
    color: var(--text);
    border-radius: 10px;
    transition: background 0.15s, transform 0.1s;
    cursor: pointer;
}

.quick-link-item:hover {
    background: var(--primary-light);
    transform: translateY(-1px);
}

.quick-link-item:active {
    transform: scale(0.96);
}

.quick-link-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    line-height: 1;
    flex-shrink: 0;
}
.quick-link-icon--pdd { background: linear-gradient(135deg, #fe2c55, #ff6090); }
.quick-link-icon--takeout { background: linear-gradient(135deg, #f59e0b, #fbbf24); }
.quick-link-icon--pin { background: linear-gradient(135deg, #fe2c55, #ff8a9e); }
.quick-link-icon--taobao { background: linear-gradient(135deg, #ef4444, #f87171); }
.quick-link-icon--neutral { background: linear-gradient(135deg, #6366f1, #818cf8); }
.quick-link-icon--img { background: none; padding: 0; }
.quick-link-img { width: 40px; height: 40px; border-radius: 10px; object-fit: cover; display: block; }

.quick-link-title {
    font-size: 12px;
    font-weight: 500;
    color: var(--text);
    text-align: center;
    line-height: 1.3;
}

/* Mobile: 4 columns */
@media (max-width: 768px) {
    .quick-links-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 8px;
        padding: 12px 8px;
    }
    .quick-link-icon {
        width: 36px;
        height: 36px;
        font-size: 20px;
    }
    .quick-link-img {
        width: 36px;
        height: 36px;
    }
    .quick-link-title {
        font-size: 11px;
    }
    .nav-btn-hint {
        font-size: 11px;
    }
}

/* Announcement bar as link */
a.announcement-bar {
    text-decoration: none;
    color: inherit;
}
a.announcement-bar:hover {
    background: #f8fafc;
}

/* Wechat banner as link */
a.wechat-banner {
    text-decoration: none;
    color: var(--text);
}
a.wechat-banner:hover {
    box-shadow: 0 2px 8px rgba(7,193,96,0.15);
}
