/* ====== 全局样式 ====== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #c4282b;
    --primary-dark: #a01e20;
    --primary-light: #e84e4f;
    --primary-gradient: linear-gradient(135deg, #c4282b, #a01e20);
    --gold: #d4a84b;
    --gold-light: #f5e6c8;
    --gold-gradient: linear-gradient(135deg, #d4a84b, #b8922e);
    --bg: #f5f5f5;
    --card-bg: #ffffff;
    --text: #1a1a1a;
    --text-secondary: #666666;
    --text-light: #999999;
    --border: #e8e8e8;
    --success: #52c41a;
    --warning: #faad14;
    --shadow-sm: 0 1px 4px rgba(0,0,0,0.06);
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
    --radius-sm: 8px;
    --radius: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --safe-bottom: env(safe-area-inset-bottom, 0px);
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', sans-serif;
    background: var(--bg);
    color: var(--text);
    max-width: 480px;
    margin: 0 auto;
    min-height: 100vh;
    min-height: -webkit-fill-available;
    position: relative;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    width: 100%;
}

/* ====== 响应式基础 ====== */
html { height: -webkit-fill-available; }

/* ====== 页面切换 ====== */
.page {
    display: none;
    min-height: 100vh;
    background: var(--bg);
}
.page.active {
    display: block;
    opacity: 1;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ====== 加载遮罩 ====== */
.loading-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    transition: opacity 0.5s;
}
.loading-overlay.hidden {
    opacity: 0;
    pointer-events: none;
}
.loading-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--border);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
    margin-bottom: 12px;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ====== 头部 ====== */
.page-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(196, 40, 43, 0.3);
}
.page-header h2 {
    flex: 1;
    text-align: center;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0.5px;
}
.back-btn {
    background: none;
    border: none;
    color: white;
    font-size: 22px;
    cursor: pointer;
    padding: 4px 8px;
    min-width: 44px;
    transition: opacity 0.2s;
}
.back-btn:active { opacity: 0.7; }
.bean-count {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.2);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
}

/* ====== 广银福利社首页 ====== */
/* 小程序顶部胶囊 */
.mp-capsule {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 16px 4px;
    background: white;
    position: sticky;
    top: 0;
    z-index: 300;
}
.mp-capsule-left .mp-time {
    font-size: 12px;
    font-weight: 600;
    color: #1a1a1a;
}
.mp-capsule-right {
    display: flex;
    gap: 6px;
}
.mp-capsule-btn {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #f5f5f5;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 12px;
    color: #666;
    transition: all 0.2s;
}
.mp-capsule-btn:active { background: #e8e8e8; transform: scale(0.92); }
.menu-btn { flex-direction: column; gap: 2px; }
.menu-btn .dot {
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background: #666;
    display: block;
}

/* ====== 广州银行微门户首页 ====== */
.portal-header {
    display: flex; align-items: center; justify-content: center;
    padding: 20px 16px 16px;
    background: white;
}
.portal-title {
    font-size: 20px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.5px;
}
.portal-body {
    padding: 12px 16px;
    background: var(--bg);
    min-height: calc(100vh - 110px);
}
.portal-menu-card {
    display: flex; align-items: center; gap: 14px;
    background: white;
    border-radius: var(--radius-lg);
    padding: 18px 16px;
    margin-bottom: 10px;
    box-shadow: var(--shadow-sm);
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.34,1.56,0.64,1);
    border: 1px solid rgba(0,0,0,0.03);
}
.portal-menu-card:active { transform: scale(0.97); box-shadow: var(--shadow); }
.pmc-icon {
    width: 46px; height: 46px;
    background: linear-gradient(135deg, #fff1f0, #ffd6d5);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px; flex-shrink: 0;
}
.pmc-info { flex: 1; }
.pmc-label { display: block; font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 3px; }
.pmc-desc { display: block; font-size: 12px; color: var(--text-light); }
.pmc-arrow { font-size: 22px; color: #ccc; font-weight: 300; }

/* Tab内容切换 */
/* tab内容切换（保留给社区页使用） */
.tab-content { display: none; }
.tab-content.active { display: block; }

/* Tab栏 */
.welfare-tabs {
    display: flex;
    background: white;
    border-bottom: 1px solid #f0f0f0;
    padding: 0 4px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}
.tab-item {
    flex-shrink: 0;
    padding: 10px 16px;
    font-size: 14px;
    color: #999;
    cursor: pointer;
    position: relative;
    white-space: nowrap;
    transition: all 0.3s;
}
.tab-item.active {
    color: var(--text);
    font-weight: 600;
}
.tab-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 70%;
    height: 2px;
    background: var(--primary);
    border-radius: 2px 2px 0 0;
}

/* 活动内容区 */
.welfare-content {
    padding-bottom: 80px;
    background: #f8f8f8;
}

/* Banner卡片 */
.welfare-banner {
    padding: 12px 14px 4px;
    background: #f8f8f8;
}
.second-banner { padding-top: 0; }
.welfare-banner-card {
    position: relative;
    border-radius: 12px;
    padding: 18px 16px;
    color: white;
    overflow: hidden;
    min-height: 110px;
}
.banner-card-1 {
    background: linear-gradient(135deg, #667eea, #764ba2);
}
.banner-card-2 {
    background: linear-gradient(135deg, #f093fb, #f5576c);
}
.banner-badge {
    display: inline-block;
    background: rgba(255,255,255,0.25);
    padding: 2px 10px;
    border-radius: 10px;
    font-size: 11px;
    margin-bottom: 8px;
}
.banner-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 2px;
}
.banner-sub {
    font-size: 13px;
    opacity: 0.9;
    margin-bottom: 4px;
}
.banner-date {
    font-size: 11px;
    opacity: 0.7;
}
.banner-mascot {
    position: absolute;
    right: 16px;
    bottom: 16px;
    font-size: 48px;
    opacity: 0.8;
}

/* 推荐标题 */
.welfare-section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 14px 10px;
}
.welfare-section-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
}
.welfare-section-more {
    font-size: 13px;
    color: var(--text-light);
}

/* 游客模式·特展卡片 */
.welfare-feature-card {
    padding: 0 14px;
    margin-bottom: 6px;
}
.feature-bg {
    background: linear-gradient(135deg, #c4282b 0%, #e84e4f 50%, #ff6b6b 100%);
    border-radius: 14px;
    padding: 18px 16px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 4px 16px rgba(196, 40, 43, 0.25);
    position: relative;
    overflow: hidden;
}
.feature-bg::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 200px;
    height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: 50%;
}
.feature-bg::after {
    content: '';
    position: absolute;
    bottom: -40%;
    left: -20%;
    width: 150px;
    height: 150px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.feature-bg:active { transform: scale(0.98); }
.feature-badge {
    display: inline-block;
    background: rgba(255,255,255,0.2);
    padding: 3px 12px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 500;
    color: white;
    margin-bottom: 10px;
}
.feature-content {
    display: flex;
    align-items: center;
    gap: 14px;
    position: relative;
    z-index: 1;
}
.feature-icon-wrap {
    width: 52px;
    height: 52px;
    background: rgba(255,255,255,0.2);
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    backdrop-filter: blur(4px);
}
.feature-icon { font-size: 28px; }
.feature-info { flex: 1; display: flex; flex-direction: column; gap: 4px; }
.feature-title {
    font-size: 17px;
    font-weight: 700;
    color: white;
}
.feature-desc {
    font-size: 12px;
    color: rgba(255,255,255,0.85);
}
.feature-tags {
    display: flex;
    gap: 6px;
    margin-top: 2px;
}
.feature-tag {
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 500;
    background: rgba(255,255,255,0.2);
    color: white;
}
.feature-tag.tag-bean { background: rgba(255,215,0,0.3); }
.feature-arrow {
    font-size: 22px;
    color: rgba(255,255,255,0.7);
    flex-shrink: 0;
}

/* 数据看板入口 */
.welfare-dashboard-entry {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 12px 14px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    border-radius: 10px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    box-shadow: 0 3px 10px rgba(102, 126, 234, 0.35);
    transition: all 0.3s;
}
.welfare-dashboard-entry:active { transform: scale(0.98); }
.db-icon { font-size: 18px; }
.db-text { flex: 1; }
.db-arrow { font-size: 18px; }

/* 底部导航 */
.welfare-bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 480px;
    display: flex;
    background: white;
    border-top: 1px solid var(--border);
    padding: 6px 0;
    padding-bottom: max(6px, env(safe-area-inset-bottom));
    z-index: 200;
}
.nav-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    cursor: pointer;
    padding: 4px 0;
    color: var(--text-light);
    transition: all 0.3s;
}
.nav-item.active { color: var(--primary); }
.nav-icon { font-size: 22px; }
.nav-label { font-size: 11px; }

/* 浮动按钮（已删除） */

/* ====== 授权页 ====== */
.auth-container {
    padding: 40px 24px;
    text-align: center;
}
.auth-icon {
    font-size: 56px;
    margin-bottom: 16px;
}
.auth-container h3 {
    font-size: 20px;
    margin-bottom: 8px;
}
.auth-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 24px;
}
.phone-input-group {
    display: flex;
    align-items: center;
    background: white;
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}
.phone-prefix {
    padding: 14px 12px;
    background: #f8f8f8;
    font-size: 14px;
    color: var(--text-secondary);
    border-right: 1px solid var(--border);
}
.phone-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
    padding: 14px 12px;
}
.sms-group {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}
.sms-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 8px;
    outline: none;
    font-size: 14px;
    padding: 14px 12px;
}
.sms-btn {
    padding: 14px 16px;
    background: white;
    border: 1px solid var(--primary);
    color: var(--primary);
    border-radius: 8px;
    font-size: 13px;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.3s;
}
.sms-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.auth-agreement {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 16px;
}
.auth-agreement a {
    color: var(--primary);
    text-decoration: none;
}

