/* ============================================================
   高端卫浴品牌样式 — 修复图片变形
   ============================================================ */

:root {
    --primary: #1a2a3a;
    --primary-light: #2c4053;
    --gold: #c8a87c;
    --gold-dark: #b08d5e;
    --bg: #f7f6f4;
    --surface: #ffffff;
    --text: #1e2a36;
    --text-muted: #4a5a6a;
    --border: #e8e4de;
    --shadow: 0 8px 32px rgba(26,42,58,0.07);
    --shadow-hover: 0 16px 48px rgba(26,42,58,0.12);
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Roboto', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img {
    max-width: 100%;
    display: block;
}

a {
    text-decoration: none;
    color: var(--gold-dark);
    transition: color 0.3s;
}
a:hover {
    color: var(--primary);
}

/* ============================================================
   字体规范 — 全部 px + 行高
   ============================================================ */

.hero-number,
.hero-left h2 {
    font-size: 42px !important;
    line-height: 1.2 !important;
}

h1,
.tag-title {
    font-size: 36px !important;
    line-height: 1.2 !important;
}

h2,
.title {
    font-size: 28px !important;
    line-height: 1.2 !important;
}

h3,
.h3,
.editor-module-faq h3 {
    font-size: 24px !important;
    line-height: 1.2 !important;
}

h4 {
    font-size: 20px !important;
    line-height: 1.4 !important;
}

h5,
.font-18,
.product-list .text h2 a {
    font-size: 18px !important;
    line-height: 1.6 !important;
}

.related-compact-title {
    font-size: 17px !important;
    line-height: 1.6 !important;
}

p,
.hero-left p,
.text p,
.hero-right p,
.editor-content-1,
.faq-answer,
.hero-section-p,
.product-list .text h2 {
    font-size: 16px !important;
    line-height: 1.6 !important;
}

.hero-right p {
    font-size: 15px !important;
    line-height: 1.8 !important;
}

.hero-tags span,
.rc-num,
.rc-name,
.faq-question,
.m-page,
.fenlei,
.Auxil-catdes,
.hero-badge {
    font-size: 14px !important;
    line-height: 1.8 !important;
}

/* ============================================================
   HERO 区块 — 只改颜色
   ============================================================ */

.hero-mini {
    background: var(--surface) !important;
    box-shadow: var(--shadow) !important;
    /* 不修改 padding、margin、display、flex 等布局 */
}

.hero-left h2 {
    color: var(--primary) !important;
}

.hero-left p {
    color: var(--text-muted) !important;
}

.hero-tags span {
    background: var(--bg) !important;
    border-color: var(--border) !important;
    color: var(--text-muted) !important;
}

.hero-badge {
    display: inline-block;
    padding: 4px 16px;
    background: rgba(200,168,124,0.15) !important;
    color: var(--gold-dark) !important;
    border-radius: 30px;
    font-weight: 500;
    letter-spacing: 0.5px;
    margin-bottom: 16px;
}

.btn-primary {
    background: var(--primary) !important;
    color: #fff !important;
}
.btn-primary:hover {
    background: var(--primary-light) !important;
}

.btn-light {
    background: transparent !important;
    color: var(--primary) !important;
    border: 2px solid var(--primary) !important;
}
.btn-light:hover {
    background: var(--primary) !important;
    color: #fff !important;
}

.hero-number {
    color: var(--gold-dark) !important;
}

.hero-right p {
    color: var(--text-muted) !important;
}

/* ============================================================
   PRODUCT LIST — ★★★ 修复图片居中 + 不变形 ★★★
   ============================================================ */

.product-list .grid-box li {
    background: var(--surface) !important;
    box-shadow: var(--shadow) !important;
    border-radius: 12px;
    overflow: hidden;
}

.product-list .grid-box li:hover {
    box-shadow: var(--shadow-hover) !important;
}

/* ★★★ 图片容器 — 固定比例，图片居中 ★★★ */
.product-list .img {
    width: 100% !important;
    height: 240px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fafaf8 !important;
}

/* ★★★ 图片 — 保持比例，居中显示 ★★★ */
.product-list .img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 16px !important;
    display: block !important;
}

.product-list .text {
    padding: 18px 20px 22px !important;
    text-align: center !important;
}

.product-list .text h2 a {
    color: var(--primary) !important;
}
.product-list .text h2 a:hover {
    color: var(--gold-dark) !important;
}

/* ============================================================
   ABOUT — ★★★ 修复图片居中 ★★★
   ============================================================ */

.Auxil-about {
    background: var(--surface) !important;
    box-shadow: var(--shadow) !important;
    border-radius: 12px;
    padding: 40px;
}

.Auxil-about .title {
    color: var(--primary) !important;
    text-align: center;
    margin-bottom: 30px;
}

.Auxil-about .box {
    display: grid;
    grid-template-columns: 1fr 1.8fr;
    gap: 40px;
    align-items: start;
}

.Auxil-about .left .img {
    width: 100% !important;
    height: 280px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
    background: #fafaf8 !important;
    border-radius: 12px;
}

.Auxil-about .left .img img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    padding: 20px !important;
}

.Auxil-about .right .h3 {
    color: var(--primary) !important;
}

.Auxil-about .right .text p {
    color: var(--text-muted) !important;
}

