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

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #0A192F, #000814);
    color: #FFFFFF;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 文字样式 */
h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    margin-bottom: 20px;
    color: #64FFDA;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
}

a {
    color: #8E2DE2;
    text-decoration: none;
}

a:hover {
    color: #64FFDA;
}

/* 布局结构 */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 50px 0;
}

.section {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 50px;
    background: rgba(10, 25, 47, 0.9);
    margin-bottom: 30px;
    border-radius: 10px;
    transition: background 0.5s ease;
}

.section:nth-child(even) {
    background: rgba(0, 8, 20, 0.9);
}

.section img {
    width: 100%;
    max-width: 320px;
    height: auto;
    margin: 20px 0;
    border-radius: 10px;
}

.footer {
    text-align: center;
    padding: 20px;
    background: #0A192F;
    color: #FFFFFF;
}

/* 按钮样式 */
.button {
    background: #8E2DE2;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
}

.button:hover {
    background: #64FFDA;
    transform: scale(1.05);
}

/* 代码块样式 */
pre {
    background: #0A192F;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    color: #64FFDA;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
}

/* 动画效果 */
.fade-in {
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s ease;
}

.fade-in.active {
    opacity: 1;
    transform: translateY(0);
}

@keyframes spin {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

.chart {
    width: 200px;
    height: 200px;
    background-color: #64FFDA;
    border-radius: 50%;
    animation: spin 5s linear infinite;
}

/* 互动悬停效果 */
.hover-effect {
    transition: all 0.3s ease;
}

.hover-effect:hover {
    transform: scale(1.1);
    color: #8E2DE2;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .container {
        width: 95%;
    }
}

@media (max-width: 1200px) {
    .section {
        padding: 40px;
    }
}

@media (max-width: 1024px) {
    .section {
        padding: 30px;
    }
}

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

    h1 {
        font-size: 28px;
    }

    h2 {
        font-size: 24px;
    }

    p {
        font-size: 14px;
    }
}

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

    h1 {
        font-size: 24px;
    }

    h2 {
        font-size: 20px;
    }

    p {
        font-size: 12px;
    }
}

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

    h1 {
        font-size: 20px;
    }

    h2 {
        font-size: 18px;
    }

    p {
        font-size: 10px;
    }
}

