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

/* 全局字体与背景 */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

/* 容器样式 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

/* 标题样式 */
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

h1 {
    font-size: 2.5em;
    margin-bottom: 20px;
}

h2 {
    font-size: 2em;
    margin-top: 30px;
    margin-bottom: 15px;
}

h3 {
    font-size: 1.5em;
    margin-top: 25px;
    margin-bottom: 10px;
}

/* 段落与列表样式 */
p {
    margin-bottom: 15px;
    font-size: 1em;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
}

/* 代码块样式 */
pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

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

th, td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    text-align: left;
}

th {
    background: rgba(255, 255, 255, 0.2);
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(45deg, #6a11cb, #2575fc);
    border: none;
    border-radius: 25px;
    color: #ffffff;
    font-size: 1em;
    cursor: pointer;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    overflow: hidden;
}

.button:hover {
    transform: scale(1.05);
    box-shadow: 0 0 20px rgba(37, 117, 252, 0.6);
}

.button::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.5s ease, height 0.5s ease;
}

.button:hover::before {
    width: 300%;
    height: 300%;
}

/* 图像样式 */
img {
    max-width: 100%;
    border-radius: 10px;
    margin: 20px 0;
}

/* 响应式布局 */
@media (max-width: 1440px) {
    .container {
        padding: 35px;
    }

    h1 {
        font-size: 2.3em;
    }

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }
}

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

    h1 {
        font-size: 2em;
    }

    h2 {
        font-size: 1.6em;
    }

    h3 {
        font-size: 1.2em;
    }
}

@media (max-width: 1024px) {
    .container {
        padding: 25px;
    }

    h1 {
        font-size: 1.8em;
    }

    h2 {
        font-size: 1.4em;
    }

    h3 {
        font-size: 1.1em;
    }
}

@media (max-width: 768px) {
    .container {
        padding: 20px;
    }

    h1 {
        font-size: 1.6em;
    }

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }
}

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

    h1 {
        font-size: 1.4em;
    }

    h2 {
        font-size: 1em;
    }

    h3 {
        font-size: 0.9em;
    }

    p, ul, table {
        font-size: 0.9em;
    }
}

@media (max-width: 320px) {
    .container {
        padding: 10px;
    }

    h1 {
        font-size: 1.2em;
    }

    h2 {
        font-size: 0.9em;
    }

    h3 {
        font-size: 0.8em;
    }

    p, ul, table {
        font-size: 0.8em;
    }
}

/* 动画效果 */
.fade-in {
    animation: fadeIn 2s ease-in-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 视觉提示 */
.reference-note {
    background: rgba(255, 255, 255, 0.15);
    padding: 10px 20px;
    border-left: 5px solid #2575fc;
    margin: 20px 0;
    border-radius: 5px;
    font-style: italic;
}

/* 内部链接 */
a {
    color: #00ffea;
    text-decoration: none;
    position: relative;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffffff;
    text-shadow: 0 0 10px #00ffea;
}

