/* Product Detail Page Styles - Figma Design Implementation */

/* CSS 变量：基准设计宽度 */
/* 注意：网格系统变量已在 common.css 中定义 */
/* 继续使用全局网格变量，移除本地 px-to-vw 依赖，避免小屏过大导致堆叠 */

.product-detail-page {
    font-family: var(--font-family);
    background-color: #FFFFFF;
    color: #000000;
    overflow-x: hidden;
    overflow-y: auto !important;
    min-height: 100vh;
    height: auto !important;
}

/* =============== Customized Decorative 页面 =============== */
/* 确保顶部导航栏显示 */
.customized-decorative-page .product-header {
    display: flex;
}

/* 使用与其他产品页相同的标准布局，移除特殊的绝对定位 */

/* ==================== Customized Decorative 表单区域 ==================== */
.customized-form {
    /* Place the form in normal document flow directly below the category entry cards.
       Use relative positioning (default) and margin-top to create spacing from the
       category-top-navigation block. This keeps the form aligned under the cards
       across scaled viewports. */
    position: relative;
    left: auto;
    top: auto;
    transform: none;
    width: calc(36.5625rem);
    box-sizing: border-box;
    margin: calc(2.5rem) auto 0; /* space above the form, centered horizontally */
}

/* 简化计算 */
.customized-decorative-page .customized-form {
    /* override legacy absolute top; keep form in normal flow and use margin for spacing */
    position: relative;
    top: auto;
    margin-top: calc(2.5rem);
}

/* For customized decorative page allow main content to expand so form and other blocks are visible */
.customized-decorative-page .product-main-content {
    overflow: visible;
    height: auto;
}

/* Customized Decorative页面 - 隐藏产品网格 */
.customized-decorative-page .product-catalog-grid {
    display: none;
}

/* Customized Decorative页面 - 表单在原产品卡片位置显示（保持原有样式） */
.customized-decorative-page .catalog-main .customized-form {
    margin-top: calc(1.5rem);
}

/* 隐藏产品目录区域 - Customized Decorative页面不显示产品列表 */
.customized-decorative-page .product-catalog-section {
    /* show the product catalog section so category cards and filter bar are visible
       on the customized page, matching the layout of other product pages */
    display: flex;
    gap: calc(3.125rem);
    margin-top: calc(5rem);
    align-items: flex-start;
    overflow: visible;
}

.form-heading {
    display: flex;
    flex-direction: column;
    gap: calc(0.625rem);
    margin-bottom: calc(1.875rem);
}

.form-heading h3 {
    font-family: var(--font-family);
    font-size: calc(1rem);
    line-height: calc(1.6rem);
    font-weight: 700;
    color: #000000;
    margin: 0;
    text-transform: capitalize;
}

.form-heading p {
    font-family: var(--font-family);
    font-size: calc(0.8rem);
    line-height: calc(1.25rem);
    color: #404040;
    margin: 0;
    text-transform: capitalize;
}

.form-grid {
    display: flex;
    flex-direction: column;
    gap: calc(1rem);
    width: 100%;
}

.form-row.two-col {
    display: flex;
    gap: calc(3.125rem);
    width: 100%;
}

.form-row.two-col .floating-label {
    flex: 1;
    min-width: 0;
}

.floating-label {
    display: flex;
    align-items: center;
    gap: calc(3.75rem);
    font-family: var(--font-family);
    font-size: calc(0.75rem);
    line-height: calc(1.25rem);
    color: #404040;
    border-bottom: 1px solid #000000;
    padding: calc(0.5rem) 0;
    text-transform: capitalize;
    width: 100%;
    box-sizing: border-box;
}

.floating-label span {
    flex-shrink: 0;
    min-width: calc(8rem);
    color: #404040;
}

.floating-label input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 0;
    font-family: var(--font-family);
    font-size: calc(0.8rem);
    line-height: calc(1.25rem);
    color: #000000;
    outline: none;
}

.floating-label input::placeholder {
    color: #404040;
    opacity: 0.5;
}

.form-actions {
    display: flex;
    align-items: center;
    gap: calc(9rem);
    margin-top: 0;
    justify-content: flex-start;
}

.btn-submit {
    background: #000000;
    color: #ffffff;
    border: none;
    padding: calc(0.5rem) calc(1.5rem);
    font-family: var(--font-family);
    font-size: calc(0.8rem);
    line-height: calc(1.25rem);
    letter-spacing: calc(0.075rem);
    cursor: pointer;
    text-transform: capitalize;
    transition: opacity 0.3s ease;
}

.btn-submit:hover {
    opacity: 0.85;
}

.form-status {
    font-family: var(--font-family);
    font-size: calc(0.8rem);
    line-height: calc(1.25rem);
    color: #404040;
    margin: 0;
    text-transform: capitalize;
}

.form-status.error {
    color: #c0392b;
}

.form-status.success {
    color: #1e9e5b;
}

.is-hidden {
    display: none !important;
}

/* ==================== 顶部导航栏 ==================== */
.product-header {
    position: fixed;
    top: calc(3.125rem);
    left: 0;
    right: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    z-index: 1000;
    background-color: #FFFFFF;
    height: calc(1.5rem);
    padding: 0 calc(3.125rem);
    pointer-events: auto;
}

/* 顶栏上方遮挡层 - 确保滚动内容不会在顶栏上方显示 */
.product-header::before {
    content: '';
    position: absolute;
    top: calc(-3.125rem);
    left: 0;
    right: 0;
    height: calc(3.125rem);
    background-color: #FFFFFF;
    z-index: -1;
}

.header-left {
    display: flex;
    align-items: center;
}

/* ==================== 面包屑导航 ==================== */
/* 与项目详情页面保持一致 */
.breadcrumb {
    display: flex;
    align-items: center;
    gap: calc(0.5rem); /* 8px 转换为 vw */
    font-family: var(--font-family);
    font-size: calc(1rem); /* 16px 转换为 vw */
    line-height: calc(1.6rem);
    letter-spacing: calc(0.0625rem); /* 1px 转换为 vw */
    color: #000000;
    text-transform: none; /* 中文不需要转换 */
}

