:root {
    --primary: #28a745;
    --primary-dark: #218838;
    --bg: #f9f9f9;
    --text: #333;
    --radius: 8px;
    --shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

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

body {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text);
    background-color: var(--bg);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    overflow-x: hidden;
}

/* 容器样式 */
.container {
    width: 100%;
    max-width: 600px;
    background: white;
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin: 20px auto;
    position: relative;
}

/* 图标样式 */
.icon {
    //width: 80px;
    width: 180px;
    height: 80px;
    margin: 0 auto 15px;
    background-size: contain;
    background-position: center;
    background-repeat: no-repeat;
}

.loading-icon {
    background-image: url('logo.png');
    //animation: spin 2s linear infinite;
}

.safe-icon {
    background-image: url('safe-check.png');
    display: none;
}

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

/* 文字样式 */
.safe-text {
    font-size: 22px;
    font-weight: bold;
    margin: 15px 0;
    color: var(--primary);
}

/* 进度条 */
.progress-container {
    width: 100%;
    margin: 20px 0;
}

.progress-bar {
    height: 10px;
    background-color: #eee;
    border-radius: 5px;
    overflow: hidden;
    position: relative;
}

.progress {
    height: 100%;
    width: 0;
    background-color: var(--primary);
    transition: width 0.5s ease, background-color 0.3s;
}

/* 按钮样式 */
.route-btn {
    display: block;
    width: 100%;
    padding: 15px;
    margin: 10px 0;
    background-color: var(--primary);
    color: white;
    border: none;
    border-radius: var(--radius);
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-align: center;
    text-decoration: none;
}

.route-btn:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
}

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

/* 页脚样式 */
.footer {
    margin-top: 30px;
    padding: 15px 0;
    border-top: 2px solid var(--primary);
    width: 100%;
    font-size: 12px;
    color: #666;
}

.footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: bold;
}

.footer a:hover {
    text-decoration: underline;
}

/* 响应式设计 */
@media (max-width: 480px) {
    .container {
        padding: 15px;
        margin: 15px auto;
    }
    
    .icon {
        //width: 60px;
        width: 160px;
        height: 60px;
    }
    
    .route-btn {
        padding: 12px;
        font-size: 16px;
    }
}

/* 辅助类 */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mb-20 { margin-bottom: 20px; }
.hidden { display: none; }