
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    background: linear-gradient(135deg, #0f2027, #203a43, #2c5364);
    color: #ffffff;
    line-height: 1.6;
    overflow-x: hidden;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
    padding: 20px;
}

header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #2c5364, #203a43, #0f2027);
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
}

header h1 {
    font-size: 3em;
    margin-bottom: 10px;
    color: #ffffff;
    text-shadow: 2px 2px #0f2027;
}

header p {
    font-size: 1.2em;
    color: #d1d1d1;
}

nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin: 20px 0;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    font-size: 1em;
    position: relative;
}

nav a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff6f61;
    transition: width .3s;
}

nav a:hover::after {
    width: 100%;
}

.section {
    padding: 60px 0;
}

.section:nth-child(even) {
    background: rgba(255, 255, 255, 0.1);
}

.section h2 {
    text-align: center;
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff6f61;
    position: relative;
}

.section h2::after {
    content: '';
    width: 100px;
    height: 4px;
    background: #ff6f61;
    margin: 10px auto 0;
    display: block;
}

.card-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: center;
}

.card {
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    padding: 20px;
    width: 300px;
    box-shadow: 0 8px 32px 0 rgba(31, 38, 135, 0.37);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.18);
    transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 24px rgba(0,0,0,0.2);
}

.card img {
    width: 100%;
    border-radius: 10px;
}

.card h3 {
    margin: 15px 0;
    color: #ffffff;
}

.card p {
    color: #d1d1d1;
    font-size: 0.95em;
}

.button {
    display: inline-block;
    padding: 10px 25px;
    margin-top: 15px;
    background: linear-gradient(45deg, #ff6f61, #d6336c);
    color: #ffffff;
    text-decoration: none;
    border-radius: 50px;
    transition: background 0.3s, transform 0.3s;
}

.button:hover {
    background: linear-gradient(45deg, #d6336c, #ff6f61);
    transform: scale(1.05);
}

pre {
    background: rgba(0,0,0,0.7);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
}

code {
    color: #00ff99;
    font-family: 'Courier New', Courier, monospace;
}

.footer {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(135deg, #2c5364, #203a43, #0f2027);
}

.footer p {
    color: #d1d1d1;
    font-size: 1em;
}

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

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

@media (max-width: 1200px) {
    .card-container {
        flex-direction: row;
        justify-content: center;
    }
}

@media (max-width: 1024px) {
    .container {
        width: 95%;
        padding: 15px;
    }

    nav {
        flex-direction: column;
        gap: 10px;
    }

    .card {
        width: 45%;
    }
}

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

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

    .card {
        width: 100%;
    }
}

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

    nav a {
        font-size: 0.9em;
    }

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

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

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

    nav a {
        font-size: 0.8em;
    }

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

    .button {
        padding: 6px 15px;
        font-size: 0.8em;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.animated-background {
    background: radial-gradient(circle, rgba(255,87,34,0.8), transparent);
    animation: aurora-move 15s linear infinite;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
}


