
/* 通用样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a1a2e, #16213e, #0f3460);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}

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

header {
    text-align: center;
    padding: 50px 0;
    background: linear-gradient(135deg, #ff6f61, #ff9a8b);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

header h1 {
    font-size: 3rem;
    margin-bottom: 10px;
    color: #ffffff;
}

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

.navbar {
    display: flex;
    justify-content: center;
    margin-bottom: 40px;
}

.navbar a {
    margin: 0 15px;
    text-decoration: none;
    color: #ffffff;
    position: relative;
    padding: 10px 20px;
    transition: all 0.3s ease;
}

.navbar a::before, .navbar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    background: #ff9a8b;
    transition: all 0.3s ease;
}

.navbar a::before {
    top: 0;
    left: 50%;
}

.navbar a::after {
    bottom: 0;
    right: 50%;
}

.navbar a:hover::before, .navbar a:hover::after {
    width: 50%;
    left: 0;
    right: 0;
}

article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    margin-bottom: 40px;
}

article h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #ff9a8b;
}

article h3 {
    font-size: 2rem;
    margin: 20px 0;
    color: #ffffff;
}

article h4 {
    font-size: 1.8rem;
    margin: 15px 0;
    color: #ff6f61;
}

article p {
    font-size: 1rem;
    margin-bottom: 20px;
    color: #d1d1d1;
}

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

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

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

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

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

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

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

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

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

.notice {
    text-align: center;
    font-size: 1.2rem;
    color: #d1d1d1;
    margin-top: 20px;
}

.footer {
    text-align: center;
    padding: 20px 0;
    background: linear-gradient(135deg, #ff6f61, #ff9a8b);
    border-radius: 15px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    color: #ffffff;
}

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

    header p {
        font-size: 1rem;
    }

    article h2 {
        font-size: 2rem;
    }

    article h3 {
        font-size: 1.5rem;
    }

    article h4 {
        font-size: 1.3rem;
    }

    article p, table th, table td {
        font-size: 0.9rem;
    }

    .navbar a {
        margin: 0 10px;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
}

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

    header p {
        font-size: 0.9rem;
    }

    .navbar {
        flex-direction: column;
    }

    .navbar a {
        margin: 5px 0;
        padding: 10px 20px;
        font-size: 1rem;
    }

    article {
        padding: 20px;
    }

    table th, table td {
        padding: 8px;
        font-size: 0.8rem;
    }
}

@media (min-width: 1024px) {
    .image-gallery {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    }
}

@media (min-width: 1440px) {
    header h1 {
        font-size: 3.5rem;
    }

    article h2 {
        font-size: 3rem;
    }
}

