:root {
    --bg: #f7f4ef;
    --card-bg: #ffffff;
    --primary: #4f8a8b;
    --primary-dark: #356667;
    --primary-light: #e6f2f3;
    --primary-subtle: #f4f9f9;
    --accent: #c4a076;
    --accent-light: #fdf5ea;
    --accent-dark: #a07848;
    --text: #3b3530;
    --text-secondary: #5c5650;
    --text-muted: #8a827b;
    --border: #e5ded6;
    --border-light: #f0ebe4;
    --shadow-xs: 0 1px 2px rgba(50, 40, 30, 0.04);
    --shadow-sm: 0 1px 4px rgba(50, 40, 30, 0.06);
    --shadow: 0 3px 14px rgba(50, 40, 30, 0.07);
    --shadow-md: 0 6px 24px rgba(50, 40, 30, 0.09);
    --shadow-lg: 0 12px 40px rgba(50, 40, 30, 0.11);
    --radius-xs: 6px;
    --radius-sm: 10px;
    --radius: 14px;
    --radius-lg: 18px;
    --radius-xl: 22px;
    --transition: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-fast: 0.18s cubic-bezier(0.4, 0, 0.2, 1);
    --font-heading: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
    --font-body: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
}

.team-container {
    width: 100%;
    display: flex;
    gap: 26px;
    align-items: flex-start;
}


/* ==================== 左侧边栏 ==================== */
.sidebar {
    flex: 0 0 300px;
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    padding: 14px 10px;
    box-shadow: var(--shadow);
    border: 1px solid var(--border-light);
    position: sticky;
    top: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    overflow-y: auto;
    scrollbar-width: thin;
    scrollbar-color: #d5cdc4 transparent;
}
.sidebar::-webkit-scrollbar {
    width: 5px;
}
.sidebar::-webkit-scrollbar-track {
    background: transparent;
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb {
    background: #d5cdc4;
    border-radius: 10px;
}
.sidebar::-webkit-scrollbar-thumb:hover {
    background: #c4b9ac;
}

.sidebar-label {
    font-family: var(--font-heading);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--text-muted);
    padding: 6px 8px 10px 8px;
    text-align: center;
    border-bottom: 1px solid var(--border-light);
    margin-bottom: 4px;
}

.tab-item {
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1.5px solid transparent;
    text-align: left;
    padding: 11px 14px;
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-fast);
    border-radius: var(--radius-sm);
    position: relative;
    letter-spacing: 0.02em;
    white-space: nowrap;
    user-select: none;
}
.tab-item::before {
    content: '';
    flex-shrink: 0;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d5cdc4;
    transition: all var(--transition-fast);
}
.tab-item:hover {
    background-color: var(--primary-subtle);
    border-color: #dce8e8;
    color: var(--text);
    transform: translateX(2px);
}
.tab-item:hover::before {
    background: var(--accent);
    transform: scale(1.3);
}
.tab-item.active {
    background-color: var(--primary);
    color: #ffffff;
    border-color: var(--primary-dark);
    font-weight: 600;
    box-shadow: var(--shadow-sm);
    transform: translateX(3px);
}
.tab-item.active::before {
    background: #ffffff;
    width: 9px;
    height: 9px;
    box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.25);
}

/* ==================== 右侧内容区 ==================== */
.content-area {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    margin: 20px 0;
}

.content-wrapper {
    display: none;
    flex-direction: column;
    gap: 22px;
    animation: fadeSlideIn 0.35s ease-out;
}
.content-wrapper.active {
    display: flex;
}

@keyframes fadeSlideIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 模块卡片 ==================== */
.module-card {
    background: var(--card-bg);
    border-radius: var(--radius-lg);
    border: 1px solid var(--border-light);
    box-shadow: var(--shadow-xs);
    overflow: hidden;
    transition: box-shadow var(--transition);
}
.module-card:hover {
    box-shadow: var(--shadow);
}

