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

:root {
    --primary-color: #2563eb;
    --primary-dark: #1e40af;
    --primary-light: #60a5fa;
    --secondary-color: #3b82f6;
    --accent-color: #06b6d4;
    --text-dark: #1f2937;
    --text-gray: #6b7280;
    --text-light: #9ca3af;
    --bg-white: #ffffff;
    --bg-light: #f9fafb;
    --bg-gray: #f3f4f6;
    --bg-dark: #111827;
    --border-color: #e5e7eb;
    --success-color: #10b981;
    --warning-color: #f59e0b;
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

/* 导航�?*/
.navbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.nav-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

/* 隐藏移动端元素（PC端） */
.mobile-menu-btn {
    display: none;
}

.mobile-nav {
    display: none;
}

.mobile-overlay {
    display: none;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
    text-decoration: none;
}

.logo-icon {
    width: 1.5rem;
    height: 1.5rem;
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 2rem;
}

.nav-menu a {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: -5px;
    left: 50%;
    background: var(--primary-color);
    transition: all 0.3s;
    transform: translateX(-50%);
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--primary-color);
}

.nav-buttons {
    display: flex;
    gap: 1rem;
}

/* 按钮样式 */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    border: none;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    position: relative;
    overflow: hidden;
}

.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255,255,255,0.3), transparent);
    transition: left 0.5s;
}

.btn-primary:hover::before {
    left: 100%;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.3);
}

.btn-primary svg {
    width: 1.2rem;
    height: 1.2rem;
    transition: transform 0.3s;
}

.btn-primary:hover svg {
    transform: translateX(3px);
}

.btn-secondary {
    background: white;
    color: #64748b;
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    border: 1px solid #e2e8f0;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #334155;
}

.btn-secondary svg {
    width: 1.2rem;
    height: 1.2rem;
}

.btn-outline {
    background: transparent;
    color: var(--primary-color);
    padding: 0.5rem 1.5rem;
    border-radius: 0.5rem;
    text-decoration: none;
    font-weight: 500;
    border: 2px solid var(--primary-color);
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-outline:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(37, 99, 235, 0.2);
}

.btn-large {
    padding: 0.875rem 2rem;
    font-size: 1.125rem;
}

.btn-block {
    width: 100%;
    justify-content: center;
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 50%, #93c5fd 100%);
    padding: 6rem 0 8rem;
    position: relative;
    overflow: hidden;
}

/* 粒子背景 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.particles::before,
.particles::after {
    content: '';
    position: absolute;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    filter: blur(80px);
    opacity: 0.3;
    animation: float-bubble 20s ease-in-out infinite;
}

.particles::before {
    background: rgba(96, 165, 250, 0.5);
    top: -200px;
    left: -200px;
    animation-delay: 0s;
}

.particles::after {
    background: rgba(147, 51, 234, 0.5);
    bottom: -200px;
    right: -200px;
    animation-delay: 10s;
}

@keyframes float-bubble {
    0%, 100% {
        transform: translate(0, 0) scale(1);
    }
    50% {
        transform: translate(50px, -50px) scale(1.1);
    }
}

.hero-content {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-badge {
    display: inline-block;
    background: rgba(37, 99, 235, 0.15);
    backdrop-filter: blur(10px);
    color: var(--primary-dark);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 600;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(37, 99, 235, 0.3);
}

.hero-title {
    font-size: 3.5rem;
    line-height: 1.2;
    margin-bottom: 1.5rem;
    color: var(--text-dark);
    font-weight: 800;
}

.gradient-text {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.highlight-text {
    color: var(--primary-color);
}

.hero-description {
    font-size: 1.125rem;
    color: var(--text-gray);
    margin-bottom: 2.5rem;
    line-height: 1.8;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    margin-bottom: 3rem;
}

.hero-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
}

.hero-buttons .btn-primary:hover {
    box-shadow: 0 10px 40px rgba(37, 99, 235, 0.4);
}

.hero-buttons .btn-outline {
    border-color: var(--primary-color);
    color: var(--primary-color);
    background: white;
}

.hero-buttons .btn-outline:hover {
    background: var(--primary-color);
    color: white;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    padding: 1.5rem 1rem;
    border-radius: 1rem;
    border: 1px solid rgba(255, 255, 255, 0.8);
    transition: all 0.3s;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.2);
}

.stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 英雄视觉效果 */
.hero-visual {
    position: relative;
    height: 500px;
}

.visual-card {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-2xl);
    position: absolute;
    animation: float-card 6s ease-in-out infinite;
}

@keyframes float-card {
    0%, 100% {
        transform: translateY(0) rotate(0deg);
    }
    50% {
        transform: translateY(-20px) rotate(2deg);
    }
}

.card-main {
    width: 350px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

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

.card-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--text-dark);
}

.card-status {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-active {
    background: #d1fae5;
    color: #065f46;
}

.progress-bar {
    height: 8px;
    background: var(--bg-gray);
    border-radius: 1rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    width: 85%;
    animation: progress-animation 2s ease-in-out infinite;
}

@keyframes progress-animation {
    0%, 100% {
        width: 85%;
    }
    50% {
        width: 90%;
    }
}

.card-stats {
    display: flex;
    gap: 1rem;
}

.mini-stat {
    flex: 1;
    background: var(--bg-light);
    padding: 0.75rem;
    border-radius: 0.5rem;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.mini-label {
    font-size: 0.75rem;
    color: var(--text-gray);
}

.mini-value {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary-color);
}

/* 浮动徽章 */
.floating-badge {
    position: absolute;
    background: white;
    padding: 0.75rem 1.25rem;
    border-radius: 2rem;
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 600;
    color: var(--text-dark);
    animation: float-badge 4s ease-in-out infinite;
}

.floating-badge svg {
    width: 1.25rem;
    height: 1.25rem;
    color: var(--primary-color);
}

@keyframes float-badge {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-15px);
    }
}

.badge-1 {
    top: 10%;
    left: 5%;
    animation-delay: 0s;
}

.badge-2 {
    top: 40%;
    right: 0;
    animation-delay: 1.5s;
}

.badge-3 {
    bottom: 15%;
    left: 10%;
    animation-delay: 3s;
}

/* 光晕效果 */
.glow {
    position: absolute;
    border-radius: 50%;
    filter: blur(60px);
    opacity: 0.4;
    animation: glow-pulse 3s ease-in-out infinite;
}

@keyframes glow-pulse {
    0%, 100% {
        opacity: 0.4;
        transform: scale(1);
    }
    50% {
        opacity: 0.6;
        transform: scale(1.1);
    }
}

.glow-1 {
    width: 300px;
    height: 300px;
    background: var(--primary-color);
    top: -100px;
    right: -100px;
}

.glow-2 {
    width: 200px;
    height: 200px;
    background: var(--accent-color);
    bottom: -50px;
    left: -50px;
    animation-delay: 1.5s;
}

/* 底部分隔�?*/
.hero-divider {
    position: absolute;
    bottom: -60px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 1200px;
    z-index: 10;
}

.divider-line {
    height: 4px;
    background: linear-gradient(90deg, 
        transparent 0%, 
        rgba(37, 99, 235, 0.3) 10%,
        var(--primary-color) 50%, 
        rgba(37, 99, 235, 0.3) 90%,
        transparent 100%);
    border-radius: 2px;
    position: relative;
    overflow: hidden;
}

.divider-line::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(96, 165, 250, 0.8), transparent);
    animation: divider-shine 3s ease-in-out infinite;
}

@keyframes divider-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 100%;
    }
}

.divider-dots {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    display: flex;
    gap: 1rem;
}

.divider-dots span {
    width: 12px;
    height: 12px;
    background: var(--primary-color);
    border-radius: 50%;
    box-shadow: 0 0 20px rgba(37, 99, 235, 0.6), 0 0 40px rgba(37, 99, 235, 0.3);
    animation: dot-pulse 2s ease-in-out infinite;
}

.divider-dots span:nth-child(1) {
    animation-delay: 0s;
}

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

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

@keyframes dot-pulse {
    0%, 100% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.3);
        opacity: 0.7;
    }
}

/* 实时数据看板 */
.realtime-dashboard {
    background: var(--bg-white);
    padding: 2rem 0;
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.dashboard-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.dashboard-item {
    background: linear-gradient(135deg, var(--bg-light) 0%, white 100%);
    padding: 1.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    border: 1px solid var(--border-color);
    transition: all 0.3s;
}

.dashboard-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    border-color: var(--primary-color);
}

