
/* 基础样式设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', 'Helvetica', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
    background: linear-gradient(135deg, #1e3c72, #2a5298);
    background-attachment: fixed;
    color: #fff;
}
.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: 10px;
    margin-bottom: 40px;
}
header h1 {
    font-size: 3em;
    font-weight: bold;
    margin-bottom: 20px;
    background: linear-gradient(90deg, #ff7e5f, #feb47b);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
header p {
    font-size: 1.2em;
    color: #ddd;
}
.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-bottom: 40px;
}
.navbar a {
    text-decoration: none;
    color: #fff;
    font-weight: bold;
    position: relative;
}
.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff7e5f;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}
.navbar a:hover::after {
    width: 100%;
}
.section {
    margin-bottom: 60px;
}
.section h2 {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: #ff7e5f;
    border-bottom: 2px solid #feb47b;
    display: inline-block;
    padding-bottom: 10px;
}
.section p {
    font-size: 1em;
    margin-bottom: 20px;
    color: #ccc;
}
.section pre {
    background: rgba(255, 255, 255, 0.1);
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.section code {
    color: #ff7e5f;
    font-family: 'Courier New', Courier, monospace;
}
.button {
    display: inline-block;
    padding: 10px 20px;
    background: #ff7e5f;
    color: #fff;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: transform 0.3s ease-in-out, background 0.3s ease-in-out;
}
.button:hover {
    background: #feb47b;
    transform: scale(1.1);
}
.card {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
}
.card:hover {
    transform: translateY(-10px);
}
.grid-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.table-responsive {
    overflow-x: auto;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}
table, th, td {
    border: 1px solid #ff7e5f;
}
th, td {
    padding: 12px 15px;
    text-align: left;
}
th {
    background: #ff7e5f;
    color: #fff;
}
@media (max-width: 768px) {
    header h1 {
        font-size: 2.5em;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
    .section h2 {
        font-size: 2em;
    }
}
@media (max-width: 480px) {
    header {
        padding: 30px 0;
    }
    header h1 {
        font-size: 2em;
    }
    .section h2 {
        font-size: 1.8em;
    }
}
@media (min-width: 1440px) {
    .container {
        width: 80%;
    }
    header h1 {
        font-size: 4em;
    }
    .section h2 {
        font-size: 3em;
    }
}
.background-gradient {
    background: linear-gradient(to bottom, #0047ab, #ffffff);
}
.button-primary {
    background: #2a5298;
}
.button-primary:hover {
    background: #1e3c72;
}
.article {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
}
.article h2 {
    color: #ff7e5f;
    margin-bottom: 20px;
}
.article h3 {
    color: #feb47b;
    margin-top: 20px;
    margin-bottom: 10px;
}
.article h4 {
    color: #ff7e5f;
    margin-top: 15px;
    margin-bottom: 10px;
}
.article table {
    background: rgba(0, 0, 0, 0.2);
}
.article th, .article td {
    color: #fff;
}
.footer {
    text-align: center;
    padding: 20px 0;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 10px;
}
.footer p {
    color: #ccc;
}
img {
    max-width: 100%;
    border-radius: 10px;
    transition: transform 0.3s ease-in-out;
}
img:hover {
    transform: scale(1.05);
}
.aurora-move {
    animation: auroraMove 15s linear infinite;
}
@keyframes auroraMove {
    0% { background: radial-gradient(circle, rgb(255, 87, 34), transparent);}
    50% { background: radial-gradient(circle, rgb(34, 193, 195), transparent);}
    100% { background: radial-gradient(circle, rgb(255, 87, 34), transparent);}
}
.code-preview {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 8px;
    overflow-x: auto;
    margin-bottom: 20px;
}
.code-preview code {
    color: #d4d4d4;
    font-family: 'Courier New', Courier, monospace;
}

