/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    transition: all 0.3s ease;
}

.container {
    width: 100%;
    max-width: 500px;
    animation: slideInUp 0.8s ease-out;
}

/* 玻璃态卡片 */
.glass-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 40px 30px;
    box-shadow: 
        0 8px 32px rgba(31, 38, 135, 0.37),
        0 2px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.glass-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.1),
        transparent
    );
    transition: left 0.6s ease;
}

.glass-card:hover::before {
    left: 100%;
}

/* 标题样式 */
h1 {
    text-align: center;
    color: #fff;
    font-size: 2.5em;
    margin-bottom: 10px;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

h2 {
    color: #fff;
    text-align: center;
    margin-bottom: 25px;
    font-weight: 300;
    opacity: 0.9;
}

h3 {
    color: #fff;
    margin-bottom: 15px;
    font-weight: 400;
}

/* 输入框组 */
.input-group {
    margin-bottom: 25px;
    position: relative;
}

input[type="text"],
input[type="number"] {
    width: 100%;
    padding: 15px 20px;
    border: none;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 16px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    backdrop-filter: blur(5px);
}

input[type="text"]:focus,
input[type="number"]:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 0 20px rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

input::placeholder {
    color: rgba(255, 255, 255, 0.7);
}

/* 按钮样式 */
.btn-primary, .btn-secondary, .btn-download {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.1));
    color: #fff;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.btn-primary:hover, .btn-secondary:hover, .btn-download:hover {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0.2));
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.btn-primary:active, .btn-secondary:active, .btn-download:active {
    transform: translateY(-1px);
}

/* 换一题按钮样式 */
.btn-secondary {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.4), rgba(255, 152, 0, 0.2));
    color: #fff;
    border: 1px solid rgba(255, 152, 0, 0.4);
    padding: 12px 20px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 152, 0, 0.2);
}

.btn-secondary:hover {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.5), rgba(255, 152, 0, 0.3));
    transform: translateY(-2px) rotate(3deg);
    box-shadow: 0 6px 20px rgba(255, 152, 0, 0.4);
}

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

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

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

/* 加载状态下的换一题按钮 */
.btn-secondary.btn-loading {
    color: transparent;
    pointer-events: none;
}

.btn-secondary.btn-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    top: 50%;
    left: 50%;
    margin-left: -10px;
    margin-top: -10px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top: 2px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 数学题输入组的换一题按钮特殊样式 */
.math-input-group .btn-secondary {
    min-width: 100px;
    white-space: nowrap;
    margin-left: 10px;
}

/* 按钮脉冲动画 */
@keyframes pulseOrange {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 152, 0, 0.6);
    }
}

/* 添加橙色脉冲动画到换一题按钮 */
.btn-secondary {
    animation: pulseOrange 3s infinite;
}

.btn-download.local {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.1));
    animation: pulseGreen 2s infinite;
}

.btn-download.no-injection {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.1));
    animation: pulseBlue 2s infinite;
}

/* 错误消息 */
.error-message {
    background: linear-gradient(135deg, rgba(244, 67, 54, 0.2), rgba(244, 67, 54, 0.1));
    border: 1px solid rgba(244, 67, 54, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
    animation: shake 0.5s ease-in-out;
    backdrop-filter: blur(10px);
}

/* 验证过程样式 */
.verification-process {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.15), rgba(76, 175, 80, 0.05));
    border: 1px solid rgba(76, 175, 80, 0.3);
    border-radius: 15px;
    padding: 30px;
    margin: 25px 0;
    text-align: center;
    animation: fadeInUp 0.6s ease-out;
    backdrop-filter: blur(10px);
}

.verification-animation {
    margin-bottom: 25px;
}

.verification-dots {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 20px;
    gap: 12px;
}

.dot {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: #4CAF50;
    animation: dotPulse 1.4s ease-in-out infinite both;
    box-shadow: 0 0 10px rgba(76, 175, 80, 0.5);
}

.dot:nth-child(2) {
    animation-delay: 0.2s;
}

.dot:nth-child(3) {
    animation-delay: 0.4s;
}