.breadcrumb-item {
    color: #404040; /* Home 和 Product 使用灰色 */
    text-decoration: none;
    transition: opacity 0.3s ease;
    cursor: pointer;
}

.breadcrumb-item:hover {
    opacity: 0.6;
}

.breadcrumb-item.current {
    color: #000000; /* 当前产品名称使用黑色 */
    opacity: 1;
    cursor: default;
    pointer-events: none;
}

.breadcrumb-item.current:hover {
    opacity: 1;
}

.breadcrumb-separator {
    color: #404040;
    opacity: 0.5;
    user-select: none;
    margin: 0 calc(0.125rem); /* 2px 转换为 vw */
}

.header-right {
    display: flex;
    align-items: center;
    gap: calc(1.25rem);
    margin-left: auto;
    flex-shrink: 0;
    pointer-events: auto;
}

.icon-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.3s ease;
    flex-shrink: 0;
    width: calc(1.25rem);
    height: calc(1.25rem);
    pointer-events: auto;
    transition: opacity 0.3s ease;
}

.icon-btn:hover {
    opacity: 0.7;
}

.icon-btn img {
    width: calc(1.25rem);
    height: calc(1.25rem);
    display: block;
}

.shop-link {
    /* 纯图标模式 */
    display: inline-block;
    width: calc(1.25rem); /* 24px */
    height: calc(1.25rem); /* 24px */
    padding: 0 !important;
    background: none;
    border: none;
}

/* 隐藏所有文字 */
.shop-link span {
    display: none;
}

/* 图片填满容器 */
.shop-link img {
    width: 100%;
    height: 100%;
    display: block;
    filter: none; /* 保持原色 */
}

.shop-link:hover {
    opacity: 0.8;
    transform: scale(1.05);
}

/* ==================== 主容器布局 ==================== */
.product-page-container {
    width: 100%;
    max-width: calc(120rem); /* 1920px */
    margin: 0 auto;
    min-height: 100vh;
    padding: calc(2rem) calc(3.125rem) calc(3.125rem); /* 上移1rem：5rem → 4rem */
    box-sizing: border-box;
}

/* ==================== 主内容区域 ==================== */
.product-main-content {
    width: 100%;
    padding: 0 0 calc(3.75rem);
    box-sizing: border-box;
    min-width: 0;
    max-width: calc(120rem); /* 1920px */
    margin-left: auto;
    margin-right: auto;
    overflow: visible;
    height: auto;
}

/* ==================== 顶部 Banner ==================== */
/* 已清空 */

/* ==================== 说明区域 (新增) ==================== */
/* 将从此开始设计信息栏样式 */

/* 信息栏 Section - 居中布局，图片0.7倍，文字0.8倍 */
.info-section {
    display: flex;
    flex-direction: row;
    gap: calc(1.875rem); /* 30px */
    margin-bottom: calc(3.125rem); /* 50px */
    align-items: flex-start;
    padding: calc(4.125rem) 0 0;
    /* 居中：左右 margin auto */
    margin-left: auto;
    margin-right: auto;
    /* 总宽度 = 图片(25.59rem) + 间距(1.875rem) + 文字(42.35rem) ≈ 69.815rem */
    width: calc(67rem + 1.875rem + 42.35rem);
    max-width: 90%;
}

/* 左侧产品大图 - 原始 585px x 465px，缩小0.7倍 */
.info-left {
    flex: 0 0 calc(25.59375rem); /* 585px * 0.7 = 409.5px */
    display: flex;
    flex-direction: column;
    gap: calc(1.25rem);
    justify-content: flex-start;
    align-self: start;
    min-width: 0;
}

/* 左侧大图容器 - 缩小0.7倍 */
.info-left .info-image {
    width: 100%;
    height: calc(20.34375rem); /* 465px * 0.7 = 325.5px */
    overflow: hidden;
}

.info-left .info-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 产品标题 - 缩小0.8倍 */
.info-title {
    font-family: var(--font-family);
    font-size: calc(3rem); /* 3rem * 0.8 = 2.4rem */
    line-height: calc(3.5rem); /* 3.5rem * 0.8 = 2.8rem */
    letter-spacing: calc(0.096rem); /* 0.12rem * 0.8 */
    color: #000000;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
}

/* 场景描述标题 - 缩小0.8倍 */
.info-subtitle {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(1rem); /* 1.5rem * 0.8 = 1.2rem */
    line-height: calc(1.6rem); /* 2rem * 0.8 = 1.6rem */
    letter-spacing: calc(0.12rem); /* 0.15rem * 0.8 */
    color: #404040;
    text-transform: capitalize;
    text-align: justify;
    margin: 0;
    font-weight: 400;
}

/* 详细描述文本 - 缩小0.8倍 */
.info-description {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(0.8rem); /* 1rem * 0.8 = 0.8rem */
    line-height: calc(1.25rem); /* 1.5rem * 0.8 = 1.2rem */
    letter-spacing: calc(0.08rem); /* 0.1rem * 0.8 */
    color: #404040;
    text-align: justify;
    text-transform: capitalize;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
    max-width: 100%;
}

/* 右侧标题描述区域 - 缩小0.8倍 */
.info-text {
    flex: 0 0 calc(42.35rem); /* 52.9375rem * 0.8 = 42.35rem */
    display: flex;
    flex-direction: column;
    gap: calc(1.5rem); /* 1.875rem * 0.8 = 1.5rem */
    align-items: flex-start;
    align-self: flex-start;
    min-width: 0;
}

/* 项目案例容器（隐藏，保留给旧代码兼容） */
.info-right {
    display: none;
}

/* ==================== 信息栏 V2 布局（Figma 新设计）==================== */
/* 左侧文字 + 右侧大图 */

.info-section.info-section-v2 {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    gap: 0;
    padding: calc(3rem) 0 calc(3rem); /* 顶部内边距从 6rem 减少到 3rem，整体上移 */
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(2rem); /* 下移2rem */
    width: calc(94.375rem); /* 1510px，与产品卡片网格一致 */
    max-width: 90%;
    min-height: calc(36rem); /* 576px */
}

