
/* 导入字体 */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;900&display=swap');

/* 基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Poppins', sans-serif;
    line-height: 1.6;
    background: linear-gradient(135deg, #4567eb, #a855f7);
    color: #333;
    animation: backgroundMove 15s linear infinite;
}

header {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    text-align: center;
    backdrop-filter: blur(10px);
    border-bottom: 2px solid rgba(255, 255, 255, 0.3);
}

header h1 {
    font-size: 2.5rem;
    color: #fff;
    text-transform: uppercase;
    letter-spacing: 2px;
}

nav {
    margin-top: 10px;
}

nav a {
    color: #fff;
    text-decoration: none;
    margin: 0 15px;
    font-weight: 600;
    position: relative;
}

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

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

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

.section {
    margin: 40px 0;
    padding: 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    backdrop-filter: blur(10px);
}

.section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #fff;
    text-align: center;
}

.section p {
    font-size: 1rem;
    margin-bottom: 15px;
    color: #f0f0f0;
}

.section ul {
    list-style: inside disc;
    margin-bottom: 15px;
}

.section ul li {
    margin-bottom: 10px;
}

.code-block {
    background: rgba(0, 0, 0, 0.7);
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    margin-bottom: 20px;
}

.code-block code {
    color: #00ff00;
    font-family: 'Courier New', Courier, monospace;
    white-space: pre-wrap;
}

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

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

table th, table td {
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 10px;
    text-align: left;
    color: #fff;
}

table th {
    background: rgba(255, 255, 255, 0.2);
}

.button {
    display: inline-block;
    padding: 10px 20px;
    background: radial-gradient(circle, #ff9800, #ff5722);
    color: #fff;
    border: none;
    border-radius: 50px;
    cursor: pointer;
    transition: transform 0.3s ease, background 0.3s ease;
    text-decoration: none;
    font-weight: 600;
}

.button:hover {
    transform: scale(1.05);
    background: radial-gradient(circle, #e68900, #e04e00);
}

footer {
    background: rgba(255, 255, 255, 0.2);
    padding: 20px;
    text-align: center;
    color: #fff;
    border-top: 2px solid rgba(255, 255, 255, 0.3);
}

footer a {
    color: #ff9800;
    text-decoration: none;
    font-weight: 600;
}

footer a:hover {
    text-decoration: underline;
}

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

/* 响应式设计 */
@media (max-width: 1440px) {
    .section h2 {
        font-size: 1.8rem;
    }
    header h1 {
        font-size: 2rem;
    }
}

@media (max-width: 1200px) {
    .container {
        padding: 15px;
    }
}

@media (max-width: 1024px) {
    nav a {
        margin: 0 10px;
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 1.8rem;
    }
    nav {
        display: none;
    }
    .hamburger {
        display: block;
        cursor: pointer;
        position: absolute;
        top: 20px;
        right: 20px;
    }
    .hamburger div {
        width: 25px;
        height: 3px;
        background: #fff;
        margin: 5px 0;
        transition: all 0.3s ease;
    }
    .mobile-nav {
        display: none;
        flex-direction: column;
        background: rgba(0, 0, 0, 0.8);
        position: absolute;
        top: 60px;
        right: 20px;
        padding: 20px;
        border-radius: 10px;
    }
    .mobile-nav a {
        margin: 10px 0;
        color: #fff;
        text-align: right;
    }
}

@media (max-width: 480px) {
    .section h2 {
        font-size: 1.5rem;
    }
    .button {
        padding: 8px 16px;
        font-size: 0.9rem;
    }
}

@media (max-width: 320px) {
    header h1 {
        font-size: 1.5rem;
    }
    .section {
        padding: 15px;
    }
}