.module-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--border-light);
    background: #fdfcf9;
}
.module-header-icon {
    flex-shrink: 0;
    width: 34px;
    height: 34px;
    border-radius: var(--radius-xs);
    background: var(--primary-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    color: var(--primary);
}
.module-header-text {
    flex: 1;
}
.module-header h3 {
    font-family: var(--font-heading);
    font-size: 15px;
    font-weight: 700;
    color: var(--text);
    letter-spacing: 0.02em;
    margin: 0;
    line-height: 1.3;
}
.module-header .subtitle {
    font-size: 12px;
    color: var(--text-muted);
    font-weight: 400;
    letter-spacing: 0.03em;
}

.module-body {
    padding: 18px 20px;
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.75;
}
.module-body p {
    margin: 0;
}
.module-body .highlight-text {
    color: var(--primary);
    font-weight: 600;
}
.module-body .accent-text {
    color: var(--accent-dark);
    font-weight: 500;
}

/* ==================== 轮播容器 ==================== */
.carousel-container {
    position: relative;
    border-radius: var(--radius);
    overflow: hidden;
    min-height: 170px;
    background: #fafaf8;
    display: flex;
    align-items: center;
    padding: 0 44px;
    border: 1px solid var(--border-light);
    transition: box-shadow var(--transition);
}
.carousel-container:hover {
    box-shadow: inset 0 0 0 1px rgba(79, 138, 139, 0.08);
}

.carousel-track {
    display: flex;
    width: 100%;
    transition: transform 0.45s cubic-bezier(0.4, 0, 0.2, 1);
    align-items: center;
}

.slide {
    flex: 0 0 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 30px;
    gap: 36px;
    min-height: 150px;
}

.image-placeholder {
    flex: 0 0 42%;
    max-width: 300px;
    height: 220px;
    background: linear-gradient(135deg, #e8f2f3 0%, #dce8e8 30%, #f0e8da 70%, #fdf5ea 100%);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 20px;
    font-weight: 700;
    letter-spacing: 0.04em;
    font-family: var(--font-heading);
    border: 2px dashed #d5cdc4;
    position: relative;
    overflow: hidden;
}

.slide-text {
    flex: 1;
    text-align: left;
    color: var(--text-secondary);
    font-size: 15px;
    font-weight: 500;
    line-height: 1.6;
    letter-spacing: 0.03em;
}
.slide-text strong {
    display: block;
    font-family: var(--font-heading);
    font-size: 17px;
    color: var(--text);
    margin-bottom: 4px;
}
.slide-text span {
    color: var(--text-muted);
    font-size: 13px;
}

/* 轮播按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: #ffffff;
    color: var(--primary);
    border: 2px solid var(--border);
    font-size: 16px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-fast);
    box-shadow: var(--shadow-sm);
    font-weight: 700;
}
.carousel-btn:hover {
    background: var(--primary);
    color: #fff;
    border-color: var(--primary);
    box-shadow: var(--shadow);
    transform: translateY(-50%) scale(1.06);
}
.carousel-btn:active {
    transform: translateY(-50%) scale(0.95);
    transition: 0.08s;
}
.prev-btn {
    left: 8px;
}
.next-btn {
    right: 8px;
}

/* 轮播页码指示 */
.carousel-indicator {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 6px;
    z-index: 5;
}
.carousel-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d5cdc4;
    transition: all var(--transition-fast);
    cursor: pointer;
}
.carousel-dot.active {
    background: var(--primary);
    width: 20px;
    border-radius: 10px;
}

/* ==================== 响应式 ==================== */
@media (max-width: 1100px) {
    .container {
        gap: 18px;
    }
    .sidebar {
        flex: 0 0 170px;
        padding: 10px 7px;
        border-radius: var(--radius);
    }
    .tab-item {
        padding: 9px 10px;
        font-size: 13px;
        gap: 6px;
    }
    .tab-item::before {
        width: 5px;
        height: 5px;
    }
    .tab-item.active::before {
        width: 7px;
        height: 7px;
    }
    .slide {
        gap: 20px;
        padding: 10px 16px;
    }
    .image-placeholder {
        flex: 0 0 38%;
        max-width: 240px;
        height: 100px;
        font-size: 16px;
    }
    .carousel-container {
        padding: 0 36px;
        min-height: 140px;
    }
    .carousel-btn {
        width: 30px;
        height: 30px;
        font-size: 13px;
    }
}

@media (max-width: 768px) {
    body {
        padding: 12px 8px 30px;
    }
    .container {
        flex-direction: column;
        gap: 16px;
    }
    .sidebar {
        flex: auto;
        width: 100%;
        position: static;
        max-height: none;
        overflow-y: visible;
        display: flex;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
        padding: 10px 8px;
        border-radius: var(--radius);
        justify-content: flex-start;
    }
    .sidebar-label {
        width: 100%;
        text-align: center;
        padding: 4px 0 8px;
        border-bottom: 1px solid var(--border-light);
        margin-bottom: 2px;
        font-size: 10px;
    }
    .tab-item {
        flex: 0 0 auto;
        padding: 8px 12px;
        font-size: 12px;
        border-radius: 20px;
        gap: 4px;
        white-space: nowrap;
        transform: none !important;
    }
    .tab-item::before {
        width: 5px;
        height: 5px;
    }
    .tab-item.active {
        transform: none !important;
        border-radius: 20px;
    }
    .tab-item.active::before {
        width: 6px;
        height: 6px;
    }
    .tab-item:hover {
        transform: none !important;
    }
    .content-wrapper {
        gap: 14px;
    }
    .slide {
        flex-direction: column;
        gap: 14px;
        padding: 12px 10px;
        text-align: center;
    }
    .image-placeholder {
        flex: none;
        width: 100%;
        max-width: 100%;
        height: 140px;
        font-size: 18px;
    }
    .slide-text {
        text-align: center;
    }
    .carousel-container {
        padding: 0 32px;
        min-height: auto;
    }
    .carousel-btn {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
    .prev-btn {
        left: 4px;
    }
    .next-btn {
        right: 4px;
    }
    .module-header {
        padding: 10px 14px;
    }
    .module-body {
        padding: 12px 14px;
        font-size: 13px;
    }
    .module-header h3 {
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .sidebar {
        gap: 4px;
        padding: 8px 5px;
    }
    .tab-item {
        padding: 7px 10px;
        font-size: 11px;
        border-radius: 16px;
        gap: 3px;
    }
    .tab-item::before {
        width: 4px;
        height: 4px;
    }
    .image-placeholder {
        height: 110px;
        font-size: 15px;
    }
    .carousel-container {
        padding: 0 26px;
    }
    .carousel-btn {
        width: 24px;
        height: 24px;
        font-size: 10px;
    }
    .slide {
        padding: 8px 4px;
        gap: 10px;
    }
}