/* 左侧文字区域 - 与图片等高，内容块底部对齐图片底部 */
.info-section-v2 .info-text-left {
    flex: 0 0 calc(45rem); /* 720px - 增加宽度 */
    display: flex;
    flex-direction: column;
    gap: calc(3.125rem); /* 50px - 标题与内容块间距 */
    align-items: flex-start;
    margin-top: 0; /* 与图片顶部对齐 */
    height: calc(36rem); /* 与图片高度一致 576px */
    justify-content: flex-start;
}

/* V2 标题样式 - 52px DIN Bold */
.info-section-v2 .info-title {
    font-family: 'DIN', var(--font-family);
    font-size: calc(4rem); /* 与首页 brand-title h1 保持一致 */
    line-height: calc(4.5rem);
    letter-spacing: calc(0.1rem);
    color: #000000;
    text-transform: uppercase;
    margin: 0;
    font-weight: 700;
}

/* 内容区块：副标题 + 描述 - 底部与图片底部对齐 */
.info-section-v2 .info-content-block {
    display: flex;
    flex-direction: column;
    gap: calc(1.25rem); /* 20px */
    width: 100%;
    margin-top: auto; /* 自动推到底部，使底部与图片底部对齐 */
}

/* V2 副标题样式 - 24px Bold */
.info-section-v2 .info-subtitle {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(1.75rem); /* 与原 info-title 保持一致 */
    line-height: calc(2.25rem);
    letter-spacing: calc(0.13rem);
    color: #000000;
    text-transform: capitalize;
    text-align: justify;
    margin: 0;
    font-weight: 700;
}

/* V2 描述样式 - 16px Regular */
.info-section-v2 .info-description {
    /* font-family 继承自 body.lang-xx */
    font-size: calc(1rem); /* 与原 info-subtitle 保持一致 */
    line-height: calc(1.6rem);
    letter-spacing: calc(0.12rem);
    color: #404040;
    text-align: justify;
    text-transform: none;
    margin: 0;
    word-break: break-word;
    overflow-wrap: break-word;
}

/* 右侧产品图片 - 595px × 576px - 使用 rem 定位 */
.info-section-v2 .info-image-right {
    flex: 0 0 calc(37.1875rem); /* 595px */
    width: calc(37.1875rem); /* 595px */
    height: calc(36rem); /* 576px */
    display: flex;
    align-items: flex-start;
    justify-content: center;
    margin-top: 0; /* 顶部对齐 - 与文字标题同高 */
}

.info-section-v2 .info-image-right img {
    width: calc(37.1875rem); /* 595px */
    height: calc(36rem); /* 576px */
    object-fit: contain;
}

/* 单个项目案例 */
.project-case {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(0.875rem);
    width: 100%;
    min-width: 0;
}

/* 项目图片 */
.project-image {
    position: relative;
    width: 100%;
    background: #F5F5F5;
    overflow: hidden;
    border-radius: 0;
}

/* 调整两个示意图的比例：第一个接近正方形，第二个为宽幅 */
.project-case:nth-child(1) .project-image {
    aspect-ratio: 4 / 4.2; /* 接近 1:1 但稍高 */
}

.project-case:nth-child(2) .project-image {
    aspect-ratio: 16 / 9;
}

.project-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* 项目详情 */
.project-details {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    gap: calc(0.625rem);
    padding: 0;
    margin-top: calc(0.75rem);
    width: 100%;
    min-width: 0;
}

/* 项目产品名称 */
.project-product {
    font-family: var(--font-family);
    /* 按 1920 设计稿等比缩放，避免竖屏下过小 */
    font-size: calc(1rem);
    line-height: calc(1.5rem);
    letter-spacing: calc(0.1rem);
    color: #404040;
    text-transform: capitalize;
    margin: 0;
    flex: 1;
    white-space: nowrap;
    text-align: left;
}

/* 项目信息右侧容器 */
.project-info-right {
    display: flex;
    flex-direction: row;
    gap: calc(1.25rem);
    align-items: flex-end;
    justify-content: flex-end;
    margin-left: auto;
    min-width: 0;
}

