/* 美化后的CSS */
body {
    font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', Arial, sans-serif;
    color: #333;
    background-color: #f9f9f9;
    background-image: linear-gradient(120deg, #f0f9ff 0%, #f9f9f9 100%);
    padding: 20px;
    transition: all 0.3s ease;
    animation: fadeIn 0.6s ease-out;
    margin: 0;
    overflow-x: hidden;
}

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

header {
    text-align: center;
    margin: 30px 0;
    padding: 20px;
}

h1 {
    font-size: 2em;
    color: #2c3e50;
    margin-bottom: 15px;
    font-weight: 600;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

main {
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
}

p {
    line-height: 1.8;
    margin-bottom: 15px;
    color: #444;
    font-size: 1.1em;
}

.link {
    color: #4a90e2;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease, text-decoration 0.3s ease;
}

.link:hover {
    color: #357abd;
}

.announcement {
    margin-bottom: 20px;
    padding: 20px;
    background-color: #e9ecef;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.announcement h3 {
    margin-top: 0;
    margin-bottom: 15px;
    font-size: 1.3em;
    color: #2c3e50;
}

.announcement p {
    font-size: 1em;
    color: #343a40;
}

.password-info {
    text-align: center;
    padding: 25px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    transition: all 0.3s ease;
}

.password-info:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.15);
}

.timestamp {
    font-weight: 500;
    color: #666;
    font-size: 1.1em;
}

.password {
    font-size: 1.8em;
    font-weight: 600;
    color: #4a90e2;
    display: inline-block;
    padding: 10px 20px;
    border-radius: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #e2e5e9 100%);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.password:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: #357abd;
}

.btn-toggle {
    display: inline-block;
    padding: 12px 30px;
    font-size: 1.1em;
    font-weight: 600;
    color: #ffffff;
    background: linear-gradient(135deg, #4a90e2 0%, #357abd 100%);
    border: none;
    border-radius: 30px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    position: relative;
    overflow: hidden;
}

.btn-toggle:hover {
    background: linear-gradient(135deg, #357abd 0%, #2d6da3 100%);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.btn-toggle:active {
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
}

.btn-toggle:disabled {
    background: #cccccc;
    cursor: not-allowed;
    box-shadow: 0 0 0 rgba(0, 0, 0, 0);
}

.copy-icon {
    margin-right: 8px;
}

.copy-text {
    transition: all 0.3s ease;
}

.vpn-status {
    margin-top: 30px;
    padding: 20px;
    background-color: #fff;
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.vpn-status h3 {
    color: #2c3e50;
    margin-bottom: 15px;
    font-size: 1.3em;
    padding-bottom: 10px;
    border-bottom: 2px solid #eee;
}

.status-item, .session-info {
    margin: 8px 0;
    padding: 10px;
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.session-info {
    display: none;
}

.checking {
    background-color: #f8f9fa;
    color: #6c757d;
}

.online {
    background-color: #d4edda;
    color: #155724;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.offline {
    background-color: #f8d7da;
    color: #721c24;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.online-session {
    background-color: #d4edda;
    color: #155724;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.offline-session {
    background-color: #f8d7da;
    color: #721c24;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

.background-particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: -1;
}

canvas {
    background: transparent;
}

@media (max-width: 768px) {
    body {
        padding: 15px;
        background-image: linear-gradient(120deg, #f9f9f9 0%, #f0f0f0 100%);
    }

    main {
        padding: 20px;
    }

    h1 {
        font-size: 1.5em;
    }

    .password {
        font-size: 1.5em;
    }

    .password-info {
        padding: 15px;
    }

    .btn-toggle {
        padding: 10px 25px;
        font-size: 1em;
    }

    .announcement {
        margin-bottom: 20px;
        padding: 20px;
        background-color: #e9ecef;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .announcement h3 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 1.3em;
        color: #2c3e50;
    }

    .announcement p {
        font-size: 1em;
        color: #343a40;
    }
}

@media (min-width: 769px) {
    .announcement {
        margin-bottom: 30px;
        padding: 20px;
        background-color: #e9ecef;
        border-radius: 15px;
        box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    }

    .announcement h3 {
        margin-top: 0;
        margin-bottom: 15px;
        font-size: 1.5em;
        color: #2c3e50;
    }

    .announcement p {
        font-size: 1.1em;
        color: #343a40;
    }
}
