/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', 'Microsoft YaHei', sans-serif;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* 允许输入框和文本域选择文本 */
input, textarea {
    -webkit-user-select: text;
    -moz-user-select: text;
    -ms-user-select: text;
    user-select: text;
}

/* 防止图片拖拽 */
img {
    -webkit-user-drag: none;
    -moz-user-drag: none;
    -o-user-drag: none;
    -ms-user-drag: none;
    user-drag: none;
}

/* 页面布局 */
body {
    background: linear-gradient(135deg, #1a2980, #26d0ce);
    color: #333;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.container {
    max-width: 800px;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
    overflow: hidden;
}

/* 头部样式 */
.header {
    background: linear-gradient(to right, #2c3e50, #4ca1af);
    color: white;
    padding: 25px 30px;
    text-align: center;
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
}

.header p {
    opacity: 0.9;
    font-size: 1.1rem;
}

/* 内容区域 */
.content {
    padding: 40px 30px;
}

/* 状态卡片 */
.status-card {
    background-color: #f8f9fa;
    border-radius: 15px;
    padding: 25px;
    margin-bottom: 30px;
    border-left: 5px solid #4ca1af;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

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

.status-title {
    font-size: 1.4rem;
    color: #2c3e50;
    font-weight: 600;
}

.timer {
    font-size: 1.3rem;
    font-weight: 700;
    color: #e74c3c;
    background-color: rgba(231, 76, 60, 0.1);
    padding: 8px 15px;
    border-radius: 50px;
}

/* 进度条 */
.progress-container {
    margin: 30px 0 40px;
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
    font-weight: 500;
    color: #555;
}

.progress-bar {
    height: 20px;
    background-color: #e0e0e0;
    border-radius: 10px;
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(to right, #2ecc71, #1abc9c);
    width: 0%;
    border-radius: 10px;
    transition: width 0.5s ease;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    padding-right: 10px;
    color: white;
    font-weight: 600;
    font-size: 0.85rem;
}

/* 步骤指示器 */
.optimization-steps {
    margin: 30px 0;
}

.step {
    display: flex;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.step:last-child {
    border-bottom: none;
}

.step-icon {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #f1f8ff;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 15px;
    color: #4ca1af;
    font-weight: bold;
}

.step.completed .step-icon {
    background-color: #d5f4e6;
    color: #2ecc71;
}

.step.active .step-icon {
    background-color: #4ca1af;
    color: white;
    animation: pulse 1.5s infinite;
}

@keyframes pulse {
    0% { box-shadow: 0 0 0 0 rgba(76, 161, 175, 0.7); }
    70% { box-shadow: 0 0 0 10px rgba(76, 161, 175, 0); }
    100% { box-shadow: 0 0 0 0 rgba(76, 161, 175, 0); }
}

.step-info h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
    color: #2c3e50;
}

.step-info p {
    color: #7f8c8d;
    font-size: 0.95rem;
}

/* 按钮区域 */
.actions {
    display: flex;
    gap: 20px;
    margin-top: 40px;
    justify-content: center;
    flex-wrap: wrap;
}

/* 按钮基础样式 */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 14px 30px;
    border-radius: 50px;
    border: none;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 180px;
    text-align: center;
    white-space: nowrap;
    position: relative;
    overflow: hidden;
}

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

.btn:hover:not(:disabled) {
    transform: translateY(-3px);
    box-shadow: 0 7px 15px rgba(0, 0, 0, 0.2);
}

.btn:active:not(:disabled) {
    transform: translateY(0);
}

/* 主要按钮 - 立即跳转 */
.btn-primary {
    background: linear-gradient(135deg, #4ca1af, #2c3e50);
    color: white;
    box-shadow: 0 5px 15px rgba(44, 62, 80, 0.2);
}

.btn-primary:hover:not(:disabled) {
    background: linear-gradient(135deg, #3a8b97, #1c2833);
    box-shadow: 0 7px 20px rgba(44, 62, 80, 0.3);
}

/* 次要按钮 - 重新跳转 */
.btn-secondary {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
    box-shadow: 0 5px 15px rgba(46, 204, 113, 0.2);
    border: none; /* 移除边框，改为背景色填充 */
}

.btn-secondary:hover:not(:disabled) {
    background: linear-gradient(135deg, #27ae60, #1e8449);
    box-shadow: 0 7px 20px rgba(46, 204, 113, 0.3);
}

/* 按钮波纹效果 */
.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    opacity: 0;
    border-radius: 100%;
    transform: scale(1, 1) translate(-50%);
    transform-origin: 50% 50%;
}

.btn:focus:not(:active)::after {
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: scale(0, 0);
        opacity: 0.5;
    }
    20% {
        transform: scale(25, 25);
        opacity: 0.3;
    }
    100% {
        opacity: 0;
        transform: scale(40, 40);
    }
}

/* 页脚 */
.footer {
    text-align: center;
    padding: 20px;
    color: #7f8c8d;
    font-size: 0.9rem;
    border-top: 1px solid #eee;
    background-color: #f8f9fa;
}

/* 跳转通知 */
.redirect-notice {
    background-color: #fff8e1;
    border-radius: 10px;
    padding: 15px;
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    color: #ff8f00;
    border-left: 4px solid #ffc107;
}

/* 警告消息 */
.warning-message {
    position: fixed;
    top: 20px;
    right: 20px;
    background: #ff4444;
    color: white;
    padding: 15px 20px;
    border-radius: 5px;
    z-index: 99999;
    font-family: Arial, sans-serif;
    font-size: 14px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
    animation: fadeIn 0.3s ease;
    max-width: 300px;
}

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

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

/* 加载动画 */
.loading-spinner {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    border-top-color: white;
    animation: spin 1s ease-in-out infinite;
}

.fa-spinner {
    animation: spin 1s linear infinite;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .header h1 {
        font-size: 1.8rem;
    }
    
    .content {
        padding: 25px 20px;
    }
    
    .actions {
        flex-direction: column;
        width: 100%;
    }
    
    .btn {
        width: 100%;
        min-width: auto;
    }
    
    .warning-message {
        left: 20px;
        right: 20px;
        max-width: none;
    }
}

@media (max-width: 600px) {
    .container {
        border-radius: 15px;
    }
    
    .header {
        padding: 20px 15px;
    }
    
    .header h1 {
        font-size: 1.5rem;
        flex-direction: column;
        gap: 10px;
    }
    
    .status-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    
    .timer {
        align-self: flex-start;
    }
}

/* 隐藏元素（用于SEO或特定功能） */
.hide-box,
.cra-box,
.s-box {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    clip-path: inset(50%);
    white-space: nowrap;
    border: 0;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    z-index: -9999;
}

/* 作者信息注释 */
/* 首创者：1元性价比机场官网 */
/* 网站联系：www.bj999.cc */
/* 创建日期：2026-04-25 */
/* 更新日期：2026-04-26 - 优化按钮样式，添加重新跳转功能 */