/* =====================================================
   AAA 认证计费系统 - H5端统一样式表
   版本: 3.0 (2026-06-15)
   统一设计风格: 紫色渐变主题
   ===================================================== */

/* ==================== 基础变量 ==================== */
:root {
    --primary: #667eea;
    --primary-dark: #5a6fd6;
    --primary-light: #7c93f5;
    --primary-gradient: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    --primary-gradient-alt: linear-gradient(135deg, #764ba2 0%, #667eea 100%);
    
    --success: #52c41a;
    --warning: #faad14;
    --danger: #ff4d4f;
    
    --bg: #f7f7f7;
    --bg-light: #fafafa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #eeeeee;
    --border-light: #f0f0f0;
    
    --shadow: 0 2px 8px rgba(0,0,0,0.06);
    --shadow-md: 0 4px 16px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 24px rgba(102, 126, 234, 0.16);
    --shadow-hover: 0 8px 24px rgba(102, 126, 234, 0.2);
    
    --radius: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 20px;
    --radius-full: 9999px;
    
    --transition-fast: 0.2s ease;
    --transition-normal: 0.3s ease;
    --transition-slow: 0.4s ease;
}

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

html {
    font-size: 14px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
    max-width: 750px;
    margin: 0 auto;
    min-height: 100vh;
    position: relative;
}

a {
    color: var(--primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--primary-dark);
}

/* ==================== 按钮 ==================== */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 20px;
    font-size: 14px;
    font-weight: 500;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-align: center;
    gap: 6px;
}

