/* ===== 浅蓝清新主题 - 高仿截图样式 ===== */
:root {
    --primary: #4a90e2;
    --primary-light: #e8f4fd;
    --bg: #f0f4f8;
    --white: #ffffff;
    --text: #333333;
    --text-gray: #999999;
    --text-light: #666666;
    --border: #eeeeee;
    --orange: #ff6b35;
    --green: #52c41a;
    --red: #ff4d4f;
    --yellow: #faad14;
    --blue: #1890ff;
    --purple: #722ed1;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-card: 0 4px 16px rgba(0,0,0,0.06);
}

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

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

.page {
    min-height: 100vh;
    padding-bottom: 70px;
    max-width: 430px;
    margin: 0 auto;
    background: var(--bg);
    position: relative;
}

/* 练习/考试页面需要更多底部空间容纳 answer-bar + bottom-nav */
.page.practice-page {
    padding-bottom: 140px;
}

/* 题目滑动容器 */
.question-slider {
    position: relative;
    overflow: hidden;
    touch-action: pan-y;
}
.question-track {
    display: flex;
    transition: transform 0.3s ease;
}
.question-slide {
    width: 100%;
    flex-shrink: 0;
    padding: 0 12px;
}

/* 底部导航栏 - 固定在答题栏上方 */
.nav-bar-custom {
    position: fixed;
    bottom: 56px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--white);
    padding: 10px 12px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 99;
    gap: 8px;
}
.nav-bar-custom > button {
    padding: 0;
    border: none;
    font-size: 13px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
    background: none;
}

/* 收藏按钮 - 左右排列 */
.nav-fav {
    color: #999;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 50px;
}
.nav-fav i {
    font-size: 18px;
    color: #ccc;
}
.nav-fav.active i {
    color: #faad14;
}
.nav-fav.active {
    color: #faad14;
}

/* 上一题/下一题按钮组 - 两个独立的圆角边框按钮 */
.nav-btns {
    display: flex;
    gap: 8px;
    flex: 1;
    justify-content: center;
}
.nav-prev, .nav-next {
    border: 1px solid #4a90e2;
    color: #4a90e2;
    background: var(--white);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
}
.nav-prev i, .nav-next i {
    font-size: 12px;
}
.nav-prev:disabled, .nav-next:disabled {
    opacity: 0.4;
    border-color: #ccc;
    color: #ccc;
}

/* 题数显示 - 可点击 */
.nav-count {
    color: #666;
    font-size: 13px;
    display: flex;
    align-items: center;
    gap: 4px;
    min-width: 60px;
    justify-content: flex-end;
    cursor: pointer;
}
.nav-count i {
    font-size: 14px;
    color: #999;
}

/* 移除错题按钮 */
.remove-wrong-btn {
    display: block;
    width: calc(100% - 40px);
    margin: 12px 20px;
    padding: 12px;
    background: var(--white);
    border: 1px solid var(--green);
    color: var(--green);
    border-radius: 10px;
    font-size: 14px;
    text-align: center;
    cursor: pointer;
    font-weight: 500;
}
.remove-wrong-btn.removed {
    border-color: var(--border);
    color: var(--text-gray);
}

/* ===== 首页头部 - 浅蓝渐变 ===== */
.home-header {
    background: linear-gradient(180deg, #a8d8ff 0%, #e8f4fd 60%, #f0f4f8 100%);
    padding: 12px 16px 20px;
    position: relative;
}

.location-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.location-left {
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255,255,255,0.6);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 14px;
    color: var(--text);
    cursor: pointer;
    backdrop-filter: blur(10px);
}

.location-left .loc-icon {
    color: var(--primary);
    font-size: 14px;
}

.location-left .loc-arrow {
    font-size: 12px;
    color: var(--text);
    margin-left: 2px;
}

.header-right {
    display: flex;
    gap: 8px;
}

.header-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(255,255,255,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    cursor: pointer;
    font-size: 16px;
    color: var(--text);
}

.banner-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.banner-text h1 {
    font-size: 28px;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 8px;
    text-shadow: 0 2px 4px rgba(74,144,226,0.2);
}

.banner-text p {
    display: flex;
    gap: 12px;
    font-size: 13px;
    color: var(--text-light);
}

.banner-text p span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.banner-car {
    transform: translateX(-50px);
}
.banner-car img {
    width: 140px;
    height: auto;
    display: block;
    filter: drop-shadow(0 8px 16px rgba(0,0,0,0.1));
}