/* ====== 按钮 ====== */
.primary-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    box-shadow: 0 4px 14px rgba(196,40,43,0.25);
}
.primary-btn:active {
    transform: scale(0.97);
    opacity: 0.95;
}
.secondary-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--primary);
    border: 1.5px solid var(--primary);
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    margin-top: 8px;
}
.secondary-btn:active {
    background: #fff5f5;
    transform: scale(0.98);
}
.text-btn {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 13px;
    cursor: pointer;
    padding: 8px 0;
    width: 100%;
    text-align: right;
}

/* ====== 活动Banner ====== */
.activity-banner {
    padding: 20px;
    text-align: center;
    color: white;
    border-radius: 0 0 24px 24px;
    margin-bottom: 16px;
}
.new-banner {
    background: linear-gradient(135deg, #e84e4f, #c4282b, #8b1a1a);
}
.existing-banner {
    background: linear-gradient(135deg, #d4a84b, #b8862d, #8b6914);
}
.staff-banner {
    background: linear-gradient(135deg, #4a90d9, #2d6ca8, #1a4f7a);
}
.activity-banner h2 {
    font-size: 20px;
    margin-bottom: 4px;
}
.activity-banner p {
    font-size: 13px;
    opacity: 0.9;
}
.bean-progress {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
    font-size: 13px;
    background: rgba(255,255,255,0.15);
    padding: 8px 16px;
    border-radius: 20px;
}

/* ====== 区域标题 ====== */
.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    font-size: 15px;
    font-weight: 600;
    color: var(--text);
}
.station-progress {
    font-size: 13px;
    color: var(--text-secondary);
    font-weight: normal;
}

/* ====== 站点网格 ====== */
.station-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}
.station-card {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    position: relative;
    border: 2px solid transparent;
}
.station-card.lit {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fffdf5, #fff8e1);
    box-shadow: 0 2px 12px rgba(212, 168, 75, 0.2);
}
.station-card .station-num {
    position: absolute;
    top: 6px;
    left: 6px;
    width: 20px;
    height: 20px;
    background: #e0e0e0;
    border-radius: 50%;
    font-size: 11px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
}
.station-card.lit .station-num {
    background: var(--gold);
}
.station-card .station-icon {
    font-size: 32px;
    margin-bottom: 6px;
    filter: grayscale(1);
    opacity: 0.5;
    transition: all 0.3s;
}
.station-card.lit .station-icon {
    filter: grayscale(0);
    opacity: 1;
}
.station-card .station-name {
    font-size: 12px;
    color: var(--text-secondary);
}
.station-card.lit .station-name {
    color: var(--text);
    font-weight: 600;
}
.station-card .station-bean {
    font-size: 11px;
    color: var(--gold);
    margin-top: 4px;
    font-weight: 500;
}
.station-card.lit .station-check {
    display: block;
    position: absolute;
    top: 6px;
    right: 6px;
    color: var(--success);
    font-size: 14px;
}
.station-card .station-check { display: none; }

/* ====== 抽奖区域 ====== */
.lottery-area {
    padding: 0 16px 16px;
}
.lottery-card {
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: var(--radius);
    padding: 20px;
    text-align: center;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border: 2px solid var(--gold-light);
}
.lottery-card:active {
    transform: scale(0.98);
}
.lottery-icon {
    font-size: 40px;
    margin-bottom: 8px;
}
.lottery-card p {
    font-size: 15px;
    font-weight: 600;
    color: var(--gold);
}
.lottery-count {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ====== 行员统计 ====== */
.staff-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    padding: 16px;
}
.stat-item {
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 16px 8px;
    text-align: center;
    box-shadow: var(--shadow);
}
.stat-num {
    display: block;
    font-size: 28px;
    font-weight: 700;
    color: var(--primary);
}
.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 4px;
}

/* ====== 转介表格 ====== */
.referral-table {
    padding: 0 16px 16px;
}
.referral-table table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    font-size: 13px;
}
.referral-table th {
    background: #fafafa;
    padding: 10px 8px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border);
}
.referral-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
}
.status-badge {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    font-weight: 500;
}
.status-registered { background: #e6f7ff; color: #1890ff; }
.status-opened { background: #f6ffed; color: #52c41a; }
.status-pending { background: #fff7e6; color: #fa8c16; }

/* ====== 排行列表 ====== */
.rank-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.rank-item {
    display: flex;
    align-items: center;
    gap: 12px;
    background: var(--card-bg);
    padding: 12px 16px;
    border-radius: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.rank-num {
    font-size: 18px;
    font-weight: 700;
    width: 28px;
    text-align: center;
}
.rank-medal { font-size: 22px; }
.rank-name { flex: 1; font-size: 14px; font-weight: 500; }
.rank-count { font-size: 14px; color: var(--primary); font-weight: 600; }

/* ====== 阶梯奖励进度 ====== */
.referral-progress-section {
    padding: 0 16px;
}
.progress-list {
    padding: 0 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}
.progress-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 14px 16px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.progress-item .progress-header {
    display: flex;
    justify-content: space-between;
    margin-bottom: 8px;
    font-size: 13px;
}
.progress-item .progress-header .milestone {
    font-weight: 600;
}
.progress-item .progress-header .reward {
    color: var(--gold);
    font-weight: 600;
}
.progress-bar-bg {
    height: 6px;
    background: #f0f0f0;
    border-radius: 3px;
    overflow: hidden;
}
.progress-bar-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--gold-light), var(--gold));
    border-radius: 3px;
    transition: width 0.5s ease;
}
.progress-item .progress-status {
    font-size: 11px;
    color: var(--text-light);
    margin-top: 4px;
    text-align: right;
}
.progress-item.completed .progress-bar-fill {
    background: linear-gradient(90deg, var(--success), #73d13d);
}
.progress-item.completed .progress-status {
    color: var(--success);
}

/* ====== 分享区域 ====== */
.share-section {
    padding: 0 16px 16px;
    text-align: center;
}
.share-section p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

/* ====== 底部操作 ====== */
.bottom-actions {
    padding: 16px;
    padding-bottom: 32px;
}

/* ====== 弹窗 ====== */
.modal {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    animation: fadeIn 0.2s ease;
    padding: 16px;
}
.modal-overlay {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
}
.modal-content {
    position: relative;
    background: white;
    border-radius: var(--radius-xl);
    width: 100%;
    max-width: 360px;
    max-height: 85vh;
    overflow-y: auto;
    padding: 28px 20px 20px;
    text-align: center;
    box-shadow: var(--shadow-lg);
}
.modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: #f5f5f5;
    border: none;
    font-size: 18px;
    cursor: pointer;
    color: var(--text-secondary);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}
.modal-close:hover { background: #e8e8e8; }

/* 抽福签弹窗 */
.lottery-modal h2 {
    color: var(--gold);
    margin-bottom: 16px;
}
.lottery-wheel {
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    border-radius: 12px;
    margin-bottom: 16px;
    padding: 20px;
}
.lottery-result-placeholder p {
    color: var(--text-light);
    font-size: 14px;
}
.lottery-result { text-align: center; }
.result-icon {
    font-size: 48px;
    margin-bottom: 8px;
}
.lottery-result h3 {
    font-size: 20px;
    color: var(--gold);
    margin-bottom: 4px;
}
.lottery-result p {
    font-size: 14px;
    color: var(--text-secondary);
}
.lottery-remain {
    font-size: 13px;
    color: var(--text-secondary);
    margin-top: 12px;
}

/* 中奖结果弹窗 */
.result-animation {
    font-size: 64px;
    margin-bottom: 16px;
    animation: bounce 0.5s ease;
}
@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}
.result-modal h2 {
    color: var(--gold);
    margin-bottom: 8px;
}
.result-modal p {
    color: var(--text-secondary);
    margin-bottom: 16px;
}
.result-qrcode {
    background: #fafafa;
    border-radius: 12px;
    padding: 16px;
    margin-bottom: 16px;
}
.result-qrcode p {
    font-size: 12px;
    margin-bottom: 8px;
}
.mini-qrcode {
    font-size: 48px;
}

/* 分享弹窗 */
.share-modal h2 {
    margin-bottom: 16px;
}
.qrcode-area {
    background: white;
    border: 2px dashed var(--border);
    border-radius: 12px;
    padding: 30px;
    margin-bottom: 16px;
}
.qrcode-placeholder {
    text-align: center;
}
.qrcode-icon {
    font-size: 64px;
    margin-bottom: 8px;
}
.qrcode-hint {
    font-size: 12px;
    color: var(--text-light);
}

/* ====== 数据看板 ====== */
.filter-bar {
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid var(--border);
}
.filter-group {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    align-items: center;
}
.filter-group label {
    font-size: 13px;
    color: var(--text-secondary);
}
.filter-group select {
    padding: 6px 10px;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-size: 13px;
    background: white;
    outline: none;
}

/* 漏斗图 */
.funnel-chart, .station-funnel, .whiteboard-funnel {
    padding: 0 16px 16px;
}
.funnel-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    margin-bottom: 6px;
    background: var(--card-bg);
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}
.funnel-item::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 4px;
    background: var(--primary);
    opacity: 0.6;
}
.funnel-item:nth-child(1)::before { opacity: 1; }
.funnel-item:nth-child(2)::before { opacity: 0.85; }
.funnel-item:nth-child(3)::before { opacity: 0.7; }
.funnel-item:nth-child(4)::before { opacity: 0.55; }
.funnel-item:nth-child(5)::before { opacity: 0.4; }
.funnel-item:nth-child(6)::before { opacity: 0.25; }
.funnel-item:nth-child(7)::before { opacity: 0.1; }

.funnel-item.highlight::before {
    background: var(--success);
    opacity: 1;
    width: 4px;
}
.funnel-item.highlight {
    background: #f6ffed;
    border: 1px solid #b7eb8f;
}
.funnel-val {
    font-weight: 700;
    color: var(--primary);
    font-size: 16px;
}

/* 数据表格 */
.data-table-wrap {
    padding: 0 16px 16px;
}
.data-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    font-size: 13px;
    margin-bottom: 8px;
}
.data-table th {
    background: #fafafa;
    padding: 10px 8px;
    font-weight: 600;
    color: var(--text-secondary);
    text-align: left;
    border-bottom: 1px solid var(--border);
    font-size: 12px;
}
.data-table td {
    padding: 10px 8px;
    border-bottom: 1px solid var(--border);
}

