/* Mobile Specific Styles - V3 */

/* Tab Button Active State */
.tab-btn.active {
    border-bottom-color: #000;
    color: #000;
}

/* CMS Rich Content Styling */
.cms-rich-content h2,
.cms-rich-content h3 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #1e293b;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    letter-spacing: -0.025em;
}

.cms-rich-content p {
    margin-bottom: 1rem;
    line-height: 1.7;
    color: #4b5563;
}

.cms-rich-content b,
.cms-rich-content strong {
    font-weight: 700;
    color: #1e293b;
}

.cms-rich-content ul {
    list-style-type: disc;
    padding-left: 1.25rem;
    margin-bottom: 1rem;
    color: #4b5563;
}

.cms-rich-content li {
    margin-bottom: 0.25rem;
}

.cms-rich-content img {
    max-width: 100%;
    height: auto;
    border-radius: 0.75rem;
    margin: 1rem 0;
}

.cms-rich-content table {
    width: 100% !important;
    border-collapse: collapse;
    margin: 1rem 0;
    font-size: 13px;
    border: 1px solid #F3F4F6;
    border-radius: 12px;
    overflow: hidden;
}

.cms-rich-content td,
.cms-rich-content th {
    padding: 12px 14px;
    border: 1px solid #F1F5F9;
    background: #ffffff;
    color: #475569;
    text-align: left;
}

/* Header row for tables */
.cms-rich-content table>tr:first-child td,
.cms-rich-content table>tr:first-child th,
.cms-rich-content thead tr:first-child td,
.cms-rich-content thead tr:first-child th {
    background: #F8FAFC !important;
    font-weight: 700;
    color: #1e293b;
}

/* Ensure tbody rows stay white */
.cms-rich-content tbody tr:first-child td,
.cms-rich-content tbody tr:first-child th {
    background: #ffffff !important;
}

.cms-rich-content tr td:first-child {
    font-weight: 700;
    color: #1e293b;
    width: 38%;
}

/* Animations handled by global.css */


/* Utilities */
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* Overview content font size enhancement */
.overview-rich-content,
.overview-rich-content p,
.overview-rich-content span,
.overview-rich-content div,
.overview-rich-content li {
    font-size: 16px !important;
    line-height: 1.6 !important;
    color: #374151 !important;
}

.overview-rich-content h2 {
    font-size: 1.25rem !important;
    margin-top: 1.5rem !important;
}

.overview-rich-content h3 {
    font-size: 1.1rem !important;
    margin-top: 1.25rem !important;
}

/* Product List Styles */
.pagination-container a,
.pagination-container span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    background: white;
    border: 1px solid #F9FAFB;
    border-radius: 16px;
    font-size: 14px;
    font-weight: 800;
    color: #111418;
    transition: all 0.3s;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.02);
}

.pagination-container .active {
    background: #111;
    color: white;
    border-color: #111;
    box-shadow: 0 8px 16px -4px rgba(0, 0, 0, 0.15);
}

/* --- Global Hero & Buttons --- */
@media (max-width: 640px) {
    .hero-title {
        font-size: 2.25rem !important;
        line-height: 1.1 !important;
    }

    .btn-mobile {
        padding: 1rem 2rem !important;
        font-size: 1rem !important;
    }
}

.product-card {
    box-shadow: 0 4px 25px -10px rgba(0, 0, 0, 0.08);
}

/* --- Animations handled by global.css --- */


/* --- Mobile Pagination --- */
.pagination-mobile {
    display: flex;
    justify-content: center;
    gap: 6px;
    margin: 2rem 0;
}
.pagination-mobile a,
.pagination-mobile span {
    padding: 10px 16px;
    background: #fff;
    border: 1px solid #f1f1f1;
    border-radius: 12px;
    font-size: 14px;
    font-weight: bold;
    color: #666;
    transition: all 0.3s;
}
.pagination-mobile .active {
    background: #111;
    color: #fff;
    border-color: #111;
}