.btn-primary {
    background: var(--primary-gradient);
    color: #fff;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

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

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

.btn-success {
    background: var(--success);
    color: #fff;
}

.btn-success:hover {
    background: #43a047;
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

.btn-danger:hover {
    background: #e53935;
}

.btn-outline {
    background: transparent;
    border: 1px solid var(--primary);
    color: var(--primary);
}

.btn-outline:hover {
    background: rgba(102, 126, 234, 0.1);
}

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

.btn-light:hover {
    background: var(--border);
}

.btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none !important;
}

.btn-block {
    display: flex;
    width: 100%;
    padding: 14px;
    font-size: 15px;
}

.btn-sm {
    padding: 6px 12px;
    font-size: 12px;
}

.btn-lg {
    padding: 14px 32px;
    font-size: 16px;
}

.btn-round {
    border-radius: var(--radius-full);
}

/* ==================== 表单 ==================== */
.input-group {
    margin-bottom: 16px;
}

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

.form-control,
.input-group input,
.input-group select,
.input-group textarea {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    font-size: 15px;
    transition: all var(--transition-fast);
    background: #fff;
    font-family: inherit;
}

.form-control:focus,
.input-group input:focus,
.input-group select:focus,
.input-group textarea:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-with-icon {
    position: relative;
}

.input-with-icon input {
    padding-left: 42px;
}

.input-with-icon i {
    position: absolute;
    left: 14px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 16px;
}

/* ==================== 顶部导航 ==================== */
.header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    box-shadow: var(--shadow);
    padding: 12px 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

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

.header-back {
    font-size: 20px;
    color: var(--text);
    text-decoration: none;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.header-back:hover {
    color: var(--primary);
}

.header-actions {
    display: flex;
    gap: 12px;
}

/* 现代化头部 */
.header-modern {
    background: var(--primary-gradient);
    color: white;
    padding: 20px 16px 16px;
    border-radius: 0 0 var(--radius-xl) var(--radius-xl);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
    position: relative;
    overflow: hidden;
}

.header-modern::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.header-modern h1 {
    font-size: 22px;
    font-weight: 700;
    color: white;
    position: relative;
    z-index: 1;
}

.header-modern p {
    font-size: 14px;
    opacity: 0.9;
    margin-top: 4px;
    position: relative;
    z-index: 1;
}

/* ==================== 底部导航 ==================== */
.tabbar {
    position: fixed;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 750px;
    background: var(--white);
    box-shadow: 0 -2px 10px rgba(0,0,0,0.05);
    display: flex;
    z-index: 100;
    padding: 8px 0;
    padding-bottom: calc(env(safe-area-inset-bottom, 8px) + 8px);
}

.tabbar-item {
    flex: 1;
    text-align: center;
    text-decoration: none;
    color: var(--text-muted);
    font-size: 12px;
    padding: 4px 0;
    transition: all var(--transition-fast);
}

.tabbar-item i {
    font-size: 24px;
    display: block;
    margin-bottom: 2px;
    transition: transform var(--transition-fast);
}

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

.tabbar-item.active i {
    transform: scale(1.1);
}

.tabbar-item:hover {
    color: var(--primary);
}

/* ==================== 内容区域 ==================== */
.content {
    padding: 16px;
    padding-bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    min-height: 100vh;
}

/* ==================== 卡片 ==================== */
.card {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    padding: 20px;
    margin-bottom: 16px;
    transition: all var(--transition-normal);
}

.card:hover {
    box-shadow: var(--shadow-md);
}

.card-header {
    border-bottom: 1px solid var(--border-light);
    padding-bottom: 15px;
    margin-bottom: 15px;
}

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

.card-body {
    padding: 15px 0;
}

.card-footer {
    border-top: 1px solid var(--border-light);
    padding-top: 15px;
    margin-top: 15px;
}

/* 特殊卡片 */
.card-primary {
    background: var(--primary-gradient);
    color: white;
}

.card-primary .card-title,
.card-primary p {
    color: white;
}

.card-primary .card-header,
.card-primary .card-footer {
    border-color: rgba(255,255,255,0.2);
}

.card-elevated {
    box-shadow: var(--shadow-md);
}

/* ==================== 用户中心 ==================== */
.user-card {
    background: var(--primary-gradient);
    border-radius: var(--radius-xl);
    padding: 24px;
    color: var(--white);
    margin-bottom: 16px;
    position: relative;
    overflow: hidden;
}

.user-card::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -30%;
    width: 80%;
    height: 80%;
    background: radial-gradient(circle, rgba(255,255,255,0.15) 0%, transparent 60%);
}

.user-info {
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.user-avatar {
    width: 64px;
    height: 64px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    font-weight: 600;
}

.user-details h3 {
    font-size: 18px;
    margin-bottom: 4px;
}

.user-details p {
    font-size: 14px;
    opacity: 0.8;
}

.user-stats {
    display: flex;
    justify-content: space-around;
    margin-top: 20px;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.2);
    position: relative;
    z-index: 1;
}

.user-stats .stat {
    text-align: center;
}

.user-stats .stat-value {
    font-size: 20px;
    font-weight: 600;
}

.user-stats .stat-label {
    font-size: 12px;
    opacity: 0.8;
}

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

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

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

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

.menu-item i {
    width: 36px;
    height: 36px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 12px;
    font-size: 18px;
}

.menu-item .icon-blue { background: rgba(102, 126, 234, 0.1); color: var(--primary); }
.menu-item .icon-green { background: rgba(82,196,26,0.1); color: var(--success); }
.menu-item .icon-orange { background: rgba(250,173,20,0.1); color: var(--warning); }
.menu-item .icon-red { background: rgba(255,77,79,0.1); color: var(--danger); }
.menu-item .icon-purple { background: rgba(114,46,209,0.1); color: #722ed1; }
.menu-item .icon-gray { background: rgba(153,153,153,0.1); color: var(--text-muted); }

.menu-item .text {
    flex: 1;
}

.menu-item .text h4 { 
    font-size: 15px; 
    font-weight: 500;
}
.menu-item .text p { 
    font-size: 12px; 
    color: var(--text-muted); 
    margin-top: 2px;
}

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

.menu-item .badge {
    background: var(--danger);
    color: white;
    padding: 2px 8px;
    border-radius: var(--radius-full);
    font-size: 11px;
}

.menu-header {
    padding: 12px 16px;
    font-size: 12px;
    color: var(--text-muted);
    background: var(--bg);
    font-weight: 500;
}

/* ==================== 套餐列表 ==================== */
.package-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.package-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 20px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    gap: 16px;
    position: relative;
    transition: all var(--transition-normal);
    border-left: 4px solid transparent;
}

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

.package-card.recommended {
    background: var(--primary-gradient);
    border-left-color: #ffd700;
}

.package-card.recommended * {
    color: white !important;
}

.package-card.recommended .package-feature {
    background: rgba(255,255,255,0.2) !important;
}

.package-card.recommended .btn-buy {
    background: white !important;
    color: var(--primary) !important;
}

.package-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
    padding: 4px 12px;
    border-radius: var(--radius-full);
    font-size: 11px;
    font-weight: 600;
}

