
/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    animation: background-transition 15s linear infinite;
}

/* 渐变背景动画 */
@keyframes background-transition {
    0% {
        background: linear-gradient(135deg, #6a11cb, #2575fc);
    }
    50% {
        background: linear-gradient(225deg, #ff7e5f, #feb47b);
    }
    100% {
        background: linear-gradient(135deg, #6a11cb, #2575fc);
    }
}

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

/* 标题样式 */
.title {
    font-family: 'Poppins', sans-serif;
    font-size: 36px;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
    text-align: center;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 副标题样式 */
.subtitle {
    font-size: 24px;
    margin-bottom: 15px;
    color: #ffeb3b;
}

/* 段落样式 */
p {
    margin-bottom: 15px;
    font-size: 16px;
    color: #ffffff;
}

/* 列表样式 */
ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 15px;
}

li {
    margin-bottom: 10px;
    font-size: 16px;
}

/* 强调文本 */
b {
    color: #ffeb3b;
}

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

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

/* 按钮样式 */
button, .gradient-button, .animated-button {
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.5s ease;
}

button:hover, .gradient-button:hover, .animated-button:hover {
    background: linear-gradient(135deg, #feb47b, #ff7e5f);
    transform: scale(1.05);
}

/* 图片样式 */
img {
    width: 100%;
    max-width: 320px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
}

/* 模块样式 */
.module {
    background: linear-gradient(135deg, #6a11cb, #2575fc);
    padding: 20px;
    border-radius: 15px;
    margin-bottom: 20px;
    position: relative;
    overflow: hidden;
}

.module::before {
    content: '';
    position: absolute;
    top: -50px;
    left: -50px;
    width: 100px;
    height: 100px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    animation: float 10s infinite ease-in-out;
}

@keyframes float {
    0% {
        transform: translate(0, 0) rotate(0deg);
    }
    50% {
        transform: translate(20px, 20px) rotate(180deg);
    }
    100% {
        transform: translate(0, 0) rotate(360deg);
    }
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .title {
        font-size: 32px;
    }

    .subtitle {
        font-size: 22px;
    }

    p, li {
        font-size: 15px;
    }
}

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

    .module {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    .title {
        font-size: 28px;
    }

    .subtitle {
        font-size: 20px;
    }

    p, li {
        font-size: 14px;
    }
}

@media (max-width: 768px) {
    .title {
        font-size: 24px;
    }

    .subtitle {
        font-size: 18px;
    }

    p, li {
        font-size: 13px;
    }

    .container {
        padding: 10px;
    }

    img {
        max-width: 100%;
    }
}

@media (max-width: 480px) {
    .title {
        font-size: 20px;
    }

    .subtitle {
        font-size: 16px;
    }

    p, li {
        font-size: 12px;
    }
}

@media (max-width: 320px) {
    .title {
        font-size: 18px;
    }

    .subtitle {
        font-size: 14px;
    }

    p, li {
        font-size: 11px;
    }

    button, .gradient-button, .animated-button {
        padding: 8px 16px;
    }
}

/* 导航栏样式 */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 20px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    border-radius: 10px;
    margin-bottom: 20px;
}

.navbar a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    position: relative;
    transition: color 0.3s ease;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #00e676;
    transition: width 0.3s;
}

.navbar a:hover::after {
    width: 100%;
}

.navbar a:hover {
    color: #00e676;
}

/* 页脚样式 */
.footer {
    text-align: center;
    padding: 20px 0;
    margin-top: 40px;
    font-size: 14px;
    color: #ffffff;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 10px;
}

/* 动态粒子效果 */
.particles {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    background: transparent;
    z-index: -1;
}

.particles::after {
    content: '';
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    animation: particles-move 10s linear infinite;
}

@keyframes particles-move {
    from {
        transform: translate(0, 0);
    }
    to {
        transform: translate(-50px, -50px);
    }
}