.verification-code {
    font-family: 'Courier New', monospace;
    font-size: 22px;
    font-weight: bold;
    color: #4CAF50;
    margin: 20px 0;
    padding: 15px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    animation: codeGlow 2s ease-in-out infinite;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.countdown {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    margin-top: 15px;
    font-weight: 300;
}

/* 数学题样式 */
.math-problem {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 25px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

#math-question {
    font-size: 18px;
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: 500;
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    backdrop-filter: blur(5px);
}

.math-input-group {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 0;
}

.math-input-group input {
    flex: 1;
    margin-right: 0;
}

.math-input-group .btn-secondary {
    width: auto;
    min-width: 120px;
    white-space: nowrap;
    transition: all 0.3s ease;
}

.math-input-group .btn-secondary:hover {
    transform: rotate(5deg);
}

/* 滑块验证样式 */
.slider-verify-container {
    margin: 20px 0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.slider-status {
    text-align: center;
    margin-top: 10px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.slider-status.verified {
    color: #4CAF50;
    font-weight: bold;
}

.slider-status.error {
    color: #f44336;
}

/* 自定义滑块验证器样式 */
.slider-verify-wrapper {
    position: relative;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border-radius: 20px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.slider-verify-track {
    position: absolute;
    top: 0;
    left: 0;
    height: 100%;
    background: linear-gradient(90deg, rgba(33, 150, 243, 0.6), rgba(76, 175, 80, 0.8));
    border-radius: 20px;
    transition: width 0.1s ease;
    box-shadow: 0 0 10px rgba(33, 150, 243, 0.3);
}

.slider-verify-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 40px;
    height: 40px;
    background: #fff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    cursor: grab;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: all 0.3s ease;
}

.slider-verify-thumb:active {
    cursor: grabbing;
    transform: scale(0.95);
}

.slider-verify-thumb::after {
    content: '→';
    color: #2196F3;
    font-weight: bold;
}

.slider-verify-thumb.verified {
    background: #4CAF50;
}

.slider-verify-thumb.verified::after {
    content: '✓';
    color: #fff;
}

.slider-verify-text {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 14px;
    pointer-events: none;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
}

.slider-verify-refresh {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: #fff;
    cursor: pointer;
    z-index: 3;
    padding: 5px;
    border-radius: 50%;
    transition: all 0.3s ease;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.slider-verify-refresh:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-50%) rotate(90deg);
}

/* 成功动画 */
@keyframes successShine {
    0% {
        transform: translateX(-100%);
    }
    100% {
        transform: translateX(100%);
    }
}

@keyframes sliderShake {
    0%, 100% {
        transform: translateX(0);
    }
    25% {
        transform: translateX(-5px);
    }
    75% {
        transform: translateX(5px);
    }
}

/* 下载按钮区域 */
.download-buttons {
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.btn-download {
    position: relative;
    overflow: hidden;
    padding: 18px 25px;
    font-size: 16px;
    font-weight: 500;
    border-radius: 12px;
    transition: all 0.4s ease;
}

.btn-download::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.6s;
}

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

.btn-download:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* 分支组样式 */
.branch-group {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.branch-title {
    color: #fff;
    text-align: center;
    margin-bottom: 15px;
    font-size: 18px;
    font-weight: 500;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 不同分支按钮颜色区分（可选，保持原有风格不变） */
.branch-group:nth-child(2) .btn-download.local {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.1));
    animation: pulseGreen 2s infinite;
}
.branch-group:nth-child(2) .btn-download.no-injection {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.1));
    animation: pulseBlue 2s infinite;
}

.branch-group:nth-child(3) .btn-download.local {
    background: linear-gradient(135deg, rgba(156, 39, 176, 0.3), rgba(156, 39, 176, 0.1));
    animation: pulsePurple 2s infinite;
}
.branch-group:nth-child(3) .btn-download.no-injection {
    background: linear-gradient(135deg, rgba(255, 87, 34, 0.3), rgba(255, 87, 34, 0.1));
    animation: pulseOrange 2s infinite;
}

.branch-group:nth-child(4) .btn-download.local {
    background: linear-gradient(135deg, rgba(0, 188, 212, 0.3), rgba(0, 188, 212, 0.1));
    animation: pulseCyan 2s infinite;
}
.branch-group:nth-child(4) .btn-download.no-injection {
    background: linear-gradient(135deg, rgba(255, 235, 59, 0.3), rgba(255, 235, 59, 0.1));
    animation: pulseYellow 2s infinite;
}

/* 新增分支动画 */
@keyframes pulsePurple {
    0%, 100% { box-shadow: 0 4px 15px rgba(156, 39, 176, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(156, 39, 176, 0.6); }
}
@keyframes pulseCyan {
    0%, 100% { box-shadow: 0 4px 15px rgba(0, 188, 212, 0.3); }
    50% { box-shadow: 0 4px 25px rgba(0, 188, 212, 0.6); }
}

/* 响应式调整 */
@media (max-width: 768px) {
    .branch-group {
        padding: 15px;
        margin-bottom: 15px;
    }
}

/* 帮助链接样式 */
.help-section {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: 25px;
    padding: 15px;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.help-section:hover {
    background: rgba(255, 255, 255, 0.08);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.help-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.1), transparent);
    transition: left 0.6s ease;
}

