* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
    color: #333;
}

.container {
    width: 90%;
    max-width: 600px;
    background: #fff;
    border-radius: 16px;
    padding: 40px 30px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    text-align: center;
}

.icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
}

.loading-icon {
    border: 6px solid #e0e0e0;
    border-top: 6px solid #4A7AC9;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.safe-icon {
    display: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23008000'%3E%3Cpath d='M12 1L3 5v6c0 5.55 3.84 10.74 9 12 5.16-1.26 9-6.45 9-12V5l-9-4zm-1 6h2v5h-2V7zm0 7h2v2h-2v-2z'/%3E%3C/svg%3E");
}

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

.safe-text {
    font-size: 26px;
    font-weight: bold;
    color: #222;
    margin-bottom: 12px;
}

.safe-subtext {
    font-size: 16px;
    color: #666;
    margin-bottom: 24px;
}

.progress-bar {
    width: 100%;
    height: 10px;
    background: #e8e8e8;
    border-radius: 5px;
    overflow: hidden;
    margin-bottom: 30px;
}

.progress {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #4A7AC9, #008000);
    transition: width 0.3s ease;
}

.route-buttons {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    margin-bottom: 30px;
}

.route-btn {
    display: block;
    width: 100%;
    max-width: 320px;
    padding: 12px 20px;
    border-radius: 8px;
    text-decoration: none;
    text-align: center;
    font-size: 15px;
    font-weight: bold;
    color: #fff;
    background-color: #808080;
    transition: transform 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.route-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.footer {
    margin-top: 20px;
    color: #999;
    line-height: 1.8;
}

.download {
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px dashed #ddd;
    font-size: 14px;
    color: #555;
}

.download-button {
    display: inline-block;
    margin-left: 10px;
    padding: 8px 18px;
    background: #008000;
    color: #fff;
    border-radius: 6px;
    text-decoration: none;
    font-weight: bold;
}

.download-button:hover {
    background: #006400;
}

@media (max-width: 480px) {
    .container {
        padding: 30px 20px;
    }

    .safe-text {
        font-size: 22px;
    }

    .route-btn {
        width: 100%;
        text-align: center;
    }
}