.package-tag.hot {
    background: linear-gradient(135deg, #ef4444, #dc2626);
}

.package-tag.new {
    background: linear-gradient(135deg, #10b981, #059669);
}

.package-info {
    flex: 1;
}

.package-info h3 {
    font-size: 17px;
    font-weight: 700;
    color: var(--text);
    margin-bottom: 8px;
}

.package-info p {
    font-size: 13px;
    color: var(--text-light);
    margin-bottom: 12px;
}

.package-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.package-feature {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    color: var(--text-light);
    padding: 4px 10px;
    background: var(--bg-light);
    border-radius: var(--radius);
}

.package-price {
    text-align: right;
}

.package-price .price {
    font-size: 28px;
    color: var(--danger);
    font-weight: 700;
}

.package-price .price small {
    font-size: 14px;
    font-weight: 400;
}

.package-price .original {
    font-size: 12px;
    color: var(--text-muted);
    text-decoration: line-through;
    display: block;
    margin-top: 4px;
}

.btn-buy {
    padding: 10px 20px;
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: var(--radius-full);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.btn-buy:hover {
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ==================== 支付页面 ==================== */
.pay-info {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 24px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.pay-info .package-name {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 8px;
}

.pay-info .price {
    font-size: 36px;
    color: var(--danger);
    font-weight: 700;
}

.pay-info .price small {
    font-size: 16px;
}

.pay-methods {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.pay-method {
    display: flex;
    align-items: center;
    padding: 16px;
    border-bottom: 1px solid var(--border-light);
    cursor: pointer;
    transition: background var(--transition-fast);
}

.pay-method:last-child {
    border-bottom: none;
}

.pay-method:hover {
    background: var(--bg-light);
}

.pay-method.selected {
    background: rgba(102, 126, 234, 0.05);
}

.pay-method i {
    width: 44px;
    height: 44px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin-right: 14px;
}

.pay-method .info {
    flex: 1;
}

.pay-method .info h4 {
    font-size: 15px;
    font-weight: 500;
}

.pay-method .info p {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 2px;
}

.pay-method .radio {
    width: 20px;
    height: 20px;
    border: 2px solid var(--border);
    border-radius: 50%;
    position: relative;
    transition: all var(--transition-fast);
}

.pay-method.selected .radio {
    border-color: var(--primary);
}

.pay-method.selected .radio::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 10px;
    height: 10px;
    background: var(--primary);
    border-radius: 50%;
}

/* ==================== 分类标签 ==================== */
.tabs {
    display: flex;
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 4px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

.tab {
    flex: 1;
    text-align: center;
    padding: 12px;
    border-radius: var(--radius-md);
    cursor: pointer;
    color: var(--text-light);
    font-size: 14px;
    font-weight: 500;
    transition: all var(--transition-normal);
}

.tab.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* 现代化标签 */
.tabs-modern {
    display: flex;
    gap: 8px;
    margin-bottom: 16px;
    background: var(--white);
    padding: 6px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
}

.tab-modern {
    flex: 1;
    text-align: center;
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 14px;
    font-weight: 500;
    color: var(--text-light);
    cursor: pointer;
    transition: all var(--transition-normal);
}

.tab-modern.active {
    background: var(--primary-gradient);
    color: white;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

/* ==================== Toast 提示 ==================== */
.toast {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(0,0,0,0.8);
    color: white;
    padding: 14px 28px;
    border-radius: var(--radius-lg);
    z-index: 1000;
    font-size: 15px;
    animation: toastFadeIn 0.3s ease;
}

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

/* ==================== 空状态 ==================== */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-muted);
}

.empty-state i {
    font-size: 64px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 16px;
    margin-bottom: 8px;
    color: var(--text-light);
}

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

.empty-state .btn {
    margin-top: 20px;
}

/* ==================== 加载状态 ==================== */
.loading {
    text-align: center;
    padding: 40px;
    color: var(--text-muted);
}

.loading::before {
    content: '';
    display: block;
    width: 40px;
    height: 40px;
    margin: 0 auto 15px;
    border: 4px solid var(--border-light);
    border-top-color: var(--primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ==================== 扫码登录 ==================== */
.qrcode-container {
    text-align: center;
    padding: 40px 20px;
}

.qrcode-container img {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    border-radius: var(--radius-lg);
}

.qrcode-container p {
    color: var(--text-muted);
    font-size: 14px;
}

.countdown {
    font-size: 48px;
    color: var(--primary);
    font-weight: 600;
}

/* ==================== 徽章 ==================== */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-size: 12px;
    border-radius: var(--radius-full);
    font-weight: 500;
    gap: 4px;
}

.badge-primary { background: rgba(102, 126, 234, 0.1); color: var(--primary); }
.badge-success { background: rgba(82,196,26,0.1); color: var(--success); }
.badge-warning { background: rgba(250,173,20,0.1); color: var(--warning); }
.badge-danger { background: rgba(255,77,79,0.1); color: var(--danger); }

/* ==================== 悬浮客服按钮 ==================== */
.customer-service-float {
    position: fixed;
    right: 15px;
    bottom: calc(80px + env(safe-area-inset-bottom, 0px));
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
    z-index: 9999;
    cursor: grab;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    animation: pulse 2s infinite;
    touch-action: none;
    user-select: none;
}

.customer-service-float:hover {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.5);
}

.customer-service-float:active,
.customer-service-float.dragging {
    cursor: grabbing;
    transform: scale(1.15);
    box-shadow: 0 8px 24px rgba(102, 126, 234, 0.6);
    animation: none;
}

.customer-service-float i {
    color: #fff;
    font-size: 24px;
    pointer-events: none;
}

@keyframes pulse {
    0%, 100% { box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4); }
    50% { box-shadow: 0 4px 24px rgba(102, 126, 234, 0.6); }
}

/* ==================== 网格布局 ==================== */
.grid {
    display: grid;
    gap: 16px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* ==================== 工具类 ==================== */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-primary { color: var(--primary); }
.text-success { color: var(--success); }
.text-danger { color: var(--danger); }
.text-muted { color: var(--text-muted); }
.text-light { color: var(--text-light); }

.mt-8 { margin-top: 8px; }
.mt-10 { margin-top: 10px; }
.mt-16 { margin-top: 16px; }
.mt-20 { margin-top: 20px; }
.mt-24 { margin-top: 24px; }

.mb-8 { margin-bottom: 8px; }
.mb-10 { margin-bottom: 10px; }
.mb-16 { margin-bottom: 16px; }
.mb-20 { margin-bottom: 20px; }
.mb-0 { margin-bottom: 0; }

.p-8 { padding: 8px; }
.p-10 { padding: 10px; }
.p-16 { padding: 16px; }
.p-20 { padding: 20px; }

.flex { display: flex; }
.flex-col { display: flex; flex-direction: column; }
.flex-between { display: flex; justify-content: space-between; align-items: center; }
.flex-center { display: flex; justify-content: center; align-items: center; }
.flex-start { display: flex; align-items: flex-start; }
.flex-1 { flex: 1; }
.gap-8 { gap: 8px; }
.gap-10 { gap: 10px; }
.gap-12 { gap: 12px; }
.gap-16 { gap: 16px; }

.hidden { display: none; }
.inline-block { display: inline-block; }

.font-bold { font-weight: 700; }
.font-medium { font-weight: 500; }

/* ==================== 订单/表格 ==================== */
.order-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.order-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    box-shadow: var(--shadow);
}

.order-card .order-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-bottom: 12px;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 12px;
}

.order-card .order-id {
    font-size: 12px;
    color: var(--text-muted);
}

.order-card .order-status {
    font-size: 12px;
    padding: 3px 10px;
    border-radius: var(--radius-full);
}

.order-status.pending { background: #fffbe6; color: #faad14; }
.order-status.paid { background: #f6ffed; color: #52c41a; }
.order-status.cancelled { background: #fff1f0; color: #ff4d4f; }
.order-status.refunding { background: #e6f7ff; color: #1890ff; }

.order-card .order-item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px dashed var(--border-light);
}

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

.order-card .order-item-name {
    flex: 1;
}

.order-card .order-total {
    display: flex;
    justify-content: space-between;
    padding-top: 12px;
    border-top: 1px solid var(--border-light);
    font-weight: 600;
}

/* ==================== 统计卡片 ==================== */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    margin-bottom: 16px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all var(--transition-normal);
}

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

.stat-card .icon {
    width: 40px;
    height: 40px;
    margin: 0 auto 10px;
    border-radius: var(--radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

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

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

/* ==================== 登录页 ==================== */
.login-container {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px;
    background: var(--primary-gradient);
}

.login-box {
    background: var(--white);
    border-radius: var(--radius-xl);
    padding: 32px 24px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
}

.login-box h2 {
    text-align: center;
    margin-bottom: 8px;
    font-size: 24px;
    font-weight: 700;
}

.login-box p {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 32px;
}

.login-box .logo {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: var(--primary-gradient);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    font-weight: bold;
}

.login-bottom {
    margin-top: 24px;
    text-align: center;
    display: flex;
    justify-content: center;
    gap: 24px;
}

.login-bottom a {
    color: var(--text-muted);
    font-size: 14px;
    text-decoration: none;
}

.login-bottom a:hover {
    color: var(--primary);
}

/* ==================== 分页 ==================== */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    padding: 20px;
}

.pagination button {
    padding: 10px 16px;
    border: 1px solid var(--border);
    background: var(--white);
    border-radius: var(--radius-md);
    cursor: pointer;
    font-size: 14px;
    transition: all var(--transition-fast);
}

.pagination button:hover {
    border-color: var(--primary);
    color: var(--primary);
}

.pagination button.active {
    background: var(--primary-gradient);
    color: white;
    border-color: var(--primary);
}

/* ==================== 响应式调整 ==================== */
@media (max-width: 480px) {
    .user-stats {
        flex-wrap: wrap;
    }
    
    .user-stats .stat {
        flex: 1 0 50%;
        margin-bottom: 10px;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }
    
    .header-modern h1 {
        font-size: 20px;
    }
    
    .package-price .price {
        font-size: 24px;
    }
}

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

.animate-fadeInUp {
    animation: fadeInUp 0.5s ease;
}

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

.animate-slideInRight {
    animation: slideInRight 0.3s ease;
}

/* ==================== 滚动条 ==================== */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: var(--bg-light);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb {
    background: var(--text-muted);
    border-radius: var(--radius-full);
}

::-webkit-scrollbar-thumb:hover {
    background: var(--text-light);
}