/* 裂变数据 */
.fission-data {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    padding: 0 16px 16px;
}
.fission-item {
    background: var(--card-bg);
    border-radius: 10px;
    padding: 16px;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
}
.fission-item span {
    display: block;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}
.fission-item strong {
    font-size: 24px;
    color: var(--primary);
}

/* ====== 响应式 ====== */
@media (max-width: 380px) {
    .station-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ============================================================
   重构新增样式
   ============================================================ */

/* ----- 简单头部（社区页使用） ----- */
.simple-header {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(196,40,43,0.25);
}
.simple-header .back-btn { color: white; }
.simple-header h2 { font-size: 17px; color: white; }

/* ----- 社区活动列表页 ----- */
.community-search {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid var(--border);
}
.community-search input {
    flex: 1;
    border: none;
    background: #f5f5f5;
    padding: 10px 16px;
    border-radius: 20px;
    font-size: 14px;
    outline: none;
    transition: background 0.2s;
}
.community-search input:focus { background: #efefef; }
.community-banner {
    margin: 12px 16px;
    background: linear-gradient(135deg, #667eea, #764ba2);
    border-radius: var(--radius-lg);
    padding: 18px 20px;
    color: white;
    box-shadow: 0 3px 12px rgba(102,126,234,0.25);
}
.staff-banner-community {
    background: linear-gradient(135deg, #2d6ca8, #1a4f7a);
}
.banner-slide {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 500;
}
.community-section { padding: 0 16px; }
.section-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0 12px;
    font-size: 17px;
    font-weight: 700;
}
.section-title-row .more { font-size: 13px; color: var(--text-light); cursor: pointer; }
.activity-card {
    display: flex;
    align-items: center;
    gap: 14px;
    background: var(--card-bg);
    border-radius: var(--radius);
    padding: 14px;
    margin-bottom: 10px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.06);
    cursor: pointer;
    transition: all 0.3s;
}
.activity-card:active { transform: scale(0.98); }
.activity-card.disabled { opacity: 0.5; cursor: default; }
.highlight-card {
    border: 1.5px solid var(--primary-light);
    background: linear-gradient(135deg, #fff5f5, white);
}
.staff-highlight {
    border-color: #2d6ca8;
    background: linear-gradient(135deg, #f0f7ff, white);
}
.activity-img {
    width: 56px; height: 56px;
    background: #f8f8f8;
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 28px; flex-shrink: 0;
}
.activity-info { flex: 1; }
.activity-info h3 { font-size: 15px; margin-bottom: 4px; }
.activity-info p { font-size: 12px; color: var(--text-secondary); }
.activity-tags { display: flex; gap: 6px; margin-top: 6px; }
.tag {
    display: inline-block; padding: 2px 8px; border-radius: 10px;
    font-size: 10px; background: #f0f0f0; color: var(--text-secondary);
}
.tag-new { background: #fff1f0; color: var(--primary); }
.tag-hot { background: #fff7e6; color: #fa8c16; }
.tag-staff { background: #e6f7ff; color: #1890ff; }
.activity-arrow { font-size: 20px; color: var(--text-light); }

/* ----- 微信授权页 ----- */
.wechat-auth-container { min-height: 100vh; background: white; display: flex; flex-direction: column; }
.wechat-auth-header { display: flex; align-items: center; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.wechat-back { font-size: 18px; cursor: pointer; padding: 4px 8px; color: var(--text); }
.wechat-auth-header span { flex: 1; text-align: center; font-size: 16px; font-weight: 500; }
.wechat-auth-body {
    flex: 1; display: flex; flex-direction: column; align-items: center;
    padding: 40px 24px; text-align: center;
}
.wechat-logo { margin-bottom: 16px; }
.wechat-icon {
    font-size: 64px; width: 80px; height: 80px;
    background: #07c160; border-radius: 20px;
    display: flex; align-items: center; justify-content: center; color: white;
}
.wechat-auth-body h3 { font-size: 20px; margin-bottom: 8px; }
.wechat-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 20px; }
.wechat-privacy {
    background: #f8f8f8; border-radius: 10px; padding: 14px 18px;
    width: 100%; text-align: left; margin-bottom: 28px;
}
.wechat-privacy p { font-size: 13px; color: var(--text-secondary); margin: 4px 0; padding-left: 4px; }
.wechat-auth-btn {
    width: 100%; padding: 14px; background: #07c160; color: white;
    border: none; border-radius: 8px; font-size: 16px; font-weight: 500;
    cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 8px; transition: all 0.3s;
}
.wechat-auth-btn:active { opacity: 0.9; transform: scale(0.98); }
.staff-auth-btn { background: #1890ff; }
.wechat-cancel-btn {
    width: 100%; padding: 14px; background: none; border: none;
    font-size: 14px; color: var(--text-light); cursor: pointer; margin-top: 12px;
}

/* ----- 微信授权过渡页 ----- */
.wechat-authing-container {
    min-height: 100vh; display: flex; flex-direction: column;
    align-items: center; justify-content: center; background: white; padding: 40px;
}
.authing-spinner { margin-bottom: 20px; }
.authing-circle {
    width: 48px; height: 48px;
    border: 3px solid #e8e8e8; border-top-color: var(--primary);
    border-radius: 50%; animation: spin 0.8s linear infinite;
}
.wechat-authing-container p { font-size: 15px; color: var(--text-secondary); margin-bottom: 20px; }
.authing-progress-bar {
    width: 200px; height: 4px; background: #f0f0f0; border-radius: 2px; overflow: hidden;
}
.authing-progress-fill {
    height: 100%; width: 0%;
    background: linear-gradient(90deg, var(--primary), var(--primary-light));
    border-radius: 2px; transition: width 0.2s ease;
}

/* ----- 地标打卡地图 ----- */
/* ====== 地标打卡页（统一底图） ====== */
.lm-top {
    display: flex; align-items: center; padding: 14px 16px;
    background: white; border-bottom: 1px solid #f0f0f0;
    position: sticky; top: 0; z-index: 100;
}
.lm-top-back { font-size: 26px; cursor: pointer; background: none; border: none; color: var(--text); padding: 0; line-height: 1; transition: opacity 0.2s; }
.lm-top-back:active { opacity: 0.6; }
.lm-top-title { flex: 1; text-align: center; font-size: 17px; font-weight: 600; color: #1a1a1a; }
.lm-top-bean { font-size: 14px; font-weight: 600; color: var(--primary); background: #fff1f0; padding: 4px 14px; border-radius: 16px; display: inline-flex; align-items: center; gap: 4px; }

.lm-wrap {
    background: linear-gradient(180deg, #faf6f2 0%, #fef9f2 25%, #fffcf7 50%, #f8f3ee 75%, #f2ede8 100%);
    min-height: calc(100vh - 50px);
    padding-bottom: 30px;
}

/* 1/5 主视觉 - 沉浸式品牌头图 */
.lm-hero { padding: 0; }
.lm-hero-bg {
    position: relative;
    background: linear-gradient(145deg, #d44a3a 0%, #c4282b 35%, #b71c1c 65%, #8b1a1a 100%);
    padding: 28px 24px 30px;
    text-align: center; color: white;
    overflow: hidden;
    border-radius: 0 0 28px 28px;
    box-shadow: 0 6px 24px rgba(196,40,43,0.25);
}
.lm-hero-deco {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.d1 { width: 220px; height: 220px; top: -60px; right: -60px; }
.d2 { width: 140px; height: 140px; bottom: -50px; left: -40px; }
.lm-hero-top-btns {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 5;
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.lm-hero-btn {
    width: 56px;
    height: 56px;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 2px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.12);
}
.lm-hero-btn:active { transform: scale(0.9); }
.lm-hero-btn .lhb-icon {
    font-size: 18px;
    line-height: 1;
}
.lm-hero-btn .lhb-text {
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    letter-spacing: 0.2px;
}
.lm-hero-btn-reward {
    background: linear-gradient(135deg, #fff8e1, #ffecb3);
    color: #c67c00;
    border: 1px solid rgba(198,124,0,0.15);
}
.lm-hero-btn-reward:active { background: linear-gradient(135deg, #ffecb3, #ffe082); }
.lm-hero-btn-share {
    background: linear-gradient(135deg, #e8f5e9, #c8e6c9);
    color: #2e7d32;
    border: 1px solid rgba(46,125,50,0.15);
}
.lm-hero-btn-share:active { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); }
.lm-hero-icon { font-size: 46px; margin-bottom: 10px; filter: drop-shadow(0 4px 16px rgba(0,0,0,0.18)); display: block; }
.lm-hero-title { font-size: 24px; font-weight: 800; letter-spacing: 1px; margin-bottom: 4px; text-shadow: 0 2px 8px rgba(0,0,0,0.1); }
.lm-hero-sub { font-size: 13px; opacity: 0.88; letter-spacing: 0.3px; }

/* 2/5 进度卡片 - 毛玻璃质感 */
.lm-greet {
    margin: -16px 16px 10px;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    padding: 16px 18px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.06), 0 1px 3px rgba(0,0,0,0.03);
    display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
    position: relative;
    z-index: 5;
    border: 1px solid rgba(255,255,255,0.8);
}
.lm-greet-avatar {
    width: 48px; height: 48px;
    background: linear-gradient(135deg, #fff3e0, #ffe0b2);
    border-radius: 14px;
    display: flex; align-items: center; justify-content: center;
    font-size: 24px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(255,152,0,0.12);
}
.lm-greet-info { flex: 1; min-width: 140px; }
.lm-greet-hi { font-size: 18px; font-weight: 700; color: #1a1a1a; margin-bottom: 3px; }
.lm-greet-stats { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.lm-gs-item { font-size: 12px; color: var(--text-secondary); }
.lm-gs-item strong { color: var(--primary); font-size: 15px; font-weight: 700; }
.lm-gs-dot { color: #ddd; font-size: 10px; }
.lm-great-progress {
    width: 100%; height: 6px;
    background: #f0ece8;
    border-radius: 3px;
    overflow: hidden;
    margin-top: 6px;
}
.lm-gp-fill {
    height: 100%;
    background: linear-gradient(90deg, #c4282b, #e84e4f);
    border-radius: 3px;
    transition: width 0.6s cubic-bezier(0.34,1.56,0.64,1);
}

/* 3-4/5 站点S曲线地图 */
.lm-map { padding: 0 16px; margin-top: 6px; }
.lm-map-title { font-size: 14px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.bubble-title {
    display: inline-block;
    background: white;
    padding: 8px 18px;
    border-radius: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    font-size: 14px;
    position: relative;
    margin-bottom: 16px;
    border: 1px solid rgba(0,0,0,0.03);
}
.bubble-title::after {
    content: '';
    position: absolute;
    bottom: -8px; left: 30px;
    width: 12px; height: 12px;
    background: white;
    border-radius: 2px;
    transform: rotate(45deg);
    box-shadow: 2px 2px 4px rgba(0,0,0,0.03);
}

.lm-scurve {
    position: relative;
    width: 100%;
    height: 360px;
    margin: 0 auto;
}

/* SVG路径 */
.lms-svg {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 1;
}

/* 站点节点 */
.lms-node {
    position: absolute;
    background: white;
    border-radius: 14px;
    padding: 7px 12px 7px 10px;
    cursor: pointer;
    box-shadow: 0 3px 12px rgba(0,0,0,0.07), 0 1px 2px rgba(0,0,0,0.03);
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 2px solid #f0ece8;
    transition: all 0.35s cubic-bezier(0.34,1.56,0.64,1);
    z-index: 3;
    width: 140px;
    aspect-ratio: 6 / 3;
}
.lms-node:hover { border-color: #e0d8d0; box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.lms-node:active { transform: scale(0.95); }
.lms-node.lit {
    border-color: var(--gold);
    background: linear-gradient(135deg, #fffdf5, #fff8e1);
    box-shadow: 0 4px 20px rgba(212,168,75,0.2), 0 1px 3px rgba(212,168,75,0.1);
    flex-direction: column;
    align-items: center;
    padding: 6px 8px 4px;
    gap: 1px;
    width: 140px;
    aspect-ratio: 6 / 3;
}
/* 下一个待点亮站点 - 绕中轴线转动 */
@keyframes lmSway {
    0%, 100% { transform: rotate(0deg); }
    25% { transform: rotate(-3deg); }
    50% { transform: rotate(0deg); }
    75% { transform: rotate(3deg); }
}
.lms-node.next-pulse {
    animation: lmSway 0.8s ease-in-out infinite;
}

.lmsn-icon {
    font-size: 22px;
    width: 34px; height: 34px;
    background: #f5f2ee;
    border-radius: 10px;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    transition: all 0.4s;
    filter: grayscale(0.6) opacity(0.55);
}
.lms-node.lit .lmsn-icon {
    width: 46px;
    height: 34px;
    font-size: 22px;
    border-radius: 10px;
    background: linear-gradient(135deg, #fff8e1, #ffe0b2);
    filter: none;
    order: 2;
    animation: lmIconPop 0.5s ease;
    box-shadow: 0 2px 8px rgba(212,168,75,0.15);
}

.lmsn-info { display: flex; flex-direction: column; gap: 1px; }
.lmsn-top-row {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 2px;
}
.lmsn-name { font-size: 14px; font-weight: 600; color: var(--text-secondary); white-space: nowrap; transition: all 0.3s; }
.lms-node.lit .lmsn-info { order: 1; align-items: center; text-align: center; gap: 0; }
.lms-node.lit .lmsn-name {
    color: var(--text);
    font-weight: 700;
    font-size: 14px;
}
.lmsn-desc { font-size: 9px; color: #bbb; white-space: nowrap; transition: all 0.3s; }
.lms-node.lit .lmsn-desc { display: none; }
.lmsn-beans { font-size: 10px; color: var(--gold); display: none; }
.lms-node.lit .lmsn-beans { display: none; }
.lmsn-badge {
    position: absolute;
    top: -6px; left: -6px;
    z-index: 5;
    width: 20px; height: 20px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    color: white;
    font-size: 9px;
    font-weight: 700;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    box-shadow: 0 2px 5px rgba(196,40,43,0.3);
}
.lmsn-badge span {
    transform: rotate(45deg);
}

.lmsn-check {
    position: absolute;
    top: -5px; right: -5px;
    width: 16px; height: 16px;
    background: var(--success);
    border-radius: 50%;
    color: white; font-size: 9px;
    display: none; align-items: center; justify-content: center;
    box-shadow: 0 2px 5px rgba(82,196,26,0.35);
}
.lms-node.lit .lmsn-check { display: flex; }

/* 右侧节点微调 */
.n2, .n4, .n6 { flex-direction: row-reverse; }
.n2 .lmsn-info, .n4 .lmsn-info, .n6 .lmsn-info { align-items: flex-end; text-align: right; }
/* 点亮后右侧节点垂直居中 */
.n2.lms-node.lit, .n4.lms-node.lit, .n6.lms-node.lit { flex-direction: column; }
.n2.lms-node.lit .lmsn-info, .n4.lms-node.lit .lmsn-info, .n6.lms-node.lit .lmsn-info { align-items: center; text-align: center; }

@keyframes lmIconPop {
    0% { transform: scale(0.3) rotate(-15deg); }
    60% { transform: scale(1.2) rotate(5deg); }
    100% { transform: scale(1) rotate(0deg); }
}

/* 站点弹窗 - 美食主题 */
.food-modal { text-align: center; padding: 0 !important; max-width: 340px !important; overflow: hidden; border-radius: var(--radius-xl) !important; }
.fm-header {
    background: linear-gradient(135deg, #f43f5e, #e11d48);
    padding: 28px 20px 20px;
    color: white;
}
.fm-food-icon { font-size: 52px; margin-bottom: 8px; }
.fm-title { font-size: 18px; font-weight: 700; }
.fm-body { padding: 20px 20px 12px; }
.fm-food-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.fm-food-name strong { color: var(--primary); }
.fm-sentence {
    font-size: 13px; color: var(--text-secondary); line-height: 1.6;
    font-style: italic;
    padding: 12px 14px;
    background: #fdf8f3;
    border-radius: 12px;
    margin-bottom: 14px;
    border-left: 3px solid var(--gold);
}
.fm-bean-row {
    display: inline-flex; align-items: center; gap: 8px;
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    padding: 8px 18px; border-radius: 20px;
    margin-bottom: 10px;
}
.fm-bean-label { font-size: 12px; color: var(--text-secondary); }
.fm-bean-num { font-size: 16px; font-weight: 700; color: var(--gold); }
.fm-hint {
    font-size: 11px; color: var(--text-light); line-height: 1.5;
    padding: 10px 12px;
    background: #f8f8f8;
    border-radius: 10px;
    margin-bottom: 6px;
}
.fm-btn-row {
    display: flex; gap: 10px;
    padding: 4px 20px 20px;
}
.fm-btn {
    flex: 1; padding: 13px 8px;
    border: none; border-radius: 12px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    white-space: nowrap;
}
.fm-btn:active { transform: scale(0.95); }
.fm-btn-next {
    background: var(--primary-gradient);
    color: white; box-shadow: 0 4px 14px rgba(196,40,43,0.3);
}
.fm-btn-browse {
    background: white; color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

/* 站点弹窗 - 双按钮设计 */
.st-modal { text-align: center; padding: 28px 20px 20px !important; max-width: 340px !important; }
.st-modal-icon { font-size: 52px; margin-bottom: 10px; }
.st-modal h2 { font-size: 20px; font-weight: 700; margin-bottom: 10px; }
.st-bean-row {
    display: inline-flex; align-items: center; gap: 6px;
    background: linear-gradient(135deg, #fff8e1, #fff3e0);
    padding: 6px 16px; border-radius: 20px;
    margin-bottom: 14px;
}
.st-bean-label { font-size: 12px; color: var(--text-secondary); }
.st-bean-num { font-size: 16px; font-weight: 700; color: var(--gold); }
.st-desc {
    background: #f8f8f8; border-radius: 12px; padding: 16px;
    margin-bottom: 18px;
}
.st-desc p { font-size: 14px; color: var(--text-secondary); line-height: 1.6; }
.st-btn-row {
    display: flex; gap: 10px;
}
.st-btn {
    flex: 1; padding: 13px 8px;
    border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    white-space: nowrap;
}
.st-btn:active { transform: scale(0.97); }
.st-btn-next {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; box-shadow: 0 4px 14px rgba(196,40,43,0.3);
}
.fm-btn-browse {
    background: white; color: var(--text-secondary);
    border: 1.5px solid var(--border);
}

/* 5/5 底部 - 融入底图 */
.lm-bottom { padding: 8px 16px 20px; }
.lm-bottom-info {
    display: flex; gap: 10px;
    padding: 8px 0;
}
.lm-bi-icon { font-size: 18px; flex-shrink: 0; margin-top: 2px; }
.lm-bi-text { font-size: 11px; color: var(--text-secondary); line-height: 1.6; }
.lm-bottom-btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}
.lm-bottom-btn {
    width: 55%;
    padding: 12px 10px;
    border: none;
    border-radius: 22px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    white-space: nowrap;
    letter-spacing: 0.3px;
}
.lm-bottom-btn:active { transform: scale(0.95); }
.lm-bottom-btn-left {
    background: linear-gradient(135deg, #c4282b, #d64042);
    color: white;
    box-shadow: 0 4px 14px rgba(196,40,43,0.25);
}
/* 手绘心形 */
.lb-heart {
    display: inline-block;
    width: 22px; height: 22px;
    position: relative;
    flex-shrink: 0;
}
.lb-heart::before, .lb-heart::after {
    content: '';
    position: absolute;
    width: 12px; height: 18px;
    background: var(--primary);
    border-radius: 12px 12px 0 0;
    opacity: 0.5;
}
.lb-heart::before {
    left: 4px;
    transform: rotate(-25deg);
    transform-origin: bottom center;
}
.lb-heart::after {
    right: 4px;
    transform: rotate(25deg);
    transform-origin: bottom center;
}
.lb-heart-left { transform: rotate(-10deg); }
.lb-heart-right { transform: rotate(10deg); }
/* 开始寻味按钮 */
.lm-map-bottom {
    text-align: center;
    padding: 2px 0 6px;
}
.lm-map-start-btn {
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 18px;
    padding: 8px 36px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(196,40,43,0.2);
    transition: all 0.25s;
}
.lm-map-start-btn:active { transform: scale(0.95); }

/* ===== 我的奖励弹窗 ===== */
.reward-modal {
    width: 72% !important;
    max-width: 280px !important;
    aspect-ratio: 9 / 16 !important;
    border-radius: 20px !important;
    padding: 18px 16px 14px !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    background: white !important;
}
.rm-s1 { text-align: center; padding-top: 2px; flex-shrink: 0; }
.rm-pt { font-size: 28px; margin-bottom: 2px; }
.rm-pt-title { font-size: 17px; font-weight: 700; color: var(--text); }
.rm-pt-sub { font-size: 10px; color: var(--text-secondary); line-height: 1.4; margin-top: 2px; }
.rm-s2 { display: flex; gap: 8px; background: #fef9f0; border-radius: 10px; padding: 10px; align-items: center; flex-shrink: 0; }
.rm-bean-block { display: flex; flex-direction: column; align-items: center; flex-shrink: 0; min-width: 60px; }
.rm-bean-icon { font-size: 22px; }
.rm-bean-num { font-size: 22px; font-weight: 800; color: var(--gold); line-height: 1; }
.rm-bean-label { font-size: 9px; color: var(--text-secondary); }
.rm-copy-block { flex: 1; }
.rm-copy-block p { font-size: 9px; color: var(--text-secondary); line-height: 1.6; margin: 0; }
.rm-s3 { background: #f8f8fa; border-radius: 10px; padding: 10px; flex-shrink: 0; }
.rm-rw-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 6px; }
.rm-rw-list { display: flex; flex-direction: column; gap: 5px; }
.rm-rw-item { display: flex; align-items: center; gap: 4px; background: white; border-radius: 8px; padding: 6px 8px; font-size: 10px; }
.rm-rw-item .rw-num { font-weight: 700; color: var(--gold); min-width: 20px; }
.rm-s4 { background: linear-gradient(135deg, #f0f7ff, #e8f4fd); border-radius: 10px; padding: 10px; flex-shrink: 0; margin-top: auto; }
.rm-act-row { display: flex; gap: 6px; align-items: flex-start; font-size: 9px; color: var(--text-secondary); line-height: 1.5; margin-bottom: 6px; }
.rm-act-btn2 { width: 100%; padding: 8px; background: linear-gradient(135deg, #4a90d9, #357abd); color: white; border: none; border-radius: 16px; font-size: 11px; font-weight: 600; cursor: pointer; }

/* ===== 激活教程次级弹窗（5:7） ===== */
.tutorial-modal {
    width: 65% !important;
    max-width: 250px !important;
    aspect-ratio: 5 / 7 !important;
    border-radius: 18px !important;
    padding: 20px 18px 16px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.tutorial-modal .tm-title { font-size: 16px; font-weight: 700; color: var(--text); margin-bottom: 12px; text-align: center; }
.tm-flow {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    margin-bottom: 12px;
    width: 100%;
}
.tm-f-step { display: flex; flex-direction: column; align-items: center; gap: 4px; flex: 1; }
.tm-fn { width: 22px; height: 22px; background: var(--primary); border-radius: 50%; color: white; font-size: 11px; font-weight: 700; display: flex; align-items: center; justify-content: center; }
.tm-fi { font-size: 24px; }
.tm-ft { font-size: 9px; color: var(--text-secondary); text-align: center; line-height: 1.3; }
.tm-fa { font-size: 16px; color: #ccc; padding-top: 26px; flex-shrink: 0; }
.tm-tips { background: #fef9f0; border-radius: 10px; padding: 10px; margin-bottom: 12px; width: 100%; }
.tm-tips-title { font-size: 12px; font-weight: 600; color: var(--text); margin-bottom: 5px; }
.tm-tip { font-size: 11px; color: var(--text-secondary); line-height: 1.6; }
.tm-close-btn2 { width: 60%; padding: 10px; background: var(--primary); color: white; border: none; border-radius: 20px; font-size: 13px; font-weight: 600; cursor: pointer; margin-top: auto; }
.tm-close-btn2:active { transform: scale(0.95); }

/* ===== 我的转介弹窗（老客） ===== */
.referral-modal {
    width: 80% !important;
    max-width: 320px !important;
    border-radius: 20px !important;
    padding: 20px 18px 16px !important;
    display: flex;
    flex-direction: column;
}
.ref-s1 { flex-shrink: 0; }
.ref-header { text-align: center; margin-bottom: 10px; }
.ref-ht { font-size: 18px; font-weight: 700; color: var(--text); margin-bottom: 4px; }
.ref-hs { font-size: 11px; color: var(--text-secondary); line-height: 1.4; }
.ref-poster {
    aspect-ratio: 5 / 4;
    background: linear-gradient(135deg, #f5e6cc, #e8d5b0);
    border-radius: 14px;
    padding: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #d4c4a0;
}
.ref-poster-bg { text-align: center; }
.ref-pb-scene { font-size: 28px; margin-bottom: 4px; letter-spacing: 8px; }
.ref-pb-title { font-size: 22px; font-weight: 800; color: #8b4513; letter-spacing: 4px; margin-bottom: 4px; }
.ref-pb-text { font-size: 11px; color: #a0724a; line-height: 1.6; }
.ref-pb-qr { font-size: 36px; margin-top: 6px; opacity: 0.7; }
.ref-s2 { flex: 1; display: flex; flex-direction: column; }
.ref-stats {
    display: flex;
    gap: 4px;
    margin-bottom: 10px;
    background: #f8f8fa;
    border-radius: 12px;
    padding: 10px 8px;
}
.ref-stat-item {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}
.ref-si-icon { font-size: 16px; }
.ref-si-num { font-size: 16px; font-weight: 700; color: var(--primary); }
.ref-si-unit { font-size: 9px; color: var(--text-secondary); }
.ref-rules { background: #fef9f0; border-radius: 10px; padding: 10px; margin-bottom: 10px; }
.ref-rule-item { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--text-secondary); line-height: 1.8; }
.ref-poster-btn {
    width: 100%;
    padding: 10px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
}
.ref-poster-btn:active { transform: scale(0.95); }

/* ===== 福签解锁弹窗（9:16） ===== */
.fortune-modal {
    width: 80% !important;
    max-width: 300px !important;
    border-radius: 20px !important;
    padding: 20px 20px 18px !important;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    background: linear-gradient(160deg, #fef7ef 0%, #fdf0e0 30%, #fce8d0 60%, #fef0dc 100%) !important;
    border: 1.5px solid #edcfa0;
    box-shadow: 0 8px 32px rgba(139, 69, 19, 0.15), 0 0 0 1px rgba(237, 207, 160, 0.3);
}
.fortune-modal .fm-close {
    position: absolute;
    top: 8px; right: 10px;
    font-size: 16px;
    color: #b8956a;
    background: rgba(255,255,255,0.6);
    border: none;
    cursor: pointer;
    z-index: 5;
    width: 26px;
    height: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    line-height: 1;
    transition: background 0.2s;
}
.fortune-modal .fm-close:hover { background: rgba(255,255,255,0.9); }
.fortune-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    flex-shrink: 0;
    padding: 0 4px;
}
.fortune-icon-left, .fortune-icon-right {
    font-size: 24px;
    line-height: 1;
    animation: fortuneBounce 1.5s ease-in-out infinite;
}
.fortune-icon-right { animation-delay: 0.3s; }
@keyframes fortuneBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-3px); }
}
.fortune-title {
    font-size: 22px;
    font-weight: 900;
    color: #c0392b;
    letter-spacing: 4px;
    font-family: "SimHei", "Microsoft YaHei", "PingFang SC", sans-serif;
    line-height: 1.3;
    text-shadow: 0 1px 2px rgba(192,57,43,0.1);
}
.fortune-image {
    width: 72%;
    aspect-ratio: 16 / 10;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
    border: 1.5px solid #e8c88a;
    position: relative;
    background: linear-gradient(135deg, #d4a373 0%, #e9c9a0 50%, #d4a373 100%);
    box-shadow: 0 2px 12px rgba(139,69,19,0.08);
}
.fortune-img-pic {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.fortune-img-fallback {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    background: linear-gradient(135deg, #d4a373 0%, #e9c9a0 30%, #f0dbb8 60%, #d4a373 100%);
}
.fortune-img-fallback span { font-size: 36px; }
.fortune-msg {
    position: relative;
    text-align: center;
    padding: 0 4px;
    width: 100%;
    flex-shrink: 0;
}
.fortune-handwrite {
    display: block;
    font-size: 18px;
    color: #8b4513;
    font-weight: 700;
    line-height: 1.5;
    letter-spacing: 0.5px;
    font-family: "KaiTi", "STKaiti", "华文楷体", cursive;
}
.fortune-divider {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 80%;
    flex-shrink: 0;
}
.fd-line {
    flex: 1;
    height: 1px;
    background: linear-gradient(90deg, transparent, #d4a84b, transparent);
}
.fd-star {
    font-size: 14px;
    line-height: 1;
    flex-shrink: 0;
    animation: fortuneStarSpin 3s ease-in-out infinite;
}
@keyframes fortuneStarSpin {
    0%, 100% { transform: rotate(0deg) scale(1); }
    50% { transform: rotate(180deg) scale(1.2); }
}
.fortune-bottom {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    gap: 8px;
}
.fortune-beans {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(255,255,255,0.8), rgba(255,248,235,0.9));
    border-radius: 10px;
    padding: 8px 14px;
    width: 100%;
    flex-shrink: 0;
    border: 1px solid rgba(237,207,160,0.4);
}
.fortune-bean-icon { font-size: 18px; line-height: 1; flex-shrink: 0; }
.fortune-bean-text {
    display: flex;
    flex-direction: column;
    gap: 2px;
    font-size: 13px;
    color: #8b4513;
    font-weight: 600;
    line-height: 1.4;
    text-align: center;
}
.fortune-bean-text strong { color: #c0392b; font-size: 15px; }
.fortune-btns {
    display: flex;
    gap: 8px;
    width: 100%;
    flex-shrink: 0;
    padding-top: 2px;
}
.fortune-btn {
    flex: 1;
    padding: 10px 8px;
    border: none;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    letter-spacing: 0.5px;
}
.fortune-btn:active { transform: scale(0.95); }
.fortune-btn-poster {
    background: linear-gradient(135deg, #c0392b, #e74c3c);
    color: white;
    box-shadow: 0 3px 10px rgba(192,57,43,0.25);
}
.fortune-btn-poster:hover { box-shadow: 0 4px 16px rgba(192,57,43,0.35); }
.fortune-btn-activate {
    background: linear-gradient(135deg, #f5f0eb, #efe6d8);
    color: #6b4c30;
    border: 1px solid #e0cdb4;
}

/* ----- 抽奖结果操作页 ----- */
.prize-action-modal { text-align: center; }
.prize-animation { font-size: 56px; margin-bottom: 12px; animation: bounce 0.6s ease; }
.prize-action-modal h2 { font-size: 20px; margin-bottom: 4px; }
.prize-amount { font-size: 28px; font-weight: 700; color: var(--gold); margin-bottom: 4px; }
.prize-hint { font-size: 13px; color: var(--text-secondary); margin-bottom: 20px; }
.prize-actions { display: flex; flex-direction: column; gap: 12px; margin-bottom: 12px; }
.action-btn {
    display: flex; align-items: center; gap: 14px; padding: 16px;
    border-radius: 12px; border: 1.5px solid var(--border);
    background: white; cursor: pointer; transition: all 0.3s;
    text-align: left; width: 100%;
}
.action-btn:active { transform: scale(0.98); }
.action-icon { font-size: 28px; }
.action-text { font-size: 15px; font-weight: 600; display: block; }
.action-desc { font-size: 11px; color: var(--text-light); display: block; margin-top: 2px; }
.poster-btn { border-color: #ffd666; background: #fffbe6; }
.activate-btn { border-color: #95de64; background: #f6ffed; }

/* ----- 海报浮窗 ----- */
.poster-area {
    background: white; border-radius: 14px; padding: 0;
    margin-bottom: 16px; overflow: hidden; box-shadow: 0 2px 12px rgba(0,0,0,0.08);
}
.poster-content { background: var(--primary-gradient); color: white; padding: 0; }
.poster-header { font-size: 18px; font-weight: 700; padding: 24px 20px 12px; text-align: center; }
.poster-body { padding: 12px 20px 20px; text-align: center; }
.poster-landmarks { display: flex; justify-content: center; gap: 12px; font-size: 32px; margin-bottom: 16px; }
.poster-qr {
    font-size: 72px; margin-bottom: 8px; background: white; color: #333;
    width: 100px; height: 100px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
}
.poster-text { font-size: 13px; opacity: 0.9; margin-top: 8px; }
.poster-footer { font-size: 11px; opacity: 0.6; padding: 12px 20px 20px; text-align: center; }
/* ====== 行员推荐海报弹窗（5:3比例+二维码） ====== */
.sp-poster-modal {
    padding: 20px 16px 16px !important;
    text-align: center;
    max-width: 320px !important;
}
/* 新海报弹窗 - poster-new-modal */
.poster-new-modal {
    max-width: 320px !important;
    width: 82% !important;
    border-radius: 20px !important;
    padding: 0 !important;
    overflow: hidden;
    background: white !important;
}
.poster-new-modal .pn-close {
    position: absolute;
    top: 10px; right: 12px;
    z-index: 5;
    background: rgba(0,0,0,0.3);
    color: white;
    border: none;
    border-radius: 50%;
    width: 26px; height: 26px;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}
.pn-card {
    aspect-ratio: 4 / 5;
    background: linear-gradient(135deg, #1a237e 0%, #283593 40%, #3949ab 100%);
    color: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 24px 20px;
    position: relative;
    overflow: hidden;
}
.pn-card::before {
    content: '';
    position: absolute;
    top: -30%; right: -20%;
    width: 180px; height: 180px;
    background: rgba(255,255,255,0.04);
    border-radius: 50%;
}
.pn-card::after {
    content: '';
    position: absolute;
    bottom: -15%; left: -15%;
    width: 140px; height: 140px;
    background: rgba(255,255,255,0.03);
    border-radius: 50%;
}
.pn-brand {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 12px;
    z-index: 1;
}
.pn-logo { font-size: 18px; }
.pn-name { font-size: 13px; font-weight: 500; opacity: 0.9; }
.pn-title {
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 3px;
    margin-bottom: 16px;
    z-index: 1;
}
.pn-prizes {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    z-index: 1;
}
.pn-prize {
    font-size: 28px;
    filter: drop-shadow(0 2px 6px rgba(0,0,0,0.2));
}
.pn-qr {
    background: white;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 6px;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.pn-qr img { width: 90px; height: 90px; display: block; }
.pn-qr-fallback { width: 90px; height: 90px; display: flex; align-items: center; justify-content: center; font-size: 36px; }
.pn-qr-label { font-size: 11px; opacity: 0.7; z-index: 1; }
.pn-save-area {
    padding: 14px 20px 20px;
    text-align: center;
}
.pn-save-hint {
    font-size: 11px;
    color: var(--text-secondary);
    margin-bottom: 10px;
    line-height: 1.4;
}
.pn-save-btn {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    box-shadow: 0 3px 12px rgba(196,40,43,0.25);
}
.pn-save-btn:active { transform: scale(0.97); }
.sp-close {
    position: absolute; top: 10px; right: 10px;
    background: rgba(0,0,0,0.08); border: none; font-size: 16px;
    cursor: pointer; color: #666; z-index: 10;
    width: 28px; height: 28px;
    display: flex; align-items: center; justify-content: center;
    border-radius: 50%;
}
.sp-card-53 {
    border-radius: 14px;
    overflow: hidden;
    margin-bottom: 14px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    aspect-ratio: 5 / 3;
}
.sp-card-bg {
    background: linear-gradient(135deg, #1a4f7a 0%, #2d6ca8 50%, #3b82c4 100%);
    padding: 20px 18px 16px;
    color: white;
    position: relative;
    overflow: hidden;
    height: 100%;
    display: flex; flex-direction: column;
    align-items: center;
    justify-content: center;
}
.sp-card-simple { padding: 20px 18px 16px; }
.sp-logo-row {
    display: flex; align-items: center; justify-content: center; gap: 5px;
    margin-bottom: 10px;
}
.sp-logo { font-size: 16px; }
.sp-logo-text { font-size: 11px; font-weight: 500; opacity: 0.85; }
.sp-main-title {
    font-size: 20px; font-weight: 800;
    text-align: center;
    letter-spacing: 2px;
    margin-bottom: 12px;
}
.sp-qr-code {
    margin-bottom: 12px;
    display: flex; justify-content: center;
}
.sp-qr-img {
    width: 90px; height: 90px;
    border-radius: 8px;
    background: white;
    display: block;
}
.sp-qr-fallback { display: none; }
.sp-qr-inner {
    width: 76px; height: 76px;
    background: white;
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 36px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}
.sp-invite-row {
    display: flex; align-items: center; gap: 8px;
    background: rgba(255,255,255,0.15);
    border-radius: 8px; padding: 8px 12px;
    margin-bottom: 6px;
    width: 100%;
    max-width: 240px;
}
.sp-invite-text { flex: 1; font-size: 12px; opacity: 0.9; text-align: left; }
.sp-invite-copy {
    background: rgba(255,255,255,0.25);
    padding: 3px 12px; border-radius: 12px;
    font-size: 11px; cursor: pointer; flex-shrink: 0;
}
.sp-desc-text { font-size: 11px; opacity: 0.7; text-align: center; }
.sp-close-btn {
    width: 100%; padding: 11px;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white; border: none; border-radius: 10px;
    font-size: 14px; font-weight: 600; cursor: pointer;
    box-shadow: 0 4px 14px rgba(196,40,43,0.3);
    transition: all 0.2s;
}
.sp-close-btn:active { opacity: 0.9; }

/* ----- 激活广银豆弹窗 ----- */
.activation-modal { text-align: center; }
.activation-icon { font-size: 48px; margin-bottom: 12px; }
.activation-modal h2 { font-size: 20px; margin-bottom: 16px; }
.activation-info { background: #f8f8f8; border-radius: 10px; padding: 14px 16px; margin-bottom: 16px; }
.activation-row { display: flex; justify-content: space-between; align-items: center; padding: 6px 0; font-size: 14px; }
.activation-row strong { color: var(--gold); font-size: 18px; }
.activation-steps { text-align: left; margin-bottom: 16px; }
.step { display: flex; align-items: center; gap: 10px; padding: 8px 0; font-size: 13px; color: var(--text-secondary); }
.step-num {
    width: 24px; height: 24px; background: var(--primary); color: white;
    border-radius: 50%; display: flex; align-items: center; justify-content: center;
    font-size: 12px; font-weight: 600; flex-shrink: 0;
}
.activation-notice { font-size: 12px; color: var(--warning); margin-bottom: 16px; padding: 8px; background: #fffbe6; border-radius: 8px; }

/* ----- 行员KPI看板 ----- */
.staff-kpi { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.kpi-card {
    display: flex; align-items: center; gap: 16px;
    background: var(--card-bg); border-radius: var(--radius);
    padding: 16px 20px; box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    border-left: 4px solid var(--primary-light);
}
.kpi-card.highlight { border-left-color: var(--gold); background: linear-gradient(135deg, #fffdf5, #fff8e1); }
.kpi-icon { font-size: 28px; }
.kpi-info { flex: 1; }
.kpi-label { display: block; font-size: 13px; color: var(--text-secondary); margin-bottom: 2px; }
.kpi-num { display: block; font-size: 28px; font-weight: 700; color: var(--primary); }
.kpi-card.highlight .kpi-num { color: var(--gold); }

/* ----- 行员提取海报区域 ----- */
.staff-poster-section { padding: 0 16px 16px; }
.poster-preview {
    display: flex; align-items: center; gap: 14px;
    background: linear-gradient(135deg, #f0f7ff, #e6f7ff);
    border: 1.5px dashed #1890ff;
    border-radius: var(--radius); padding: 16px; cursor: pointer; transition: all 0.3s;
}
.poster-preview:active { transform: scale(0.98); }
.poster-preview-icon { font-size: 32px; }
.poster-preview-info { flex: 1; }
.poster-preview-info strong { display: block; font-size: 14px; margin-bottom: 2px; }
.poster-preview-info span { font-size: 11px; color: var(--text-light); }
.poster-arrow { font-size: 20px; color: #1890ff; }
.landmark-progress-text { font-size: 13px; }
.landmark-progress-text strong { font-size: 16px; }

@keyframes bounce {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

/* ====== 行员-社区活动页 ====== */
.staff-comm-header {
    background: linear-gradient(135deg, #c4282b, #a01e20);
    padding: 14px 16px 12px;
    color: white;
}
.staff-comm-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.staff-comm-back { font-size: 26px; cursor: pointer; line-height: 1; color: white; background: none; border: none; padding: 0; }
.staff-comm-title { font-size: 18px; font-weight: 600; }
.staff-comm-spacer { width: 26px; }
.staff-comm-sub {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.staff-comm-dropdown { font-size: 13px; opacity: 0.9; cursor: pointer; }
.staff-comm-login {
    background: white; color: var(--primary); border: none;
    padding: 6px 18px; border-radius: 16px; font-size: 13px; font-weight: 500;
    cursor: pointer;
}
.staff-comm-body { padding: 12px 14px; background: #f8f8f8; min-height: 70vh; }
/* ====== 活动卡片（美观真实版） ====== */
.act-card { margin-bottom: 14px; cursor: pointer; }
.act-bg {
    position: relative; border-radius: var(--radius-lg); padding: 24px 20px;
    color: white; overflow: hidden; min-height: 135px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    display: flex; align-items: center; justify-content: space-between;
}
.act-bg:active { transform: scale(0.97); }
.act-orange { background: linear-gradient(135deg, #f97316 0%, #ea580c 50%, #c2410c 100%); }
.act-blue { background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 50%, #0369a1 100%); }
.act-red { background: linear-gradient(135deg, #f43f5e 0%, #e11d48 40%, #be123c 100%); }

/* 装饰圆 */
.act-deco-bubble {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.06);
    pointer-events: none;
}
.a1 { width: 180px; height: 180px; top: -60px; right: -40px; }
.a2 { width: 100px; height: 100px; bottom: -30px; left: -20px; }
.a3 { width: 60px; height: 60px; top: 20px; left: 40%; }
.a4 { width: 140px; height: 140px; top: -40px; right: -30px; }
.a5 { width: 80px; height: 80px; bottom: -20px; left: 30%; }

.act-left { position: relative; z-index: 2; flex: 1; }
.act-badge {
    display: inline-block;
    background: rgba(255,255,255,0.22);
    padding: 3px 12px; border-radius: 12px;
    font-size: 11px; font-weight: 500;
    margin-bottom: 10px;
    backdrop-filter: blur(4px);
    border: 0.5px solid rgba(255,255,255,0.15);
}
.orange-badge { background: rgba(255,255,255,0.2); }
.blue-badge { background: rgba(255,255,255,0.2); }
.red-badge { background: rgba(255,255,255,0.2); }
.act-title {
    font-size: 20px; font-weight: 800;
    margin-bottom: 3px; letter-spacing: 0.5px;
    text-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.act-sub { font-size: 13px; opacity: 0.92; margin-bottom: 6px; }
.act-date { font-size: 11px; opacity: 0.65; }

.act-right {
    position: relative; z-index: 2;
    flex-shrink: 0; margin-left: 12px;
}
.act-mascot { font-size: 50px; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2)); animation: actBounce 2.5s ease-in-out infinite; }
.act-mascot-summer { font-size: 48px; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2)); animation: actFloat 3s ease-in-out infinite; }
.act-mascot-food { font-size: 48px; filter: drop-shadow(0 3px 8px rgba(0,0,0,0.2)); animation: actBounce 3s ease-in-out infinite; }
@keyframes actBounce { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes actFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(3deg); } }

/* 城市天际线 */
.act-cityline {
    position: absolute; right: 10px; bottom: 0;
    height: 40px; display: flex; align-items: flex-end; gap: 3px;
    opacity: 0.12; pointer-events: none;
}
.ac { width: 12px; background: white; border-radius: 2px 2px 0 0; }
.b1 { height: 22px; } .b2 { height: 34px; width: 9px; }
.b3 { height: 40px; width: 14px; } .b4 { height: 28px; width: 7px; }
.b5 { height: 18px; width: 10px; } .b6 { height: 30px; width: 8px; }

/* 波浪 */
.act-wave {
    position: absolute; bottom: 0; left: 0; right: 0;
    height: 14px; pointer-events: none;
}
.wv1 {
    background: repeating-linear-gradient(-45deg, transparent 0, transparent 6px,
        rgba(255,255,255,0.06) 6px, rgba(255,255,255,0.06) 12px);
}
.wv2 { bottom: 5px;
    background: repeating-linear-gradient(45deg, transparent 0, transparent 8px,
        rgba(255,255,255,0.04) 8px, rgba(255,255,255,0.04) 16px); }

/* 气泡 */
.act-bub {
    position: absolute; border-radius: 50%;
    border: 1.5px solid rgba(255,255,255,0.12);
    pointer-events: none;
}
.ub1 { width: 14px; height: 14px; top: 14px; right: 100px; animation: actBubble 3s ease-in-out infinite; }
.ub2 { width: 8px; height: 8px; top: 28px; right: 80px; animation: actBubble 3.5s ease-in-out infinite 0.5s; }
.ub3 { width: 18px; height: 18px; bottom: 44px; right: 110px; animation: actBubble 4s ease-in-out infinite 1s; }
@keyframes actBubble { 0%,100% { transform: translateY(0); opacity: 0.3; } 50% { transform: translateY(-6px); opacity: 0.6; } }

/* CTA标签 */
.act-cta-tag {
    position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.2);
    padding: 5px 14px; border-radius: 14px;
    font-size: 12px; font-weight: 500;
    backdrop-filter: blur(4px);
    border: 0.5px solid rgba(255,255,255,0.15);
    z-index: 2;
}

/* 食物装饰 */
.act-food {
    position: absolute; font-size: 18px; opacity: 0.2;
    pointer-events: none;
}
.fd1 { top: 12px; right: 74px; animation: actFoodFloat 3s ease-in-out infinite; }
.fd2 { bottom: 36px; right: 34px; animation: actFoodFloat 4s ease-in-out infinite 0.5s; }
.fd3 { top: 46%; left: 62%; animation: actFoodFloat 3.5s ease-in-out infinite 1s; }
@keyframes actFoodFloat { 0%,100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-6px) rotate(6deg); } }

/* 活动3: 羊城寻味记 - 美食主题 */
.camp-food {
    background: linear-gradient(135deg, #f43f5e 0%, #e11d48 40%, #be123c 100%);
}
.food-deco {
    position: absolute; font-size: 20px; opacity: 0.25;
    pointer-events: none;
}
.fd-1 { top: 10px; right: 80px; animation: floatFood 3s ease-in-out infinite; }
.fd-2 { bottom: 40px; right: 40px; animation: floatFood 4s ease-in-out infinite 0.5s; }
.fd-3 { top: 50%; left: 60%; animation: floatFood 3.5s ease-in-out infinite 1s; }
@keyframes floatFood {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-6px) rotate(8deg); }
}
.staff-comm-bottom {
    display: flex; background: white; border-top: 1px solid #f0f0f0;
    padding: 6px 0; padding-bottom: max(6px, env(safe-area-inset-bottom));
}
.sc-nav-item {
    flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px;
    padding: 4px 0; cursor: pointer; color: #999; font-size: 11px;
}
.sc-nav-item.active { color: var(--primary); }
.sc-nav-item span:first-child { font-size: 20px; }

/* ====== 行员-双号码微信授权 ====== */
.staff-auth-overlay {
    min-height: 100vh; background: rgba(0,0,0,0.45);
    display: flex; align-items: flex-end; justify-content: center;
    padding: 0;
}
.staff-auth-sheet {
    width: 100%; max-width: 480px;
    background: #f7f7f8; border-radius: 14px 14px 0 0;
    padding: 20px 20px 34px;
    animation: sheetUp 0.35s cubic-bezier(0.32,0.72,0,1);
}
.staff-auth-header { margin-bottom: 20px; }
.staff-auth-app { font-size: 15px; font-weight: 500; color: #1a1a1a; }
.staff-auth-body { text-align: center; }
.staff-auth-card {
    background: white; border-radius: 12px;
    padding: 28px 20px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.staff-auth-lock { font-size: 28px; margin-bottom: 12px; }
.staff-auth-title { font-size: 17px; font-weight: 600; color: #1a1a1a; margin-bottom: 20px; line-height: 1.4; }
.staff-auth-row {
    display: flex; align-items: center; justify-content: space-between;
    background: #f5f5f5; border-radius: 8px; padding: 12px 14px;
    cursor: pointer; transition: background 0.15s; margin-bottom: 8px;
}
.staff-auth-row:active { background: #ebebeb; }
.staff-auth-row-left { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.staff-auth-row-label { font-size: 12px; color: #999; }
.staff-auth-row-num { font-size: 17px; font-weight: 600; color: #1a1a1a; letter-spacing: 0.5px; }
.staff-auth-row-btn {
    background: #07c160; color: white;
    font-size: 14px; font-weight: 500;
    padding: 7px 20px; border-radius: 20px; flex-shrink: 0;
}
.staff-auth-divider { height: 1px; background: #f0f0f0; margin: 16px 0; }
.staff-auth-actions { display: flex; align-items: center; justify-content: center; gap: 24px; }
.staff-auth-decline { font-size: 15px; color: #1a1a1a; cursor: pointer; }
.staff-auth-decline:active { opacity: 0.5; }
.staff-auth-manage { font-size: 14px; color: #576b95; cursor: pointer; }
.staff-auth-manage:active { opacity: 0.6; }

/* ====== 行员活动页（统一底图设计） ====== */
.st-header {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    background: white;
    border-bottom: 1px solid #f0f0f0;
}
.st-back { font-size: 26px; cursor: pointer; color: var(--text); background: none; border: none; padding: 0; line-height: 1; }
.st-title { flex: 1; text-align: center; font-size: 16px; font-weight: 600; }
.st-sub { font-size: 12px; color: #999; margin-left: auto; }

.st-wrap {
    background: linear-gradient(180deg, #f8f4f0 0%, #fff8f0 30%, #fefcf9 60%, #f5f0eb 100%);
    min-height: calc(100vh - 50px);
    padding-bottom: 30px;
}

/* 1/4 主视觉 */
.st-hero { padding: 0; }
.st-hero-bg {
    position: relative;
    background: linear-gradient(135deg, #d44a3a 0%, #c4282b 40%, #9a1f22 100%);
    padding: 24px 20px 28px;
    text-align: center; color: white;
    overflow: hidden;
    border-radius: 0 0 24px 24px;
    box-shadow: 0 4px 18px rgba(196,40,43,0.22);
}
.st-deco {
    position: absolute; border-radius: 50%;
    background: rgba(255,255,255,0.05);
    pointer-events: none;
}
.st-deco.d1 { width: 200px; height: 200px; top: -60px; left: -40px; }
.st-deco.d2 { width: 140px; height: 140px; bottom: -30px; right: -20px; }
.st-deco.d3 { width: 90px; height: 90px; top: 40%; right: 20%; }
.st-hero-icon { font-size: 42px; margin-bottom: 6px; filter: drop-shadow(0 4px 12px rgba(0,0,0,0.15)); }
.st-hero-text {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
}
.st-line1 { font-size: 22px; font-weight: 800; letter-spacing: 1px; margin-bottom: 3px; }
.st-line2 { font-size: 28px; font-weight: 800; letter-spacing: 4px; margin-bottom: 6px; }
.st-line3 { font-size: 13px; opacity: 0.9; margin-bottom: 3px; }
.st-line4 { font-size: 13px; opacity: 0.85; }

/* 食物装饰 */
.st-food {
    position: absolute; font-size: 22px; opacity: 0.15;
    pointer-events: none;
}
.st-food.f1 { top: 10px; left: 12%; }
.st-food.f2 { bottom: 12px; right: 16%; }
.st-food.f3 { top: 28%; right: 8%; }
.st-food.f4 { bottom: 30%; left: 10%; }

/* 2/4 业绩概览卡片 */
.st-greet {
    margin: 12px 16px 8px;
    background: white;
    border-radius: 16px;
    padding: 14px 18px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
    gap: 12px;
}
.st-greet-avatar {
    width: 44px; height: 44px;
    background: linear-gradient(135deg, #fef3e2, #fde8d0);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    font-size: 22px;
    flex-shrink: 0;
}
.st-greet-info { flex: 1; }
.st-greet-hi { font-size: 17px; font-weight: 700; color: var(--text); margin-bottom: 3px; }
.st-greet-stats { font-size: 12px; color: var(--text-secondary); }

/* 3/4 数据看板 */
.st-board {
    margin: 8px 16px;
    background: white;
    border-radius: 16px;
    padding: 18px 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.05);
}
.st-board-title {
    font-size: 16px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 14px;
    padding-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
}
.st-stats {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}
.st-stat-box {
    flex: 1;
    background: linear-gradient(135deg, #fef9f0, #fdf3e0);
    border-radius: 14px;
    padding: 16px 12px;
    text-align: center;
    border: 1px solid #f5e8d0;
}
.st-stat-icon { font-size: 24px; margin-bottom: 6px; }
.st-stat-num {
    font-size: 30px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1.2;
}
.st-stat-label {
    font-size: 14px;
    color: var(--text-secondary);
    margin-top: 4px;
}
.st-rank-hint {
    font-size: 12px;
    color: var(--text-secondary);
    text-align: center;
    padding: 10px 14px;
    background: #fafafa;
    border-radius: 10px;
}
.st-rank-hint strong { color: var(--primary); font-weight: 700; }

/* 4/4 底部操作 */
.st-bottom {
    padding: 4px 16px 20px;
}
.st-poster-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 22px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 4px 16px rgba(196,40,43,0.25);
    transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
    margin-bottom: 10px;
}
.st-poster-btn:active { transform: scale(0.97); }
.st-hint {
    font-size: 11px;
    color: var(--text-secondary);
    text-align: center;
    line-height: 1.6;
    margin-top: 8px;
}

/* ====== 微信小程序手机号授权底部卡片 ====== */
.phone-auth-overlay {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    opacity: 1;
}
.phone-auth-overlay-bg {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.45);
}
.phone-auth-sheet {
    position: relative;
    width: 100%;
    max-width: 480px;
    background: #f7f7f8;
    border-radius: 14px 14px 0 0;
    padding: 28px 20px 12px;
    animation: sheetUp 0.35s cubic-bezier(0.32, 0.72, 0, 1);
}
@keyframes sheetUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}
/* 顶部左对齐区域（约1/5） */
.phone-auth-top {
    padding-left: 4px;
    margin-bottom: 24px;
    text-align: left;
}
.phone-auth-app {
    font-size: 15px;
    font-weight: 500;
    color: #1a1a1a;
    margin-bottom: 10px;
}
.phone-auth-top .phone-auth-title {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.35;
    margin-bottom: 8px;
}
.phone-auth-top .phone-auth-desc {
    font-size: 13px;
    color: #999;
    line-height: 1.4;
}
.phone-auth-body {
    text-align: center;
    background: white;
    border-radius: 12px;
    padding: 20px 16px 20px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.phone-auth-row {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f5f5f5;
    border-radius: 8px;
    padding: 14px 16px;
    cursor: pointer;
    transition: background 0.15s;
}
.phone-auth-row + .phone-auth-row {
    margin-top: 10px;
}
.phone-auth-row:active { background: #ebebeb; }
.phone-auth-row-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
}
.phone-auth-row-label {
    font-size: 12px;
    color: #999;
}
.phone-auth-row-num {
    font-size: 17px;
    font-weight: 600;
    color: #1a1a1a;
    letter-spacing: 0.5px;
}
    transition: background 0.15s;
}
.phone-auth-divider {
    height: 1px;
    background: #f0f0f0;
    margin: 16px 0;
}
.phone-auth-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
}
.phone-auth-decline {
    font-size: 15px;
    color: #1a1a1a;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.15s;
}
.phone-auth-decline:active { opacity: 0.5; }
/* 底部管理号码入口 */
.phone-auth-bottom {
    text-align: center;
    padding: 14px 0 8px;
}
.phone-auth-manage {
    font-size: 13px;
    color: #576b95;
    cursor: auto;
}
.phone-auth-other {
    font-size: 14px;
    color: #576b95;
    cursor: pointer;
    padding: 4px 8px;
    transition: opacity 0.15s;
}
.phone-auth-other:active { opacity: 0.6; }

/* ====== 响应式适配 ====== */

/* 小屏手机 (< 360px) */
@media (max-width: 359px) {
  .lm-hero-title { font-size: 20px; }
  .lm-hero-icon { font-size: 38px; }
  .lm-greet-hi { font-size: 16px; }
  .lm-map { padding: 0 8px; }
  .lms-node { width: 120px; }
  .lms-node.lit { width: 120px; }
  .lmsn-name { font-size: 12px !important; }
  .fortune-title { font-size: 18px; }
  .fortune-handwrite { font-size: 16px; }
  .modal-content { padding: 20px 14px 16px; }
  .lm-bottom-btn { font-size: 12px; padding: 10px 8px; width: 60%; }
}

/* 常规手机 (360px - 414px) */
@media (min-width: 360px) and (max-width: 414px) {
  .lms-node { width: 132px; }
  .lms-node.lit { width: 132px; }
  .lm-map { padding: 0 10px; }
}

/* 大屏手机 (415px+) */
@media (min-width: 415px) {
  .lms-node { width: 145px; }
  .lms-node.lit { width: 145px; }
  .lm-map { padding: 0 20px; }
  .lm-hero-title { font-size: 26px; }
  .lm-hero-icon { font-size: 50px; }
}

/* iPad 等平板 */
@media (min-width: 768px) {
  body { max-width: 480px; margin: 0 auto; box-shadow: 0 0 30px rgba(0,0,0,0.08); min-height: 100vh; }
}

/* 安全区域适配 */
@supports (padding: env(safe-area-inset-bottom)) {
  .page { padding-bottom: env(safe-area-inset-bottom); }
  .lm-wrap { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
  .st-wrap { padding-bottom: calc(30px + env(safe-area-inset-bottom)); }
}

/* 小屏手机按钮适配 */
@media (max-width: 359px) {
  .lm-hero-btn { width: 48px; height: 48px; }
  .lm-hero-btn .lhb-icon { font-size: 16px; }
  .lm-hero-btn .lhb-text { font-size: 8px; }
  .lm-hero-top-btns { top: 8px; right: 8px; gap: 6px; }
}
