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

body {
    background: linear-gradient(135deg, #0F1624, #1A2038, #2B304E);
    color: #ffffff;
    font-family: 'Roboto', sans-serif;
    line-height: 1.6;
    overflow-x: hidden;
}

/* 标题样式 */
h1, h2, h3, h4, h5, h6 {
    font-family: 'Roboto', sans-serif;
    color: #ffffff;
    text-shadow: 0px 0px 10px rgba(255, 0, 255, 0.8), 
                 0px 0px 20px rgba(0, 255, 255, 0.6);
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin: 20px 0;
    animation: glow 2s infinite alternate;
}

h2 {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

h4 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

/* 动画效果 */
@keyframes glow {
    from {
        text-shadow: 0 0 10px #ff00ff, 0 0 20px #00ffff;
    }
    to {
        text-shadow: 0 0 20px #ff00ff, 0 0 30px #00ffff;
    }
}

.button {
    position: relative;
    display: inline-block;
    padding: 15px 30px;
    margin: 20px 0;
    background: linear-gradient(45deg, #ff8a00, #e52e71);
    color: #ffffff;
    text-decoration: none;
    font-size: 1.2rem;
    border-radius: 50px;
    overflow: hidden;
    transition: background 0.5s;
}

.button:hover {
    background: linear-gradient(45deg, #e52e71, #ff8a00);
}

.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: all 0.5s;
}

.button:hover::before {
    width: 200px;
    height: 200px;
}

/* 模块化布局 */
.section {
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 50px;
    position: relative;
}

.section:nth-child(odd) {
    background: linear-gradient(135deg, #0F1624, #1A2038);
}

.section:nth-child(even) {
    background: linear-gradient(135deg, #1A2038, #2B304E);
}

.section-content {
    max-width: 1200px;
    width: 100%;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    animation: fadeIn 1s ease-in-out;
}

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

/* 图片样式 */
.image-container {
    flex: 1 1 300px;
    padding: 20px;
}

.image-container img {
    width: 100%;
    height: auto;
    border-radius: 15px;
    box-shadow: 0 0 20px rgba(0, 255, 255, 0.5);
    transition: transform 0.3s;
}

.image-container img:hover {
    transform: scale(1.05);
}

/* 文字内容样式 */
.text-content {
    flex: 2 1 500px;
    padding: 20px;
}

.text-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.text-content pre {
    background: #1A2038;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-size: 1rem;
}

.text-content code {
    color: #00ffff;
    background: #0F1624;
    padding: 2px 4px;
    border-radius: 4px;
}

/* 链接样式 */
a {
    color: #e52e71;
    text-decoration: none;
    position: relative;
}

a::after {
    content: '';
    position: absolute;
    width: 100%;
    transform: scaleX(0);
    height: 2px;
    bottom: -2px;
    left: 0;
    background-color: #e52e71;
    transform-origin: bottom right;
    transition: transform 0.25s ease-out;
}

a:hover::after {
    transform: scaleX(1);
    transform-origin: bottom left;
}

/* 粒子动画 */
.particles {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    background: transparent;
}

/* 代码块样式 */
.code-block {
    background: #1A2038;
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    color: #00ffff;
    font-family: 'Courier New', Courier, monospace;
    font-size: 1rem;
}

/* 示例展示样式 */
.example-display {
    background: rgba(0, 0, 0, 0.7);
    padding: 30px;
    border-radius: 15px;
    margin-top: 40px;
}

.example-display h2 {
    text-align: center;
    margin-bottom: 20px;
}

.example-display pre {
    background: #0F1624;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 15px;
    font-size: 1rem;
}

.example-display code {
    color: #ff8a00;
}

/* 响应式设计 */
@media (max-width: 1440px) {
    .section-content {
        flex-direction: row;
    }
}

@media (max-width: 1200px) {
    .section-content {
        flex-direction: column;
    }
}

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

@media (max-width: 768px) {
    .section-content {
        flex-direction: column;
    }
    .text-content, .image-container {
        flex: 1 1 100%;
        padding: 10px;
    }
    h1 {
        font-size: 2rem;
    }
}

@media (max-width: 480px) {
    h1 {
        font-size: 1.8rem;
    }
    h2 {
        font-size: 1.5rem;
    }
    .button {
        padding: 10px 20px;
        font-size: 1rem;
    }
}

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