.dashboard-icon {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.dashboard-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.dashboard-value {
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.dashboard-label {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* 区块标题 */
.section-header {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
    font-weight: 700;
}

.section-subtitle {
    font-size: 1.125rem;
    color: var(--text-gray);
}

/* 产品特�?*/
.features {
    padding: 5rem 0;
    background: var(--bg-white);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.feature-card {
    padding: 2rem;
    background: var(--bg-white);
    border: 1px solid var(--border-color);
    border-radius: 1rem;
    transition: all 0.3s;
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
    transform: scaleX(0);
    transition: transform 0.3s;
}

.feature-card:hover::before {
    transform: scaleX(1);
}

.feature-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
    border-color: var(--primary-color);
}

.feature-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1.5rem;
    transition: all 0.3s;
}

.feature-card:hover .feature-icon {
    transform: scale(1.1) rotate(5deg);
}

.feature-icon.blue {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    color: var(--primary-color);
}

.feature-icon svg {
    width: 1.75rem;
    height: 1.75rem;
}

.feature-title {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
    font-weight: 600;
}

.feature-description {
    color: var(--text-gray);
    line-height: 1.7;
}

/* 技术优势对�?*/
.comparison {
    padding: 5rem 0;
    background: linear-gradient(135deg, #f0f9ff 0%, #e0f2fe 100%);
}

.comparison-table {
    background: white;
    border-radius: 1rem;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.comparison-header {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    font-weight: 600;
    font-size: 1.125rem;
}

.comparison-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    border-bottom: 1px solid var(--border-color);
    transition: background 0.3s;
}

.comparison-row:hover {
    background: var(--bg-light);
}

.comparison-row:last-child {
    border-bottom: none;
}

.comparison-col {
    padding: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.comparison-col.highlight {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
    font-weight: 600;
}

.value-good {
    color: var(--success-color);
    font-weight: 700;
    font-size: 1.125rem;
}

.value-normal {
    color: var(--text-gray);
}

/* 工作流程 */
.workflow {
    padding: 5rem 0;
    background: var(--bg-white);
}

.workflow-steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    position: relative;
}

.step {
    position: relative;
    text-align: center;
    padding: 2rem;
}

.step-icon {
    width: 5rem;
    height: 5rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 10px 30px rgba(37, 99, 235, 0.3);
    transition: all 0.3s;
}

.step:hover .step-icon {
    transform: scale(1.1) rotate(10deg);
}

.step-icon svg {
    width: 2.5rem;
    height: 2.5rem;
    color: white;
}

.step-number {
    position: absolute;
    top: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    width: 3rem;
    height: 3rem;
    background: white;
    border: 3px solid var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary-color);
    z-index: 1;
}

.step-content h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    color: var(--text-dark);
}

.step-content p {
    color: var(--text-gray);
    line-height: 1.6;
}

.step-line {
    position: absolute;
    top: 4.5rem;
    right: -1.5rem;
    width: 3rem;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), var(--accent-color));
}

.step:last-child .step-line {
    display: none;
}

/* 客户评价 */
.testimonials {
    padding: 5rem 0;
    background: linear-gradient(135deg, #faf5ff 0%, #f3e8ff 100%);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 2rem;
}

.testimonial-card {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
}

.testimonial-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-xl);
}

.testimonial-rating {
    margin-bottom: 1rem;
}

.star {
    color: #fbbf24;
    font-size: 1.25rem;
}

.testimonial-text {
    color: var(--text-gray);
    line-height: 1.8;
    margin-bottom: 1.5rem;
    font-style: italic;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.author-avatar {
    width: 3rem;
    height: 3rem;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 1.25rem;
}

.author-name {
    font-weight: 600;
    color: var(--text-dark);
}

.author-title {
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* 合作伙伴 */
.partners {
    padding: 5rem 0;
    background: var(--bg-white);
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 2rem;
}

.partner-item {
    height: 100px;
    background: var(--bg-light);
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1.125rem;
    color: var(--text-gray);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.partner-item:hover {
    background: white;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
}

/* 关于我们 */
.about {
    padding: 5rem 0;
    background: var(--bg-light);
}

.about-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-description {
    color: var(--text-gray);
    margin-bottom: 1.5rem;
    line-height: 1.8;
    font-size: 1.125rem;
}

.about-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    margin-top: 3rem;
}

.about-stat {
    text-align: center;
    padding: 1.5rem;
    background: white;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.about-stat-number {
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: 0.5rem;
}

.about-stat-label {
    color: var(--text-gray);
}

.about-graphic {
    position: relative;
    height: 400px;
}

.about-circle {
    position: absolute;
    border-radius: 50%;
    animation: pulse 4s ease-in-out infinite;
}

.about-circle.circle-1 {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.2) 100%);
}

.about-circle.circle-2 {
    width: 75%;
    height: 75%;
    top: 12.5%;
    left: 12.5%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.2) 0%, rgba(6, 182, 212, 0.3) 100%);
    animation-delay: 1s;
}

.about-circle.circle-3 {
    width: 50%;
    height: 50%;
    top: 25%;
    left: 25%;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.3) 0%, rgba(6, 182, 212, 0.4) 100%);
    animation-delay: 2s;
}

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

/* 底部 */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 3rem 0 1.5rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    margin-bottom: 2rem;
}

.footer-section h4 {
    margin-bottom: 1rem;
    font-size: 1.125rem;
}

.footer-section ul {
    list-style: none;
}

.footer-section li {
    margin-bottom: 0.5rem;
}

.footer-section a {
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: white;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 1.5rem;
    text-align: center;
    color: rgba(255, 255, 255, 0.7);
}

/* 认证页面 */
.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
}

.auth-left {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    color: white;
    padding: 3rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-brand h2 {
    font-size: 2.5rem;
    margin: 2rem 0 1rem;
}

.auth-brand p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.auth-illustration {
    position: relative;
    height: 300px;
}

.illustration-circle {
    position: absolute;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.3);
    animation: pulse 4s ease-in-out infinite;
}

.illustration-circle.circle-1 {
    width: 300px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
}

.illustration-circle.circle-2 {
    width: 200px;
    height: 200px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 1s;
}

.illustration-circle.circle-3 {
    width: 100px;
    height: 100px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    animation-delay: 2s;
}

.auth-right {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 3rem;
}

.auth-form-container {
    width: 100%;
    max-width: 400px;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.auth-header p {
    color: var(--text-gray);
}

.auth-header a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
}

.auth-header a:hover {
    text-decoration: underline;
}

/* 表单样式 */
.auth-form {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
}

.form-group input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s;
}

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

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.checkbox input {
    width: auto;
    cursor: pointer;
}

.checkbox span {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.checkbox a {
    color: var(--primary-color);
    text-decoration: none;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
}

.forgot-password:hover {
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.back-home {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
}

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

/* 测试页面 */
.test-section {
    padding: 3rem 0;
}

/* 类型选择区域 */
.test-type-selection {
    background: white;
    border-radius: 1rem;
    padding: 2.5rem;
    box-shadow: var(--shadow-lg);
}

.test-type-selection h3 {
    text-align: center;
    font-size: 1.5rem;
    color: var(--text-dark);
    margin-bottom: 2rem;
}

.type-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.type-card {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.type-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.15);
    border-color: var(--primary-color);
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
}

.type-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.type-card h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.type-card p {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin: 0;
}

/* 上传区域头部 */
.upload-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
    padding: 1rem;
    background: #f8f9fa;
    border-radius: 0.75rem;
}

.btn-back {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    background: white;
    border: 1px solid #dee2e6;
    border-radius: 0.5rem;
    color: var(--text-dark);
    font-size: 0.9375rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.btn-back:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.btn-back svg {
    width: 1.25rem;
    height: 1.25rem;
}

.selected-type {
    font-size: 1rem;
    color: var(--primary-color);
    font-weight: 600;
}

.test-section {
    padding: 3rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
}

.test-header {
    text-align: center;
    margin-bottom: 3rem;
}

.test-header h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.test-header p {
    font-size: 1.125rem;
    color: var(--text-gray);
}

.test-container {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-md);
    margin-bottom: 3rem;
}

/* 上传区域 */
.upload-zone {
    border: 2px dashed var(--border-color);
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    transition: all 0.3s;
    cursor: pointer;
    max-width: 600px;
    margin: 0 auto;
}