.help-section:hover::before {
    left: 100%;
}

.help-icon {
    width: 30px;
    height: 30px;
    background: linear-gradient(135deg, #FF9800, #F57C00);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: bold;
    font-size: 16px;
    margin-right: 12px;
    box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    animation: helpPulse 2s infinite;
}

.help-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    text-align: center;
}

.help-link {
    color: #4FC3F7;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    padding: 2px 4px;
    border-radius: 4px;
}

.help-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 2px;
    background: #4FC3F7;
    transition: width 0.3s ease;
}

.help-link:hover {
    color: #29B6F6;
    background: rgba(79, 195, 247, 0.1);
}

.help-link:hover::after {
    width: 100%;
}

/* 动画效果 */
@keyframes helpPulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 10px rgba(255, 152, 0, 0.3);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 4px 15px rgba(255, 152, 0, 0.5);
    }
}

/* 响应式调整 */
@media (max-width: 480px) {
    .help-section {
        flex-direction: column;
        text-align: center;
        padding: 12px;
    }
    
    .help-icon {
        margin-right: 0;
        margin-bottom: 8px;
    }
    
    .help-text {
        font-size: 13px;
    }
}

/* 加载遮罩 */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    backdrop-filter: blur(15px);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    display: none;
    animation: overlayFadeIn 0.4s ease-out;
}

.loading-spinner {
    border: 4px solid rgba(255, 255, 255, 0.1);
    border-top: 4px solid #3498db;
    border-right: 4px solid #3498db;
    border-radius: 50%;
    width: 70px;
    height: 70px;
    animation: spin 1.2s linear infinite;
    box-shadow: 0 0 30px rgba(52, 152, 219, 0.5);
}

.loading-text {
    color: #fff;
    margin-top: 20px;
    font-size: 18px;
    animation: textPulse 2s ease-in-out infinite;
    font-weight: 300;
    letter-spacing: 1px;
}

/* 按钮加载状态 */
.btn-loading {
    position: relative;
    color: transparent !important;
    pointer-events: none;
}

.btn-loading::after {
    content: '';
    position: absolute;
    width: 24px;
    height: 24px;
    top: 50%;
    left: 50%;
    margin-left: -12px;
    margin-top: -12px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top: 3px solid #fff;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* 动画定义 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

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

@keyframes dotPulse {
    0%, 80%, 100% {
        transform: scale(0.8);
        opacity: 0.5;
        box-shadow: 0 0 5px rgba(76, 175, 80, 0.3);
    }
    40% {
        transform: scale(1.3);
        opacity: 1;
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.8);
    }
}

@keyframes codeGlow {
    0%, 100% {
        box-shadow: 0 0 15px rgba(76, 175, 80, 0.4);
        transform: scale(1);
    }
    50% {
        box-shadow: 0 0 30px rgba(76, 175, 80, 0.8);
        transform: scale(1.02);
    }
}

@keyframes overlayFadeIn {
    from {
        opacity: 0;
        backdrop-filter: blur(0px);
    }
    to {
        opacity: 1;
        backdrop-filter: blur(15px);
    }
}

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

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

@keyframes shake {
    0%, 100% { 
        transform: translateX(0); 
    }
    25% { 
        transform: translateX(-8px); 
    }
    75% { 
        transform: translateX(8px); 
    }
}

@keyframes pulseGreen {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(76, 175, 80, 0.6);
    }
}

@keyframes pulseBlue {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(33, 150, 243, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(33, 150, 243, 0.6);
    }
}

@keyframes shimmer {
    0% {
        left: -100%;
    }
    100% {
        left: 100%;
    }
}

/* 响应式优化 */
@media (max-width: 768px) {
    body {
        padding: 15px;
    }
    
    .container {
        max-width: 100%;
    }
    
    .glass-card {
        padding: 30px 20px;
        border-radius: 15px;
    }
    
    h1 {
        font-size: 2em;
    }
    
    .math-input-group {
        flex-direction: column;
    }
    
    .math-input-group .btn-secondary {
        width: 100%;
        min-width: auto;
    }
    
    .download-buttons {
        gap: 12px;
    }
    
    .btn-download {
        padding: 16px 20px;
        font-size: 15px;
    }
}

