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

:root {
    --primary-color: #00d4aa;
    --primary-dark: #00b894;
    --primary-light: #00e5b8;
    --accent-color: #6c5ce7;
    --accent-light: #a29bfe;
    --bg-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --text-primary: #2d3436;
    --text-secondary: #636e72;
    --text-light: #b2bec3;
    --bg-primary: #f8f9fa;
    --bg-secondary: #ffffff;
    --bg-dark: #2d3436;
    --border-color: #e0e0e0;
    --shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 4px 16px rgba(0, 0, 0, 0.12);
    --radius: 12px;
    --radius-sm: 8px;
    --radius-lg: 16px;
    --success: #00d4aa;
    --warning: #fdcb6e;
    --error: #ff7675;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg-primary);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
}

/* ===== 页面切换 ===== */
.page {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 1;
}

.page.active {
    opacity: 1;
    visibility: visible;
    z-index: 2;
}

/* ===== 启动页 ===== */
#splash-page {
    background: var(--bg-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
}

.splash-content {
    text-align: center;
    color: white;
    animation: fadeInUp 0.6s ease;
}

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

.logo-animation {
    margin-bottom: 24px;
}

.power-icon {
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.power-icon::before {
    content: '';
    position: absolute;
    width: 140%;
    height: 140%;
    background: radial-gradient(circle, rgba(255,255,255,0.3) 0%, transparent 70%);
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 0.5;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.8;
    }
}

.power-icon svg {
    width: 50px;
    height: 50px;
    stroke: white;
    stroke-width: 2;
    fill: none;
}

.power-icon.small {
    width: 48px;
    height: 48px;
    border-radius: 12px;
}

.power-icon.small svg {
    width: 24px;
    height: 24px;
}

.power-level {
    position: absolute;
    bottom: 12px;
    left: 12px;
    right: 12px;
    height: 6px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
    overflow: hidden;
}

.power-level::after {
    content: '';
    display: block;
    height: 100%;
    width: 75%;
    background: linear-gradient(90deg, var(--primary-color), var(--primary-light));
    animation: charge 1.5s ease-in-out infinite;
}

@keyframes charge {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(0);
    }
}

.brand-name {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 8px;
    letter-spacing: 2px;
}

.brand-slogan {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

.loading-dots {
    display: flex;
    gap: 8px;
    justify-content: center;
}

.loading-dots span {
    width: 8px;
    height: 8px;
    background: white;
    border-radius: 50%;
    animation: bounce 1.4s ease-in-out infinite;
}

.loading-dots span:nth-child(2) {
    animation-delay: 0.2s;
}

.loading-dots span:nth-child(3) {
    animation-delay: 0.4s;
}

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

/* ===== 登录页 ===== */
#login-page {
    background: var(--bg-primary);
    padding: 40px 20px;
    overflow-y: auto;
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
    padding-top: 60px;
}

.logo-small {
    margin-bottom: 20px;
}

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

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

.login-form {
    max-width: 360px;
    margin: 0 auto;
}

.input-group {
    position: relative;
    margin-bottom: 20px;
}

.input-group input {
    width: 100%;
    padding: 16px 48px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 16px;
    transition: all 0.3s ease;
    background: var(--bg-secondary);
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(0, 212, 170, 0.1);
}

.input-icon {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

.code-btn {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    padding: 8px 16px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
}

.code-btn:hover {
    background: var(--primary-dark);
}

.code-btn:disabled {
    background: var(--text-light);
    cursor: not-allowed;
}

.login-btn {
    width: 100%;
    padding: 16px;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.login-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.5);
}

.login-btn:active {
    transform: translateY(0);
}

.login-tips {
    margin-top: 24px;
    text-align: center;
}

.login-tips p {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 8px;
}

.login-tips .highlight {
    color: var(--primary-color);
    font-weight: 600;
    font-size: 16px;
}

.login-tips .link {
    color: var(--primary-color);
    text-decoration: none;
}

/* ===== 主应用容器 ===== */
#app-container {
    padding-bottom: 70px;
    min-height: 100vh;
}

/* ===== 底部导航 ===== */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 60px;
    background: white;
    display: flex;
    justify-content: space-around;
    align-items: center;
    box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.08);
    z-index: 100;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

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

.nav-item svg {
    width: 24px;
    height: 24px;
}

.nav-item span {
    font-size: 12px;
    margin-top: 4px;
}

