
/* 全局样式 */
body {
    margin: 0;
    font-family: 'Open Sans', sans-serif;
    background: linear-gradient(135deg, #0A192F, #4C566A);
    color: #ffffff;
    line-height: 1.6;
    padding: 20px;
}
h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: #A3BE8C;
}
a {
    color: #B48EAD;
    text-decoration: none;
}
a:hover {
    color: #ffffff;
}
.container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
}
.header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(90deg, #0A192F, #1E2F4D);
    margin-bottom: 20px;
    border-radius: 10px;
}
.header h1 {
    font-size: 2.5rem;
    margin: 0;
}
.header p {
    font-size: 1.2rem;
    color: #A3BE8C;
}

/* 卡片样式 */
.card {
    background: #1E2F4D;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease-in-out;
    perspective: 1000px;
}
.card:hover {
    transform: translateY(-10px);
}
.card img {
    width: 100%;
    height: auto;
    object-fit: cover;
}
.card-content {
    padding: 20px;
    text-align: center;
}
.card-title {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #A3BE8C;
}
.card-description {
    font-size: 1rem;
    color: #ffffff;
    margin-bottom: 15px;
}
.card-button {
    display: inline-block;
    padding: 10px 20px;
    background: #A3BE8C;
    color: #0A192F;
    border-radius: 5px;
    transition: background 0.3s ease-in-out;
}
.card-button:hover {
    background: #B48EAD;
}

/* 选项卡布局 */
.tabs {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 20px;
}
.tabs label {
    padding: 10px 20px;
    background: #4C566A;
    color: #ffffff;
    border-radius: 5px;
    cursor: pointer;
    transition: background 0.3s ease-in-out;
}
.tabs label:hover {
    background: #A3BE8C;
}
.tab-content {
    display: none;
    padding: 20px;
    background: #1E2F4D;
    border-radius: 10px;
}
input[type="radio"]:checked + label + .tab-content {
    display: block;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        grid-template-columns: 1fr;
    }
    .header h1 {
        font-size: 2rem;
    }
    .tabs {
        flex-direction: column;
    }
    .card {
        margin-bottom: 20px;
    }
}

/* 动画效果 */
@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
.fade-in {
    animation: fadeIn 1s ease-in-out;
}

/* 代码块样式 */
pre {
    background: #1E2F4D;
    padding: 15px;
    border-radius: 5px;
    overflow-x: auto;
}
code {
    color: #A3BE8C;
    font-family: monospace;
    font-size: 0.9rem;
}

/* 表格样式 */
table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: #1E2F4D;
    color: #ffffff;
}
th, td {
    padding: 10px;
    border: 1px solid #4C566A;
    text-align: left;
}
th {
    background: #A3BE8C;
    color: #0A192F;
}