.upload-zone:hover,
.upload-zone.dragover {
    border-color: var(--primary-color);
    background: var(--bg-light);
}

.upload-icon {
    margin: 0 auto 1rem;
    width: 3rem;
    height: 3rem;
    color: var(--primary-color);
}

.upload-icon svg {
    width: 100%;
    height: 100%;
}

.upload-zone h3 {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.upload-zone p {
    color: var(--text-gray);
    margin-bottom: 1.25rem;
    font-size: 0.9375rem;
}

.upload-tip {
    margin-top: 0.875rem;
    font-size: 0.8125rem;
    color: var(--text-light);
}

/* 加载状�?*/
.test-loading {
    text-align: center;
    padding: 3rem;
}

.loading-spinner {
    width: 3rem;
    height: 3rem;
    border: 4px solid var(--bg-gray);
    border-top: 4px solid var(--primary-color);
    border-radius: 50%;
    margin: 0 auto 1.5rem;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

.test-loading p {
    color: var(--text-gray);
    font-size: 1.125rem;
}

/* 结果区域 */
.result-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-bottom: 2rem;
}

.result-item h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
    color: var(--text-dark);
}

.image-preview {
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    padding: 1rem;
    background: var(--bg-light);
    min-height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.image-preview img {
    max-width: 100%;
    max-height: 300px;
    border-radius: 0.5rem;
}

.result-box {
    border: 2px solid var(--primary-color);
    border-radius: 0.5rem;
    padding: 2rem;
    background: var(--bg-light);
    text-align: center;
}

.result-value {
    font-size: 3rem;
    font-weight: 700;
    color: var(--primary-color);
    font-family: 'Courier New', monospace;
    margin-bottom: 1.5rem;
}

.result-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem;
    background: white;
    border-radius: 0.25rem;
}

.info-label {
    color: var(--text-gray);
    font-weight: 500;
}

.info-value {
    color: var(--text-dark);
    font-weight: 600;
}

.result-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* 使用说明 */
.test-tips {
    background: white;
    border-radius: 1rem;
    padding: 3rem;
    box-shadow: var(--shadow-md);
}

.test-tips h3 {
    text-align: center;
    font-size: 1.75rem;
    margin-bottom: 2rem;
    color: var(--text-dark);
}

.tips-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.tip-card {
    text-align: center;
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

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

.tip-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.tip-card h4 {
    font-size: 1.125rem;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.tip-card p {
    color: var(--text-gray);
}

/* ==================== 用户中心页面 ==================== */

/* 用户中心专用body */
.user-body {
    background: var(--bg-light);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* 顶部导航�?*/
.user-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

.user-header .header-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.header-left {
    display: flex;
    align-items: center;
    gap: 3rem;
}

.header-logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-dark);
}

.header-nav {
    display: flex;
    gap: 2rem;
}

.header-nav .nav-link {
    color: var(--text-gray);
    text-decoration: none;
    font-weight: 500;
    padding: 0.5rem 0;
    position: relative;
    transition: color 0.3s;
}

.header-nav .nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary-color);
    transition: width 0.3s;
}

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

.header-nav .nav-link.active::after {
    width: 100%;
}

.header-right {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.header-btn {
    position: relative;
    width: 2.75rem;
    height: 2.75rem;
    border: 1px solid #e2e8f0;
    background: #f8fafc;
    border-radius: 0.625rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #475569;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.header-btn:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    color: #667eea;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transform: translateY(-1px);
}

.header-btn svg {
    width: 1.375rem;
    height: 1.375rem;
}

.header-btn .badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: white;
    font-size: 0.7rem;
    min-width: 1.25rem;
    height: 1.25rem;
    padding: 0 0.25rem;
    border-radius: 1rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(239, 68, 68, 0.4);
    border: 2px solid white;
}

/* 用户菜单按钮 - 参考铃铛按钮的样式 */
.header-btn.user-menu-btn {
    width: auto;
    padding: 0.5rem 1rem;
    gap: 0.75rem;
    position: relative;
}

.user-avatar-mini {
    width: 2rem;
    height: 2rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
    flex-shrink: 0;
}

.user-info-mini {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
    text-align: left;
    flex: 1;
}

.user-name-mini {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.875rem;
    line-height: 1.2;
    white-space: nowrap;
}

.user-role-mini {
    font-size: 0.7rem;
    color: #64748b;
    line-height: 1.2;
    white-space: nowrap;
}

.dropdown-icon-mini {
    width: 1rem;
    height: 1rem;
    color: #64748b;
    flex-shrink: 0;
    transition: transform 0.3s;
}

.header-btn.user-menu-btn:hover .dropdown-icon-mini {
    transform: rotate(180deg);
}

/* 用户下拉菜单 */
.header-right {
    position: relative;
}

.user-dropdown-menu {
    position: absolute;
    top: 100%;
    right: 0;
    margin-top: 0.75rem;
    background: white;
    border-radius: 0.875rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 220px;
    padding: 0.625rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    z-index: 1000;
}

.header-right:hover .user-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.user-menu {
    position: relative;
    display: block !important;
    visibility: visible !important;
}

.user-menu-trigger {
    display: flex !important;
    align-items: center;
    gap: 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    padding: 0.5rem 1rem;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    visibility: visible !important;
    opacity: 1 !important;
}

.user-menu-trigger:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.user-menu-trigger .user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    flex-shrink: 0;
}

.user-info {
    text-align: left;
    display: flex !important;
    flex-direction: column;
    gap: 0.125rem;
    flex: 1;
    min-width: 0;
}

.user-name {
    font-weight: 600;
    color: #1e293b;
    font-size: 0.9rem;
    line-height: 1.2;
}

.user-role {
    font-size: 0.75rem;
    color: #64748b;
    line-height: 1.2;
}

.dropdown-icon {
    width: 1.125rem;
    height: 1.125rem;
    color: #64748b;
    transition: transform 0.3s;
    flex-shrink: 0;
}

.user-menu:hover .dropdown-icon {
    transform: rotate(180deg);
}

.user-dropdown {
    position: absolute;
    top: calc(100% + 0.75rem);
    right: 0;
    background: white;
    border-radius: 0.875rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12), 0 0 0 1px rgba(0, 0, 0, 0.05);
    min-width: 220px;
    padding: 0.625rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 1px solid #e2e8f0;
    z-index: 1000;
}

.user-menu:hover .user-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    padding: 0.75rem 1rem;
    color: #475569;
    text-decoration: none;
    border-radius: 0.625rem;
    transition: all 0.2s;
    font-size: 0.9rem;
    font-weight: 500;
}

.dropdown-item:hover {
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    color: #667eea;
    transform: translateX(4px);
}

.dropdown-item svg {
    width: 1.25rem;
    height: 1.25rem;
    flex-shrink: 0;
}

.dropdown-divider {
    height: 1px;
    background: linear-gradient(90deg, transparent, #e2e8f0, transparent);
    margin: 0.5rem 0.25rem;
}

/* 次级导航�?*/
.sub-header {
    background: white;
    border-bottom: 1px solid var(--border-color);
    position: sticky;
    top: 70px;
    z-index: 999;
}

.sub-header .header-container {
    padding: 0 2rem;
}

.sub-nav {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem 0;
}

.sub-nav-link {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 500;
    transition: all 0.3s;
    font-size: 0.875rem;
}

.sub-nav-link svg {
    width: 1.125rem;
    height: 1.125rem;
}

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

.sub-nav-link.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--primary-color);
}

/* 主内容区 */
.main-content {
    flex: 1;
    padding: 2rem 0;
}

.content-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* 页面标题 */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.page-title {
    font-size: 2rem;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
    font-weight: 700;
}

.page-description {
    color: var(--text-gray);
}

.page-actions {
    display: flex;
    gap: 1rem;
}

.page-actions .btn-outline,
.page-actions .btn-primary {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.page-actions svg {
    width: 1.125rem;
    height: 1.125rem;
}

/* 数据统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background: white;
    padding: 1.75rem;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    display: flex;
    gap: 1.25rem;
    transition: all 0.3s;
    border: 1px solid var(--border-color);
}

.stat-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.stat-icon {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 1rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.stat-icon svg {
    width: 1.75rem;
    height: 1.75rem;
    color: white;
}

.stat-card.blue .stat-icon {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.stat-card.green .stat-icon {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.stat-card.purple .stat-icon {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.stat-card.orange .stat-icon {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

/* 充值卡片样�?*/
.stat-card.recharge-card {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    color: white;
    cursor: pointer;
    transition: all 0.3s;
}

.stat-card.recharge-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 30px rgba(16, 185, 129, 0.3);
}

