
/* 基础样式定义 */
:root {
    --main-color: #0074D9;
    --accent-color: #FFA500;
    --highlight-color: #2ECC40;
    --background-color: #f8f8f8;
    --text-color: #333;
    --divider-color: #ddd;
}

body {
    margin: 0;
    font-family: 'Lato', sans-serif;
    background: linear-gradient(135deg, var(--main-color), #1c5fa8);
    color: var(--text-color);
    line-height: 1.6;
}

h1, h2, h3 {
    font-family: 'Roboto', sans-serif;
    font-weight: bold;
    color: white;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.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: radial-gradient(circle, rgba(0, 116, 217, 0.8), transparent);
    position: relative;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('https://images.gptkong.com/demo/sample1.png') no-repeat center/cover;
    opacity: 0.2;
    z-index: -1;
}

.tabs {
    display: flex;
    justify-content: space-around;
    background: linear-gradient(to right, #0074D9, #1c5fa8);
    padding: 10px 0;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    margin-bottom: 20px;
}

.tab-item {
    padding: 10px 20px;
    color: white;
    cursor: pointer;
    transition: all 0.3s ease;
    border-radius: 5px;
}

.tab-item:hover {
    background: var(--accent-color);
    transform: scale(1.1);
}

.content {
    background: var(--background-color);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    width: 100%;
    max-width: 1000px;
}

article {
    font-size: 1rem;
    line-height: 1.8;
    color: var(--text-color);
}

code {
    display: block;
    background: #282c34;
    color: #61dafb;
    padding: 10px;
    border-radius: 5px;
    overflow-x: auto;
    font-family: 'Courier New', monospace;
    font-size: 0.9rem;
}

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

th, td {
    border: 1px solid var(--divider-color);
    padding: 10px;
    text-align: center;
}

th {
    background: var(--main-color);
    color: white;
}

img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin: 10px 0;
}

@media (max-width: 768px) {
    .tabs {
        flex-direction: column;
    }

    .tab-item {
        margin: 5px 0;
    }

    article {
        font-size: 0.9rem;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.fade-in {
    animation: fadeIn 1s forwards;
}

