/* 根变量定义 */
:root {
    --bg-color: #f4f4f9;
    --text-color: #333;
    --container-bg: #fff;
    --primary-color: #ff5252;
    --accent-color: #267298;
    --border-color: #ddd;
}

/* 暗黑模式变量覆盖 */
[data-theme="dark"] {
    --bg-color: #181818;
    --text-color: #f8f9fa;
    --container-bg: #333;
    --primary-color: #ff6b6b;
    --accent-color: #40c4ff;
    --border-color: #555;
}

/* 全局过渡动画 */
* {
    transition: background-color 0.3s, color 0.3s, border-color 0.3s;
}

/* 基础样式重置 */
body,
h1,
h2,
p,
ul,
li {
    margin: 0;
    padding: 0;
}

body {
  font-family: "LXGW Neo XiHei";
    background-color: var(--bg-color);
    color: var(--text-color);
    min-height: 100vh;
    line-height: 1.6;
    padding: 20px;
}

.container {
    width: min(90%, 800px);
    margin: 0 auto;
    padding: 2rem;
    background-color: var(--container-bg);
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

header {
    text-align: center;
    margin-bottom: 2rem;
}

.logo img {
    max-width: 100%;
    width: min(100%, 200px);
    height: auto;
    margin-bottom: 1rem;
}

h1,
h2 {
    color: var(--primary-color);
    margin: 1.5rem 0;
}

h2 {
    border-bottom: 2px solid var(--border-color);
    padding-bottom: 0.5rem;
}

a {
    color: var(--accent-color);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

footer {
    margin-top: 2rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

.theme-toggle {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--container-bg);
    border: 2px solid var(--border-color);
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
}

.theme-toggle:hover {
    transform: scale(1.1);
}