/* --- FAQ Component Tweaks --- */
.faq-item {
    margin-bottom: 0.75rem;
}
.faq-btn.rounded-b-none {
    border-bottom-color: transparent !important;
}
.faq-btn { padding: 16px 40px 16px 20px; }
.faq-btn h3 { font-size: 14px; }
.faq-btn::after { right: 16px; }
.faq-body { padding: 0 20px; font-size: 13px; }
.faq-item.faq-open .faq-body { padding: 0 20px 16px; }

/* --- FAQ Home: collapse extra items on mobile only --- */
.faq-section--home .faq-extra { display: none; }
.faq-section--home.faq-all-expanded .faq-extra { display: block; }
.faq-section--home.faq-all-expanded #faq-toggle-all .faq-toggle-icon { transform: rotate(180deg); }


/* --- Utility Classes Tweaks --- */
.icon-circle {
    background: #111827;
    color: #fff;
}

.swiper-pagination-bullet-active {
    background: #111827 !important;
}

/* --- News Article Styles --- */
article.neirong {
    font-family: system-ui, -apple-system, Arial, Helvetica, sans-serif;
    color: #334155;
    line-height: 1.7;
}

article.neirong h2,
article.neirong h3 {
    display: block !important;
    color: #111418 !important;
    font-weight: 800 !important;
    margin-top: 1.5rem !important;
    margin-bottom: 0.75rem !important;
    line-height: 1.3 !important;
}

article.neirong h2 {
    font-size: 1.5rem !important;
}

article.neirong h3 {
    font-size: 1.25rem !important;
}

article.neirong table {
    min-width: 500px;
    width: 100% !important;
    border-collapse: collapse !important;
}

article.neirong td,
article.neirong th {
    padding: 8px 12px !important;
    border: 1px solid #e2e8f0 !important;
    font-size: 0.85rem !important;
}

article.neirong img {
    border-radius: 4px !important;
    margin: 1.5rem auto !important;
    height: auto !important;
}

.table-container {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin: 1.5rem 0;
}

/* Mobile-only: 用系统字体栈覆盖 .font-display 的 Inter（不外链 Google Fonts），
   靠更高 specificity 压过 tailwind-compiled.css。 */
html, body, h1, h2, h3, h4, h5, h6, p, a, li, td, th, div, button, input, textarea, select,
.font-display, .font-display h1, .font-display h2, .font-display h3,
.font-display h4, .font-display p, .font-display a, .font-display li,
.font-display button, .font-display input, .font-display textarea, .font-display select,
.font-display label, .font-display span, .font-display small, .font-display strong {
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, Helvetica, sans-serif !important;
}

/* ==========================================
   Mobile Menu Toggle Styles
   ========================================== */
#mobile-menu {
    display: none;
}
#mobile-menu.open {
    display: block !important;
}
#mobile-menu-overlay {
    display: none;
}
#mobile-menu-overlay.open {
    display: block !important;
}

#mobile-menu-trigger .close-icon {
    display: none;
}
#mobile-menu-trigger.is-open .hamburger-icon {
    display: none;
}
#mobile-menu-trigger.is-open .close-icon {
    display: block !important;
}


/* [2026-10-15] 补 Tailwind 任意值类缺口：移动端菜单遮罩 #mobile-menu-overlay 的层级。
   该类在 tailwind-compiled.css 中不存在（只生成了 z-[15|60|100|110|666|1000|1001|1002|3000|10000]），
   且移动端不加载 head-base.css，故在此补。缺此规则时遮罩无 z-index，会被其它层压住。 */
.z-\[9998\] {
    z-index: 9998;
}


/* ==========================================
   Product Filter FAB + Left Drawer (mobile category pages)
   ========================================== */
