/* 产品分类模块 - 命名空间 .pc-* 避免与现有样式冲突
   包含 8 个分类：碳化硅、功率MOS、功率二极管、IGBT、功率三极管、集成电路、小信号器件、汽车电子
   鼠标 hover / 点击切换对应内容面板，适配 PC / 平板 / 手机 */

:root {
    --pc-primary: #0b308e; /* 主色（蓝） */
    --pc-primary-deep: #082570;
    --pc-text: #333;
    --pc-text-light: #666;
    --pc-muted: #999;
    --pc-border: #e5e7eb;
    --pc-bg-soft: #f5f7fa;
    --pc-tab-gray: #c9ced6; /* 分类未激活时图标颜色 */
}

/* ===== 整体容器 ===== */
.pc-section {
    width: 100%;
    padding: 80px 0 90px;
    background: #fff;
    box-sizing: border-box;
}

.pc-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
    box-sizing: border-box;
}

/* ===== 标题行：左侧标题 + 右侧搜索 ===== */
.pc-title-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
    padding-bottom: 36px;
    border-bottom: 1px solid #f0f2f5;
    position: relative;
}

    .pc-title-row::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 86px;
        height: 2px;
        background: #0074bc;
    }

.pc-title {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0;
    letter-spacing: 1px;
}

.pc-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-search-input {
    width: 280px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f5f7fa url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 14px center;
    background-size: 16px 16px;
    padding: 0 16px 0 40px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

    .pc-search-input::placeholder {
        color: #999;
    }

    .pc-search-input:focus {
        border-color: var(--pc-primary);
        background-color: #fff;
    }

.pc-search-btn {
    height: 40px;
    line-height: 1;
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    background: #1a2b3c;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

    .pc-search-btn:hover {
        background: var(--pc-primary);
    }

/* ===== 产品中心标题行（复用 pc-title-row 排版，容器为 alx-title-row） ===== */
.pc-section .alx-title-row {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 16px;
    padding: 0 0 36px;
    border-bottom: 1px solid #f0f2f5;
    position: relative;
    text-align: left;
    margin-bottom: 0;
}

    .pc-section .alx-title-row::after {
        content: "";
        position: absolute;
        left: 0;
        bottom: -1px;
        width: 86px;
        height: 2px;
        background: #0074bc;
    }

    .pc-section .alx-title-row .alx-title {
        font-size: 32px;
        font-weight: 700;
        color: #000;
        line-height: 1.2;
        margin: 0;
        letter-spacing: 1px;
    }

    .pc-section .alx-title-row .alx-title-deco,
    .pc-section .alx-title-row .alx-subtitle {
        display: none;
    }

.alx-title-search {
    display: flex;
    align-items: center;
    gap: 12px;
}

.alx-title-search-input {
    width: 280px;
    height: 40px;
    border: 1px solid #e5e7eb;
    border-radius: 20px;
    background: #f5f7fa url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'><circle cx='11' cy='11' r='8'/><line x1='21' y1='21' x2='16.65' y2='16.65'/></svg>") no-repeat 14px center;
    background-size: 16px 16px;
    padding: 0 16px 0 40px;
    font-size: 14px;
    color: #333;
    outline: none;
    transition: border-color 0.2s ease, background-color 0.2s ease;
}

    .alx-title-search-input::placeholder {
        color: #999;
    }

    .alx-title-search-input:focus {
        border-color: var(--pc-primary);
        background-color: #fff;
    }

.alx-title-search-btn {
    height: 40px;
    line-height: 1;
    padding: 0 24px;
    border: none;
    border-radius: 20px;
    background: #1a2b3c;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    transition: background-color 0.25s ease;
}

    .alx-title-search-btn:hover {
        background: #0074bc;
    }

/* ===== 八个分类 Tab ===== */
.pc-tabs {
    display: grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));
    gap: 16px;
    padding: 36px 0 0px;
    list-style: none;
    margin: 0;
}

.pc-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 22px 8px 20px;
    min-height: 132px;
    cursor: pointer;
    position: relative;
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
    color: var(--pc-text-light);
    user-select: none;
    background: #fff;
    border: 1px solid #e8eaef;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

    .pc-tab .pc-tab-icon {
        width: 48px;
        height: 48px;
        object-fit: contain;
        display: block;
        filter: grayscale(100%);
        opacity: 0.45;
        transition: filter 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
    }

    .pc-tab .pc-tab-label {
        font-size: 15px;
        line-height: 1.2;
        white-space: nowrap;
        color: #888;
        font-weight: 500;
        transition: color 0.3s ease;
    }

    /* ---- hover / active：蓝底白字白色图标 ---- */
    .pc-tab:hover,
    .pc-tab.active {
        background: #0074bc;
        border-color: #0074bc;
        box-shadow: 0 6px 20px rgba(11, 48, 142, 0.3);
        transform: translateY(-3px);
    }

        .pc-tab:hover .pc-tab-label,
        .pc-tab.active .pc-tab-label {
            color: #fff;
            font-weight: bold;
        }

        .pc-tab:hover .pc-tab-icon,
        .pc-tab.active .pc-tab-icon {
            filter: brightness(0) invert(1);
            opacity: 1;
            transform: scale(1.08);
        }

/* ===== 内容面板 ===== */
.pc-content {
    position: relative;
    min-height: 360px;
}

.pc-panel {
    display: none;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 30px 40px;
    background: #fff;
    border-radius: 8px;
    animation: pcFadeIn 0.45s ease;
}

    .pc-panel.active {
        display: flex;
    }