.stat-card.recharge-card .stat-icon {
    background: rgba(255, 255, 255, 0.2);
}

.stat-card.recharge-card .stat-label,
.stat-card.recharge-card .stat-change {
    color: rgba(255, 255, 255, 0.9);
}

.recharge-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    background: white;
    color: #10b981;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.recharge-btn:hover {
    background: rgba(255, 255, 255, 0.9);
    transform: scale(1.05);
}

.recharge-btn svg {
    width: 16px;
    height: 16px;
    transition: transform 0.3s;
}

.recharge-btn:hover svg {
    transform: translateX(3px);
}

.stat-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.95rem;
    color: var(--text-gray);
    font-weight: 500;
    line-height: 1.2;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
    line-height: 1.2;
}

.stat-unit {
    font-size: 1.25rem;
    color: var(--text-gray);
    font-weight: 500;
}

.stat-change {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.stat-change svg {
    width: 1rem;
    height: 1rem;
}

.stat-change.positive {
    color: var(--success-color);
}

.stat-change.stable {
    color: var(--text-gray);
}

/* 内容网格 */
.content-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 1.5rem;
}

.content-card {
    background: white;
    border-radius: 1rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border-color);
    overflow: hidden;
}

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

.card-header h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
}

.view-all {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: 500;
}

.view-all:hover {
    color: var(--primary-dark);
}

.card-body {
    padding: 2rem;
}

/* 图表 */
.chart-wrapper {
    padding: 1rem 0;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 250px;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    min-height: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.chart-bar .bar-value {
    position: absolute;
    top: -1.75rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.chart-labels span {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* 记录列表 */
.records-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.record-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
    transition: all 0.3s;
}

.record-item:hover {
    background: var(--bg-gray);
}

.record-icon {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.record-icon svg {
    width: 1.25rem;
    height: 1.25rem;
    color: white;
}

.record-icon.blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.record-icon.red {
    background: linear-gradient(135deg, #ef4444 0%, #f87171 100%);
}

.record-content {
    flex: 1;
}

.record-title {
    font-weight: 600;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.record-meta {
    font-size: 0.875rem;
    color: var(--text-gray);
}

.record-meta code {
    background: white;
    padding: 0.125rem 0.375rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.8125rem;
}

.record-status {
    padding: 0.375rem 0.875rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.record-status.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.record-status.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 底部 */
.user-footer {
    background: white;
    border-top: 1px solid var(--border-color);
    padding: 2rem 0;
    margin-top: auto;
}

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

.user-footer p {
    color: var(--text-gray);
    font-size: 0.875rem;
}

.footer-links {
    display: flex;
    gap: 2rem;
}

.footer-links a {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s;
}

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

/* ==================== API密钥页面 ==================== */

/* 提示�?*/
.alert {
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    border: 1px solid;
}

.alert svg {
    width: 1.5rem;
    height: 1.5rem;
    flex-shrink: 0;
}

.alert-info {
    background: rgba(37, 99, 235, 0.1);
    border-color: rgba(37, 99, 235, 0.3);
    color: var(--primary-color);
}

.alert-success {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
    color: #059669;
}

.alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: rgba(239, 68, 68, 0.3);
    color: #dc2626;
}

.alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: rgba(245, 158, 11, 0.3);
    color: #d97706;
}

.alert strong {
    font-weight: 600;
}

/* API密钥主卡�?*/
.api-key-main-card {
    background: white;
    border: 2px solid var(--primary-color);
    border-radius: 1rem;
    padding: 2rem;
    margin-bottom: 2rem;
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.05) 0%, rgba(6, 182, 212, 0.05) 100%);
}

.api-key-display {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    margin: 1.5rem 0;
    border: 1px solid var(--border-color);
}

.key-value-container {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.api-key-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 1rem;
    color: var(--text-dark);
    word-break: break-all;
}

.api-key-text.key-hidden {
    letter-spacing: 0.1em;
}

.key-actions {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.api-key-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}

.key-stat-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    background: white;
    border-radius: 0.75rem;
}

.key-stat-item svg {
    width: 2.5rem;
    height: 2.5rem;
    color: var(--primary-color);
    flex-shrink: 0;
}

.key-stat-content {
    flex: 1;
}

.key-stat-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.25rem;
}

.key-stat-value {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text-dark);
}

/* 参数表格 */
.params-table {
    margin: 1rem 0;
}

.badge-required {
    background: #fee2e2;
    color: #dc2626;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.badge-optional {
    background: #e5e7eb;
    color: #6b7280;
    padding: 0.125rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.75rem;
    font-weight: 600;
}

.api-key-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.api-key-title {
    display: flex;
    align-items: center;
    gap: 1rem;
}

.api-key-title h3 {
    font-size: 1.125rem;
    color: var(--text-dark);
    font-weight: 600;
}

.key-badge {
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    background: var(--bg-gray);
    color: var(--text-gray);
}

.key-badge.primary {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
}

.api-key-actions {
    display: flex;
    gap: 0.5rem;
}

/* 左右布局的API密钥样式 */
.api-key-layout {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
}