/* 项目地点 */
.project-location {
    font-family: var(--font-family);
    font-size: calc(0.875rem);
    line-height: calc(1.25rem);
    letter-spacing: calc(0.0875rem);
    color: #404040;
    text-transform: capitalize;
    margin: 0;
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

/* 项目年份 */
.project-year {
    font-family: var(--font-family);
    font-size: calc(0.875rem);
    line-height: calc(1.25rem);
    letter-spacing: calc(0.0875rem);
    color: #404040;
    text-transform: capitalize;
    margin: 0;
    flex: 0 0 auto;
    text-align: right;
    white-space: nowrap;
}

/* ==================== 认证标识 ==================== */
/* 认证标识容器 */
.certifications {
    display: flex;
    flex-direction: column;
    gap: calc(1.25rem);
    margin-top: calc(2.5rem);
    max-width: calc(17.5rem);
}

/* 认证标识行 */
.certification-row {
    display: flex;
    gap: calc(1.25rem);
    align-items: center;
}

/* 单个认证项 */
.certification-item {
    display: flex;
    align-items: center;
    gap: calc(0.75rem);
    flex: 1 1 auto;
    min-width: 0;
}

/* 认证图标 */
.cert-icon {
    width: calc(1.5rem); /* 24px 转换为 vw */
    height: calc(1.5rem); /* 24px 转换为 vw */
    border: none;
    background-color: transparent;
    padding: 0;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cert-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.cert-placeholder::after {
    content: '';
    width: calc(0.75rem); /* 12px 转换为 vw */
    height: calc(0.75rem); /* 12px 转换为 vw */
    border-radius: 50%;
    background-color: #E0E0E0;
    display: block;
}

.cert-text-placeholder {
    color: #C0C0C0;
    font-style: italic;
}

/* 认证标签 */
.cert-label {
    font-family: var(--font-family);
    font-size: calc(1rem); /* 16px 转换为 vw */
    line-height: calc(1.5rem); /* 24px 转换为 vw */
    letter-spacing: calc(0.1rem); /* 1.6px 转换为 vw */
    color: #404040;
    text-transform: capitalize;
    white-space: nowrap;
    flex-shrink: 0;
}

/* 信息区示意图 */
.info-illustration {
    margin-top: calc(1.875rem); /* 30px 转换为 vw */
    display: flex;
    flex-direction: column;
    gap: calc(0.75rem); /* 12px 转换为 vw */
}

.illustration-image {
    width: 100%;
    aspect-ratio: 4 / 3;
    background: #F5F5F5;
    overflow: hidden;
    position: relative;
}

.illustration-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.illustration-caption {
    font-family: var(--font-family);
    font-size: calc(0.875rem); /* 14px 转换为 vw */
    line-height: calc(1.375rem); /* 22px 转换为 vw */
    letter-spacing: calc(0.0875rem); /* 1.4px 转换为 vw */
    color: #404040;
    margin: 0;
}

/* ==================== 产品问题反馈区 ==================== */
.product-question-section {
    margin-top: calc(5rem);
    padding-top: calc(2.5rem);
    border-top: 1px solid #E5E7EB;
    max-width: 900px;
}

.question-header {
    margin-bottom: calc(1.5rem);
}

.question-title {
    font-family: var(--font-family);
    font-size: calc(1.75rem);
    line-height: calc(2.25rem);
    margin: 0 0 calc(0.5rem);
}

.question-desc {
    font-family: var(--font-family);
    font-size: calc(0.875rem);
    line-height: calc(1.375rem);
    color: #6B7280;
    margin: 0;
}

.question-form {
    margin-top: calc(1rem);
}

.question-grid {
    display: flex;
    flex-wrap: wrap;
    gap: calc(1rem);
}

.question-grid .form-group {
    flex: 1 1 calc(16.25rem);
    min-width: calc(16.25rem);
}

.question-grid .form-group.full-width {
    flex: 1 1 100%;
}

.question-actions {
    margin-top: calc(1rem);
    display: flex;
    align-items: center;
    gap: calc(1rem);
}

.question-status {
    font-size: calc(0.8125rem);
    color: #6B7280;
}

.question-status.error {
    color: #B91C1C;
}

.question-status.success {
    color: #047857;
}

/* ==================== 产品目录区域 (新增) ==================== */

/* 产品目录容器 */
.product-catalog-section {
    display: block;
    margin-top: calc(-2.5rem); /* 原-6.5rem + 4rem下移 = -2.5rem */
    width: 100%;
}

/* 左侧边栏 */
.catalog-sidebar {
    flex: 0 0 calc(8.125rem); /* 130px */
    position: sticky;
    top: calc(6.25rem); /* 100px */
    max-height: calc(60rem); /* 960px = 1080 - 120 */
    overflow-y: auto;
}

/* 分类导航容器 */
.category-navigation {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 分类项 */
.category-item {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* 分类标题 */
.category-title {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: calc(0.75rem) 0; /* 12px 转换为 vw */
    background: none;
    border: none;
    border-bottom: calc(0.0625rem) solid #E0E0E0; /* 1px 转换为 vw */
    font-family: var(--font-family);
    font-size: calc(0.75rem); /* 12px 转换为 vw */
    line-height: calc(1.25rem); /* 20px 转换为 vw */
    letter-spacing: calc(0.075rem); /* 1.2px 转换为 vw */
    color: #000000;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.category-title:hover {
    color: #666666;
}

/* 分类图标旋转 */
.category-item.expanded .category-icon {
    transform: scaleX(-1);
}

/* 子分类容器 */
.subcategories {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding-left: calc(1.875rem); /* 30px 转换为 vw */
    background: #FAFAFA;
}

/* 子分类项 */
.subcategory-item {
    display: block;
    padding: calc(0.75rem) 0; /* 12px 转换为 vw */
    border-bottom: calc(0.0625rem) solid #E0E0E0; /* 1px 转换为 vw */
    font-family: var(--font-family);
    font-size: calc(0.75rem); /* 12px 转换为 vw */
    line-height: calc(1.25rem); /* 20px 转换为 vw */
    letter-spacing: calc(0.075rem); /* 1.2px 转换为 vw */
    color: #404040;
    text-decoration: none;
    cursor: pointer;
    transition: color 0.3s ease;
    text-transform: capitalize;
}

.subcategory-item:hover {
    color: #000000;
}

.subcategory-item.active {
    color: #000000;
    font-weight: 500;
}

/* 关闭筛选 */
.filter-close {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(1rem) 0; /* 16px 转换为 vw */
    margin-top: calc(1.25rem); /* 20px 转换为 vw */
    border-top: calc(0.0625rem) solid #E0E0E0; /* 1px 转换为 vw */
    font-family: var(--font-family);
    font-size: calc(0.75rem); /* 12px 转换为 vw */
    line-height: calc(1.25rem); /* 20px 转换为 vw */
    color: #404040;
    cursor: pointer;
    transition: color 0.3s ease;
}

.filter-close:hover {
    color: #000000;
}

.filter-close svg {
    width: calc(1rem); /* 16px 转换为 vw */
    height: calc(1rem); /* 16px 转换为 vw */
}

/* 右侧主内容 */
.catalog-main {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(3.125rem); /* 50px 转换为 vw */
    align-items: stretch;
    width: 100%;
}

/* ==================== 顶部产品分类导航 ==================== */

/* 分类导航容器 - 使用CSS Grid与产品卡片精确对齐 */
.category-top-navigation {
    display: grid;
    grid-template-columns: repeat(5, calc(17.375rem)); /* 5列，每列278px */
    gap: calc(1.875rem); /* 30px 间距 */
    align-items: center;
    margin-bottom: calc(3.125rem); /* 50px */
    /* 5列卡片: 5×278px + 4×30px = 1510px */
    width: calc(94.375rem); /* 1510px */
    margin-left: auto;
    margin-right: auto;
}

/* Filter codes by 标签 - 占据第1列，右对齐 */
.category-top-navigation::before {
    content: 'Filter codes by:';
    font-family: var(--font-family);
    font-size: calc(1rem); /* 12px */
    line-height: calc(1.6rem); /* 20px */
    color: #000000;
    text-transform: capitalize;
    text-align: right;
    white-space: nowrap;
    grid-column: 1; /* 第1列 */
}

/* 在定制页面让顶部分类入口使用网格布局（与其他产品页一致） */
.customized-decorative-page .category-top-navigation {
    display: grid;
    grid-template-columns: repeat(5, calc(17.375rem)); /* 5列，每列278px */
    gap: calc(1.875rem);
    align-items: center;
    width: calc(94.375rem);
    margin: calc(1.5rem) auto 0;
    opacity: 1;
}

/* 分类卡片 */
.category-card {
    display: flex;
    gap: calc(1.5rem); /* 24px 转换为 vw */
    align-items: flex-start;
    width: 100%; /* 填满父容器/网格列 */
    text-decoration: none;
    color: inherit;
    transition: opacity 0.3s ease;
    position: relative;
}

/* 非激活状态的分类卡片 - 半透明 */
.category-card:not(.active) {
    opacity: 0.3;
}

.category-card:hover:not(.active) {
    opacity: 0.5;
}

/* 分类卡片图片 */
.category-card-image {
    flex-shrink: 0;
    width: calc(6.25rem); /* 100px 转换为 vw */
    height: calc(6.25rem); /* 100px 转换为 vw */
    position: relative;
    background-color: #FFFFFF;
    overflow: hidden;
}

.category-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* 无下拉菜单的选项卡 - 缩小图片宽度，但保持与其他卡片相同的高度确保垂直对齐 */
.category-card-wrapper.no-dropdown .category-card-image {
    width: calc(5rem); /* 80px 宽，给文字区域更多空间 */
    height: calc(6.25rem); /* 100px 高，与其他卡片保持一致 */
}

/* 无下拉菜单的选项卡 - 图片内部居中 */
.category-card-wrapper.no-dropdown .category-card-image img {
    object-fit: contain; /* 保持图片比例，在容器内居中 */
}

/* 无下拉菜单的选项卡 - 用伪元素模拟下拉按钮占位，保持文字高度一致 */
.category-card-wrapper.no-dropdown .category-card-info::after {
    content: '';
    display: block;
    width: calc(1rem);
    height: calc(1rem); /* 与 .category-card-dropdown-btn 高度一致 */
    flex-shrink: 0;
}

/* 分类卡片信息 */
.category-card-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: calc(0.75rem); /* 12px 转换为 vw */
    align-items: flex-start;
    padding: calc(0.5rem) 0; /* 8px 转换为 vw */
    position: relative;
    min-width: 0;
}

.category-card-text {
    display: flex;
    flex-direction: column;
    gap: calc(0.375rem); /* 6px 转换为 vw */
    align-items: flex-start;
    width: 100%;
}

/* 分类名称 */
.category-card-name {
    /* enforce consistent font and casing across all product category cards */
    font-family: inherit; /* inherit from .product-detail-page (DIN-Bold / Noto Serif SC) */
    font-size: calc(1rem); /* 20px 转换为 vw */
    line-height: calc(1.6rem); /* 28px 转换为 vw */
    color: #404040;
    text-transform: uppercase; /* normalize casing across pages */
    margin: 0;
    font-weight: 700;
    white-space: normal;
    word-break: break-word;
    letter-spacing: 0.02em;
}

/* 分类产品数量 */
.category-card-count {
    font-family: var(--font-family);
    font-size: calc(1rem); /* 16px 转换为 vw */
    line-height: calc(1.5rem); /* 24px 转换为 vw */
    color: #404040;
    text-transform: capitalize;
    margin: 0;
    white-space: nowrap;
}

/* 下拉按钮样式 - 匹配 Figma 设计稿 (node-id: 318-2427) */
.category-card-indicator {
    display: flex;
    width: calc(1rem); /* 16px 转换为 vw */
    height: calc(1rem); /* 16px 转换为 vw */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.category-card-indicator svg {
    width: calc(1rem); /* 16px 转换为 vw */
    height: calc(1rem); /* 16px 转换为 vw */
    stroke: currentColor;
}

/* 下拉按钮样式 - 匹配 Figma 设计稿 (node-id: 318-2427) */
.category-card-dropdown-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    width: calc(1rem); /* 16px 转换为 vw */
    height: calc(1rem); /* 16px 转换为 vw */
    background: transparent;
    border: none;
    padding: 0;
    cursor: pointer;
    transition: transform 0.2s ease;
}

.category-card-dropdown-btn svg {
    width: 100%;
    height: 100%;
    stroke: #000000;
}

/* 下拉打开时按钮旋转 */
.category-card-wrapper.dropdown-open .category-card-dropdown-btn svg {
    transform: rotate(180deg);
}

/* ==================== 筛选栏 ==================== */

/* 筛选栏容器 - 根据 Figma 设计更新 */
.filter-bar {
    display: flex;
    gap: calc(1.25rem); /* 20px 转换为 vw */
    align-items: center;
    justify-content: flex-end;
    padding-bottom: 0;
    border-bottom: none;
}

/* 筛选标签 - 根据 Figma 设计：12px, 黑色, 宽度278px */
.filter-label {
    font-family: var(--font-family);
    font-size: calc(1rem); /* 12px 转换为 vw */
    line-height: calc(1.5rem); /* 20px 转换为 vw */
    letter-spacing: calc(0.075rem); /* 1.2px 转换为 vw */
    color: #000000;
    text-transform: capitalize;
    flex: 0 0 calc(16.25rem); /* 260px 转换为 vw */
    width: calc(16.25rem); /* 260px 转换为 vw */
}

/* 筛选控件容器 */
.filter-controls {
    display: flex;
    gap: calc(1.25rem); /* 20px 转换为 vw */
    align-items: center;
}

/* 单个筛选项 - 根据 Figma 设计：278px 宽，底部边框 */
.filter-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: calc(16.25rem); /* 260px 转换为 vw */
    min-width: calc(16.25rem); /* 260px 转换为 vw */
    border-bottom: calc(0.0625rem) solid #000000; /* 1px 转换为 vw */
    padding: calc(0.5rem) 0; /* 8px 转换为 vw */
    box-sizing: border-box;
}

/* 筛选名称和值容器 */
.filter-item-content {
    display: flex;
    gap: calc(3.75rem); /* 60px 转换为 vw */
    align-items: center;
    flex: 1;
}

/* 筛选名称 - 根据 Figma 设计：灰色 #404040 */
.filter-name {
    font-family: var(--font-family);
    font-size: calc(1rem); /* 12px 转换为 vw */
    line-height: calc(1.5rem); /* 20px 转换为 vw */
    letter-spacing: calc(0.075rem); /* 1.2px 转换为 vw */
    color: #404040;
    flex: 0 0 calc(5rem); /* 80px 转换为 vw */
    min-width: calc(5rem); /* 80px 转换为 vw */
    text-transform: capitalize;
    white-space: nowrap;
}

/* 筛选下拉菜单 - 根据 Figma 设计更新 */
.filter-select {
    flex: 1;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--font-family);
    font-size: calc(1rem); /* 12px 转换为 vw */
    line-height: calc(1.5rem); /* 20px 转换为 vw */
    letter-spacing: calc(0.075rem); /* 1.2px 转换为 vw */
    color: #000000;
    cursor: pointer;
    appearance: none;
    outline: none;
    transition: color 0.3s ease;
    text-align: left;
}

.filter-select:hover {
    color: #666666;
}

.filter-select:focus {
    color: #333333;
}

/* 下拉箭头图标 - 使用 SVG */
.filter-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: calc(0.75rem); /* 12px 转换为 vw */
    height: calc(0.75rem); /* 12px 转换为 vw */
    background-image: url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%23000000' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    pointer-events: none;
    flex-shrink: 0;
}