@media (max-width: 480px) {
    .glass-card {
        padding: 25px 15px;
    }
    
    h1 {
        font-size: 1.8em;
    }
    
    h2 {
        font-size: 1.3em;
    }
    
    input[type="text"],
    input[type="number"] {
        padding: 12px 15px;
    }
    
    .btn-primary, .btn-secondary, .btn-download {
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .verification-process {
        padding: 20px 15px;
    }
    
    .verification-code {
        font-size: 18px;
        padding: 12px;
    }
}

/* 滚动条样式优化 */
::-webkit-scrollbar {
    width: 8px;
}

::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

/* 在原有CSS末尾添加流量统计样式 */

/* 流量统计样式 */
.traffic-stats {
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 12px 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.15);
    animation: fadeInUp 0.6s ease-out;
}

.traffic-icon {
    font-size: 20px;
    margin-right: 10px;
    animation: bounce 2s infinite;
}

.traffic-text {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    font-weight: 500;
}

.traffic-number {
    color: #4FC3F7;
    font-weight: bold;
    font-size: 16px;
    text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
    animation: pulseTraffic 3s infinite;
}

@keyframes pulseTraffic {
    0%, 100% {
        text-shadow: 0 0 10px rgba(79, 195, 247, 0.5);
    }
    50% {
        text-shadow: 0 0 20px rgba(79, 195, 247, 0.8);
    }
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translateY(0);
    }
    40% {
        transform: translateY(-5px);
    }
    60% {
        transform: translateY(-3px);
    }
}

/* 限制提示样式 */
.limit-message {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.2), rgba(255, 152, 0, 0.1));
    border: 1px solid rgba(255, 152, 0, 0.3);
    border-radius: 12px;
    padding: 15px;
    margin: 15px 0;
    color: #fff;
    text-align: center;
    animation: fadeInUp 0.5s ease-out;
    backdrop-filter: blur(10px);
}

.limit-message h3 {
    color: #FF9800;
    margin-bottom: 8px;
}

.limit-message p {
    margin: 5px 0;
    opacity: 0.9;
    font-size: 14px;
}

/* 弹窗验证样式 */
.verify-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: flex-start; /* 改为顶部对齐 */
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    overflow-y: auto; /* 允许垂直滚动 */
    padding: 20px 0; /* 添加上下内边距 */
}

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

.modal-content {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(20px);
    border-radius: 20px;
    padding: 30px;
    width: 90%;
    max-width: 500px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
    transform: translateY(-30px) scale(0.9);
    transition: all 0.4s ease;
    position: relative;
    margin: 20px 0; /* 添加上下外边距 */
    max-height: 90vh; /* 限制最大高度 */
    overflow-y: auto; /* 内容过多时可滚动 */
}

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

/* 弹窗滚动条样式 */
.modal-content::-webkit-scrollbar {
    width: 6px;
}

.modal-content::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.modal-content::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.5);
}

.modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: #fff;
    font-size: 24px;
    cursor: pointer;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.3s ease;
    z-index: 1001;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: rotate(90deg) scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.modal-close:active {
    transform: rotate(90deg) scale(0.95);
}

/* 弹窗标题样式调整 */
.modal-title {
    color: #fff;
    text-align: center;
    margin-bottom: 20px;
    font-size: 1.8em;
    background: linear-gradient(45deg, #fff, #e3f2fd);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* 弹窗内的数学题和滑块样式 */
.modal-math-problem {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-slider-verify {
    margin: 20px 0;
}

/* 确认验证按钮 */
.btn-confirm-verify {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.1));
    color: #fff;
    border: 1px solid rgba(33, 150, 243, 0.4);
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.btn-confirm-verify:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(33, 150, 243, 0.2));
    transform: translateY(-2px);
}

.btn-confirm-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 弹窗响应式调整 */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
        margin: 10px;
        max-height: 85vh; /* 在移动设备上调整最大高度 */
    }
    
    .modal-title {
        font-size: 1.5em;
    }
    
    .verify-modal {
        padding: 10px 0; /* 移动设备上减少内边距 */
    }
}

/* 添加弹窗内容区域的平滑滚动 */
.modal-content {
    scroll-behavior: smooth;
}

/* 弹窗打开时的动画优化 */
@keyframes modalSlideIn {
    from {
        opacity: 0;
        transform: translateY(-50px) scale(0.95);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.verify-modal.active .modal-content {
    animation: modalSlideIn 0.4s ease-out;
}

/* 验证按钮样式 */
.btn-verify {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.3), rgba(255, 193, 7, 0.1));
    color: #fff;
    border: 1px solid rgba(255, 193, 7, 0.4);
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
    backdrop-filter: blur(10px);
    box-shadow: 0 4px 15px rgba(255, 193, 7, 0.2);
    width: 100%;
    margin: 20px 0;
    animation: pulseYellow 2s infinite;
}