.nav-item.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 20px;
    height: 3px;
    background: var(--primary-color);
    border-radius: 2px;
}

.scan-btn {
    width: 56px;
    height: 56px;
    background: var(--bg-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -28px;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    transition: all 0.3s ease;
}

.scan-btn svg {
    width: 28px;
    height: 28px;
    color: white;
}

.scan-btn:active {
    transform: scale(0.95);
}

/* ===== 应用页面 ===== */
.app-page {
    display: none;
    animation: slideIn 0.3s ease;
}

.app-page.active {
    display: block;
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(20px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.page-header {
    background: var(--bg-secondary);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    z-index: 10;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.04);
}

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

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

.avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid var(--primary-color);
}

.user-text .greeting {
    font-size: 12px;
    color: var(--text-secondary);
}

.user-text .username {
    font-size: 16px;
    font-weight: 600;
}

.icon-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
    position: relative;
}

.icon-btn .badge {
    position: absolute;
    top: 4px;
    right: 4px;
    width: 8px;
    height: 8px;
    background: var(--error);
    border-radius: 50%;
    border: 2px solid var(--bg-secondary);
}

.back-btn {
    width: 40px;
    height: 40px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-primary);
}

/* ===== 会员卡片 ===== */
.member-card {
    margin: 16px;
    padding: 20px;
    border-radius: var(--radius-lg);
    position: relative;
    overflow: hidden;
    background: var(--bg-gradient);
    color: white;
}

.member-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.9) 100%);
}

.member-content {
    position: relative;
    z-index: 1;
}

.member-status {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.member-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.member-text .member-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 4px;
}

.member-text .member-desc {
    font-size: 13px;
    opacity: 0.9;
}

.open-member-btn {
    padding: 10px 24px;
    background: white;
    color: var(--accent-color);
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.open-member-btn:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.3);
}

/* ===== 快捷操作 ===== */
.quick-actions {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 24px;
}

.action-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    cursor: pointer;
}

.action-icon {
    width: 56px;
    height: 56px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.action-icon svg {
    width: 28px;
    height: 28px;
}

.action-icon.scan {
    background: linear-gradient(135deg, #00d4aa 0%, #00b894 100%);
    color: white;
}

.action-icon.recharge {
    background: linear-gradient(135deg, #fdcb6e 0%, #f39c12 100%);
    color: white;
}

.action-icon.order {
    background: linear-gradient(135deg, #6c5ce7 0%, #a29bfe 100%);
    color: white;
}

.action-icon.service {
    background: linear-gradient(135deg, #ff7675 0%, #d63031 100%);
    color: white;
}

.action-item:active .action-icon {
    transform: scale(0.95);
}

.action-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== 区块 ===== */
.section {
    padding: 0 16px;
    margin-bottom: 24px;
}

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

.section-header h3 {
    font-size: 16px;
    font-weight: 600;
}

.toggle-group {
    display: flex;
    background: var(--bg-secondary);
    border-radius: var(--radius-sm);
    padding: 2px;
}

.toggle-btn {
    padding: 6px 16px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 13px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.toggle-btn.active {
    background: var(--primary-color);
    color: white;
}

/* ===== 网点列表 ===== */
.site-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.site-item {
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    cursor: pointer;
    transition: all 0.3s ease;
}

.site-item:active {
    transform: scale(0.98);
}

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

.site-name {
    font-size: 15px;
    font-weight: 600;
    flex: 1;
}

.site-status {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--success);
    background: rgba(0, 212, 170, 0.1);
    padding: 2px 8px;
    border-radius: 4px;
}

.site-info {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 13px;
    color: var(--text-secondary);
}

.site-info span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.site-distance {
    font-weight: 500;
    color: var(--primary-color);
}

.map-view {
    display: none;
    height: 300px;
    background: #f0f0f0;
    border-radius: var(--radius);
    overflow: hidden;
}

.map-view.active {
    display: block;
}

.map-placeholder {
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    gap: 12px;
}

.map-placeholder svg {
    width: 80px;
    height: 80px;
}

/* ===== Banner ===== */
.banner-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.banner {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    height: 140px;
}

.banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(102, 126, 234, 0.9) 0%, rgba(118, 75, 162, 0.6) 100%);
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    color: white;
}

.banner-tag {
    display: inline-block;
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    margin-bottom: 8px;
    width: fit-content;
}

.banner h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 4px;
}

.banner p {
    font-size: 13px;
    opacity: 0.9;
}

/* ===== 会员卡 ===== */
.membership-card {
    margin: 16px;
    padding: 24px;
    border-radius: var(--radius-lg);
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    position: relative;
    overflow: hidden;
}

.card-bg {
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 0%, transparent 70%);
}

.card-content {
    position: relative;
    z-index: 1;
}

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

.member-type {
    font-size: 24px;
    font-weight: 700;
}

.member-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 4px 12px;
    border-radius: 4px;
    font-size: 12px;
}

