:root {
    --bg-color: #f9fafb;
    --text-color: #222;
    --header-bg: #0052cc;
    --header-text: #fff;
    --card-bg: #fff;
    --border-color: #e5e7eb;
    --link-color: #0052cc;
}


@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #0f1116;
        --text-color: #eaeaea;
        --header-bg: #1e40af;
        --header-text: #fff;
        --card-bg: #1a1c20;
        --border-color: #2a2d33;
        --link-color: #3b82f6;
    }
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
    background: var(--bg-color);
    color: var(--text-color);
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    transition: background 0.3s ease, color 0.3s ease;
}

.site-header {
    background: var(--header-bg);
    color: var(--header-text);
    text-align: center;
    padding: 2.5rem 1rem;
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.site-header h1 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.subtitle {
    font-size: 1rem;
    opacity: 0.9;
}

.container {
    flex: 1;
    max-width: 900px;
    margin: 2rem auto;
    background: var(--card-bg);
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 6px 16px rgba(0,0,0,0.05);
    border: 1px solid var(--border-color);
}

h2 {
    font-size: 1.3rem;
    border-bottom: 2px solid var(--link-color);
    padding-bottom: 0.5rem;
    margin-bottom: 1rem;
}

pre {
    background: var(--bg-color);
    padding: 1rem;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    white-space: pre-wrap;
    word-wrap: break-word;
    overflow-x: auto;
    font-family: Consolas, monospace;
}

.site-footer {
    background: var(--card-bg);
    border-top: 1px solid var(--border-color);
    text-align: center;
    padding: 1.5rem;
    font-size: 0.9rem;
    color: var(--text-color);
}

.site-footer a {
    color: var(--link-color);
    text-decoration: none;
}

.site-footer a:hover {
    text-decoration: underline;
}

@media (max-width: 600px) {
    .container {
        margin: 1rem;
        padding: 1.5rem;
    }
    .site-header h1 {
        font-size: 1.6rem;
    }
}

.log-content {
    max-height: 450px;      
    overflow-y: auto;    
    padding: 1rem;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    background: var(--card-bg);
}


.log-content::-webkit-scrollbar {
    width: 8px;
}

.log-content::-webkit-scrollbar-thumb {
    background-color: rgba(0,0,0,0.2);
    border-radius: 4px;
}

.log-content::-webkit-scrollbar-track {
    background: rgba(0,0,0,0.05);
}