
/* 基本重置与全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Exo', sans-serif;
    background: linear-gradient(180deg, #000046 0%, #1c1c3c 50%, #0f0c29 100%);
    color: #ffffff;
    overflow-x: hidden;
}

/* 渐变背景与动态粒子效果 */
.background {
    position: fixed;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
    z-index: -1;
}

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

/* 头部样式 */
header {
    padding: 20px;
    text-align: center;
    background: rgba(0, 0, 0, 0.5);
    position: sticky;
    top: 0;
    z-index: 10;
}

header h1 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2.5em;
    color: #ff00ff;
    text-shadow: 0 0 10px #ff00ff, 0 0 20px #ff00ff, 0 0 30px #ff00ff;
}

/* 导航栏样式 */
nav {
    margin-top: 10px;
}

nav a {
    margin: 0 15px;
    text-decoration: none;
    color: #00ffff;
    position: relative;
    transition: color 0.3s ease;
}

nav a::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 2px;
    background: #00ffff;
    left: 0;
    bottom: -5px;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

nav a:hover {
    color: #ff00ff;
}

nav a:hover::after {
    transform: scaleX(1);
    animation: neon-scan 0.5s forwards;
}

@keyframes neon-scan {
    from { background: #00ffff; }
    to { background: #ff00ff; }
}

/* 主内容区块 */
.section {
    padding: 60px 20px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center;
    min-height: 100vh;
}

.section:nth-child(even) {
    background: rgba(28, 28, 60, 0.8);
}

.section:nth-child(odd) {
    background: rgba(15, 12, 41, 0.8);
}

.section img {
    width: 320px;
    height: 320px;
    object-fit: cover;
    margin: 20px;
    border: 2px solid #ff00ff;
    border-radius: 10px;
    box-shadow: 0 0 20px #ff00ff;
}

.section .content {
    max-width: 600px;
    margin: 20px;
}

.section h2 {
    font-family: 'Orbitron', sans-serif;
    font-size: 2em;
    color: #00ff80;
    margin-bottom: 20px;
    text-shadow: 0 0 10px #00ff80, 0 0 20px #00ff80, 0 0 30px #00ff80;
}

.section p {
    font-size: 1.1em;
    line-height: 1.6;
    color: #ffffff;
}

/* 示例展示区块 */
.example-display {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    margin: 40px 20px;
    border-radius: 15px;
    box-shadow: 0 0 20px #ff00ff;
}

.example-display h2 {
    font-family: 'Orbitron', sans-serif;
    color: #ff00ff;
    margin-bottom: 20px;
}

.example-display article {
    line-height: 1.8;
}

.example-display pre {
    background: #1c1c3c;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin: 20px 0;
}

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

/* 按钮样式 */
.button {
    position: relative;
    padding: 10px 30px;
    margin-top: 20px;
    border: none;
    background: transparent;
    color: #ffffff;
    border: 2px solid #ff00ff;
    cursor: pointer;
    font-size: 1em;
    transition: color 0.3s ease;
}

.button::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #ff00ff;
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.button:hover {
    color: #ff00ff;
}

.button:hover::after {
    transform: scaleX(1);
}

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

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

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

    .section img {
        width: 280px;
        height: 280px;
    }
}

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

    .section img {
        width: 250px;
        height: 250px;
    }

    .section .content {
        max-width: 80%;
    }
}

@media (max-width: 1024px) {
    .section img {
        width: 220px;
        height: 220px;
    }

    .section h2 {
        font-size: 1.8em;
    }
}

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

    .section img {
        width: 180px;
        height: 180px;
    }

    .section .content {
        max-width: 90%;
    }

    nav a {
        margin: 0 10px;
    }
}

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

    .section img {
        width: 160px;
        height: 160px;
    }

    .section h2 {
        font-size: 1.5em;
    }

    .button {
        padding: 8px 25px;
        font-size: 0.9em;
    }
}

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

    .section img {
        width: 140px;
        height: 140px;
    }

    .section h2 {
        font-size: 1.2em;
    }
}

/* 动态粒子效果 */
.particles {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 2px;
    height: 2px;
    background: #ffffff;
    opacity: 0.5;
    border-radius: 50%;
    animation: fall 5s infinite linear;
}

@keyframes fall {
    from { transform: translateY(-100vh); }
    to { transform: translateY(100vh); }
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

table th, table td {
    border: 1px solid #00ffff;
    padding: 10px;
    text-align: left;
}

table th {
    background: #ff00ff;
    color: #ffffff;
}

table tr:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}


