
/* 🎨 颜色变量 (用于模仿原始代码中的颜色) */
: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;
    /* max-w-6xl 模拟，可以根据需要调整 */
    margin-left: auto;
    margin-right: auto;
    padding-left: 1rem;
    /* px-4 */
    padding-right: 1rem;
}

/* 标题样式 */
.main-title {
    font-size: 2.25rem;
    /* text-4xl */
    font-weight: 700; /* font-bold */
    text-align: center;
    margin-bottom: 3.5rem;
    /* mb-14 */
    color: #0f403f; /* 直接使用深绿色，而不是 primary-dark */
}

/* 标签页按钮容器样式 */
.tabs-container {
    display: flex;
    justify-content: center;
    /* 居中 */
    flex-wrap: nowrap;
    overflow-x: auto; /* 允许小屏幕滚动 */
    margin-bottom: 3rem;
    /* mb-12 */
    gap: 12px; /* space-x-3 模拟 */
}

.tab-button {
    padding: 0.75rem 1rem;
    /* px-4 py-3 */
    border-radius: 0.375rem; /* rounded-md */
    font-weight: 600;
    /* font-semibold */
    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;
    /* 2行4列布局，每行4张图，使用 fr 单位确保等宽 */
    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垂直居中 */
    
    /* 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;
    /* 关键修改 2: 减小Logo图片的最大高度，使其更小巧 */
    max-height: 90px; 
    
    object-fit: contain;
}

/* 标签页内容切换样式 */
.tab-content.hidden {
    display: none;
}

/* 媒体查询：适配移动端 */
@media (max-width: 640px) {
    .logo-grid {
        /* 在小屏幕上，可以切换成2列布局，每行2张图 */
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: auto;
    }
}