/* 统计卡片 */
.stats-card {
    background: var(--white);
    margin: -10px 12px 12px;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-card);
    display: flex;
    justify-content: space-around;
    position: relative;
    z-index: 10;
}

.stats-card .stat-item {
    text-align: center;
    flex: 1;
}

.stats-card .stat-item .value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}

.stats-card .stat-item .label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* VIP横幅 */
.vip-banner {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    margin: 0 12px 12px;
    border-radius: 16px;
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    color: white;
}

.vip-banner .vip-text {
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.vip-banner .vip-text i {
    color: #ff6b35;
}

.vip-banner .vip-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
    font-weight: 500;
}

/* 功能卡片 */
.section-card {
    background: var(--white);
    margin: 0 12px 12px;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}

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

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 6px;
}

.section-header .count-tag {
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 12px;
    font-weight: 500;
}

/* 模式网格 */
.mode-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 8px;
}

.mode-item {
    text-align: center;
    text-decoration: none;
    color: var(--text);
    padding: 8px 4px;
    border-radius: 12px;
    transition: all 0.2s;
}

.mode-item:active {
    background: var(--bg);
    transform: scale(0.95);
}

.mode-icon {
    width: 48px;
    height: 48px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 22px;
    position: relative;
}

.mode-icon i {
    font-size: 20px;
}

