
/* 基础样式与全局设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: 'Roboto', 'Poppins', sans-serif;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    color: #fff;
    line-height: 1.6;
    overflow-x: hidden;
}
h1, h2, h3 {
    font-weight: bold;
    color: #007BFF;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}
p {
    color: #dcdcdc;
    margin-bottom: 1rem;
}
a {
    color: #6a82fb;
    text-decoration: none;
    transition: color 0.3s ease;
}
a:hover {
    color: #ff6f61;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}
header {
    text-align: center;
    padding: 30px 0;
    background: linear-gradient(to right, #4158d0, #c850c0);
    color: #fff;
    margin-bottom: 30px;
    border-radius: 10px;
}
header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.tabs {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 30px;
}
.tab {
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.tab.active {
    background: #007BFF;
    color: #fff;
    transform: scale(1.1);
}
.tab:hover {
    background: #ff6f61;
    transform: rotate(2deg) scale(1.05);
}
.tab-content {
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.5s ease-in-out, visibility 0.5s ease-in-out;
    width: 100%;
    padding: 20px;
    border-radius: 10px;
    background: rgba(255, 255, 255, 0.05);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}
.tab-content.active {
    opacity: 1;
    visibility: visible;
}
.grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}
.card {
    background: rgba(255, 255, 255, 0.1);
    padding: 20px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease;
}
.card:hover {
    transform: translateY(-5px);
}
.icon {
    font-size: 2rem;
    color: #6a82fb;
    transition: transform 0.3s ease;
}
.icon:hover {
    transform: scale(1.2) rotate(5deg);
}
pre {
    background: #1e1e1e;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
    color: #6a82fb;
    font-size: 0.9rem;
}
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}
th, td {
    padding: 10px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    text-align: left;
}
th {
    background: rgba(255, 255, 255, 0.1);
}
@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }
    .tabs {
        flex-direction: column;
        align-items: center;
    }
    pre {
        font-size: 0.8rem;
    }
}

