/* 男装尺码对照表 - 专用样式 */

/* ==================== 标签容器 ==================== */
.tab-container {
    width: 100%;
    margin-bottom: 30px;
}

/* 标签按钮组 */
.tab-buttons {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 25px;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 12px;
}

/* 标签按钮 */
.tab-btn {
    flex: 1;
    min-width: 120px;
    padding: 12px 20px;
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.tab-btn:hover {
    border-color: #4A90E2;
    color: #4A90E2;
    background: #f0f7ff;
    transform: translateY(-2px);
}

.tab-btn.active {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    border-color: #4A90E2;
    color: white;
    box-shadow: 0 4px 12px rgba(74, 144, 226, 0.3);
}

/* 标签内容区 */
.tab-content {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-content.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==================== 尺码表格容器 ==================== */
.size-table-wrapper {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.size-table-wrapper h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.size-table-wrapper h3 i {
    color: #4A90E2;
    font-size: 24px;
}

.size-table-wrapper h4 {
    font-size: 18px;
    color: #333;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.size-table-wrapper h4 i {
    color: #4A90E2;
    font-size: 12px;
}

.table-desc {
    color: #666;
    font-size: 14px;
    margin-bottom: 20px;
    padding: 10px 15px;
    background: #f0f7ff;
    border-left: 4px solid #4A90E2;
    border-radius: 4px;
}

/* ==================== 表格滚动容器 ==================== */
.table-scroll {
    overflow-x: auto;
    margin-bottom: 20px;
    -webkit-overflow-scrolling: touch; /* iOS 平滑滚动 */
}

/* 自定义滚动条 */
.table-scroll::-webkit-scrollbar {
    height: 8px;
}

.table-scroll::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 4px;
}

.table-scroll::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* ==================== 尺码表格 ==================== */
.size-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px; /* 防止表格在小屏幕上被压缩 */
    background: white;
}

.size-table thead {
    background: linear-gradient(135deg, #4A90E2 0%, #357ABD 100%);
    color: white;
}

.size-table thead th {
    padding: 14px 12px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    border: 1px solid rgba(255, 255, 255, 0.2);
    white-space: nowrap;
}

.size-table tbody tr {
    transition: background 0.2s ease;
}

.size-table tbody tr:nth-child(even) {
    background: #f9f9f9;
}

.size-table tbody tr:hover {
    background: #f0f7ff;
}

.size-table tbody td {
    padding: 12px;
    text-align: center;
    border: 1px solid #e0e0e0;
    font-size: 14px;
    color: #555;
}

/* 尺码标签列（第一列） */
.size-table .size-label {
    font-weight: 700;
    color: #4A90E2;
    font-size: 16px;
    background: #f0f7ff;
}

/* ==================== 响应式设计 ==================== */

/* 平板端 (768px - 1024px) */
@media (max-width: 1024px) {
    .size-table-wrapper {
        padding: 25px 20px;
    }

    .size-table-wrapper h3 {
        font-size: 20px;
    }

    .size-table thead th {
        padding: 12px 10px;
        font-size: 14px;
    }

    .size-table tbody td {
        padding: 10px;
        font-size: 13px;
    }

    .tab-btn {
        min-width: 100px;
        padding: 10px 15px;
        font-size: 14px;
    }
}

/* 手机端 (< 768px) */
@media (max-width: 768px) {
    /* 标签按钮 */
    .tab-buttons {
        flex-direction: column;
        gap: 8px;
        padding: 12px;
    }

    .tab-btn {
        width: 100%;
        min-width: unset;
        padding: 12px 15px;
        font-size: 15px;
    }

    /* 表格容器 */
    .size-table-wrapper {
        padding: 20px 15px;
    }

    .size-table-wrapper h3 {
        font-size: 18px;
    }

    .size-table-wrapper h3 i {
        font-size: 20px;
    }

    .size-table-wrapper h4 {
        font-size: 16px;
    }

    .table-desc {
        font-size: 13px;
        padding: 8px 12px;
    }

    /* 表格样式 */
    .size-table {
        min-width: 500px; /* 移动端最小宽度 */
    }

    .size-table thead th {
        padding: 10px 8px;
        font-size: 13px;
    }

    .size-table tbody td {
        padding: 8px 6px;
        font-size: 12px;
    }

    .size-table .size-label {
        font-size: 14px;
    }

    /* 滚动提示 */
    .table-scroll::after {
        content: '← 左右滑动查看更多 →';
        display: block;
        text-align: center;
        color: #999;
        font-size: 12px;
        margin-top: 10px;
        animation: fadeInOut 3s ease-in-out infinite;
    }

    @keyframes fadeInOut {
        0%, 100% { opacity: 0.5; }
        50% { opacity: 1; }
    }
}

/* 超小屏幕 (< 480px) */
@media (max-width: 480px) {
    .size-table {
        min-width: 450px;
    }

    .size-table-wrapper {
        padding: 15px 10px;
    }

    .size-table-wrapper h3 {
        font-size: 16px;
    }

    .size-table thead th {
        padding: 8px 6px;
        font-size: 12px;
    }

    .size-table tbody td {
        padding: 6px 4px;
        font-size: 11px;
    }

    .tab-btn {
        padding: 10px 12px;
        font-size: 14px;
    }
}

/* ==================== 打印样式 ==================== */
@media print {
    .tab-buttons {
        display: none;
    }

    .tab-content {
        display: block !important;
        page-break-after: always;
    }

    .size-table {
        border: 1px solid #000;
    }

    .size-table thead {
        background: #ddd !important;
        color: #000 !important;
    }

    .ad-base,
    .info-card {
        display: none;
    }
}
