
/* 🎨 颜色变量 (用于模仿原始代码中的颜色) */
:root {
    --primary-dark: #37474F;
    /* 深色文字 */
    --tab-bg-active: #0f403f; /* 样式说明 */
    --tab-text-active: #ffffff;
    /* 样式说明 */
    --tab-bg-inactive: #e0e0e0; /* 样式说明 */
    --tab-text-inactive: #424242;
    /* 样式说明 */
    --background-color: #f5f5f5; /* 样式说明 */
    --grid-gap: 15px;
    /* 样式说明 */
}

/* 💻 核心布局样式 */
.section-container {
    padding: 30px 30px;
    background-color: var(--background-color);
    /* 统一字体 */
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
}

.content-wrapper {
    max-width: 1200px;
    /* 样式说明 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    /* 样式说明 */
    padding-right: 1rem;
}

/* 标题样式 */
.main-title {
    font-size: 2.25rem;
    /* 样式说明 */
    font-weight: 700; /* 样式说明 */
    text-align: center;
    margin-bottom: 3.5rem;
    /* 样式说明 */
    color: #0f403f; /* 样式说明 */
}

/* 样式说明 */
.tabs-container {
    display: flex;
    justify-content: center;
    /* 灞呬腑 */
    flex-wrap: nowrap;
    overflow-x: auto; /* 样式说明 */
    margin-bottom: 3rem;
    /* 样式说明 */
    gap: 12px; /* space-x-3 模拟 */
}

.tab-button {
    padding: 0.75rem 1rem;
    /* 样式说明 */
    border-radius: 0.375rem; /* 样式说明 */
    font-weight: 600;
    /* 样式说明 */
    transition: background-color 0.3s, color 0.3s;
    white-space: nowrap;
    border: none;
    cursor: pointer;
}

.tab-active {
    background-color: var(--tab-bg-active) !important;
    color: var(--tab-text-active) !important;
}

.tab-inactive {
    background-color: var(--tab-bg-inactive) !important;
    color: var(--tab-text-inactive) !important;
}

/* Logo 网格布局 (核心样式) */
.logo-grid {
    display: grid;
    /* 样式说明 */
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    /* 关键修改 1: 增加网格间隙 */
    gap: var(--grid-gap); 

    border: none;
    padding: 0;
}

.grid-item {
    display: flex;
    justify-content: center; /* Logo灞呬腑 */
    align-items: center;
    /* Logo鍨傜洿灞呬腑 */
    
    /* 样式说明 */
    background-color: #ffffff; 

    min-height: 60px;
    border: none; 

    padding: 1rem;
    box-sizing: border-box; 
}

.logo-container {
    max-width: 100%; 
    max-height: 120%; 
    display: flex;
    justify-content: center;
    align-items: center;
}

.logo-container img {
    display: block;
    width: auto;
    /* 样式说明 */
    max-height: 90px; 
    
    object-fit: contain;
}

/* 样式说明 */
.tab-content.hidden {
    display: none;
}

/* 样式说明 */
@media (max-width: 640px) {
    .logo-grid {
        /* 样式说明 */
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}
