/* ==========================================================================
   Nuoang Product Page CSS
   专属产品页样式，复用 nuoang-modules.css 的变量和公共组件
   ========================================================================== */

/* ===== 面包屑 ===== */
.nuoang-product-breadcrumb {
    width: 100%;
    padding: 20px 0;
    background: #F8F9FC;
}
.nuoang-product-breadcrumb-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: #6B7280;
}
.nuoang-product-breadcrumb-inner a {
    color: #6B7280;
    text-decoration: none;
    transition: color 0.25s ease;
}
.nuoang-product-breadcrumb-inner a:hover {
    color: var(--nuoang-primary-color);
}
.nuoang-product-breadcrumb-inner .current {
    color: var(--nuoang-text-color);
    font-weight: 500;
}
.nuoang-product-breadcrumb-inner i {
    font-size: 12px;
    color: #9CA3AF;
}

/* ===== Banner ===== */
.nuoang-product-hero {
    width: 100%;
    min-height: 420px;
    padding-top: 64px;
    box-sizing: border-box;
    position: relative;
    display: flex;
    align-items: center;
}
.nuoang-product-hero-video {
    position: absolute;
    top: 0; left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.nuoang-product-hero-overlay {
    position: relative;
    z-index: 1;
    text-align: left;
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
    width: 100%;
}
.nuoang-product-hero-title {
    font-size: 36px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 12px 0;
}
.nuoang-product-hero-subtitle {
    font-size: 16px;
    color: #4B5563;
    line-height: 1.6;
    margin: 0;
    max-width: 60%;
}

/* ===== 产品列表模块（筛选 + 卡片） ===== */
.nuoang-product-list {
    background: #fff;
    padding: var(--module-py) 0;
}
.nuoang-product-list-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 产品分类 Tab */
.nuoang-product-category-tabs {
    display: flex;
    justify-content: center;
    background: #F0F2F5;
    border-radius: 24px;
    padding: 4px;
    gap: 2px;
    margin-bottom: 32px;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}
.nuoang-category-tab {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 22px;
    font-size: 15px;
    font-weight: 400;
    color: #8F959E;
    background: transparent;
    border: none;
    border-radius: 20px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
}
.nuoang-category-tab:hover {
    color: #1F2329;
}
.nuoang-category-tab.active {
    color: #1F2329;
    background: #fff;
    font-weight: 500;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.06), 0 2px 8px rgba(0, 0, 0, 0.04);
}

/* 筛选栏 */
.nuoang-product-filter {
    margin-bottom: 40px;
}

/* 筛选分组 */
.nuoang-filter-group {
    margin-bottom: 28px;
}
.nuoang-filter-group:last-child {
    margin-bottom: 0;
}

/* 分组标题 */
.nuoang-filter-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--nuoang-text-color);
    margin-bottom: 16px;
    line-height: 1.4;
}

/* 选项网格 */
.nuoang-filter-options {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

/* 筛选按钮通用（文字选项） */
.nuoang-filter-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: calc((100% - 72px) / 7);
    height: 44px;
    padding: 0;
    font-size: 14px;
    font-weight: 400;
    color: #4B5563;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 0;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: inherit;
    box-sizing: border-box;
    flex-shrink: 0;
}
.nuoang-filter-btn:hover {
    border-color: var(--nuoang-primary-color);
    color: var(--nuoang-primary-color);
    background: rgba(50, 105, 255, 0.03);
}
.nuoang-filter-btn.active {
    color: var(--nuoang-primary-color);
    border-color: var(--nuoang-primary-color);
    border-width: 2px;
    background: rgba(50, 105, 255, 0.05);
    font-weight: 500;
}

/* 品牌 Logo 卡片 */
.nuoang-filter-brand-item {
    width: calc((100% - 72px) / 7);
    height: 52px;
    padding: 0;
    min-width: 0;
}
.nuoang-filter-brand-item img {
    max-height: 32px;
    max-width: 85%;
    object-fit: contain;
    transition: all 0.2s ease;
}
.nuoang-filter-brand-item:hover img {
    opacity: 1;
}
.nuoang-filter-brand-item.active img {
    opacity: 1;
}

/* 产品规格标题 */
.nuoang-product-spec-header {
    border-top: 1px solid #E5E7EB;
    padding-top: 32px;
    margin-bottom: 24px;
}
.nuoang-product-spec-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--nuoang-text-color);
    margin: 0;
    line-height: 1.4;
}