/* 确保筛选框有足够的右侧空间给箭头 */
.filter-select {
    padding-right: calc(1.25rem); /* 20px 转换为 vw */
}

/* ==================== 产品网格 ==================== */

/* 产品网格容器 - 5列布局，水平居中 */
.product-catalog-grid {
    display: flex;
    flex-wrap: wrap;
    gap: calc(1.875rem); /* 30px */
    /* 5列卡片: 5×278px + 4×30px = 1390px + 120px = 1510px */
    width: calc(94.375rem); /* 1510px = 5×17.375rem + 4×1.875rem */
    margin-left: auto;
    margin-right: auto;
    margin-top: calc(-4rem); /* 上移2rem */
    box-sizing: border-box;
    overflow-x: hidden;
}

/* 产品卡片布局 - Figma: 278px 宽，5列 */
.product-card {
    flex: 0 0 calc(17.375rem); /* 278px */
    max-width: calc(17.375rem);
}

/* ==================== 产品卡片 - Figma 设计稿完成版 ==================== */

/**
 * 产品卡片设计按照 Figma 完成
 * 布局：
 * 1. 产品图片（顶部）
 * 2. 产品信息容器
 *    - 产品名称（24px）
 *    - 规格信息行（每行显示：标签 - 值，12px，有底边框）
 *    - 查看详情链接
 */