.api-key-left {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-key-right {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.5rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
}

.stat-info-item {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.stat-info-label {
    font-size: 0.8125rem;
    color: #64748b;
    font-weight: 500;
}

.stat-info-value {
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 600;
}

.key-actions {
    display: flex;
    gap: 0.75rem;
}

@media (max-width: 768px) {
    .api-key-layout {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* 简洁的API密钥样式 */
.api-key-card {
    background: white;
    border-radius: 1rem;
    padding: 2rem;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.api-key-section {
    margin-bottom: 2rem;
}

.key-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #64748b;
    margin-bottom: 0.75rem;
}

.key-display-box {
    display: flex;
    align-items: center;
    gap: 1rem;
    background: #f8fafc;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
}

.api-key-text {
    flex: 1;
    font-family: 'Courier New', monospace;
    font-size: 0.9375rem;
    color: #1e293b;
    word-break: break-all;
}

.api-key-text.key-hidden {
    letter-spacing: 0.1em;
}

.key-actions-inline {
    display: flex;
    gap: 0.5rem;
    flex-shrink: 0;
}

.key-btn {
    width: 2.25rem;
    height: 2.25rem;
    border: 1px solid #e2e8f0;
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: #64748b;
}

.key-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.key-btn:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.key-btn.danger:hover {
    background: #ef4444;
    border-color: #ef4444;
    color: white;
}

.api-key-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.stat-item-simple {
    text-align: center;
}

.stat-simple-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.stat-simple-value {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
}

@media (max-width: 768px) {
    .api-key-card {
        padding: 1.5rem;
    }
    
    .key-display-box {
        flex-direction: column;
        align-items: stretch;
    }
    
    .key-actions-inline {
        justify-content: center;
    }
    
    .api-key-stats-row {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stat-item-simple {
        padding: 1rem;
        background: #f8fafc;
        border-radius: 0.5rem;
    }
}

/* 旧的API密钥样式（保留备用） */
.key-icon-badge {
    width: 3.5rem;
    height: 3.5rem;
    border-radius: 0.75rem;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.key-icon-badge svg {
    width: 2rem;
    height: 2rem;
    color: white;
}

.api-key-title div {
    flex: 1;
}

.api-key-title h3 {
    font-size: 1.25rem;
    color: #1e293b;
    font-weight: 600;
    margin: 0 0 0.25rem 0;
}

.key-subtitle {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

.btn-reset {
    padding: 0.625rem 1.25rem;
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.btn-reset svg {
    width: 1.125rem;
    height: 1.125rem;
}

.btn-reset:hover {
    background: #e2e8f0;
    color: #1e293b;
}

.api-key-display-new {
    background: #f8fafc;
    border: 2px dashed #cbd5e1;
    border-radius: 0.75rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
}

.key-container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.api-key-code {
    font-family: 'SF Mono', 'Monaco', 'Inconsolata', 'Fira Code', 'Courier New', monospace;
    font-size: 1rem;
    color: #1e293b;
    background: white;
    padding: 1rem 1.25rem;
    border-radius: 0.5rem;
    border: 1px solid #e2e8f0;
    word-break: break-all;
    line-height: 1.6;
}

.api-key-code.key-hidden {
    letter-spacing: 0.15em;
}

.key-button-group {
    display: flex;
    gap: 0.75rem;
}

.key-action-btn {
    flex: 1;
    padding: 0.75rem 1rem;
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0.5rem;
    color: #475569;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.key-action-btn svg {
    width: 1.125rem;
    height: 1.125rem;
}

.key-action-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #1e293b;
}

.key-action-btn.copy:hover {
    background: #667eea;
    border-color: #667eea;
    color: white;
}

.api-key-info-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.key-info-card {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: white;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.key-info-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-2px);
}

.info-card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.info-card-icon.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-card-icon.purple {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.info-card-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.info-card-content {
    flex: 1;
}

.info-card-label {
    font-size: 0.8125rem;
    color: #64748b;
    margin-bottom: 0.25rem;
    font-weight: 500;
}

.info-card-value {
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 600;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .api-key-title {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.75rem;
    }
    
    .api-key-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .key-button-group {
        flex-direction: column;
    }
}

.btn-icon-small {
    width: 2rem;
    height: 2rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-gray);
}

.btn-icon-small:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-icon-small.text-danger:hover {
    background: #ef4444;
    border-color: #ef4444;
}

.btn-icon-small svg {
    width: 1.125rem;
    height: 1.125rem;
}

.api-key-value {
    background: var(--bg-light);
    padding: 1rem 1.5rem;
    border-radius: 0.75rem;
    margin-bottom: 1.5rem;
    border: 1px solid var(--border-color);
}

.api-key-value code {
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-dark);
    word-break: break-all;
}

.api-key-value code.key-hidden {
    letter-spacing: 0.1em;
}

.api-key-info {
    display: flex;
    flex-wrap: wrap;
    gap: 1.5rem;
}

.key-info-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-gray);
    font-size: 0.875rem;
}

.key-info-item svg {
    width: 1rem;
    height: 1rem;
}

/* 文档区域 */
.doc-section {
    margin-bottom: 2rem;
}

.doc-section:last-child {
    margin-bottom: 0;
}

.doc-section h4 {
    font-size: 1.125rem;
    color: var(--text-dark);
    margin-bottom: 1rem;
    font-weight: 600;
}

.doc-section p {
    color: var(--text-gray);
    margin-bottom: 1rem;
    line-height: 1.6;
}

.code-block {
    background: #1e293b;
    border-radius: 0.75rem;
    overflow: hidden;
    margin-bottom: 1rem;
}

.code-header {
    background: #0f172a;
    padding: 0.75rem 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #334155;
}

.code-header span {
    color: #94a3b8;
    font-size: 0.875rem;
    font-weight: 500;
}

.btn-copy {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    background: transparent;
    border: 1px solid #334155;
    color: #94a3b8;
    padding: 0.375rem 0.75rem;
    border-radius: 0.375rem;
    font-size: 0.875rem;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-copy:hover {
    background: #334155;
    color: white;
}

.btn-copy svg {
    width: 1rem;
    height: 1rem;
}

.code-block pre {
    margin: 0;
    padding: 1.5rem;
    overflow-x: auto;
}

.code-block code {
    color: #e2e8f0;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    line-height: 1.6;
}

.doc-list {
    list-style: none;
    padding: 0;
}

.doc-list li {
    padding: 0.75rem 0;
    padding-left: 1.5rem;
    position: relative;
    color: var(--text-gray);
    line-height: 1.6;
}

.doc-list li::before {
    content: '▶';
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: 700;
    font-size: 1.25rem;
}

/* 旧版用户页面样式（保留兼容） */
.user-page {
    background: var(--bg-light);
    min-height: calc(100vh - 80px);
    padding: 2rem 0;
}

.user-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 2rem;
    align-items: start;
}

/* 侧边�?*/
.user-sidebar {
    background: white;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
}

.sidebar-section {
    margin-bottom: 2rem;
}

.sidebar-section:last-child {
    margin-bottom: 0;
}

.sidebar-section h3 {
    font-size: 0.875rem;
    color: var(--text-gray);
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    font-weight: 600;
}

.sidebar-menu {
    list-style: none;
}

.sidebar-menu li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    color: var(--text-gray);
    font-weight: 500;
    margin-bottom: 0.25rem;
}

.sidebar-menu li:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

.sidebar-menu li.active {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(6, 182, 212, 0.1) 100%);
    color: var(--primary-color);
}

.sidebar-menu li svg {
    width: 1.25rem;
    height: 1.25rem;
}

/* 用户头像下拉菜单 */
.user-dropdown {
    position: relative;
}

.user-avatar {
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    border: none;
    font-weight: 600;
    font-size: 1.125rem;
    cursor: pointer;
    transition: all 0.3s;
    display: flex;
    align-items: center;
    justify-content: center;
}

.user-avatar:hover {
    transform: scale(1.05);
    box-shadow: 0 5px 15px rgba(37, 99, 235, 0.3);
}

.dropdown-menu {
    position: absolute;
    top: calc(100% + 0.5rem);
    right: 0;
    background: white;
    border-radius: 0.5rem;
    box-shadow: var(--shadow-lg);
    min-width: 150px;
    padding: 0.5rem;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 100;
}

.user-dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown-menu a {
    display: block;
    padding: 0.75rem 1rem;
    color: var(--text-gray);
    text-decoration: none;
    border-radius: 0.25rem;
    transition: all 0.3s;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary-color);
}

/* 主内容区 */
.user-main {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* 欢迎横幅 */
.welcome-banner {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--accent-color) 100%);
    color: white;
    padding: 2rem;
    border-radius: 1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-md);
}

.welcome-text h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.welcome-text .username {
    color: #fbbf24;
}

.welcome-text p {
    opacity: 0.9;
}

