
/* 全局样式设置 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Open Sans', sans-serif;
    color: #ffffff;
    background: linear-gradient(135deg, #0d1a45, #1a2c6d, #ff7f00, #ff69b4);
    background-size: 400% 400%;
    animation: gradientAnimation 15s ease infinite;
}

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

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

header {
    text-align: center;
    padding: 50px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 15px;
    margin: 20px 0;
}

header h1 {
    font-family: 'Roboto', sans-serif;
    font-size: 3em;
    color: #ff7f00;
    margin-bottom: 20px;
}

header p {
    font-size: 1.2em;
    line-height: 1.6;
}

section {
    margin: 40px 0;
}

section h2, section h3 {
    font-family: 'Roboto', sans-serif;
    color: #ff7f00;
    margin-bottom: 20px;
}

section p {
    font-size: 1em;
    line-height: 1.8;
    margin-bottom: 20px;
}

pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
}

code {
    color: #00ffea;
}

.card {
    background-color: rgba(26, 44, 109, 0.9);
    border-radius: 10px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.3);
    padding: 20px;
    margin: 15px 0;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
    transform: scale(1.05);
    box-shadow: 0 12px 24px rgba(0,0,0,0.5);
}

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

button, .button-icon {
    background-color: #ff7f00;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    box-shadow: 0 4px 6px rgba(0,0,0,0.2);
    transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

button:hover, .button-icon:hover {
    background-color: #e66f00;
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
}

.table-responsive {
    overflow-x: auto;
}

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

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

th {
    background-color: rgba(255, 127, 0, 0.7);
}

.dropdown {
    background-color: rgba(26, 44, 109, 0.9);
    border-radius: 5px;
    overflow: hidden;
    transition: max-height 0.5s ease-in-out;
    max-height: 0;
}

.dropdown.open {
    max-height: 200px;
}

nav a {
    color: #ffffff;
    text-decoration: none;
    margin: 0 10px;
    position: relative;
}

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

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

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

@media (max-width: 480px) {
    header h1 {
        font-size: 2em;
    }
    section h2, section h3 {
        font-size: 1.5em;
    }
    .card {
        padding: 15px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    .container {
        width: 95%;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        width: 90%;
    }
}

@media (min-width: 1025px) and (max-width: 1440px) {
    .container {
        width: 85%;
    }
}

@media (min-width: 1441px) {
    .container {
        width: 80%;
    }
}