/* 产品卡片容器 - 根据 Figma 设计更新，白色包边卡片样式 */
.product-card {
    display: flex;
    flex-direction: column;
    gap: 0; /* 移除间距，使用内部padding */
    cursor: pointer;
    transition: all 0.3s ease;
    user-select: none;
    width: 100%;
    max-width: 100%; /* 确保不超过网格列宽 */
    margin: 0;
    min-width: 0;
    box-sizing: border-box;
    overflow: visible;
    background-color: #FFFFFF;
    border: 1px solid #E5E5E5; /* 白色包边效果 */
    padding: calc(0.75rem); /* 12px 内边距 */
}

@media (max-width: 600px) {
    .product-card {
        max-width: 100%;
    }
}

.product-card:hover {
    transform: translateY(calc(-0.25rem)); /* 4px 转换为 vw */
    box-shadow: 0 calc(0.5rem) calc(1.5rem) rgba(0, 0, 0, 0.12);
    border-color: #D0D0D0;
}

/* 产品卡片图片容器 - 根据 Figma 设计：278x278px 固定尺寸 */
.product-card-image {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    background-color: #F5F5F5;
    overflow: hidden;
    border-radius: 0;
    flex-shrink: 0;
}

.product-card-image .product-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    transition: opacity 0.3s ease, transform 0.3s ease, filter 0.3s ease;
    display: block;
}

.product-card-image .product-image.secondary {
    opacity: 0;
    pointer-events: none;
}

.product-card-image.has-hover:hover .product-image.primary {
    opacity: 0;
}

.product-card-image.has-hover:hover .product-image.secondary {
    opacity: 1;
}

.product-card:hover .product-card-image .product-image.primary {
    transform: scale(1.05);
    filter: brightness(0.95);
}

/* 产品卡片信息容器 */
.product-card-info {
    display: flex;
    flex-direction: column;
    gap: calc(0.375rem); /* 6px */
    padding: calc(0.5rem) 0 0; /* 8px 顶部间距 */
    width: 100%;
    flex: 1;
    overflow: visible;
    min-height: calc(8rem); /* 固定最小高度，确保 More 按钮位置一致 */
}

/* 产品卡片名称和特性标签容器 - 垂直布局 */
.product-card-header {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: calc(0.375rem); /* 6px */
    margin-bottom: 0;
}

/* 产品卡片名称容器 */
.product-card-name-container {
    display: flex;
    flex-direction: column;
    gap: calc(1rem); /* 16px 转换为 vw */
    flex: 1;
}

/* 产品卡片名称 - 根据 Figma 设计：DIN-Bold, 24px, 大写, Black */
.product-card-name {
    font-family: var(--font-family);
    font-size: calc(1.125rem); /* 18px - 缩小 */
    font-weight: 400;
    line-height: calc(1.5rem); /* 24px - 缩小 */
    letter-spacing: calc(0.1rem); /* 缩小 */
    color: #000000;
    text-transform: uppercase;
    margin: 0;
    padding: 0;
    white-space: normal;
    overflow: visible;
    text-overflow: initial;
    display: block;
    word-break: keep-all;
    overflow-wrap: break-word;
    transition: transform 0.2s ease, text-shadow 0.2s ease;
}

.product-card-name-link {
    border: none;
    background: none;
    font: inherit;
    appearance: none;
    padding: 0;
    margin: 0;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
    text-align: left;
}