/* 概览卡片 */
.overview-cards {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.overview-card {
    background: white;
    padding: 1.5rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
    display: flex;
    gap: 1rem;
    transition: all 0.3s;
}

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

.overview-card .card-icon {
    width: 3rem;
    height: 3rem;
    border-radius: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.overview-card .card-icon svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.overview-card .card-icon.blue {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
}

.overview-card .card-icon.green {
    background: linear-gradient(135deg, #10b981 0%, #34d399 100%);
}

.overview-card .card-icon.purple {
    background: linear-gradient(135deg, #8b5cf6 0%, #a78bfa 100%);
}

.overview-card .card-icon.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
}

.card-content {
    flex: 1;
}

.card-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
}

.card-value {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.25rem;
}

.card-trend {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.875rem;
    font-weight: 600;
}

.card-trend svg {
    width: 1rem;
    height: 1rem;
}

.card-trend.up {
    color: var(--success-color);
}

.card-trend.down {
    color: var(--primary-color);
}

.card-trend.stable {
    color: var(--text-gray);
}

/* 内容区块 */
.content-section {
    background: white;
    padding: 2rem;
    border-radius: 1rem;
    box-shadow: var(--shadow-sm);
}

.section-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.section-title h2 {
    font-size: 1.5rem;
    color: var(--text-dark);
}

.btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.text-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

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

/* API密钥卡片 */
.api-key-card {
    background: var(--bg-light);
    padding: 1.5rem;
    border-radius: 0.75rem;
    border: 2px solid var(--border-color);
}

.api-key-label {
    font-size: 0.875rem;
    color: var(--text-gray);
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.api-key-value {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.75rem;
}

.api-key-value code {
    flex: 1;
    background: white;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
    color: var(--text-dark);
    border: 1px solid var(--border-color);
}

.btn-icon {
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s;
}

.btn-icon:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
}

.btn-icon svg {
    width: 1.25rem;
    height: 1.25rem;
}

.api-key-meta {
    font-size: 0.875rem;
    color: var(--text-light);
}

/* 图表容器 */
.chart-tabs {
    display: flex;
    gap: 0.5rem;
}

.tab-btn {
    padding: 0.5rem 1rem;
    border: 1px solid var(--border-color);
    background: white;
    border-radius: 0.5rem;
    cursor: pointer;
    transition: all 0.3s;
    font-weight: 500;
    color: var(--text-gray);
}

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

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

.chart-container {
    margin-top: 1.5rem;
}

.chart-placeholder {
    padding: 2rem;
    background: var(--bg-light);
    border-radius: 0.75rem;
}

.chart-bars {
    display: flex;
    align-items: flex-end;
    justify-content: space-around;
    height: 200px;
    gap: 1rem;
    margin-bottom: 1rem;
}

.chart-bar {
    flex: 1;
    background: linear-gradient(180deg, var(--primary-color) 0%, var(--accent-color) 100%);
    border-radius: 0.5rem 0.5rem 0 0;
    position: relative;
    min-height: 20px;
    transition: all 0.3s;
    cursor: pointer;
}

.chart-bar:hover {
    opacity: 0.8;
    transform: translateY(-5px);
}

.chart-bar .bar-value {
    position: absolute;
    top: -1.5rem;
    left: 50%;
    transform: translateX(-50%);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text-dark);
    white-space: nowrap;
}

.chart-labels {
    display: flex;
    justify-content: space-around;
    gap: 1rem;
}

.chart-labels span {
    flex: 1;
    text-align: center;
    font-size: 0.875rem;
    color: var(--text-gray);
}

/* 数据表格 */
.table-container {
    overflow-x: auto;
}

.data-table {
    width: 100%;
    border-collapse: collapse;
}

.data-table thead {
    background: var(--bg-light);
}

.data-table th {
    padding: 1rem;
    text-align: left;
    font-weight: 600;
    color: var(--text-dark);
    font-size: 0.875rem;
}

.data-table td {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    color: var(--text-gray);
}

.data-table tbody tr {
    transition: background 0.3s;
}

.data-table tbody tr:hover {
    background: var(--bg-light);
}

.data-table code {
    background: var(--bg-light);
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-family: 'Courier New', monospace;
    font-size: 0.875rem;
}

/* 标签 */
.tag {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.tag-blue {
    background: rgba(37, 99, 235, 0.1);
    color: var(--primary-color);
}

.tag-green {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.tag-purple {
    background: rgba(139, 92, 246, 0.1);
    color: #8b5cf6;
}

/* 状态徽�?*/
.status-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 1rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(16, 185, 129, 0.1);
    color: #10b981;
}

.status-badge.error {
    background: rgba(239, 68, 68, 0.1);
    color: #ef4444;
}

/* 响应式设�?*/
@media (max-width: 1024px) {
    .hero-content {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .hero-image {
        display: none;
    }

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

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

    .about-content {
        grid-template-columns: 1fr;
    }

    .about-graphic {
        display: none;
    }

    .workflow-steps {
        grid-template-columns: 1fr;
    }

    .step-line {
        display: none;
    }

    .auth-container {
        grid-template-columns: 1fr;
    }

    .auth-left {
        display: none;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .tips-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table {
        overflow-x: auto;
    }

    .user-layout {
        grid-template-columns: 1fr;
    }

    .user-sidebar {
        position: static;
    }

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

@media (max-width: 768px) {
    .nav-content {
        flex-wrap: wrap;
    }

    .nav-menu {
        order: 3;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .hero-title {
        font-size: 2rem;
    }

    .hero-buttons {
        flex-direction: column;
    }

    .hero-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .features-grid {
        grid-template-columns: 1fr;
    }

    .dashboard-grid {
        grid-template-columns: 1fr;
    }

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

    .testimonials-grid {
        grid-template-columns: 1fr;
    }

    .overview-cards {
        grid-template-columns: 1fr;
    }

    .welcome-banner {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }

    .chart-bars {
        height: 150px;
    }

    /* 新版用户中心响应�?*/
    .header-nav {
        display: none;
    }

    .stats-grid {
        grid-template-columns: 1fr;
    }

    .content-grid {
        grid-template-columns: 1fr;
    }

    .page-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .sub-nav {
        overflow-x: auto;
        flex-wrap: nowrap;
    }

    .user-footer .footer-content {
        flex-direction: column;
        gap: 1rem;
        text-align: center;
    }
}

/* =================================
   使用记录页面样式
   ================================= */

/* 筛选器区域 */
.filter-section {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    flex-wrap: wrap;
}

.filter-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    min-width: 150px;
}

.filter-group label {
    font-size: 0.875rem;
    font-weight: 500;
    color: #64748b;
}

.filter-select,
.filter-input {
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.875rem;
    background: white;
    transition: all 0.3s;
}

.filter-select:hover,
.filter-select:focus,
.filter-input:hover,
.filter-input:focus {
    border-color: #3b82f6;
    outline: none;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 记录卡片 */
.records-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.records-table-wrapper {
    overflow-x: auto;
}

.records-table {
    width: 100%;
    border-collapse: collapse;
}

.records-table thead {
    background: #f8fafc;
    border-bottom: 2px solid #e2e8f0;
}

.records-table th {
    padding: 1rem;
    text-align: left;
    font-size: 0.875rem;
    font-weight: 600;
    color: #475569;
    white-space: nowrap;
}

.records-table td {
    padding: 1rem;
    border-bottom: 1px solid #e2e8f0;
    font-size: 0.875rem;
    color: #334155;
}

.records-table tbody tr {
    transition: background-color 0.2s;
}

.records-table tbody tr:hover {
    background: #f8fafc;
}

.records-table tbody tr:last-child td {
    border-bottom: none;
}

/* 请求ID */
.request-id {
    font-family: 'Courier New', monospace;
    font-size: 0.75rem;
    background: #f1f5f9;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    color: #475569;
}

/* 类型徽章 */
.type-badge {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.type-math {
    background: #dbeafe;
    color: #1e40af;
}

.type-text {
    background: #e0e7ff;
    color: #4338ca;
}

.type-slider {
    background: #fce7f3;
    color: #9f1239;
}

/* 状态徽�?*/
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.375rem;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.status-success {
    background: #dcfce7;
    color: #15803d;
}

.status-success::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #15803d;
    border-radius: 50%;
}

.status-failed {
    background: #fee2e2;
    color: #dc2626;
}

.status-failed::before {
    content: '';
    width: 6px;
    height: 6px;
    background: #dc2626;
    border-radius: 50%;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

.pagination-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-btn:not(:disabled):hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

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

.pagination-btn svg {
    width: 16px;
    height: 16px;
}

.pagination-numbers {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-number {
    min-width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #475569;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.pagination-number:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
}

.pagination-number.active {
    background: #3b82f6;
    border-color: #3b82f6;
    color: white;
}

.pagination-ellipsis {
    padding: 0 0.5rem;
    color: #94a3b8;
}

/* 响应�?- 使用记录 */
@media (max-width: 768px) {
    .filter-section {
        flex-direction: column;
    }

    .filter-group {
        width: 100%;
    }

    .records-table {
        font-size: 0.75rem;
    }

    .records-table th,
    .records-table td {
        padding: 0.75rem 0.5rem;
    }

    .pagination {
        flex-direction: column;
        gap: 1rem;
    }

    .pagination-numbers {
        flex-wrap: wrap;
        justify-content: center;
    }
}

/* =================================
   账单管理页面样式
   ================================= */

/* 余额卡片 */
.balance-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.balance-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s;
}

.balance-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.balance-card.primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.balance-header {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1rem;
}

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

.balance-card.primary .balance-icon {
    background: rgba(255, 255, 255, 0.2);
}

.balance-icon.secondary {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
}

.balance-icon.tertiary {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
}

.balance-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.balance-info {
    flex: 1;
}

.balance-label {
    font-size: 0.875rem;
    opacity: 0.9;
    margin-bottom: 0.25rem;
}

.balance-card:not(.primary) .balance-label {
    color: #64748b;
}

.balance-amount {
    font-size: 2rem;
    font-weight: 700;
}

.balance-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1rem;
}

.balance-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.625rem 1rem;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 8px;
    color: white;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

.balance-btn svg {
    width: 16px;
    height: 16px;
}

.balance-trend {
    margin-top: 0.5rem;
}

.trend-text {
    font-size: 0.875rem;
    color: #64748b;
}

.trend-text.positive {
    color: #15803d;
}

/* 消费统计图表 */
.billing-chart-card {
    background: white;
    border-radius: 12px;
    padding: 1.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 2rem;
}

.chart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 2rem;
}

.chart-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.chart-tabs {
    display: flex;
    gap: 0.5rem;
    background: #f1f5f9;
    padding: 0.25rem;
    border-radius: 8px;
}

.chart-tab {
    padding: 0.5rem 1rem;
    background: transparent;
    border: none;
    border-radius: 6px;
    color: #64748b;
    font-size: 0.875rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

.chart-tab:hover {
    color: #334155;
}

.chart-tab.active {
    background: white;
    color: #3b82f6;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

/* 账单记录卡片 */
.billing-records-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    overflow: hidden;
}

.records-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.records-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.records-filter {
    display: flex;
    gap: 0.75rem;
}

/* 账单列表 */
.billing-list {
    padding: 1rem 0;
}

.billing-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem 1.5rem;
    transition: background-color 0.2s;
}

.billing-item:hover {
    background: #f8fafc;
}

.billing-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    flex-shrink: 0;
}

.billing-icon.recharge {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.billing-icon.expense {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
}

.billing-icon svg {
    width: 24px;
    height: 24px;
    color: white;
}

.billing-details {
    flex: 1;
    min-width: 0;
}

.billing-title {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.25rem;
}

.billing-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1rem;
    font-size: 0.8125rem;
    color: #64748b;
}

.billing-meta span::before {
    content: '•';
    margin-right: 0.5rem;
    color: #cbd5e1;
}

.billing-meta span:first-child::before {
    display: none;
}

.billing-amount {
    font-size: 1.125rem;
    font-weight: 700;
    min-width: 100px;
    text-align: right;
}

.billing-amount.positive {
    color: #15803d;
}

.billing-amount.negative {
    color: #dc2626;
}

.billing-status {
    min-width: 80px;
    text-align: center;
    padding: 0.375rem 0.75rem;
    border-radius: 12px;
    font-size: 0.8125rem;
    font-weight: 500;
}

.billing-status.success {
    background: #dcfce7;
    color: #15803d;
}

/* 充值弹�?*/
.modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
}

.modal.active {
    opacity: 1;
    visibility: visible;
}

.modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

.modal-content {
    position: relative;
    background: white;
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow: auto;
    transform: scale(0.9);
    transition: transform 0.3s;
}

.modal.active .modal-content {
    transform: scale(1);
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.5rem;
    border-bottom: 1px solid #e2e8f0;
}

.modal-header h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #1e293b;
}

.modal-close {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: none;
    background: #f1f5f9;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

.modal-close:hover {
    background: #e2e8f0;
}

.modal-close svg {
    width: 20px;
    height: 20px;
    color: #64748b;
}

.modal-body {
    padding: 1.5rem;
}

.modal-footer {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding: 1.5rem;
    border-top: 1px solid #e2e8f0;
}

/* 充值表�?*/
.recharge-section {
    margin-bottom: 2rem;
}

.recharge-section:last-child {
    margin-bottom: 0;
}

.recharge-label {
    display: block;
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1rem;
}

.amount-options {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
    margin-bottom: 1rem;
}

.amount-option {
    padding: 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    color: #334155;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
}

.amount-option:hover {
    border-color: #3b82f6;
    background: #eff6ff;
}

.amount-option.active {
    border-color: #3b82f6;
    background: #3b82f6;
    color: white;
}

.custom-amount {
    margin-top: 1rem;
}

.custom-amount label {
    display: block;
    font-size: 0.875rem;
    color: #64748b;
    margin-bottom: 0.5rem;
}

.amount-input {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    font-size: 1rem;
    transition: all 0.3s;
}

.amount-input:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* 支付方式 */
.payment-methods {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

.payment-method {
    cursor: pointer;
}

.payment-method input[type="radio"] {
    display: none;
}

.payment-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    padding: 1.5rem;
    border: 2px solid #e2e8f0;
    border-radius: 8px;
    background: white;
    transition: all 0.3s;
}

.payment-method:hover .payment-card {
    border-color: #3b82f6;
    background: #eff6ff;
}

.payment-method input:checked + .payment-card {
    border-color: #3b82f6;
    background: #eff6ff;
}

.payment-card svg {
    width: 48px;
    height: 48px;
}

.payment-card span {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
}

.payment-check {
    position: absolute;
    top: 0.5rem;
    right: 0.5rem;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #3b82f6;
    border-radius: 50%;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    opacity: 0;
    transform: scale(0);
    transition: all 0.3s;
}

.payment-method input:checked + .payment-card .payment-check {
    opacity: 1;
    transform: scale(1);
}

/* 充值说�?*/
.recharge-notice {
    display: flex;
    gap: 1rem;
    padding: 1rem;
    background: #eff6ff;
    border-radius: 8px;
    border-left: 4px solid #3b82f6;
}

.recharge-notice svg {
    width: 20px;
    height: 20px;
    color: #3b82f6;
    flex-shrink: 0;
    margin-top: 0.125rem;
}

.recharge-notice p {
    margin: 0 0 0.5rem 0;
    font-size: 0.875rem;
    font-weight: 600;
    color: #1e40af;
}

.recharge-notice ul {
    margin: 0;
    padding-left: 1.25rem;
    font-size: 0.8125rem;
    color: #475569;
    line-height: 1.6;
}

.recharge-notice li {
    margin-bottom: 0.25rem;
}

/* 响应�?- 账单页面 */
@media (max-width: 768px) {
    .balance-cards {
        grid-template-columns: 1fr;
    }

    .chart-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .records-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .records-filter {
        width: 100%;
        flex-direction: column;
    }

    .billing-item {
        flex-wrap: wrap;
        gap: 0.75rem;
    }

    .billing-icon {
        width: 40px;
        height: 40px;
    }

    .billing-details {
        flex-basis: 100%;
        order: 2;
    }

    .billing-amount {
        order: 1;
        margin-left: auto;
    }

    .billing-status {
        order: 3;
        width: 100%;
    }

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

    .payment-methods {
        grid-template-columns: 1fr;
    }
}

/* =================================
   设置页面样式（简化版�?   ================================= */

/* 信息列表 */
.info-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
    border-bottom: 1px solid #e2e8f0;
}

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

.info-label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #64748b;
}

.info-value {
    font-size: 0.9375rem;
    color: #1e293b;
}

/* 账号信息卡片样式 */
.card-section-title {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

.account-info-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.25rem;
}

.account-info-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    padding: 1.25rem;
    background: #f8fafc;
    border-radius: 0.75rem;
    border: 1px solid #e2e8f0;
    transition: all 0.3s;
}