.card-info {
    margin-bottom: 20px;
}

.expire-date {
    font-size: 14px;
    opacity: 0.9;
    margin-bottom: 16px;
}

.progress-bar {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 8px;
    padding: 12px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    font-size: 13px;
    margin-bottom: 8px;
}

.progress-track {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, #00d4aa, #00e5b8);
    border-radius: 4px;
    transition: width 0.3s ease;
}

.card-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.auto-renew {
    display: flex;
    align-items: center;
    gap: 8px;
}

.auto-renew .label {
    font-size: 14px;
}

.auto-renew .value {
    font-size: 14px;
    font-weight: 600;
}

.auto-renew .value.off {
    opacity: 0.7;
}

/* ===== 套餐列表 ===== */
.plans-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.plans-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.plans-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.plan-card {
    background: var(--bg-secondary);
    border-radius: var(--radius);
    padding: 16px;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.plan-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.plan-card.active {
    border-color: var(--primary-color);
}

.plan-card.popular::before {
    content: '推荐';
    position: absolute;
    top: -8px;
    right: 12px;
    background: linear-gradient(135deg, #fdcb6e, #f39c12);
    color: white;
    font-size: 10px;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: 600;
}

.plan-name {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 8px;
}

.plan-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.plan-price span {
    font-size: 12px;
    font-weight: normal;
    color: var(--text-secondary);
}

.plan-features {
    font-size: 12px;
    color: var(--text-secondary);
    margin-top: 12px;
}

.plan-features li {
    list-style: none;
    padding: 4px 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.plan-features li::before {
    content: '✓';
    color: var(--success);
    font-weight: bold;
}

/* ===== 权益 ===== */
.benefits-section {
    padding: 0 16px;
    margin-bottom: 24px;
}

.benefits-section h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 12px;
}

.benefit-item {
    background: var(--bg-secondary);
    padding: 16px 8px;
    border-radius: var(--radius);
    text-align: center;
}

.benefit-icon {
    font-size: 28px;
    margin-bottom: 8px;
}

.benefit-item p {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== 扫码页 ===== */
.scan-container {
    padding: 24px;
    text-align: center;
}

.scan-frame {
    position: relative;
    width: 240px;
    height: 240px;
    margin: 0 auto 20px;
    border: 3px solid var(--primary-color);
    border-radius: 16px;
    overflow: hidden;
}

.scan-line {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, transparent, var(--primary-color), transparent);
    animation: scan 2s ease-in-out infinite;
}

@keyframes scan {
    0% {
        top: 0;
    }
    100% {
        top: 100%;
    }
}

.qr-code {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.scan-tip {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.scan-actions {
    display: flex;
    gap: 12px;
    justify-content: center;
    margin-bottom: 32px;
}

.action-btn {
    flex: 1;
    max-width: 140px;
    padding: 14px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.action-btn.primary {
    background: var(--bg-gradient);
    color: white;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.action-btn.secondary {
    background: white;
    color: var(--text-primary);
    border: 2px solid var(--border-color);
}

.action-btn:active {
    transform: scale(0.98);
}

.nearby-sites {
    padding: 0 16px;
}

.nearby-sites h3 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 12px;
}

.mini-site-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.mini-site-item {
    background: var(--bg-secondary);
    padding: 12px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.mini-site-item .site-name {
    font-size: 14px;
    font-weight: 500;
}

.mini-site-item .site-info {
    font-size: 12px;
    color: var(--text-secondary);
}

/* ===== 记录页 ===== */
.record-tabs {
    display: flex;
    background: var(--bg-secondary);
    padding: 4px;
    margin-bottom: 16px;
    gap: 4px;
}

.tab-btn {
    flex: 1;
    padding: 10px;
    background: transparent;
    border: none;
    border-radius: var(--radius-sm);
    font-size: 14px;
    color: var(--text-secondary);
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-btn.active {
    background: var(--primary-color);
    color: white;
    font-weight: 500;
}

.record-stats {
    display: flex;
    gap: 16px;
    padding: 0 16px;
    margin-bottom: 24px;
}

.stat-item {
    flex: 1;
    background: var(--bg-secondary);
    padding: 16px;
    border-radius: var(--radius);
    text-align: center;
}

.stat-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 4px;
}

.stat-label {
    font-size: 12px;
    color: var(--text-secondary);
}

.record-list {
    padding: 0 16px;
}

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-light);
}

.empty-state svg {
    width: 60px;
    height: 60px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state p {
    margin-bottom: 20px;
    font-size: 14px;
}

.primary-btn {
    padding: 12px 32px;
    background: var(--bg-gradient);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

/* ===== 个人中心 ===== */
.profile-header {
    padding: 0 16px;
    margin-bottom: 16px;
}

.profile-bg {
    height: 120px;
    background: var(--bg-gradient);
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
}

.profile-content {
    position: relative;
    padding-top: -60px;
    margin-top: -60px;
    display: flex;
    align-items: flex-end;
    gap: 16px;
}

.large-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    border: 4px solid var(--bg-primary);
    object-fit: cover;
}

.profile-name {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 4px;
}

.profile-phone {
    font-size: 14px;
    color: var(--text-secondary);
}

.profile-tags {
    display: flex;
    gap: 8px;
    margin-top: 8px;
}

.tag {
    background: rgba(0, 212, 170, 0.1);
    color: var(--success);
    font-size: 12px;
    padding: 4px 8px;
    border-radius: 4px;
}

.balance-card {
    background: var(--bg-secondary);
    padding: 20px 16px;
    margin: 0 16px 16px;
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

.balance-label {
    font-size: 13px;
    color: var(--text-secondary);
    margin-bottom: 4px;
}

.balance-value {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.recharge-btn {
    padding: 10px 24px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.menu-list {
    padding: 0 16px;
    display: flex;
    flex-direction: column;
    gap: 1px;
    background: var(--border-color);
    border-radius: var(--radius);
    overflow: hidden;
}

.menu-item {
    background: var(--bg-secondary);
    padding: 16px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
}

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

.menu-icon {
    width: 40px;
    height: 40px;
    background: var(--bg-primary);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
}

.menu-item span {
    flex: 1;
    font-size: 15px;
}

.arrow-icon {
    color: var(--text-light);
}

/* ===== 弹窗 ===== */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    padding: 20px;
    animation: fadeIn 0.3s ease;
}

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

.modal {
    background: var(--bg-secondary);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 360px;
    overflow: hidden;
    animation: slideUp 0.3s ease;
}

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

.modal-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.modal-close {
    width: 32px;
    height: 32px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-body {
    padding: 20px;
}

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

.modal-footer button {
    flex: 1;
    padding: 12px;
    border: none;
    border-radius: var(--radius);
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
}

.modal-footer .btn-cancel {
    background: var(--bg-primary);
    color: var(--text-secondary);
}

.modal-footer .btn-confirm {
    background: var(--bg-gradient);
    color: white;
}

/* ===== 协议页 ===== */
.agreement-content {
    max-height: 300px;
    overflow-y: auto;
    font-size: 14px;
    line-height: 1.8;
    color: var(--text-secondary);
    padding-right: 8px;
}

.agreement-content::-webkit-scrollbar {
    width: 4px;
}

.agreement-content::-webkit-scrollbar-thumb {
    background: var(--border-color);
    border-radius: 2px;
}

.agreement-content h4 {
    font-size: 16px;
    font-weight: 600;
    margin: 16px 0 8px;
    color: var(--text-primary);
}

.agreement-content p {
    margin-bottom: 12px;
}

.read-timer {
    text-align: center;
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 500;
    margin-bottom: 16px;
}

/* ===== Toast ===== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0, 0, 0, 0.8);
    color: white;
    padding: 16px 24px;
    border-radius: 8px;
    font-size: 14px;
    z-index: 2000;
    animation: toastFade 0.3s ease;
}

@keyframes toastFade {
    from {
        opacity: 0;
        transform: translate(-50%, -50%) scale(0.9);
    }
    to {
        opacity: 1;
        transform: translate(-50%, -50%) scale(1);
    }
}

/* ===== 响应式 ===== */
@media (min-width: 768px) {
    #app-container {
        max-width: 480px;
        margin: 0 auto;
        box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
    }

    .bottom-nav {
        max-width: 480px;
        left: 50%;
        transform: translateX(-50%);
    }
}
