
/* 全局样式 */
body {
    margin: 0;
    padding: 0;
    font-family: 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0A2540, #69C89D, #A6FFB8);
    color: #ffffff;
    line-height: 1.6;
    letter-spacing: 0.5px;
}

.container {
    display: grid;
    grid-template-columns: 250px 1fr;
    min-height: 100vh;
    overflow: hidden;
}

.sidebar {
    background-color: #0A2540;
    padding: 20px;
    position: fixed;
    top: 0;
    bottom: 0;
    width: 250px;
    overflow-y: auto;
}

.sidebar h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #A6FFB8;
    text-align: center;
}

.sidebar nav ul {
    list-style: none;
    padding: 0;
}

.sidebar nav ul li {
    margin-bottom: 15px;
}

.sidebar nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-size: 18px;
    transition: color 0.3s;
}

.sidebar nav ul li a:hover {
    color: #FFA726;
}

.main-content {
    margin-left: 250px;
    padding: 40px;
    background: rgba(10, 37, 64, 0.9);
    overflow-y: auto;
    height: 100vh;
}

header {
    text-align: center;
    margin-bottom: 40px;
}

header h1 {
    font-size: 36px;
    color: #A6FFB8;
    margin-bottom: 10px;
}

header p {
    font-size: 18px;
    color: #69C89D;
}

section {
    margin-bottom: 60px;
}

section h2 {
    font-size: 28px;
    color: #FFA726;
    margin-bottom: 20px;
}

section p {
    font-size: 16px;
    color: #ffffff;
    margin-bottom: 20px;
}

section pre {
    background: #0A2540;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

section pre code {
    font-family: 'Courier New', Courier, monospace;
    color: #A6FFB8;
    display: block;
}

.card {
    background: linear-gradient(to right, #69C89D, #A6FFB8);
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 20px;
    margin-bottom: 20px;
}

.card h3 {
    font-size: 22px;
    color: #0A2540;
    margin-bottom: 10px;
}

.card p {
    font-size: 16px;
    color: #0A2540;
}

.image-gallery {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.image-gallery img {
    width: 100%;
    max-width: 320px;
    border-radius: 10px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.footer {
    text-align: center;
    padding: 20px;
    background: #0A2540;
    color: #A6FFB8;
    position: fixed;
    bottom: 0;
    width: calc(100% - 250px);
}

@media (max-width: 1440px) {
    .container {
        grid-template-columns: 220px 1fr;
    }
    .sidebar {
        width: 220px;
    }
    .footer {
        width: calc(100% - 220px);
    }
}

@media (max-width: 1200px) {
    .container {
        grid-template-columns: 200px 1fr;
    }
    .sidebar {
        width: 200px;
    }
    .footer {
        width: calc(100% - 200px);
    }
}

@media (max-width: 1024px) {
    .container {
        grid-template-columns: 180px 1fr;
    }
    .sidebar {
        width: 180px;
    }
    .footer {
        width: calc(100% - 180px);
    }
}

@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .sidebar {
        position: fixed;
        width: 100%;
        height: auto;
        bottom: auto;
    }
    .main-content {
        margin-left: 0;
    }
    .footer {
        width: 100%;
    }
}

@media (max-width: 480px) {
    header h1 {
        font-size: 28px;
    }
    header p {
        font-size: 16px;
    }
    section h2 {
        font-size: 24px;
    }
    section p, .card p {
        font-size: 14px;
    }
    .sidebar nav ul li a {
        font-size: 16px;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 24px;
    }
    header p {
        font-size: 14px;
    }
    section h2 {
        font-size: 20px;
    }
    section p, .card p {
        font-size: 12px;
    }
    .sidebar nav ul li a {
        font-size: 14px;
    }
}

/* 动画效果 */
@keyframes aurora-move {
    0% {
        background-position: 0% 50%;
    }
    50% {
        background-position: 100% 50%;
    }
    100% {
        background-position: 0% 50%;
    }
}

.background-animation {
    background: radial-gradient(circle, rgb(255, 87, 34), transparent);
    animation: aurora-move 15s linear infinite;
}

.ripple-effect {
    position: relative;
    overflow: hidden;
}

.ripple-effect::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    animation: ripple 1s ease-out;
}

@keyframes ripple {
    0% {
        transform: translate(-50%, -50%) scale(0);
        opacity: 1;
    }
    100% {
        transform: translate(-50%, -50%) scale(2.5);
        opacity: 0;
    }
}

.button {
    background-color: #FFA726;
    color: #ffffff;
    padding: 10px 20px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.button:hover {
    background-color: #FF9800;
}

.icon {
    width: 24px;
    height: 24px;
    fill: #ffffff;
    transition: transform 0.3s;
}

.icon:hover {
    transform: scale(1.2);
}

.code-example {
    background: #0A2540;
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-example code {
    font-family: 'Courier New', Courier, monospace;
    color: #A6FFB8;
    display: block;
}

.navigation a {
    display: block;
    padding: 10px 0;
    color: #ffffff;
    text-decoration: none;
    transition: color 0.3s;
}

.navigation a:hover {
    color: #FFA726;
}