.product-card-name-link:focus-visible {
    outline: calc(0.0625rem) dashed #000000; /* 1px 转换为 vw */
    outline-offset: calc(0.125rem); /* 2px 转换为 vw */
}

.product-card-name-link:hover .product-card-name,
.product-card-name-link:focus-visible .product-card-name {
    transform: translateY(calc(-0.125rem)); /* 2px 转换为 vw */
    text-shadow: 0 calc(0.25rem) calc(0.5rem) rgba(0, 0, 0, 0.15); /* 4px 8px 转换为 vw */
}

/* 产品特性标签容器 - 两行布局 */
.product-features {
    display: flex;
    flex-direction: column;
    gap: calc(0.25rem); /* 4px 行间距 */
    overflow: visible;
    position: relative;
    margin-top: calc(0.5rem); /* 8px */
    padding: 0 calc(0.125rem); /* 2px 左右内边距 */
    width: 100%;
    box-sizing: border-box;
}

/* 如果没有徽章，隐藏容器 */
.product-features:empty {
    display: none;
}

/* 每行徽章 - 最多6个 */
.product-features-row {
    display: grid;
    grid-template-columns: repeat(6, 1fr); /* 每行6个徽章 */
    gap: calc(0.25rem); /* 4px 间距 */
    align-items: center;
    width: 100%;
}

/* 如果行内没有徽章，隐藏该行 */
.product-features-row:empty {
    display: none;
}

/* 特性标签 - 方形徽章样式 */
.product-feature-badge {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%; /* 填满网格单元格 */
    aspect-ratio: 1 / 1; /* 保持正方形 */
    background-color: #E8E8E8;
    border-radius: 0;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
    cursor: pointer; /* 手型光标 */
    transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

/* 徽章响应式交互 - 悬停效果 */
.product-feature-badge:hover {
    transform: scale(1.1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    background-color: #D8D8D8;
    z-index: 10;
}

/* 徽章点击效果 */
.product-feature-badge:active {
    transform: scale(0.95);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1);
}

/* 徽章焦点状态（无障碍支持） */
.product-feature-badge:focus {
    outline: 2px solid #007AFF;
    outline-offset: 2px;
}

.product-feature-badge:focus:not(:focus-visible) {
    outline: none;
}

/* 移除所有tooltip - 不再显示悬浮文字 */
.product-feature-badge[title]::after {
    display: none !important;
}

/* CV 标签 - 简化样式 */
.product-feature-badge.cv {
    background-color: #E8E8E8;
}

.product-feature-badge.cv::after {
    content: 'CV';
    font-family: var(--font-family);
    font-size: calc(0.5rem); /* 8px */
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
    text-transform: uppercase;
}

/* 角度标签 - 简化样式 */
.product-feature-badge.angle {
    background-color: #E8E8E8;
}

.product-feature-badge.angle::before {
    display: none; /* 移除顶部横条 */
}

.product-feature-badge.angle .feature-angle-value {
    font-family: var(--font-family);
    font-size: calc(0.5rem); /* 8px */
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
}

.product-feature-badge.custom {
    background-color: #E8E8E8;
    padding: calc(0.125rem); /* 2px 内边距 */
}

.product-feature-badge.custom img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.product-feature-badge.custom.text span {
    font-family: var(--font-family);
    font-size: calc(0.5rem); /* 8px */
    line-height: 1;
    letter-spacing: 0;
    color: #000000;
    text-transform: uppercase;
}

/* 产品规格容器 - 隐藏，不再显示规格行 */
.product-specs {
    display: none; /* 按设计稿要求隐藏规格行 */
}

/* 规格行 - 隐藏 */
.spec-row {
    display: none;
}

/* 规格标签 - 隐藏 */
.spec-label {
    display: none;
}

/* 规格值 - 隐藏 */
.spec-value {
    display: none;
}

/* 产品卡片容器悬停效果 - 已在上方定义 */

/* More 链接样式 - 固定在卡片底部 */
.product-card-more {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: calc(0.25rem); /* 4px */
    font-family: var(--font-family);
    font-size: calc(0.875rem); /* 14px */
    line-height: calc(1.25rem); /* 20px */
    letter-spacing: calc(0.05rem);
    color: #000000;
    text-decoration: none;
    text-transform: capitalize;
    margin-top: auto; /* 自动撑开，固定在底部 */
    padding: calc(0.5rem) 0;
    cursor: pointer;
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.product-card-more:hover {
    opacity: 0.7;
    transform: translateX(4px);
}

.product-card-more:active {
    opacity: 0.5;
}

.product-card-more::after {
    content: '';
    display: inline-block;
    width: calc(1rem); /* 16px */
    height: calc(1rem); /* 16px */
    background-image: url('../../assets/images/icon/right.webp');
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: calc(0.25rem);
    transition: transform 0.2s ease;
}

.product-card-more:hover::after {
    transform: translateX(4px);
}

/* 有跳转链接时的样式 */
a.product-card-more {
    text-decoration: none;
}

a.product-card-more:visited {
    color: #000000;
}

/* ==================== 过滤栏 ==================== */

/* ==================== 响应式设计 - 移除断点以支持整块比例缩放 ==================== */
/* 已移除所有会导致重新排版（Layout Shift）的媒体查询，确保页面按 1920 比例整体缩放 */

/* ==================== 产品预览模态框 ==================== */
.product-preview-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.product-preview-modal.show {
    opacity: 1;
    visibility: visible;
}

/* 背景遮罩 */
.product-preview-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(45, 45, 45, 0.5);
    z-index: -1;
    cursor: pointer;
}

/* 模态框内容容器 - 自适应图片比例 */
.product-preview-content {
    position: relative;
    background-color: #FFFFFF;
    border-radius: 0;
    box-shadow: 0px calc(0.25rem) calc(0.25rem) 0px rgba(0, 0, 0, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: calc(1.875rem);
    /* 自适应图片大小，限制最大为视窗的2/3 */
    max-width: 66.67vw;
    max-height: 66.67vh;
    overflow: visible;
    z-index: 2001;
    animation: modalSlideIn 0.3s ease;
}

@keyframes modalSlideIn {
    from {
        transform: scale(0.95);
        opacity: 0;
    }
    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* 关闭按钮 */
.preview-modal-close {
    position: absolute;
    top: calc(1.25rem);
    right: calc(1.25rem);
    width: calc(2rem);
    height: calc(2rem);
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #000000;
    transition: opacity 0.3s ease, transform 0.3s ease;
    z-index: 2002;
}

.preview-modal-close:hover {
    opacity: 0.6;
    transform: rotate(90deg);
}

.preview-modal-close svg {
    width: calc(1rem);
    height: calc(1rem);
    stroke: currentColor;
    stroke-width: 1.5;
}

/* 产品图像容器 - 自适应图片比例 */
.preview-image-container {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F5F5F5;
    border-radius: 0;
    margin-top: calc(0rem); /* 上移3rem */
}

.preview-image-container img {
    /* 放大至原始图片两倍，但不超过视窗的2/3 */
    /* 使用 image-rendering 保持放大后的清晰度 */
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    max-width: calc(66.67vw - 3.75rem); /* 不超过视窗宽度的2/3 */
    max-height: calc(66.67vh - 3.75rem); /* 不超过视窗高度的2/3 */
    width: auto;
    height: auto;
    object-fit: contain;
}

/* ==================== 分类卡片下拉筛选样式 ==================== */

/* 隐藏左侧边栏（功能已合并到卡片下拉） */
.catalog-sidebar {
    display: none;
}

/* 无侧边栏时主内容占满宽度 */
.product-catalog-section {
    display: block;
}

.catalog-main {
    width: 100%;
    margin-left: 0;
}

/* 卡片容器包装器 - 继承网格列宽度 */
.category-card-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    width: 100%; /* 填满网格列 */
}

.category-card-wrapper .category-card {
    cursor: pointer;
}

/* 下拉指示器旋转 */
.category-card-wrapper.dropdown-open .category-card-indicator svg {
    transform: rotate(180deg);
}

/* 下拉菜单样式 - 匹配 Figma 设计稿 */
.category-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    width: calc(11.125rem);
    background: #ffffff;
    z-index: 100;
    margin-top: calc(0.5rem);
    max-height: calc(18.75rem);
    overflow-y: auto;
}

.category-card-wrapper.dropdown-open .category-dropdown {
    display: block;
}

.category-dropdown .dropdown-loading {
    padding: calc(0.5rem) calc(2rem);
    text-align: center;
    color: #6b7280;
    font-family: var(--font-family);
    font-size: calc(0.8rem);
    border-bottom: 1px solid #000000;
}

/* 下拉选项 - Default 状态 */
.category-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: calc(0.5rem) calc(2rem);
    color: #000000;
    text-decoration: none;
    font-family: var(--font-family);
    font-size: calc(0.8rem);
    line-height: calc(1.25rem);
    text-transform: capitalize;
    border-bottom: 1px solid #000000;
    transition: border-bottom-width 0.15s ease;
    cursor: pointer;
    background-color: #ffffff;
}