/* ============================================================
   RELATED — 只改颜色
   ============================================================ */

.related-compact-line {
    background: var(--border) !important;
}

.related-compact-title {
    color: var(--primary) !important;
}

.related-compact-item:hover {
    background: rgba(200,168,124,0.08) !important;
}

.rc-num {
    color: #b8a88a !important;
}
.related-compact-item:hover .rc-num {
    color: var(--gold-dark) !important;
}

.rc-name {
    color: var(--text) !important;
}
.related-compact-item:hover .rc-name {
    color: var(--gold-dark) !important;
}

.rc-arr {
    color: #ccc5bb !important;
}
.related-compact-item:hover .rc-arr {
    color: var(--gold-dark) !important;
}

/* ============================================================
   FAQ — 只改颜色
   ============================================================ */

.editor-module-faq {
    background: var(--surface) !important;
    border-color: var(--border) !important;
    box-shadow: var(--shadow) !important;
    border-radius: 12px;
    padding: 30px 32px;
    max-width: 900px;
    margin: 40px auto;
}

.editor-module-faq h3 {
    color: var(--primary) !important;
    border-bottom: 2px solid var(--gold) !important;
    padding-bottom: 12px;
    text-align: center;
}

.editor-module-faq ul {
    border-color: var(--border) !important;
}

.editor-module-faq li:first-child {
    background: var(--bg) !important;
    color: var(--text) !important;
    border-bottom-color: var(--border) !important;
}
.editor-module-faq li:first-child:hover {
    background: rgba(200,168,124,0.08) !important;
}
.editor-module-faq li:first-child::after {
    color: var(--gold-dark) !important;
}

.editor-module-faq li:last-child {
    background: var(--surface) !important;
    color: var(--text-muted) !important;
}

/* ============================================================
   TAG PAGE — 只改颜色
   ============================================================ */

.tag-page-container a {
    color: var(--gold-dark) !important;
}
.tag-page-container a:hover {
    color: var(--primary) !important;
}

.tag-title {
    color: var(--primary) !important;
}

.hero-section-p {
    color: var(--gold-dark) !important;
}

.editor-content-1 {
    background: rgba(200,168,124,0.06) !important;
    border-left-color: var(--gold) !important;
    color: var(--text-muted) !important;
    border-radius: 12px;
    padding: 24px 30px;
}

/* ============================================================
   分页
   ============================================================ */

.m-page a,
.m-page span {
    border-color: var(--border) !important;
    color: var(--text) !important;
}
.m-page .current {
    background: var(--primary) !important;
    color: #fff !important;
    border-color: var(--primary) !important;
}

/* ============================================================
   移动端
   ============================================================ */

@media (max-width: 768px) {
    .hero-left h2 {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    .hero-left p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    .hero-number {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    .hero-right p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    /* ★★★ 移动端图片容器缩小 ★★★ */
    .product-list .img {
        height: 160px !important;
    }
    .product-list .img img {
        padding: 10px !important;
    }

    .product-list .text h2,
    .product-list .text h2 a {
        font-size: 16px !important;
        line-height: 1.6 !important;
    }

    .Auxil-about {
        padding: 24px 20px;
    }
    .Auxil-about .box {
        grid-template-columns: 1fr;
        gap: 24px;
    }
    .Auxil-about .left .img {
        height: 200px !important;
    }
    .Auxil-about .title {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    .Auxil-about .right .h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    .Auxil-about .right .text p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    .related-compact-title {
        font-size: 15px !important;
        line-height: 1.8 !important;
    }
    .rc-name {
        font-size: 13px !important;
        line-height: 1.8 !important;
    }
    .rc-num {
        font-size: 11px !important;
        line-height: 1.8 !important;
    }

    .editor-module-faq {
        padding: 20px 16px;
        margin: 30px 12px;
    }
    .editor-module-faq h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    .editor-module-faq li:first-child {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    .editor-module-faq li:last-child {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    .tag-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    .hero-section-p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    .editor-content-1 {
        font-size: 14px !important;
        line-height: 1.8 !important;
        padding: 18px 20px;
    }

    h1,
    .tag-title {
        font-size: 28px !important;
        line-height: 1.2 !important;
    }
    h2,
    .title {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    h3,
    .h3 {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    p,
    .text p,
    .hero-left p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
}

@media (max-width: 480px) {
    .hero-left h2,
    .hero-number {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
    .hero-tags span {
        font-size: 12px !important;
        line-height: 1.6 !important;
    }

    .product-list .img {
        height: 130px !important;
    }
    .product-list .img img {
        padding: 8px !important;
    }
    .product-list .text h2,
    .product-list .text h2 a {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    .product-list .text {
        padding: 12px 14px 16px !important;
    }

    .related-compact-title {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }
    .rc-name {
        font-size: 13px !important;
        line-height: 1.8 !important;
    }
    .rc-num {
        font-size: 10px !important;
        line-height: 1.8 !important;
    }

    .Auxil-about .left .img {
        height: 160px !important;
    }
    .Auxil-about .title {
        font-size: 20px !important;
        line-height: 1.4 !important;
    }
    .Auxil-about .right .h3 {
        font-size: 18px !important;
        line-height: 1.6 !important;
    }

    .tag-title {
        font-size: 24px !important;
        line-height: 1.2 !important;
    }
}