#rlflt-fab {
    position: fixed;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 900;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 7px;
    padding: 11px 5px 13px;
    border: 1px solid #e5e8ec;
    border-left: 0;
    border-radius: 0 13px 13px 0;
    background: #ffffff;
    color: #111418;
    box-shadow: 0 6px 18px rgba(17, 20, 24, .10);
    transition: background .2s, color .2s, box-shadow .2s;
}

#rlflt-fab .rlflt-fab-ico {
    font-size: 19px;
    line-height: 1;
}

#rlflt-fab .rlflt-fab-txt {
    font-size: 9.5px;
    font-weight: 800;
    letter-spacing: .16em;
    line-height: 1;
    text-transform: uppercase;
    writing-mode: vertical-rl;
    text-orientation: mixed;
}

#rlflt-fab .rlflt-fab-dot {
    position: absolute;
    top: -6px;
    right: -6px;
    min-width: 17px;
    height: 17px;
    padding: 0 4px;
    border-radius: 9999px;
    background: #111418;
    color: #fff;
    font-size: 10px;
    font-weight: 800;
    line-height: 17px;
    text-align: center;
}

#rlflt-fab.is-active {
    background: #111418;
    border-color: #111418;
    color: #fff;
    box-shadow: 0 8px 22px rgba(17, 20, 24, .24);
}

#rlflt-fab.is-active .rlflt-fab-dot {
    background: #fff;
    color: #111418;
}

#rlflt-mask {
    position: fixed;
    inset: 0;
    z-index: 998;
    background: rgba(17, 20, 24, .45);
    opacity: 0;
    pointer-events: none;
    transition: opacity .24s ease;
}

#rlflt-mask.is-open {
    opacity: 1;
    pointer-events: auto;
}

#rlflt-panel {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    z-index: 999;
    display: flex;
    flex-direction: column;
    width: 88vw;
    max-width: 340px;
    background: #fff;
    transform: translateX(-102%);
    transition: transform .3s cubic-bezier(.22, 1, .36, 1);
    box-shadow: 0 0 40px rgba(17, 20, 24, .18);
}

#rlflt-panel.is-open {
    transform: translateX(0);
}

.rlflt-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 16px 15px 18px;
    border-bottom: 1px solid #eef0f3;
    flex-shrink: 0;
}

.rlflt-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: #111418;
}

#rlflt-close {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: 9999px;
    background: #f4f5f7;
    color: #4b5563;
}

#rlflt-close .material-symbols-outlined {
    font-size: 18px;
}

.rlflt-body {
    flex: 1 1 auto;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
    padding: 2px 18px 22px;
}

.rlflt-group {
    padding-bottom: 4px;
}

.rlflt-label {
    margin: 18px 0 10px;
    font-size: 10.5px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: #9aa1ac;
}