/* ===== 产品卡片网格 ===== */
.nuoang-product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

/* ===== 产品卡片（基础样式复用 nuoang-modules.css 的 .nuoang-cert-card，此处仅保留入场动画） ===== */
.nuoang-product-card {
    opacity: 0;
    transform: translateY(15px);
    animation: nuoang-product-card-in 0.6s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}
@keyframes nuoang-product-card-in {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===== 分页 ===== */
.nuoang-product-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}
.nuoang-product-pagination button {
    min-width: 40px;
    height: 40px;
    padding: 0 14px;
    font-size: 14px;
    color: #4B5563;
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
    font-family: inherit;
    font-weight: 500;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.nuoang-product-pagination button:hover:not(:disabled):not(.active) {
    border-color: var(--nuoang-primary-color);
    color: var(--nuoang-primary-color);
    background: rgba(37, 99, 235, 0.04);
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(37, 99, 235, 0.1);
}
.nuoang-product-pagination button.active {
    background: linear-gradient(135deg, var(--nuoang-primary-color), #3B82F6);
    border-color: transparent;
    color: #fff;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
    font-weight: 600;
}
.nuoang-product-pagination button:disabled {
    color: #D1D5DB;
    cursor: not-allowed;
    background: #F9FAFB;
    border-color: #E5E7EB;
    opacity: 0.7;
}
.nuoang-product-pagination .nuoang-pagination-ellipsis {
    padding: 0 4px;
    color: #9CA3AF;
    font-size: 14px;
    min-width: 20px;
    text-align: center;
}

/* ===== 空状态 ===== */
.nuoang-product-empty {
    text-align: center;
    padding: 40px 20px;
    color: #9CA3AF;
}
.nuoang-product-empty i,
.nuoang-product-empty img {
    width: 160px;
    max-width: 100%;
    height: auto;
    margin-bottom: 16px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}
.nuoang-product-empty p {
    font-size: 15px;
    margin: 0;
}

/* ===== 证书类型介绍 ===== */
.nuoang-product-types-section {
    width: 100%;
    padding-top: var(--module-py);
    padding-bottom: var(--module-py);
    background: #fff;
}
.nuoang-product-types-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.nuoang-product-types-header {
    text-align: center;
    margin-bottom: 48px;
}
.nuoang-product-types-title {
    font-size: 32px;
    font-weight: 700;
    color: var(--nuoang-text-color);
    line-height: 1.3;
    letter-spacing: -0.01em;
    margin: 0 0 8px 0;
}
.nuoang-product-types-subtitle {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}
.nuoang-types-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}

/* 类型卡片 */
.nuoang-type-card {
    background: #fff;
    border: 1px solid #E5E7EB;
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    display: flex;
    flex-direction: column;
}
.nuoang-type-card:hover {
    border-color: #D1D5DB;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
    transform: translateY(-4px);
}

/* 卡片顶部：等级标签 + 进度条 */
.nuoang-type-card-head {
    padding: 20px 28px 16px;
    background: #FAFBFC;
    border-bottom: 1px solid #F0F1F3;
}
.nuoang-type-card-badge {
    display: inline-block;
    font-size: 12px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    margin-bottom: 12px;
    letter-spacing: 0.02em;
}
.nuoang-badge-dv {
    background: rgba(96, 165, 250, 0.12);
    color: #3B82F6;
}
.nuoang-badge-ov {
    background: rgba(2, 36, 253, 0.1);
    color: var(--nuoang-primary-color);
}
.nuoang-badge-ev {
    background: rgba(139, 92, 246, 0.12);
    color: #7C3AED;
}
.nuoang-type-card-level-bar {
    height: 4px;
    background: #E5E7EB;
    border-radius: 2px;
    overflow: hidden;
}
.nuoang-type-card-level-bar span {
    display: block;
    height: 100%;
    border-radius: 2px;
    transition: width 0.6s ease;
}
.nuoang-badge-dv + .nuoang-type-card-level-bar span {
    background: linear-gradient(90deg, #60A5FA, #3B82F6);
}
.nuoang-badge-ov + .nuoang-type-card-level-bar span {
    background: linear-gradient(90deg, var(--nuoang-primary-color), #2563EB);
}
.nuoang-badge-ev + .nuoang-type-card-level-bar span {
    background: linear-gradient(90deg, #8B5CF6, #7C3AED);
}

/* 卡片主体 */
.nuoang-type-card-body {
    padding: 24px 28px 28px;
    flex: 1;
}
.nuoang-type-card-title-row {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 16px;
}

/* 图标 */
.nuoang-type-card-icon {
    width: 44px;
    height: 44px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}
.nuoang-type-card-icon i {
    font-size: 22px;
    color: #fff;
}
.nuoang-type-card-icon-dv {
    background: #60A5FA;
}
.nuoang-type-card-icon-ov {
    background: var(--nuoang-primary-color);
}
.nuoang-type-card-icon-ev {
    background: #8B5CF6;
}

.nuoang-type-card-name {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 2px 0;
    letter-spacing: -0.01em;
}
.nuoang-type-card-tag {
    font-size: 12px;
    color: #9CA3AF;
    margin: 0;
    font-weight: 500;
    letter-spacing: 0.02em;
}
.nuoang-type-card-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.7;
    margin: 0 0 18px 0;
}

/* 特性列表（键值对样式） */
.nuoang-type-card-features {
    list-style: none;
    padding: 0;
    margin: 0;
    background: #F9FAFB;
    border-radius: 6px;
    padding: 4px 16px;
}
.nuoang-type-card-features li {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 13px;
    line-height: 1.5;
    padding: 10px 0;
    border-bottom: 1px solid #EEF0F3;
}
.nuoang-type-card-features li:last-child {
    border-bottom: none;
}
.nuoang-feat-label {
    color: #9CA3AF;
    font-weight: 500;
}
.nuoang-feat-val {
    color: #1a1a1a;
    font-weight: 600;
}

/* 推荐款 */
.nuoang-type-card-featured {
    border-color: var(--nuoang-primary-color);
    box-shadow: 0 4px 20px rgba(2, 36, 253, 0.1);
    position: relative;
}
.nuoang-type-card-featured:hover {
    box-shadow: 0 16px 40px rgba(2, 36, 253, 0.18);
    border-color: var(--nuoang-primary-color);
}

/* ===== 响应式：手机端 ===== */
@media (max-width: 768px) {
    .nuoang-product-hero {
        min-height: 280px;
        padding-top: 56px;
    }
    .nuoang-product-hero-title {
        font-size: 24px;
    }
    .nuoang-product-hero-subtitle {
        font-size: 14px;
        max-width: 100%;
    }
    /* 产品分类 Tab */
    .nuoang-product-category-tabs {
        padding: 3px;
        border-radius: 20px;
        margin-bottom: 24px;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        max-width: 100%;
    }
    .nuoang-category-tab {
        padding: 7px 16px;
        font-size: 14px;
        white-space: nowrap;
        flex-shrink: 0;
    }

    /* 筛选选项：3列网格 */
    .nuoang-filter-options {
        display: grid;
        grid-template-columns: repeat(3, 1fr);
        gap: 10px;
    }

    /* 筛选按钮：自适应宽度，不换行文字 */
    .nuoang-filter-btn {
        width: 100%;
        height: 40px;
        font-size: 13px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 品牌 Logo 卡片 */
    .nuoang-filter-brand-item {
        width: 100%;
        height: 48px;
    }
    .nuoang-filter-brand-item img {
        max-height: 28px;
    }
    .nuoang-filter-brand-text {
        font-size: 12px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }

    /* 产品卡片网格：1列 */
    .nuoang-product-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    /* 产品卡片紧凑化 */
    .nuoang-product-card-inner { padding: 20px; }
    .nuoang-product-card-header { gap: 10px; }
    .nuoang-product-card-logo { max-height: 32px; }
    .nuoang-product-card-title h4 { font-size: 16px; }
    .nuoang-product-card-features ul li { font-size: 14px; line-height: 20px; margin-bottom: 6px; }
    .nuoang-product-card-features ul li i { font-size: 15px; }
    .nuoang-product-card-price h2 { font-size: 26px; line-height: 26px; }
    .nuoang-product-card-price .symbol { font-size: 12px; }
    .nuoang-product-card-footer .nuoang-btn { padding: 0.5rem 0.8rem; font-size: 13px; }

    /* 分页 */
    .nuoang-product-pagination {
        gap: 4px;
        margin-top: 28px;
    }
    .nuoang-product-pagination button {
        min-width: 34px;
        height: 34px;
        padding: 0 8px;
        font-size: 13px;
    }

    /* 筛选分组间距 */
    .nuoang-filter-group {
        margin-bottom: 20px;
    }
    .nuoang-filter-title {
        font-size: 14px;
        margin-bottom: 10px;
    }
}
