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

/* 设置基本字体和背景渐变 */
body {
    font-family: 'Exo 2', sans-serif;
    background: linear-gradient(135deg, #00008B, #8A2BE2, #FF4500);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

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

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    animation: moveParticle 10s linear infinite;
}

@keyframes moveParticle {
    0% {
        transform: translate(0, 0) scale(1);
        opacity: 1;
    }
    100% {
        transform: translate(-100vw, 100vh) scale(0.5);
        opacity: 0;
    }
}

/* 标题样式 */
header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 3em;
    background: -webkit-linear-gradient(#ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

/* 文章内容样式 */
.content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(5px);
}

.content h2, .content h3, .content h4 {
    margin-bottom: 20px;
    color: #ADFF2F;
}

.content p {
    margin-bottom: 20px;
    font-size: 1.1em;
}

.content pre {
    background: rgba(0, 0, 0, 0.5);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.content code {
    color: #FF4500;
    font-family: 'Roboto Mono', monospace;
}

.content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.content table, .content th, .content td {
    border: 1px solid #fff;
}

.content th, .content td {
    padding: 10px;
    text-align: center;
}

.content th {
    background: #8A2BE2;
}

.content a {
    color: #FEB47B;
    text-decoration: none;
    transition: color 0.3s;
}

.content a:hover {
    color: #ADFF2F;
    text-decoration: underline;
}

/* 按钮样式 */
.button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #ff7e5f, #feb47b);
    color: #ffffff;
    border: none;
    border-radius: 25px;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2), 0 0 10px rgba(255, 255, 255, 0.6);
    transition: all 0.3s ease;
    text-align: center;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3), 0 0 20px rgba(255, 255, 255, 0.8);
}

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

/* 提示信息样式 */
.note {
    text-align: center;
    font-size: 1em;
    margin-top: 40px;
    color: #ADFF2F;
}

/* 模块化卡片布局 */
.card-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 15px;
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(5px);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 16px 64px rgba(31, 38, 135, 0.5);
}

.card::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, #ff7e5f, #feb47b);
    transform: rotate(45deg);
    z-index: -1;
    opacity: 0.3;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .content {
        padding: 15px;
    }

    header h1 {
        font-size: 2.5em;
    }
}

@media (max-width: 1200px) {
    .card-container {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (max-width: 1024px) {
    body {
        padding: 15px;
    }

    .content {
        padding: 15px;
    }

    .button {
        padding: 8px 16px;
    }
}

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

    .content h2 {
        font-size: 2em;
    }

    .content h3 {
        font-size: 1.5em;
    }

    .content h4 {
        font-size: 1.2em;
    }

    .particle {
        width: 4px;
        height: 4px;
    }
}

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

    .content {
        padding: 10px;
    }

    .button {
        padding: 6px 12px;
        font-size: 0.9em;
    }

    .particle {
        width: 3px;
        height: 3px;
    }
}

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

    .content {
        padding: 8px;
    }

    .button {
        padding: 5px 10px;
        font-size: 0.8em;
    }

    .particle {
        width: 2px;
        height: 2px;
    }
}

