:root {
    --primary: #007BFF;
    --accent: #999999;
    --bg-color: #f4f7f9;
    --card-bg: #ffffff;
    --text-main: #2c3e50;
    --text-sub: #7f8c8d;
}

body {
    background-color: var(--bg-color);
    color: var(--text-main);
    font-family: -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 20px;
    transition: background 0.3s, color 0.3s;
}

.container {
    position: relative;
    background: var(--card-bg);
    width: 100%;
    max-width: 450px;
    padding: 40px 30px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
    text-align: center;
}

.logo-box img {
    width: 80px;
    height: auto;
    margin-bottom: 15px;
}

.logo-box h1 {
    font-size: 24px;
    margin: 0;
    color: var(--text-main);
}

.notice {
    color: var(--accent);
    font-size: 14px;
    font-weight: 600;
    margin-top: 10px;
}

.url-list {
    margin: 35px 0;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.url-btn {
    background: #f8fafd;
    color: var(--primary);
    text-decoration: none;
    padding: 18px;
    border-radius: 12px;
    font-weight: 600;
    border: 1px solid #e1e8f0;
    transition: all 0.3s ease;
}

.url-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    transform: translateY(-2px);
}

.email-box {
    margin-top: 30px;
    padding: 20px;
    background: #fff5f5;
    border-radius: 16px;
    border: 1px solid #ffebeb;
}

.email-box p {
    font-size: 13px;
    color: var(--text-sub);
    margin-bottom: 8px;
}

#secure-email-display a {
    color: var(--accent);
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
}

.footer {
    margin-top: 40px;
    font-size: 12px;
    color: #bdc3c7;
}


[data-theme="dark"] {
    --primary: #4da3ff;
    --accent: #8a8f98;
    --bg-color: #0f1419;
    --card-bg: #1c2128;
    --text-main: #e6edf3;
    --text-sub: #9da7b3;
}


[data-theme="dark"] .url-btn {
    background: #242a33;
    border: 1px solid #2f3742;
}

[data-theme="dark"] .url-btn:hover {
    background: var(--primary);
}

[data-theme="dark"] .email-box {
    background: #2a1f1f;
    border: 1px solid #3b2a2a;
}

[data-theme="dark"] .footer {
    color: #6e7681;
}


.theme-toggle {
    position: absolute;
    top: 24px;
    right: 24px;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: var(--card-bg);
    border: 1px solid #e1e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 6px 16px rgba(0,0,0,0.1);
    transition: all .2s;
}

.theme-toggle:hover {
    transform: scale(1.05);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
    fill: var(--text-main);
}

@media (max-width: 575.98px) {
    .container {
        padding: 36px 22px 30px;
    }

    .theme-toggle {
        top: 18px;
        right: 18px;
    }
}