.account-info-item:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.info-icon-box {
    width: 3rem;
    height: 3rem;
    border-radius: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.info-icon-box svg {
    width: 1.5rem;
    height: 1.5rem;
    color: white;
}

.info-icon-box.blue {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.info-icon-box.purple {
    background: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
}

.info-icon-box.green {
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
}

.info-icon-box.orange {
    background: linear-gradient(135deg, #f59e0b 0%, #ea580c 100%);
}

.info-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.account-info-item .info-label {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #64748b;
}

.account-info-item .info-value {
    font-size: 0.9375rem;
    color: #1e293b;
    font-weight: 600;
}

/* 账号信息移动端适配 */
@media (max-width: 768px) {
    .account-info-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
}

/* 设置容器 */
.settings-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 2rem;
}

/* 设置侧边�?*/
.settings-sidebar {
    position: sticky;
    top: 6rem;
    height: fit-content;
}

.settings-nav {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    background: white;
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.settings-nav-link {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    border-radius: 8px;
    color: #64748b;
    font-size: 0.9375rem;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s;
}

.settings-nav-link:hover {
    background: #f1f5f9;
    color: #334155;
}

.settings-nav-link.active {
    background: #eff6ff;
    color: #3b82f6;
}

.settings-nav-link svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* 设置内容�?*/
.settings-content {
    min-width: 0;
}

.settings-section {
    display: none;
}

.settings-section.active {
    display: block;
}

.section-header {
    margin-bottom: 2rem;
}

.section-header h2 {
    font-size: 1.5rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 0.5rem;
}

.section-header p {
    color: #64748b;
    font-size: 0.9375rem;
}

/* 设置卡片 */
.settings-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    margin-bottom: 1.5rem;
}

.settings-card:last-child {
    margin-bottom: 0;
}

.settings-card h3 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #1e293b;
    margin-bottom: 1.5rem;
}

/* 头像上传 */
.avatar-upload {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
    padding-bottom: 2rem;
    border-bottom: 1px solid #e2e8f0;
}

.avatar-preview {
    width: 120px;
    height: 120px;
    border-radius: 12px;
    overflow: hidden;
    border: 2px solid #e2e8f0;
}

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

.avatar-actions {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.avatar-actions .btn-primary,
.avatar-actions .btn-secondary {
    width: fit-content;
}

.avatar-hint {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* 表单样式 */
.settings-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.settings-form .form-group {
    margin-bottom: 0;
}

.form-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.form-group label {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #334155;
}

.form-group input,
.form-group select,
.form-group textarea {
    padding: 0.75rem 1rem;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    font-size: 0.9375rem;
    transition: all 0.3s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #3b82f6;
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.form-group input[readonly] {
    background: #f8fafc;
    color: #94a3b8;
    cursor: not-allowed;
}

.form-group small {
    font-size: 0.8125rem;
    color: #64748b;
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.input-with-unit {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.input-with-unit input {
    flex: 1;
}

.input-with-unit .unit {
    font-size: 0.9375rem;
    color: #64748b;
    font-weight: 500;
}

.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
}

/* 安全设置�?*/
.security-item {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 1.5rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.security-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.security-item:first-child {
    padding-top: 0;
}

.security-info {
    flex: 1;
}

.security-info h3 {
    font-size: 1rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.security-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0 0 0.5rem 0;
}

.security-status {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.security-status.disabled {
    background: #fee2e2;
    color: #dc2626;
}

.security-status.enabled {
    background: #dcfce7;
    color: #15803d;
}

/* 危险区域 */
.danger-zone {
    border: 2px solid #fee2e2;
    background: #fef2f2;
}

.danger-zone h3 {
    color: #dc2626;
}

.btn-danger {
    padding: 0.625rem 1.25rem;
    background: #dc2626;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s;
}

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

/* 通知设置�?*/
.notification-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1.25rem 0;
    border-bottom: 1px solid #e2e8f0;
}

.notification-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.notification-item:first-child {
    padding-top: 0;
}

.notification-info {
    flex: 1;
}

.notification-info h4 {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #1e293b;
    margin: 0 0 0.25rem 0;
}

.notification-info p {
    font-size: 0.875rem;
    color: #64748b;
    margin: 0;
}

/* 开关按�?*/
.toggle-switch {
    position: relative;
    display: inline-block;
    width: 48px;
    height: 28px;
    cursor: pointer;
}

.toggle-switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.toggle-slider {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #cbd5e1;
    border-radius: 28px;
    transition: all 0.3s;
}

.toggle-slider:before {
    content: "";
    position: absolute;
    height: 20px;
    width: 20px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    border-radius: 50%;
    transition: all 0.3s;
}

.toggle-switch input:checked + .toggle-slider {
    background-color: #3b82f6;
}

.toggle-switch input:checked + .toggle-slider:before {
    transform: translateX(20px);
}

/* 响应�?- 设置页面 */
@media (max-width: 968px) {
    .settings-container {
        grid-template-columns: 1fr;
    }

    .settings-sidebar {
        position: static;
    }

    .settings-nav {
        flex-direction: row;
        overflow-x: auto;
        padding: 0.75rem;
    }

    .settings-nav-link {
        white-space: nowrap;
        flex-shrink: 0;
    }

    .settings-nav-link svg {
        display: none;
    }
}

@media (max-width: 768px) {
    .avatar-upload {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .form-row {
        grid-template-columns: 1fr;
    }

    .security-item,
    .notification-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 1rem;
    }

    .security-item button,
    .notification-item .toggle-switch {
        align-self: flex-end;
    }

    .form-actions {
        flex-direction: column-reverse;
    }

    .form-actions button {
        width: 100%;
    }
}

/* =================================
   现代化折线图样式
   ================================= */

.modern-chart-wrapper {
    position: relative;
    padding: 2rem 1rem 1rem 1rem;
}

.chart-grid {
    position: absolute;
    top: 2rem;
    left: 1rem;
    right: 1rem;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    pointer-events: none;
}

.grid-line {
    width: 100%;
    height: 1px;
    background: #e2e8f0;
}

.line-chart {
    width: 100%;
    height: 200px;
    margin-bottom: 1rem;
}

.chart-dot {
    transition: all 0.3s;
    cursor: pointer;
}

.chart-dot:hover {
    r: 8;
    fill: #764ba2;
    filter: drop-shadow(0 0 8px rgba(102, 126, 234, 0.5));
}

.chart-values {
    position: absolute;
    top: 0;
    left: 1rem;
    right: 1rem;
    height: 200px;
    pointer-events: none;
}

.chart-value-item {
    position: absolute;
    top: 0;
    transform: translateX(-50%);
}

.value-label {
    display: inline-block;
    padding: 0.25rem 0.5rem;
    background: #667eea;
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 4px;
    opacity: 0;
    transition: opacity 0.3s;
}

.modern-chart-wrapper:hover .value-label {
    opacity: 1;
}

.modern-chart-wrapper .chart-labels {
    display: flex;
    justify-content: space-between;
    gap: 0;
    padding: 0 1rem;
}

.modern-chart-wrapper .chart-labels span {
    font-size: 0.875rem;
    color: #64748b;
}

/* =================================
   消息提示样式
   ================================= */

.message-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 0.5rem;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    font-size: 0.9375rem;
    font-weight: 500;
    z-index: 10000;
    opacity: 0;
    transform: translateX(100%);
    transition: all 0.3s ease;
    max-width: 400px;
    word-wrap: break-word;
}

.message-toast.show {
    opacity: 1;
    transform: translateX(0);
}

.message-toast.message-success {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
}

.message-toast.message-error {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: #fff;
}

.message-toast.message-warning {
    background: linear-gradient(135deg, #fa709a 0%, #fee140 100%);
    color: #fff;
}

.message-toast.message-info {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: #fff;
}

/* =================================
   登录注册页面样式
   ================================= */

/* 登录注册容器 */
.auth-container {
    display: flex;
    min-height: 100vh;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.auth-left {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 3rem;
    color: white;
    position: relative;
    overflow: hidden;
}

.auth-brand {
    text-align: center;
    z-index: 2;
}

.auth-brand .logo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.auth-brand .logo-icon {
    font-size: 3rem;
}

.auth-brand .logo-text {
    font-size: 2rem;
    font-weight: 700;
}

.auth-brand h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.auth-brand p {
    font-size: 1.125rem;
    opacity: 0.9;
}

.auth-illustration {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
}

.illustration-circle {
    position: absolute;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    animation: float 6s ease-in-out infinite;
}

.circle-1 {
    width: 300px;
    height: 300px;
    top: 10%;
    left: 10%;
    animation-delay: 0s;
}

.circle-2 {
    width: 200px;
    height: 200px;
    bottom: 20%;
    right: 15%;
    animation-delay: 2s;
}

.circle-3 {
    width: 150px;
    height: 150px;
    top: 50%;
    right: 25%;
    animation-delay: 4s;
}

@keyframes float {
    0%, 100% {
        transform: translateY(0);
    }
    50% {
        transform: translateY(-20px);
    }
}

.auth-right {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    background: white;
    padding: 3rem;
}

.auth-form-container {
    width: 100%;
    max-width: 450px;
}

.auth-header {
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-dark);
    margin-bottom: 0.5rem;
}

.auth-header p {
    color: var(--text-gray);
    font-size: 1rem;
}

.auth-header p a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.auth-header p a:hover {
    text-decoration: underline;
}

.auth-form {
    margin-bottom: 1.5rem;
}

.auth-form .form-group {
    margin-bottom: 1.5rem;
}

.auth-form label {
    display: block;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
    font-weight: 500;
    font-size: 0.9375rem;
}

.auth-form input[type="text"],
.auth-form input[type="email"],
.auth-form input[type="password"],
.auth-form input[type="tel"] {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid var(--border-color);
    border-radius: 0.5rem;
    font-size: 1rem;
    transition: all 0.3s ease;
    background: white;
}

.auth-form input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
}

.checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    user-select: none;
}

.checkbox input[type="checkbox"] {
    margin-right: 0.5rem;
    cursor: pointer;
}

.checkbox span {
    color: var(--text-gray);
    font-size: 0.9375rem;
}

.forgot-password {
    color: var(--primary-color);
    text-decoration: none;
    font-size: 0.9375rem;
    font-weight: 500;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-block {
    width: 100%;
}

.auth-footer {
    text-align: center;
    margin-top: 2rem;
}

.back-home {
    color: var(--text-gray);
    text-decoration: none;
    font-size: 0.9375rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
}

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

/* 响应式设计 */
@media (max-width: 968px) {
    .auth-left {
        display: none;
    }
    
    .auth-right {
        flex: 1;
    }
}

@media (max-width: 640px) {
    .auth-right {
        padding: 2rem 1.5rem;
    }
    
    .auth-header h1 {
        font-size: 1.75rem;
    }
}

/* =================================
   管理后台样式
   ================================= */

/* 管理后台布局 */

