
/* 基本样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 变量定义 */
:root {
    --main-gradient: linear-gradient(135deg, #000066, #660066);
    --accent-gradient: linear-gradient(90deg, #ff6600, #00cc66);
    --background-color: #1a1a2e;
    --text-color: #ffffff;
    --secondary-text-color: #dcdcdc;
    --button-shadow: 0 0 10px #ff6600, 0 0 20px #00cc66;
    --font-title: 'Roboto Black', sans-serif;
    --font-body: 'Open Sans', sans-serif;
    --link-color: #00cc66;
}

/* 全局样式 */
body {
    background: var(--main-gradient);
    color: var(--text-color);
    font-family: var(--font-body);
    line-height: 1.6;
    padding: 20px;
}

/* 容器 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

/* 标题样式 */
h1, h2, h3, h4 {
    font-family: var(--font-title);
    color: #ffcc00;
    margin-bottom: 15px;
}

h1 {
    font-size: 3em;
    text-align: center;
    margin-top: 20px;
}

h2 {
    font-size: 2.5em;
    margin-top: 40px;
}

h3 {
    font-size: 2em;
    margin-top: 30px;
}

h4 {
    font-size: 1.5em;
    margin-top: 25px;
}

/* 段落样式 */
p {
    margin-bottom: 20px;
    color: var(--secondary-text-color);
    font-size: 1.1em;
}

/* 代码块样式 */
pre {
    background: #2e2e2e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

code {
    color: #00ffcc;
    font-family: 'Courier New', Courier, monospace;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

th, td {
    border: 1px solid #555;
    padding: 10px;
    text-align: left;
}

th {
    background: #333;
}

tr:nth-child(even) {
    background: #2a2a2a;
}

/* 按钮样式 */
button {
    background: var(--accent-gradient);
    color: #fff;
    border: none;
    padding: 10px 20px;
    font-size: 1em;
    cursor: pointer;
    border-radius: 5px;
    box-shadow: var(--button-shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 15px #ff6600, 0 0 30px #00cc66;
}

/* 图片样式 */
img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 20px 0;
}

/* 链接样式 */
a {
    color: var(--link-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ff6600;
}

/* 动画效果 */
@keyframes fadeInText {
    from { opacity: 0; }
    to { opacity: 1; }
}

h1, h2, h3, h4 {
    animation: fadeInText 2s ease-in-out;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    h1 {
        font-size: 2.8em;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }

    h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1024px) {
    h1 {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    body {
        padding: 10px;
    }

    h1 {
        font-size: 2em;
    }

    p {
        font-size: 1em;
    }

    table, th, td {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8em;
    }

    p {
        font-size: 0.95em;
    }

    button {
        width: 100%;
        padding: 15px;
    }
}

@media (max-width: 320px) {
    h1 {
        font-size: 1.5em;
    }

    p {
        font-size: 0.9em;
    }
}

