
/* 全局样式定义 */
body {
    background: linear-gradient(to bottom, #000046, #1cb5e0);
    color: white;
    font-family: 'Roboto', sans-serif;
    margin: 0;
    padding: 20px;
    line-height: 1.6;
    overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
    font-weight: bold;
    color: #ffffff;
    margin-top: 20px;
}

h1 {
    font-size: 36px;
    text-align: center;
    margin-bottom: 30px;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

h2 {
    font-size: 28px;
    border-bottom: 2px solid #1cb5e0;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

h3 {
    font-size: 24px;
    margin-bottom: 15px;
}

p {
    font-size: 16px;
    margin-bottom: 15px;
    color: rgba(255, 255, 255, 0.9);
}

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

a:hover {
    color: #ff9a8b;
}

pre {
    background-color: rgba(0, 0, 70, 0.8);
    padding: 15px;
    border-radius: 10px;
    overflow-x: auto;
    margin-bottom: 20px;
    font-size: 14px;
    color: #ffffff;
}

code {
    color: #ffcc00;
    font-family: 'Courier New', monospace;
}

table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
    background-color: rgba(0, 0, 70, 0.8);
    border-radius: 10px;
    overflow: hidden;
}

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

th {
    background-color: #1cb5e0;
    color: #000046;
    font-weight: bold;
}

ul {
    list-style-type: disc;
    margin-left: 20px;
    margin-bottom: 20px;
}

.tabs-container {
    display: flex;
    justify-content: center;
    margin-bottom: 30px;
}

.tab-item {
    padding: 10px 20px;
    margin: 0 5px;
    background-color: #000046;
    color: #ffffff;
    border-radius: 5px 5px 0 0;
    cursor: pointer;
    transition: all 0.3s ease;
}

.tab-item.active {
    background-color: #1cb5e0;
    font-weight: bold;
}

.content-section {
    background-color: rgba(0, 0, 70, 0.8);
    padding: 20px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    margin-bottom: 30px;
}

.particle {
    position: absolute;
    width: 5px;
    height: 5px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    animation: float 5s infinite ease-in-out;
}

@keyframes float {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-20px) scale(1.2); }
    100% { transform: translateY(0) scale(1); }
}

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

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

@keyframes ripple {
    0% { width: 0; height: 0; opacity: 1; }
    100% { width: 200%; height: 200%; opacity: 0; }
}

@media (max-width: 768px) {
    h1 {
        font-size: 30px;
    }

    h2 {
        font-size: 24px;
    }

    p, li {
        font-size: 14px;
    }

    pre {
        font-size: 12px;
    }

    .tabs-container {
        flex-direction: column;
        align-items: center;
    }

    .tab-item {
        margin-bottom: 10px;
    }
}

