
/* 全局样式初始化 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #000046, #1cb5e0);
    color: #ffffff;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Bodoni', serif;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 15px;
}

p {
    font-size: 1rem;
    margin-bottom: 20px;
    text-align: justify;
}

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

a:hover {
    color: #d2b48c;
}

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

.header {
    background: linear-gradient(to right, #000046, #4b0082);
    color: #ffffff;
    padding: 40px 20px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: -50%;
    width: 200%;
    height: 100%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 10%, transparent 10%);
    animation: starflow 15s linear infinite;
}

@keyframes starflow {
    from { transform: translateX(-50%); }
    to { transform: translateX(50%); }
}

.header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 0 4px 8px rgba(0, 0, 0, 0.5);
}

.header p {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.button {
    background-color: #8b4513;
    color: #ffffff;
    border: none;
    padding: 15px 30px;
    cursor: pointer;
    font-size: 1rem;
    border-radius: 5px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.button:hover {
    transform: scale(1.1);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

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

.card {
    background: linear-gradient(to bottom, #f5f5dc, #fff8dc);
    color: #333;
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.3);
}

.card img {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.content-section {
    background: rgba(0, 0, 0, 0.7);
    padding: 40px 20px;
    margin-top: 40px;
    border-radius: 10px;
}

.content-section pre {
    background: #1c1c1c;
    color: #00ff00;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

.content-section table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

.content-section th, .content-section td {
    border: 1px solid #ffffff;
    padding: 10px;
    text-align: center;
}

.content-section th {
    background-color: #4b0082;
}

.footer {
    background: linear-gradient(to bottom, #000046, #1cb5e0);
    color: #ffffff;
    text-align: center;
    padding: 20px;
    margin-top: 40px;
    font-size: 0.9rem;
}

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

    .grid-container {
        grid-template-columns: 1fr;
    }

    .button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .content-section pre {
        font-size: 0.8rem;
    }
}

