
/* 全局样式 */
@import url('https://fonts.googleapis.com/css2?family=Montserrat:wght@400;700&family=Roboto:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', 'Montserrat', sans-serif;
    background: linear-gradient(135deg, #00D1FF, #8A2BE2, #FFA500);
    color: #FFFFFF;
    line-height: 1.6;
    padding: 20px;
    overflow-x: hidden;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 20px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    margin-bottom: 20px;
    color: #FFFFFF;
}

h1 {
    font-size: 3rem;
    text-align: center;
    margin-bottom: 40px;
}

h2 {
    font-size: 2.5rem;
    margin-top: 40px;
}

h3 {
    font-size: 2rem;
    margin-top: 30px;
}

p {
    font-size: 1rem;
    margin-bottom: 20px;
    word-wrap: break-word;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

code {
    font-family: 'Courier New', Courier, monospace;
    color: #00D1FF;
    background: rgba(255, 255, 255, 0.05);
    padding: 2px 4px;
    border-radius: 4px;
}

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

table, th, td {
    border: 1px solid #FFFFFF;
}

th, td {
    padding: 12px;
    text-align: left;
}

th {
    background: rgba(0, 0, 0, 0.7);
}

ul, ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

a {
    color: #FFA500;
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    color: #00D1FF;
}

.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.5);
    padding: 20px;
    z-index: 1000;
    transition: background 0.5s ease;
}

.navbar.transparent {
    background: transparent;
}

.navbar ul {
    list-style: none;
    display: flex;
    justify-content: center;
}

.navbar li {
    margin: 0 15px;
}

.section {
    padding: 60px 0;
}

.image-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 20px;
    margin-bottom: 40px;
}

.image-grid img {
    width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease;
}

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

.footer {
    text-align: center;
    padding: 20px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 0 0 15px 15px;
    margin-top: 40px;
}

.footer p {
    font-size: 0.9rem;
}

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

    h2 {
        font-size: 2rem;
    }

    h3 {
        font-size: 1.5rem;
    }
}

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

    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    h3 {
        font-size: 1.25rem;
    }
}

@media (max-width: 1024px) {
    .navbar ul {
        flex-direction: column;
    }

    .navbar li {
        margin: 10px 0;
    }
}

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

    h1 {
        font-size: 1.75rem;
    }

    h2 {
        font-size: 1.5rem;
    }

    h3 {
        font-size: 1rem;
    }

    pre {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    body {
        padding: 10px;
    }

    .navbar {
        padding: 15px;
    }

    h1 {
        font-size: 1.5rem;
    }

    h2 {
        font-size: 1.25rem;
    }

    h3 {
        font-size: 0.9rem;
    }

    pre {
        padding: 10px;
    }
}

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

    h2 {
        font-size: 1rem;
    }

    h3 {
        font-size: 0.8rem;
    }

    pre {
        padding: 8px;
    }
}

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

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #8A2BE2, #FFA500);
    border: none;
    border-radius: 25px;
    color: #FFFFFF;
    font-size: 1rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.3s ease;
    text-decoration: none;
}

.btn:hover {
    background: linear-gradient(135deg, #00D1FF, #8A2BE2);
    transform: scale(1.05);
}

/* 3D卡片样式 */
.card {
    perspective: 1000px;
}

.card-inner {
    position: relative;
    width: 100%;
    padding-top: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s;
}

.card:hover .card-inner {
    transform: rotateY(180deg);
}

.card-front, .card-back {
    position: absolute;
    top: 0;
    left: 0;
    backface-visibility: hidden;
    width: 100%;
    height: 100%;
    border-radius: 10px;
    overflow: hidden;
}

.card-front {
    background: rgba(255, 255, 255, 0.1);
}

.card-back {
    background: rgba(0, 0, 0, 0.8);
    transform: rotateY(180deg);
}

.card-back p {
    padding: 20px;
    font-size: 0.9rem;
}

/* 微交互动画 */
.module {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.module:hover {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.5);
}

/* 视差滚动 */
.parallax {
    background-attachment: fixed;
    background-size: cover;
    background-position: center;
}