@keyframes pcFadeIn {
    from {
        opacity: 0;
        transform: translateY(8px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.pc-left {
    flex: 1;
    min-width: 0;
    padding-right: 20px;
}

.pc-right {
    width: 650px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

    .pc-right img {
        width: 100%;
        max-width: 650px;
        height: auto;
        object-fit: contain;
        display: block;
    }

.pc-name {
    font-size: 30px;
    font-weight: 700;
    color: #000;
    line-height: 1.2;
    margin: 0 0 18px;
}

.pc-desc {
    font-size: 14px;
    line-height: 1.7;
    color: var(--pc-text-light);
    margin: 0 0 20px;
    min-height: 48px;
}

.pc-links {
    list-style: none;
    margin: 0 0 28px;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 6px 24px;
}

    .pc-links li a {
        position: relative;
        display: block;
        font-size: 14px;
        line-height: 32px;
        padding-left: 26px;
        padding-right: 10px;
        color: var(--pc-text);
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
        border-radius: 6px;
        transition: color 0.25s ease, background 0.25s ease;
    }

        .pc-links li a::before {
            content: "";
            position: absolute;
            left: 11px;
            top: 50%;
            width: 6px;
            height: 6px;
            border-radius: 50%;
            background: var(--pc-primary);
            transform: translateY(-50%);
            opacity: 0.6;
            transition: opacity 0.25s ease, transform 0.25s ease;
        }

        .pc-links li a:hover {
            background: #0074bc;
            color: #fff;
        }

            .pc-links li a:hover::before {
                background: #fff;
                opacity: 1;
                transform: translateY(-50%) scale(1.3);
            }

.pc-more {
    display: inline-block;
    width: 140px;
    height: 42px;
    line-height: 40px;
    text-align: center;
    font-size: 14px;
    color: var(--pc-text-light);
    border: 1px solid #d8dde3;
    border-radius: 21px;
    transition: all 0.25s ease;
    background: #fff;
}

    .pc-more:hover {
        color: #fff;
        background: #0074bc;
        border-color: #0074bc;
    }

/* ===== 响应式：平板 ===== */
@media (max-width: 1200px) {
    .pc-section {
        padding: 60px 0 70px;
    }

    .pc-title {
        font-size: 26px;
    }

    .pc-tabs {
        padding: 28px 0 0px;
    }

    .pc-tab .pc-tab-icon {
        width: 44px;
        height: 44px;
    }

    .pc-tab .pc-tab-label {
        font-size: 14px;
    }

    .pc-panel {
        padding: 24px 24px;
        gap: 24px;
    }

    .pc-right {
        width: 380px;
    }

    .pc-name {
        font-size: 26px;
    }
}

/* ===== 响应式：中等屏幕（折行） ===== */
@media (max-width: 1024px) {
    .pc-tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 12px;
        padding: 28px 0 0px;
    }

    .pc-tab {
        min-height: 120px;
        padding: 18px 6px 16px;
    }

        .pc-tab .pc-tab-icon {
            width: 44px;
            height: 44px;
        }

        .pc-tab .pc-tab-label {
            font-size: 14px;
        }

    .pc-panel {
        flex-direction: column;
        align-items: flex-start;
        padding: 24px 24px 28px;
    }

    .pc-right {
        width: 100%;
        order: -1;
        margin-bottom: 12px;
    }

        .pc-right img {
            max-width: 320px;
            margin: 0 auto;
        }

    .pc-left {
        padding-right: 0;
        width: 100%;
    }

    .pc-name {
        font-size: 24px;
    }

    .pc-links {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ===== 响应式：手机 ===== */
@media (max-width: 768px) {
    .pc-section {
        padding: 40px 0 50px;
    }

    .pc-container {
        padding: 0 16px;
    }

    .pc-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding-bottom: 24px;
    }

    .pc-title {
        font-size: 22px;
    }

    .pc-search {
        width: 100%;
    }

    .pc-search-input {
        flex: 1;
        width: auto;
        min-width: 0;
        height: 38px;
        font-size: 13px;
    }

    .pc-search-btn {
        height: 38px;
        padding: 0 18px;
        font-size: 13px;
        flex-shrink: 0;
    }

    /* 复用 pc-title-row 的移动端排版 */
    .pc-section .alx-title-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 14px;
        padding: 0 0 24px;
    }

        .pc-section .alx-title-row .alx-title {
            font-size: 22px;
        }

    .alx-title-search {
        width: 100%;
    }

    .alx-title-search-input {
        flex: 1;
        width: auto;
        min-width: 0;
        height: 38px;
        font-size: 13px;
    }

    .alx-title-search-btn {
        height: 38px;
        padding: 0 18px;
        font-size: 13px;
        flex-shrink: 0;
    }

    .pc-tabs {
        grid-template-columns: repeat(4, 1fr);
        gap: 10px;
        padding: 20px 0 32px;
    }

    .pc-tab {
        min-height: 104px;
        padding: 14px 4px 12px;
        border-radius: 10px;
    }

        .pc-tab .pc-tab-icon {
            width: 36px;
            height: 36px;
        }

        .pc-tab .pc-tab-label {
            font-size: 12px;
        }

    .pc-panel {
        padding: 18px 16px;
        gap: 14px;
    }

    .pc-right img {
        max-width: 240px;
    }

    .pc-name {
        font-size: 20px;
        margin-bottom: 12px;
    }

    .pc-desc {
        font-size: 13px;
        min-height: 0;
    }

    .pc-links {
        grid-template-columns: 1fr;
        gap: 4px;
        margin-bottom: 20px;
    }

        .pc-links li a {
            font-size: 13px;
            line-height: 28px;
        }

    .pc-more {
        width: 120px;
        height: 36px;
        line-height: 34px;
        font-size: 13px;
    }
}

@media (max-width: 480px) {
    .pc-tabs {
        grid-template-columns: repeat(4, 1fr);
    }
}
