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

body {
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    color: #fff;
    padding: 20px;
}

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

h1, h2, h3 {
    font-weight: bold;
    margin-bottom: 15px;
}

h1 {
    font-size: 2.5em;
    text-align: center;
    margin-top: 20px;
    color: #ffdd57;
}

h2 {
    font-size: 2em;
    color: #4dd0e1;
    border-bottom: 2px solid #4dd0e1;
    padding-bottom: 10px;
    margin-top: 40px;
}

h3 {
    font-size: 1.5em;
    color: #ffab40;
    margin-top: 30px;
    border-left: 4px solid #ffab40;
    padding-left: 10px;
}

p {
    margin-bottom: 20px;
    font-size: 1em;
    color: #e0e0e0;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

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

/* 渐变背景与动画 */
.background {
    background: linear-gradient(to bottom, #0074D9, #111);
    color: white;
    padding: 20px;
    border-radius: 10px;
}

@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.body-background {
    background: radial-gradient(circle, rgba(255, 87, 34, 0.2), transparent);
    animation: aurora-move 15s linear infinite;
    padding: 20px;
    border-radius: 15px;
}

/* 按钮样式 */
.button {
    background-color: #28a745;
    color: white;
    border: none;
    padding: 10px 20px;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.button:hover {
    background-color: #218838;
    transform: scale(1.1);
}

/* 图标与图片 */
.icon {
    width: 24px;
    height: 24px;
    fill: currentColor;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

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

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

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

    h2 {
        font-size: 1.8em;
    }

    h3 {
        font-size: 1.3em;
    }
}

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

    h2 {
        font-size: 1.5em;
    }

    h3 {
        font-size: 1.1em;
    }

    .container {
        padding: 10px;
    }
}

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

    h2 {
        font-size: 1.2em;
    }

    h3 {
        font-size: 1em;
    }

    p {
        font-size: 0.9em;
    }
}

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

    h2 {
        font-size: 1em;
    }

    h3 {
        font-size: 0.9em;
    }

    p {
        font-size: 0.8em;
    }
}

/* 内部链接样式 */
a {
    color: #4dd0e1;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #ffdd57;
}

/* 样式参考提示 */
.reference-note {
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
    color: #b0bec5;
}

/* 代码块样式优化 */
pre code {
    display: block;
    white-space: pre-wrap;
    word-wrap: break-word;
    font-size: 0.9em;
}

/* 数据可视化与动画 */
.value {
    animation: count-up 2s ease-in-out forwards;
    display: inline-block;
}

@keyframes count-up {
    from { content: "0"; }
    to { content: attr(data-value); }
}

/* 毛玻璃效果 */
.blur-effect {
    backdrop-filter: blur(10px);
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
}

/* 卡片样式 */
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    margin-bottom: 20px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

/* 粒子特效 */
.particle {
    position: absolute;
    width: 10px;
    height: 10px;
    background: #ffab40;
    border-radius: 50%;
    animation: float 5s infinite;
}

@keyframes float {
    0% {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translateY(-100px) scale(0.5);
        opacity: 0;
    }
}

