
/* 基础样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    background: linear-gradient(135deg, #1a237e, #512da8);
    color: #ffffff;
    line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
    font-family: 'Montserrat', sans-serif;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 20px;
}

p {
    margin-bottom: 15px;
    font-size: 16px;
}

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

a:hover {
    color: #ff4081;
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 0;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.header {
    text-align: center;
    padding: 20px 0;
}

.header h1 {
    font-size: 2.5em;
    background: linear-gradient(90deg, #00e5ff, #00c853);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}

.navbar {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 20px 0;
}

.navbar a {
    font-size: 1em;
    position: relative;
}

.navbar a::after {
    content: '';
    display: block;
    width: 0;
    height: 2px;
    background: #ff4081;
    transition: width 0.3s;
    position: absolute;
    bottom: -5px;
    left: 0;
}

.navbar a:hover::after {
    width: 100%;
}

.main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 40px;
    width: 100%;
}

.article, .sidebar {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
}

.article pre {
    background: #263238;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}

.article code {
    color: #ffab40;
    font-family: 'Courier New', Courier, monospace;
}

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

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

th, td {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}

th {
    background: #424242;
}

ul, ol {
    margin-left: 20px;
    margin-bottom: 20px;
}

button {
    background-color: #00c853;
    color: #ffffff;
    border: none;
    padding: 12px 24px;
    font-size: 16px;
    cursor: pointer;
    transition: transform 0.3s ease, background-color 0.3s ease;
    border-radius: 5px;
}

button:hover {
    transform: scale(1.05);
    background-color: #00e676;
}

.footer {
    text-align: center;
    padding: 20px 0;
    font-size: 14px;
    color: #b0bec5;
}

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

.img-grid img {
    width: 100%;
    height: auto;
    border-radius: 8px;
}

@media (min-width: 768px) {
    .main {
        grid-template-columns: 3fr 1fr;
    }
}

@media (min-width: 1024px) {
    .header h1 {
        font-size: 3em;
    }
    .navbar a {
        font-size: 1.1em;
    }
}

@media (max-width: 480px) {
    .header h1 {
        font-size: 2em;
    }
    .navbar {
        flex-direction: column;
        gap: 15px;
    }
}

@media (max-width: 320px) {
    p, li {
        font-size: 14px;
    }
    button {
        padding: 10px 20px;
        font-size: 14px;
    }
}