.rlflt-series {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.rlflt-serie {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    padding: 10px 12px;
    border-radius: 11px;
    font-size: 13.5px;
    font-weight: 600;
    color: #374151;
    line-height: 1.35;
    transition: background .16s, color .16s;
}

.rlflt-serie.is-sub {
    margin-left: 12px;
    padding-left: 16px;
    font-size: 12.5px;
    font-weight: 600;
    color: #6b7280;
    border-left: 1px solid #eef0f3;
    border-radius: 0 11px 11px 0;
}

.rlflt-serie.is-on {
    background: #eef2f7;
    color: #111418;
    font-weight: 800;
}

.rlflt-serie.is-on .material-symbols-outlined {
    font-size: 16px;
    color: #111418;
}

.rlflt-chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.rlflt-chip {
    padding: 9px 13px;
    border: 1px solid #e5e8ec;
    border-radius: 10px;
    background: #fff;
    color: #4b5563;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.2;
    transition: background .16s, border-color .16s, color .16s;
}

.rlflt-chip.is-on {
    background: #111418;
    border-color: #111418;
    color: #fff;
    font-weight: 700;
}

.rlflt-foot {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 14px 18px calc(14px + env(safe-area-inset-bottom));
    border-top: 1px solid #eef0f3;
    background: #fff;
    flex-shrink: 0;
}

.rlflt-reset {
    flex: 0 0 34%;
    height: 48px;
    border: 1px solid #e5e8ec;
    border-radius: 12px;
    background: #fff;
    color: #111418;
    font-size: 13px;
    font-weight: 700;
}

.rlflt-apply {
    flex: 1 1 auto;
    height: 48px;
    border-radius: 12px;
    background: #111418;
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

body.rlflt-locked {
    overflow: hidden;
}

.rlflt-active {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 14px;
}

.rlflt-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 7px 9px 7px 12px;
    border: 0;
    border-radius: 9999px;
    background: #111418;
    color: #fff;
    font-size: 11.5px;
    font-weight: 700;
    line-height: 1.2;
}

.rlflt-tag .material-symbols-outlined {
    font-size: 14px;
    opacity: .65;
}

.rlflt-tag-clear {
    border: 0;
    background: none;
    padding: 6px 2px;
    color: #6b7280;
    font-size: 11.5px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ── 产品事实摘要（GEO）：图片区之后、正文之前，作为正文引言。
      由 config/custom.php 的 rl_product_facts() 拼句，内容随字段自动更新 ── */
.rl-fact-summary-box {
    margin: 18px 20px 0;
    padding: 14px 16px 14px 14px;
    background: #FAFBFC;
    border-left: 3px solid var(--brand, #137FEC);
    border-radius: 0 4px 4px 0;
}

.rl-fact-summary {
    margin: 0;
    font-size: 13px;
    line-height: 1.8;
    color: #404b57;
}

/* ── 产品页 FAQ（卡片式手风琴，与 PC 端 product-2610.css 同名类）──────────
   两端共用 .rl-pfaq 类名，尺寸各自定义：PC 在 product-2610.css，移动在此。
   移动端只加载本文件，不会有规则互相覆盖。 */
.rl-pfaq {
    padding: 28px 20px 8px;
    border-top: 1px solid #f3f4f6;
}

.rl-pfaq__title {
    margin: 0 0 14px;
    font-size: 13px;
    font-weight: 700;
    color: #111827;
    text-transform: uppercase;
    letter-spacing: .1em;
}

.rl-pfaq__item {
    background: #F8F9FA;
    border-radius: 8px;
    margin-bottom: 8px;
    box-shadow: 0 1px 3px rgba(0, 0, 0, .07);
    overflow: hidden;
    transition: box-shadow .2s, background .2s;
}

.rl-pfaq__item[open] {
    background: #fff;
    box-shadow: 0 0 0 4px #F8F9FA, 0 1px 3px rgba(0, 0, 0, .07);
}

.rl-pfaq__q {
    position: relative;
    display: block;
    padding: 14px 38px 14px 16px;
    cursor: pointer;
    list-style: none;
}

.rl-pfaq__q::-webkit-details-marker {
    display: none;
}

.rl-pfaq__qtext {
    display: block;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.5;
    color: #111827;
}

.rl-pfaq__q::after {
    content: "+";
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    font-weight: 300;
    line-height: 1;
    color: #bbb;
    transition: transform .2s;
}

.rl-pfaq__item[open] .rl-pfaq__q::after {
    transform: translateY(-50%) rotate(45deg);
}

.rl-pfaq__a {
    padding: 0 16px 14px;
    font-size: 12px;
    line-height: 1.7;
    color: #555;
}

.rl-pfaq__a p {
    margin: 0;
    color: #555;
    line-height: 1.7;
}

/* ── 产品图缩略图选中态 ────────────────────────────────────────────
   原模板每个缩略图只靠 Tailwind 的 active:border-black 做按压反馈，
   没有持久选中态；改成 rlSwitchImage() 统一管理后补一个可读的状态色。 */
.rl-mthumb.is-active {
    border-color: #111418;
}