.category-dropdown .dropdown-item:last-child {
    border-bottom: 1px solid #000000;
}

/* 下拉选项 - Hover 状态：底部边框加粗到 2px */
.category-dropdown .dropdown-item:hover {
    border-bottom-width: 2px;
    background-color: #ffffff;
}

/* 下拉选项 - Focus/Active 状态：显示勾选图标 */
.category-dropdown .dropdown-item.active {
    background-color: #ffffff;
}

.category-dropdown .dropdown-item.active::after {
    content: '';
    display: inline-block;
    width: calc(0.75rem);
    height: calc(0.75rem);
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23000000' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    margin-left: calc(0.5rem);
    flex-shrink: 0;
}

/* 下拉选项 - Disable 状态：灰色文字 */
.category-dropdown .dropdown-item.disabled {
    color: #404040;
    cursor: not-allowed;
}

.category-dropdown .dropdown-item.disabled:hover {
    border-bottom-width: 1px;
}

.category-dropdown .dropdown-header {
    padding: calc(0.5rem) calc(2rem);
    font-family: var(--font-family);
    font-size: calc(0.75rem);
    color: #9ca3af;
    text-transform: capitalize;
    border-bottom: 1px solid #000000;
    background: #ffffff;
}

.category-dropdown .dropdown-all {
    font-weight: 400;
    color: #000000;
}

/* 分类卡片 - 当前选中的产品类型显示 */
.category-card-type {
    font-family: var(--font-family);
    font-size: calc(1rem);
    line-height: calc(1.25rem);
    color: #000000;
    text-transform: capitalize;
    margin: 0;
    display: none;
}

/* ==================== 产品预览模态框 ==================== */

/* ===== 即将上线遮罩层 ===== */
.coming-soon-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(255, 255, 255, 0.96);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: calc(2rem);
}

.coming-soon-content {
    text-align: center;
    max-width: calc(40rem);
    padding: calc(3rem);
}

.coming-soon-title {
    /* font-family 继承自 body.lang-xx，font-weight: 700 触发加粗 */
    font-size: calc(4rem);
    font-weight: 700;
    color: #171717;
    margin: 0 0 calc(1.5rem) 0;
    letter-spacing: calc(0.2rem);
    text-transform: uppercase;
}

.coming-soon-subtitle {
    font-family: var(--font-family);
    font-size: calc(1.2rem);
    color: #404040;
    margin: 0 0 calc(3rem) 0;
    line-height: 1.6;
}

.coming-soon-back {
    display: inline-flex;
    align-items: center;
    gap: calc(0.5rem);
    font-family: var(--font-family);
    font-size: calc(1rem);
    color: #171717;
    text-decoration: none;
    padding: calc(0.75rem) calc(2rem);
    border: 1px solid #171717;
    transition: all 0.3s ease;
}

.coming-soon-back:hover {
    background: #171717;
    color: #fff;
}

.coming-soon-back img {
    width: calc(1rem);
    height: auto;
    transform: rotate(180deg);
}

.coming-soon-close {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: calc(0.5rem);
    font-size: calc(1rem);
    color: #171717;
    background: transparent;
    padding: calc(0.75rem) calc(2rem);
    border: 1px solid #171717;
    cursor: pointer;
    transition: all 0.3s ease;
}

.coming-soon-close:hover {
    background: #171717;
    color: #fff;
}