.btn-verify:hover {
    background: linear-gradient(135deg, rgba(255, 193, 7, 0.4), rgba(255, 193, 7, 0.2));
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 193, 7, 0.4);
}

.btn-verify.verified {
    background: linear-gradient(135deg, rgba(76, 175, 80, 0.3), rgba(76, 175, 80, 0.1));
    border: 1px solid rgba(76, 175, 80, 0.4);
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.2);
    animation: pulseGreen 2s infinite;
}

.btn-verify.verified::before {
    content: '✓ ';
    margin-right: 8px;
}

@keyframes pulseYellow {
    0%, 100% {
        box-shadow: 0 4px 15px rgba(255, 193, 7, 0.3);
    }
    50% {
        box-shadow: 0 4px 25px rgba(255, 193, 7, 0.6);
    }
}

/* 弹窗内的数学题和滑块样式 */
.modal-math-problem {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.modal-slider-verify {
    margin: 20px 0;
}

/* 确认验证按钮 */
.btn-confirm-verify {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.3), rgba(33, 150, 243, 0.1));
    color: #fff;
    border: 1px solid rgba(33, 150, 243, 0.4);
    padding: 15px 25px;
    border-radius: 12px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: all 0.3s ease;
    width: 100%;
    margin-top: 20px;
    backdrop-filter: blur(10px);
}

.btn-confirm-verify:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(33, 150, 243, 0.4), rgba(33, 150, 243, 0.2));
    transform: translateY(-2px);
}

.btn-confirm-verify:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

/* 弹窗响应式调整 */
@media (max-width: 480px) {
    .modal-content {
        padding: 20px 15px;
        margin: 20px;
    }
    
    .modal-title {
        font-size: 1.5em;
    }
}

/* 邮箱验证样式 */
.modal-email-verify {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 15px;
    padding: 20px;
    margin-bottom: 20px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.email-input-group {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.email-input-group input {
    flex: 1;
    margin-bottom: 0;
}

.btn-send-code {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.4), rgba(255, 152, 0, 0.2));
    color: #fff;
    border: 1px solid rgba(255, 152, 0, 0.4);
    padding: 12px 15px;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    white-space: nowrap;
    backdrop-filter: blur(10px);
}

.btn-send-code:hover:not(:disabled) {
    background: linear-gradient(135deg, rgba(255, 152, 0, 0.5), rgba(255, 152, 0, 0.3));
    transform: translateY(-2px);
}

.btn-send-code:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.email-timer {
    text-align: center;
    color: #4CAF50;
    font-size: 14px;
    margin-top: 10px;
    animation: fadeIn 0.5s ease;
}

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

/* 添加到 download.css */

/* 1. 开启GPU加速 */
.slider-verify-wrapper {
    will-change: transform;
    transform: translateZ(0);
    backface-visibility: hidden;
    perspective: 1000px;
}

/* 2. 优化滑块动画 */
.slider-verify-thumb {
    transition: transform 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform: translateZ(0);
    will-change: transform;
}

.slider-verify-track {
    transition: transform 0.16s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    transform-origin: left;
    transform: translateZ(0);
    will-change: transform;
}

/* 3. 优化弹窗动画 */
.verify-modal {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s;
    transform: translateZ(0);
}

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

.modal-content {
    transform: scale(0.9) translateY(-20px);
    transition: transform 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

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

/* 4. 禁用不必要的动画 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* 5. 优化按钮动画 */
.btn-download {
    transition: transform 0.2s cubic-bezier(0.25, 0.46, 0.45, 0.94),
                box-shadow 0.2s ease;
}

.btn-download:hover {
    transform: translateY(-2px) scale(1.02);
}

/* 6. 滚动优化 */
body.no-scroll {
    position: fixed;
    width: 100%;
    overflow: hidden;
}

/* 7. 图层提升 */
.verification-process {
    isolation: isolate; /* 创建新的层叠上下文 */
}

/* 8. 优化粒子动画 */
@keyframes particleFade {
    0% { opacity: 1; transform: translate(0, 0) scale(1); }
    100% { opacity: 0; transform: translate(var(--tx), var(--ty)) scale(0); }
}

.particle {
    animation: particleFade 0.6s ease-out forwards;
    will-change: transform, opacity;
}