/* ==========================================================================
   Certum 品牌页专属样式 (nuoang-certum.css)
   1:1 从 nuoang-product.css 提取：FAQ、证书分类、证书类型、锚点指示条
   依赖：nuoang-modules.css（全局基础+申请流程）、nuoang-brand.css（Banner+证书产品卡片）
   ========================================================================== */

/* ===== 锚点指示条 ===== */
.nuoang-anchor-indicator {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--nuoang-primary-color);
    border-radius: 6px;
    pointer-events: none;
    transition: left 0.5s cubic-bezier(0.16, 1, 0.3, 1), width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
    transform: translateX(-50%);
    opacity: 0;
}
.nuoang-anchor-indicator.is-ready {
    opacity: 1;
    transition: opacity 0.3s ease, left 0.5s cubic-bezier(0.16, 1, 0.3, 1), width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ===== FAQ ===== */
.nuoang-product-faq-section {
    width: 100%;
    padding-top: var(--module-py);
    padding-bottom: var(--module-py);
    background: #fff;
}
.nuoang-product-faq-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.nuoang-product-faq-header {
    text-align: center;
    margin-bottom: 40px;
}
.nuoang-product-faq-title {
    font-size: 28px;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
    margin: 0 0 10px 0;
}
.nuoang-product-faq-subtitle {
    font-size: 14px;
    color: #9CA3AF;
    line-height: 1.6;
    margin: 0;
}
.nuoang-product-faq-list {
    max-width: 1280px;
    margin: 0 auto;
}
.nuoang-product-faq-item {
    margin-bottom: 16px;
    background: linear-gradient(180deg, #F5F8FF 0%, #FFFFFF 100%);
    border: 1px solid #EEF2FF;
    border-radius: 6px;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow: hidden;
}
.nuoang-product-faq-item:last-child {
    margin-bottom: 0;
}
.nuoang-product-faq-item.active {
    background: #fff;
    border-color: #E0E7FF;
    box-shadow: 0 8px 24px rgba(59, 130, 246, 0.08);
}

/* Q 行 */
.nuoang-product-faq-q {
    display: flex;
    align-items: center;
    padding: 14px 24px;
    cursor: pointer;
    gap: 14px;
}
.nuoang-product-faq-q-text {
    flex: 1;
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    line-height: 1.5;
    transition: color 0.25s ease;
}
.nuoang-product-faq-item.active .nuoang-product-faq-q-text {
    color: var(--nuoang-primary-color);
}
.nuoang-product-faq-arrow {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%239CA3AF' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: 20px 20px;
    transition: all 0.3s ease;
    font-size: 0;
}
.nuoang-product-faq-item.active .nuoang-product-faq-arrow {
    transform: rotate(180deg);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M5 7l5 5 5-5' stroke='%233269ff' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round' fill='none'/%3E%3C/svg%3E");
}

/* Q / A 矢量图标 */
.nuoang-faq-icon {
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
}
.nuoang-faq-icon-q {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='q' x1='0' y1='0' x2='32' y2='32' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%233B82F6'/%3E%3Cstop offset='1' stop-color='%231D4ED8'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='1' y='1' width='30' height='30' rx='9' fill='url(%23q)'/%3E%3Ctext x='16' y='22' text-anchor='middle' font-family='Georgia, serif' font-size='18' font-weight='700' fill='white' font-style='italic'%3EQ%3C/text%3E%3C/svg%3E");
    filter: drop-shadow(0 4px 10px rgba(59, 130, 246, 0.3));
}
.nuoang-faq-icon-a {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Cdefs%3E%3ClinearGradient id='a' x1='0' y1='0' x2='32' y2='32' gradientUnits='userSpaceOnUse'%3E%3Cstop stop-color='%2310B981'/%3E%3Cstop offset='1' stop-color='%23059669'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='1' y='1' width='30' height='30' rx='9' fill='url(%23a)'/%3E%3Ctext x='16' y='22' text-anchor='middle' font-family='Georgia, serif' font-size='18' font-weight='700' fill='white' font-style='italic'%3EA%3C/text%3E%3C/svg%3E");
    filter: drop-shadow(0 4px 10px rgba(16, 185, 129, 0.25));
}

/* A 答案 */
.nuoang-product-faq-a {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.nuoang-product-faq-item.active .nuoang-product-faq-a {
    /* max-height 由 JS 动态设置 */
}
.nuoang-product-faq-a-inner {
    display: flex;
    gap: 14px;
    padding: 18px 24px 22px;
    background: #fff;
    border-top: 1px solid #EEF2FF;
}
.nuoang-product-faq-a-text {
    flex: 1;
}
.nuoang-product-faq-a-text p {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.9;
    margin: 0 0 10px 0;
}
.nuoang-product-faq-a-text p:last-child {
    margin-bottom: 0;
}

/* ===== 证书分类 ===== */
.nuoang-product-category-section {
    width: 100%;
    padding-top: var(--module-py);
    padding-bottom: var(--module-py);
    background: #F8F9FC;
}
.nuoang-product-category-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.nuoang-product-category-header {
    text-align: center;
    margin-bottom: 48px;
}
.nuoang-product-category-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-category-subtitle {
    font-size: 15px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}
.nuoang-category-cards {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.nuoang-category-card {
    background: #fff;
    border-radius: 6px;
    padding: 32px 36px;
    display: flex;
    align-items: flex-start;
    gap: 24px;
    transition: all 0.25s ease;
}
.nuoang-category-card:hover {
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.nuoang-category-card-icon {
    flex-shrink: 0;
    width: 52px;
    height: 52px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.nuoang-category-card-icon i {
    font-size: 26px;
    color: #fff;
}
.nuoang-category-icon-1 {
    background: linear-gradient(135deg, #60A5FA 0%, #3B82F6 100%);
}
.nuoang-category-icon-2 {
    background: linear-gradient(135deg, #34D399 0%, #10B981 100%);
}
.nuoang-category-icon-3 {
    background: linear-gradient(135deg, #A78BFA 0%, #8B5CF6 100%);
}
.nuoang-category-icon-4 {
    background: linear-gradient(135deg, #FB923C 0%, #F97316 100%);
}
.nuoang-category-card-content {
    flex: 1;
    min-width: 0;
}
.nuoang-category-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #1a1a1a;
    margin: 0 0 10px 0;
    letter-spacing: -0.01em;
}
.nuoang-category-card-desc {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.7;
    margin: 0;
}

/* ===== 证书类型下拉切换 ===== */
.nuoang-product-type-section {
    width: 100%;
    padding-top: var(--module-py);
    padding-bottom: var(--module-py);
    background: #fff;
}
.nuoang-product-type-inner {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}
.nuoang-product-type-header {
    text-align: center;
    margin-bottom: 48px;
}
.nuoang-product-type-title {
    font-size: 28px;
    font-weight: 700;
    color: var(--nuoang-text-color);
    line-height: 1.3;
    margin: 0 0 8px 0;
}
.nuoang-product-type-subtitle {
    font-size: 14px;
    color: #6B7280;
    line-height: 1.6;
    margin: 0;
}

/* 电脑端对比表格 */
.nuoang-type-table-wrap {
    display: none;
    padding: 4px 0;
}
.nuoang-type-table thead th:first-child {
    border-top-left-radius: 8px;
}
.nuoang-type-table thead th:last-child {
    border-top-right-radius: 8px;
}
.nuoang-type-table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 8px;
}
.nuoang-type-table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 8px;
}
.nuoang-type-table thead th {
    border-top: 1px solid #E5E7EB;
}
.nuoang-type-table thead th:first-child {
    border-left: 1px solid #E5E7EB;
}
.nuoang-type-table thead th:last-child {
    border-right: 1px solid #E5E7EB;
}
.nuoang-type-table .nuoang-type-table-label {
    border-left: 1px solid #E5E7EB;
}
.nuoang-type-table tbody tr:last-child td {
    border-bottom: 1px solid #E5E7EB;
}
.nuoang-type-table tbody tr:last-child td:last-child {
    border-right: 1px solid #E5E7EB;
}
.nuoang-type-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    background: #fff;
    table-layout: fixed;
}
.nuoang-type-table th,
.nuoang-type-table td {
    padding: 14px 20px;
    text-align: left;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.6;
    border-bottom: 1px solid #F0F1F3;
    border-right: 1px solid #F0F1F3;
    vertical-align: middle;
    transition: box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    z-index: 1;
}
.nuoang-type-table thead th.col-hover {
    box-shadow: 0 -6px 16px rgba(31, 41, 55, 0.08);
    transform: translateY(-2px);
    z-index: 2;
}
.nuoang-type-table tbody td.col-hover {
    transform: translateY(-2px);
    z-index: 2;
    border-left-color: rgba(31, 41, 55, 0.12);
    border-right-color: rgba(31, 41, 55, 0.12);
    box-shadow: -4px 0 8px -4px rgba(31, 41, 55, 0.08),
                4px 0 8px -4px rgba(31, 41, 55, 0.08);
}
.nuoang-type-table tbody tr:last-child td.col-hover {
    box-shadow: -4px 0 8px -4px rgba(31, 41, 55, 0.08),
                4px 0 8px -4px rgba(31, 41, 55, 0.08),
                0 6px 16px rgba(31, 41, 55, 0.08);
}
.nuoang-type-table th:last-child,
.nuoang-type-table td:last-child {
    border-right: none;
}
.nuoang-type-table thead th {
    background: #d4e5ff;
    font-weight: 600;
    font-size: 15px;
    color: #1a1a1a;
}
.nuoang-type-table thead th:first-child {
    background: #d4e5ff;
    color: #1a1a1a;
    font-weight: 500;
}
.nuoang-type-table .nuoang-type-table-label {
    background: #f2f6fa;
    color: #6B7280;
    font-weight: 500;
    width: 130px;
}
.nuoang-type-table tbody td {
    background: #f2f6fa;
}
.nuoang-type-table .nuoang-type-table-blank {
    width: 130px;
}
.nuoang-type-table th:nth-child(2),
.nuoang-type-table td:nth-child(2),
.nuoang-type-table th:nth-child(3),
.nuoang-type-table td:nth-child(3),
.nuoang-type-table th:nth-child(4),
.nuoang-type-table td:nth-child(4) {
    width: calc((100% - 130px) / 3);
}
.nuoang-type-table-price-row .nuoang-type-table-label {
    background: #f2f6fa;
    color: #6B7280;
}
.nuoang-type-table-price-row td {
    background: #f2f6fa;
}
.nuoang-type-table-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}

/* 下拉选择器 */
.nuoang-type-dropdown-wrap {
    max-width: 800px;
    margin: 0 auto;
}
.nuoang-type-dropdown {
    position: relative;
    margin-bottom: 0;
}
.nuoang-type-dropdown-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    background: #d4e5ff;
    cursor: pointer;
    user-select: none;
    transition: background 0.3s ease, box-shadow 0.3s ease;
    border-radius: 6px 6px 0 0;
}
.nuoang-type-dropdown.open .nuoang-type-dropdown-trigger {
    background: #d4e5ff;
    box-shadow: 0 4px 16px rgba(31, 41, 55, 0.06);
}
.nuoang-type-dropdown-trigger:hover {
    background: #d4e5ff;
}
.nuoang-type-dropdown-label {
    font-size: 16px;
    font-weight: 600;
    color: #1a1a1a;
    transition: color 0.3s ease;
}
.nuoang-type-dropdown.open .nuoang-type-dropdown-label {
    color: var(--nuoang-primary-color);
}
.nuoang-type-dropdown-arrow {
    width: 20px;
    height: 20px;
    color: #6B7280;
    flex-shrink: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
}
.nuoang-type-dropdown.open .nuoang-type-dropdown-arrow {
    transform: rotate(180deg);
    color: var(--nuoang-primary-color);
}

/* 下拉菜单 */
.nuoang-type-dropdown-menu {
    background: #fff;
    border: 1px solid #E5E7EB;
    overflow: hidden;
    max-height: 0;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.nuoang-type-dropdown.open .nuoang-type-dropdown-menu {
    max-height: 300px;
    opacity: 1;
}
.nuoang-type-dropdown-option {
    padding: 12px 20px;
    font-size: 15px;
    color: #4B5563;
    cursor: pointer;
    opacity: 0;
    transition: opacity 0.3s ease,
                background 0.2s ease,
                color 0.2s ease,
                padding-left 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.nuoang-type-dropdown.open .nuoang-type-dropdown-option {
    opacity: 1;
}
.nuoang-type-dropdown.open .nuoang-type-dropdown-option:nth-child(1) {
    transition-delay: 0.06s;
}
.nuoang-type-dropdown.open .nuoang-type-dropdown-option:nth-child(2) {
    transition-delay: 0.12s;
}
.nuoang-type-dropdown.open .nuoang-type-dropdown-option:nth-child(3) {
    transition-delay: 0.18s;
}
.nuoang-type-dropdown-option:hover {
    background: #F5F7FA;
    color: #1a1a1a;
    padding-left: 24px;
}
.nuoang-type-dropdown-option.active {
    color: var(--nuoang-primary-color);
    font-weight: 600;
}

/* 详情区 */
.nuoang-type-detail {
    border: 1px solid #E5E7EB;
    border-top: none;
}
.nuoang-type-detail-row {
    display: flex;
    border-bottom: 1px solid #E5E7EB;
}
.nuoang-type-detail-row:last-child {
    border-bottom: none;
}
.nuoang-type-detail-label {
    width: 90px;
    flex-shrink: 0;
    background: #f2f6fa;
    padding: 14px 20px;
    font-size: 14px;
    font-weight: 500;
    color: #6B7280;
    display: flex;
    align-items: center;
    border-right: 1px solid #E5E7EB;
}
.nuoang-type-detail-value {
    padding: 14px 20px;
    font-size: 14px;
    color: #1a1a1a;
    line-height: 1.7;
    flex: 1;
    background: #f2f6fa;
    display: flex;
    align-items: center;
}

/* 价格行 */
.nuoang-type-detail-price-row .nuoang-type-detail-label {
    background: #f2f6fa;
}
.nuoang-type-detail-price {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}
.nuoang-type-price {
    display: flex;
    align-items: baseline;
    gap: 2px;
}
.nuoang-type-price .symbol {
    font-size: 15px;
    color: #f33e3e;
    font-weight: 700;
}
.nuoang-type-price .amount {
    font-size: 24px;
    font-weight: 700;
    color: #f33e3e;
    line-height: 1;
}
.nuoang-type-price .unit {
    font-size: 12px;
    color: #9CA3AF;
    margin-left: 4px;
    font-weight: 400;
}
.nuoang-type-buy-btn {
    display: inline-block;
    padding: 6px 18px;
    background: var(--nuoang-primary-color);
    color: #fff;
    text-align: center;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    border-radius: 6px;
    transition: background 0.2s ease;
}
.nuoang-type-buy-btn:hover {
    background: #2A5AE6;
}

/* ===== 响应式 ===== */
@media (min-width: 769px) {
    .nuoang-type-table-wrap {
        display: block;
    }
    .nuoang-type-dropdown-wrap {
        display: none;
    }
}

@media (max-width: 768px) {
    .nuoang-category-cards {
        grid-template-columns: 1fr;
    }
    .nuoang-product-category-title,
    .nuoang-product-type-title,
    .nuoang-product-faq-title {
        font-size: 24px;
    }
    .nuoang-category-card {
        padding: 24px 20px;
        gap: 16px;
    }
    .nuoang-category-card-icon {
        width: 44px;
        height: 44px;
        border-radius: 6px;
    }
    .nuoang-category-card-icon i {
        font-size: 22px;
    }
    .nuoang-category-card-title {
        font-size: 16px;
    }
    .nuoang-category-card-desc {
        font-size: 13px;
    }
    .nuoang-product-faq-q {
        padding: 12px 16px;
        gap: 10px;
    }
    .nuoang-product-faq-q-text {
        font-size: 14px;
    }
    .nuoang-product-faq-a-inner {
        padding: 14px 16px 18px;
        gap: 10px;
    }
    .nuoang-product-faq-a-text p {
        font-size: 13px;
        line-height: 1.8;
    }
    .nuoang-faq-icon {
        width: 26px;
        height: 26px;
    }
}