.mode-icon.order { background: linear-gradient(135deg, #fff0e6, #ffe4d1); color: #ff6b35; }
.mode-icon.special { background: linear-gradient(135deg, #f3e8ff, #e8d5ff); color: #722ed1; }
.mode-icon.chapter { background: linear-gradient(135deg, #e6f7ff, #d1eeff); color: #1890ff; }
.mode-icon.exam { background: linear-gradient(135deg, #e6ffed, #d1f5db); color: #52c41a; }
.mode-icon.wrong { background: linear-gradient(135deg, #fff1f0, #ffd1d1); color: #ff4d4f; }

.mode-name {
    font-size: 12px;
    color: var(--text-light);
}

/* 广告区域 - 全宽图片 */
.ad-section-full {
    display: block;
    margin: 0 12px 12px;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    box-shadow: var(--shadow-card);
    text-decoration: none;
}

.ad-section-full img {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.ad-watermark {
    position: absolute;
    top: 8px;
    right: 8px;
    background: rgba(0, 0, 0, 0.5);
    color: rgba(255, 255, 255, 0.9);
    font-size: 11px;
    padding: 3px 10px;
    border-radius: 12px;
    backdrop-filter: blur(4px);
    letter-spacing: 1px;
    z-index: 2;
    pointer-events: none;
}

/* 底部导航 */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--white);
    display: flex;
    justify-content: space-around;
    padding: 6px 0 10px;
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    z-index: 100;
    border-top: 1px solid var(--border);
}

.nav-item {
    text-align: center;
    text-decoration: none;
    color: var(--text-gray);
    font-size: 11px;
    padding: 4px 20px;
    transition: color 0.3s;
}

.nav-item.active {
    color: var(--primary);
}

.nav-item .icon {
    font-size: 22px;
    display: block;
    margin-bottom: 2px;
}

/* ===== 练习/考试页面 ===== */
.practice-page {
    background: var(--bg);
}

.practice-header {
    background: var(--white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
}

.header-title {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

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

.header-title .progress-info {
    font-size: 12px;
    color: var(--text-gray);
}

.header-title .progress-info span {
    font-weight: 600;
}

.back-btn {
    font-size: 16px;
    color: var(--primary);
    text-decoration: none;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-light), #d1eeff);
    border: 1px solid rgba(74,144,226,0.15);
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(74,144,226,0.12);
}

.back-btn:hover, .back-btn:active {
    background: linear-gradient(135deg, var(--primary), #6ab0ff);
    color: white;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(74,144,226,0.25);
}

.back-btn i, .back-btn svg {
    font-size: 14px;
}

.progress-info {
    font-size: 14px;
    color: var(--text-gray);
}

.progress-info span {
    color: var(--primary);
    font-weight: 700;
}

.question-card {
    background: var(--white);
    margin: 12px;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.question-type {
    display: inline-block;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 12px;
    padding: 4px 12px;
    border-radius: 6px;
    margin-bottom: 16px;
    font-weight: 500;
}

.question-title {
    font-size: 16px;
    line-height: 1.8;
    color: var(--text);
    margin-bottom: 20px;
    font-weight: 500;
}

.options-list {
    margin-bottom: 20px;
}

.option-item {
    display: flex;
    align-items: flex-start;
    padding: 14px 16px;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.option-item:hover {
    background: var(--primary-light);
}

.option-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.option-item.correct {
    border-color: var(--green);
    background: #f6ffed;
}

.option-item.wrong {
    border-color: var(--red);
    background: #fff2f0;
}

/* 判断题选项样式 - 纵向排列，A/B标签+正确/错误文字 */
.options-list.judge-options .option-item {
    display: flex;
    align-items: center;
    padding: 14px 16px;
    background: var(--bg);
    border: 2px solid transparent;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.options-list.judge-options .option-item:hover {
    background: var(--primary-light);
}

.options-list.judge-options .option-item.selected {
    border-color: var(--primary);
    background: var(--primary-light);
}

.options-list.judge-options .option-item.correct {
    border-color: var(--green);
    background: #f6ffed;
}

.options-list.judge-options .option-item.wrong {
    border-color: var(--red);
    background: #fff2f0;
}

.options-list.judge-options .option-item .option-label {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.options-list.judge-options .option-item.selected .option-label {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.options-list.judge-options .option-item.correct .option-label {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.options-list.judge-options .option-item.wrong .option-label {
    border-color: var(--red);
    background: var(--red);
    color: white;
}

.options-list.judge-options .option-item .option-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 2px;
    color: var(--text);
}

.option-label {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 2px solid var(--border);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    font-weight: 700;
    color: var(--text-gray);
    margin-right: 12px;
    flex-shrink: 0;
    transition: all 0.2s;
}

.option-item.selected .option-label {
    border-color: var(--primary);
    background: var(--primary);
    color: white;
}

.option-item.correct .option-label {
    border-color: var(--green);
    background: var(--green);
    color: white;
}

.option-item.wrong .option-label {
    border-color: var(--red);
    background: var(--red);
    color: white;
}

.option-text {
    flex: 1;
    font-size: 15px;
    line-height: 1.6;
    padding-top: 2px;
    color: var(--text);
}

.analysis-box {
    background: var(--bg);
    border-radius: 12px;
    padding: 16px;
    margin-top: 16px;
}

.analysis-box .title {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-bottom: 8px;
}

.analysis-box .content {
    font-size: 14px;
    color: var(--text-light);
    line-height: 1.8;
}

.answer-bar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: var(--white);
    padding: 12px 16px 20px;
    border-top: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    gap: 12px;
}

.answer-bar button {
    padding: 12px 20px;
    border: none;
    border-radius: 10px;
    font-size: 14px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.2s;
}

.btn-prev {
    background: var(--bg);
    color: var(--text-gray);
}

.btn-next {
    background: var(--primary);
    color: white;
    flex: 1;
}

.btn-card {
    background: var(--primary-light);
    color: var(--primary);
}

/* 答题卡 */
.card-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
}

.card-modal.show {
    display: flex;
}

.card-content {
    background: var(--white);
    width: 100%;
    max-width: 430px;
    max-height: 70vh;
    border-radius: 24px 24px 0 0;
    padding: 24px;
    overflow-y: auto;
}

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

.card-header h3 {
    font-size: 18px;
    font-weight: 600;
}

.card-close {
    font-size: 24px;
    color: var(--text-gray);
    background: none;
    border: none;
    cursor: pointer;
}

.card-stats {
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border);
}
.card-stats .stat-row {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}
.card-stats .stat-total {
    font-size: 14px;
    font-weight: 600;
    color: var(--text);
    margin-right: 8px;
}
.card-stats .stat-total i {
    color: #999;
    margin-right: 4px;
}
.card-stats .stat-item-s {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-gray);
}
.card-stats .dot-s {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    display: inline-block;
}

.card-legend {
    display: flex;
    gap: 16px;
    margin-bottom: 20px;
    font-size: 12px;
}

.card-legend span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: var(--text-gray);
}

.card-legend .dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.dot-default { background: var(--bg); border: 1px solid var(--border); }
.dot-done { background: var(--primary); }
.dot-correct { background: var(--green); }
.dot-wrong { background: var(--red); }

.card-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 10px;
}

.card-num {
    aspect-ratio: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    font-size: 14px;
    background: var(--bg);
    color: var(--text-gray);
    cursor: pointer;
    border: 1px solid var(--border);
    transition: all 0.2s;
}

.card-num.done {
    background: var(--primary);
    color: white;
    border-color: var(--primary);
}

.card-num.correct {
    background: var(--green);
    color: white;
    border-color: var(--green);
}

.card-num.wrong {
    background: var(--red);
    color: white;
    border-color: var(--red);
}

/* 考试头部 */
.exam-header {
    background: var(--white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 10;
}

/* 底部操作栏 */
.bottom-action-bar {
    position: fixed;
    bottom: 60px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 430px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 14px;
    box-shadow: 0 -1px 8px rgba(0,0,0,0.06);
    z-index: 99;
    border-top: 1px solid rgba(0,0,0,0.06);
}

.fav-wrap {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--text-gray);
    transition: all 0.2s;
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(0, 0, 0, 0.02);
    flex-shrink: 0;
}

.fav-wrap.favorited {
    color: #ff4d4f;
    background: rgba(255, 77, 79, 0.1);
}

.fav-icon {
    font-size: 15px;
}

.fav-text {
    font-size: 11px;
    font-weight: 500;
}

.nav-group {
    display: flex;
    gap: 6px;
    flex: 0 0 auto;
    justify-content: center;
    margin: 0 6px;
}

.nav-btn {
    padding: 6px 12px;
    border: none;
    border-radius: 14px;
    font-size: 11px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    background: var(--bg);
    color: var(--text);
    flex-shrink: 0;
    white-space: nowrap;
    min-width: 65px;
    height: 30px;
}

.nav-btn:hover:not(:disabled) {
    background: var(--primary-light);
}

.nav-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.nav-btn.prev {
    background: #f5f5f5;
}

.nav-btn.next {
    background: var(--primary);
    color: white;
}

.nav-btn.next:hover:not(:disabled) {
    background: #5474e8;
}

.nav-btn.next-active {
    background: var(--green);
    color: white;
}

.nav-btn i {
    font-size: 12px;
    line-height: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    vertical-align: middle;
    position: relative;
    top: 0.5px;
}

.nav-btn.prev i {
    margin-right: -1px;
}

.nav-btn.next i {
    margin-left: -1px;
}

.count-info {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 4px;
    cursor: pointer;
    color: var(--primary);
    padding: 6px 10px;
    border-radius: 14px;
    background: rgba(102, 126, 234, 0.1);
    flex-shrink: 0;
    white-space: nowrap;
}

.count-info i {
    font-size: 14px;
}

.count-info .progress-text {
    font-size: 11px;
    font-weight: 600;
    display: flex;
    align-items: baseline;
    gap: 1px;
}

.count-info .progress-text span:first-child {
    font-size: 13px;
}

.count-info .progress-text span:last-child {
    font-size: 11px;
    color: var(--text-gray);
}

.exam-timer {
    font-size: 18px;
    color: var(--red);
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

.exam-progress {
    font-size: 14px;
    color: var(--text-gray);
}

/* 结果页面 */
.result-page {
    background: var(--bg);
    min-height: 100vh;
    padding: 20px;
}

.result-header {
    text-align: center;
    padding: 40px 0;
}

.result-score {
    font-size: 72px;
    font-weight: 800;
    color: var(--primary);
    line-height: 1;
}

.result-score span {
    font-size: 24px;
}

.result-label {
    font-size: 16px;
    color: var(--text-gray);
    margin-top: 12px;
}

.result-stats {
    display: flex;
    justify-content: space-around;
    padding: 20px 0;
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-bottom: 20px;
    background: var(--white);
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-card);
}

.result-stat {
    text-align: center;
}

.result-stat .num {
    font-size: 28px;
    font-weight: 700;
    color: var(--text);
}

.result-stat .label {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 4px;
}

/* 个人中心 */
.profile-page {
    background: var(--bg);
}

.profile-header {
    background: linear-gradient(180deg, #a8d8ff 0%, #e8f4fd 60%, #f0f4f8 100%);
    padding: 20px 16px;
}

.profile-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.profile-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ff6b6b, #ffa502);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 3px solid white;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.profile-name {
    font-size: 18px;
    font-weight: 700;
    color: var(--text);
}

.profile-id {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 2px;
}

/* VIP特权卡片 */
.vip-card {
    background: linear-gradient(135deg, #4a5568, #2d3748);
    margin: 0 12px 12px;
    border-radius: 16px;
    padding: 16px;
    color: white;
}

.vip-card-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 12px;
}

.vip-card-header span {
    font-size: 14px;
    font-weight: 500;
}

.vip-card-header .vip-btn {
    background: rgba(255,255,255,0.2);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 13px;
    text-decoration: none;
}

.vip-features {
    display: flex;
    justify-content: space-around;
    background: rgba(255,255,255,0.1);
    border-radius: 12px;
    padding: 16px;
}

.vip-feature {
    text-align: center;
}

.vip-feature .icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 8px;
    font-size: 20px;
}

.vip-feature .name {
    font-size: 12px;
    color: rgba(255,255,255,0.9);
}

/* 菜单列表 */
.menu-list {
    background: var(--white);
    margin: 0 12px 12px;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
}

.menu-item {
    display: flex;
    align-items: center;
    padding: 16px;
    text-decoration: none;
    color: var(--text);
    border-bottom: 1px solid var(--border);
    transition: background 0.2s;
}

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

.menu-item:active {
    background: var(--bg);
}

.menu-icon {
    font-size: 22px;
    margin-right: 14px;
    width: 28px;
    text-align: center;
}

.menu-text {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.menu-arrow {
    color: var(--text-gray);
    font-size: 14px;
}

.menu-value {
    font-size: 14px;
    color: var(--text-gray);
    margin-right: 8px;
}

/* 登录页面 */
.login-page {
    background: var(--bg);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.login-logo {
    text-align: center;
    margin-bottom: 40px;
}

.login-logo .logo-icon {
    font-size: 64px;
    margin-bottom: 16px;
}

.login-logo h1 {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.login-logo p {
    font-size: 14px;
    color: var(--text-gray);
}

.login-box {
    width: 100%;
    max-width: 360px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 14px 16px;
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    color: var(--text);
    transition: all 0.3s;
    outline: none;
}

.form-control::placeholder {
    color: var(--text-gray);
}

.form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(74,144,226,0.1);
}

.btn-primary {
    width: 100%;
    padding: 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-primary:active {
    transform: scale(0.98);
    opacity: 0.9;
}

.btn-secondary {
    width: 100%;
    padding: 16px;
    background: var(--white);
    color: var(--text);
    border: 1px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    margin-top: 12px;
    text-decoration: none;
    display: block;
    text-align: center;
}

.btn-secondary:active {
    background: var(--bg);
}

/* 弹窗 */
.modal-overlay {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-overlay.show {
    display: flex;
}

.modal-box {
    background: var(--white);
    border-radius: 16px;
    width: 100%;
    max-width: 300px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}

.modal-title {
    text-align: center;
    padding: 24px 20px 12px;
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.modal-body {
    padding: 8px 24px 20px;
    text-align: center;
    color: var(--text-light);
    font-size: 14px;
    line-height: 1.6;
}

.modal-footer {
    display: flex;
    border-top: 1px solid var(--border);
}

.modal-btn {
    flex: 1;
    padding: 16px;
    border: none;
    background: none;
    font-size: 16px;
    cursor: pointer;
    color: var(--text-gray);
}

.modal-btn.cancel {
    border-right: 1px solid var(--border);
}

.modal-btn.confirm {
    color: var(--primary);
    font-weight: 600;
}

/* 城市选择弹窗 */
.city-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    z-index: 9999;
    align-items: flex-end;
    justify-content: center;
}

.city-modal-overlay.show {
    display: flex;
}

.city-modal-box {
    background: var(--white);
    width: 100%;
    max-width: 430px;
    max-height: 75vh;
    border-radius: 24px 24px 0 0;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
}

.city-modal-header {
    padding: 20px 16px 12px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.city-modal-header h3 {
    font-size: 18px;
    font-weight: 600;
    color: var(--text);
}

.city-modal-header p {
    font-size: 13px;
    color: var(--text-gray);
    margin-top: 4px;
}

.city-modal-list {
    overflow-y: auto;
    padding: 8px;
    flex: 1;
}

.city-modal-item {
    display: flex;
    align-items: center;
    padding: 12px 16px;
    border-radius: 12px;
    text-decoration: none;
    color: var(--text);
    transition: all 0.2s;
    margin-bottom: 4px;
}

.city-modal-item:hover, .city-modal-item:active {
    background: var(--bg);
}

.city-modal-item.selected {
    background: var(--primary-light);
    color: var(--primary);
}

.city-modal-icon {
    font-size: 20px;
    margin-right: 12px;
}

.city-modal-name {
    flex: 1;
    font-size: 15px;
    font-weight: 500;
}

.city-modal-count {
    font-size: 12px;
    color: var(--text-gray);
    margin-right: 10px;
}

.city-modal-check {
    font-size: 18px;
    display: none;
    color: var(--primary);
}

.city-modal-item.selected .city-modal-check {
    display: block;
}

.city-modal-footer {
    padding: 12px 16px 20px;
    border-top: 1px solid var(--border);
}

.city-modal-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 12px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

/* 客服悬浮按钮 */
.float-btn {
    position: fixed;
    bottom: 80px;
    right: 12px;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    box-shadow: 0 4px 16px rgba(74,144,226,0.4);
    cursor: pointer;
    z-index: 90;
    text-decoration: none;
    border: none;
}

/* 无城市提示 */
.no-city-tip {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-gray);
}

.no-city-tip .icon {
    font-size: 64px;
    margin-bottom: 20px;
}

.no-city-tip h3 {
    font-size: 20px;
    color: var(--text);
    margin-bottom: 10px;
    font-weight: 600;
}

.no-city-tip p {
    font-size: 14px;
    margin-bottom: 24px;
}

.no-city-tip .btn {
    display: inline-block;
    padding: 14px 48px;
    background: var(--primary);
    color: white;
    border-radius: 25px;
    text-decoration: none;
    font-size: 15px;
    font-weight: 600;
}

/* 积分页面 */
.points-page {
    background: var(--bg);
}

.points-header {
    background: linear-gradient(135deg, var(--primary), #6ab0ff);
    padding: 30px 20px;
    text-align: center;
    color: white;
}

.points-header .points-value {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 8px;
}

.points-header .points-label {
    font-size: 14px;
    opacity: 0.9;
}

.points-list {
    background: var(--white);
    margin: 12px;
    border-radius: 16px;
    padding: 16px;
    box-shadow: var(--shadow-card);
}

.points-item {
    display: flex;
    align-items: center;
    padding: 14px 0;
    border-bottom: 1px solid var(--border);
}

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

.points-item .icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    margin-right: 12px;
}

.points-item .info {
    flex: 1;
}

.points-item .info .title {
    font-size: 15px;
    font-weight: 500;
    color: var(--text);
}

.points-item .info .desc {
    font-size: 12px;
    color: var(--text-gray);
    margin-top: 2px;
}

.points-item .btn-get {
    padding: 6px 16px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 13px;
    cursor: pointer;
}

/* 兑换码页面 */
.redeem-page {
    background: var(--bg);
    padding: 20px;
}

.redeem-input {
    width: 100%;
    padding: 16px;
    background: var(--white);
    border: 2px solid var(--border);
    border-radius: 12px;
    font-size: 16px;
    text-align: center;
    letter-spacing: 4px;
    margin-bottom: 20px;
    outline: none;
}

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

/* 客服页面 */
.chat-page {
    background: var(--bg);
    display: flex;
    flex-direction: column;
    height: 100vh;
}

.chat-header {
    background: var(--white);
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-body {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
}

.chat-msg {
    display: flex;
    margin-bottom: 16px;
}

.chat-msg.self {
    flex-direction: row-reverse;
}

.chat-msg .avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.chat-msg .bubble {
    max-width: 70%;
    padding: 12px 16px;
    border-radius: 16px;
    margin: 0 10px;
    font-size: 14px;
    line-height: 1.6;
}

.chat-msg .bubble.received {
    background: var(--white);
    color: var(--text);
    border-bottom-left-radius: 4px;
}

.chat-msg .bubble.sent {
    background: var(--primary);
    color: white;
    border-bottom-right-radius: 4px;
}

.chat-input-bar {
    background: var(--white);
    padding: 12px 16px;
    border-top: 1px solid var(--border);
    display: flex;
    gap: 10px;
}

.chat-input-bar input {
    flex: 1;
    padding: 10px 16px;
    border: 1px solid var(--border);
    border-radius: 20px;
    outline: none;
    font-size: 14px;
}

.chat-input-bar button {
    padding: 10px 20px;
    background: var(--primary);
    color: white;
    border: none;
    border-radius: 20px;
    font-size: 14px;
    cursor: pointer;
}

/* PC适配 */
@media (min-width: 768px) {
    body {
        background: #e8ecf1;
    }
    .page {
        box-shadow: 0 0 20px rgba(0,0,0,0.08);
    }
    .city-modal-overlay {
        align-items: center;
    }
    .city-modal-box {
        border-radius: 24px;
        max-height: 80vh;
    }
    .card-modal {
        align-items: center;
    }
    .card-content {
        border-radius: 24px;
        max-height: 80vh;
    }
}

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

.fade-in {
    animation: fadeIn 0.3s ease;
}
