/* =====================================================
   川安健身器材 · 全站样式
   ===================================================== */

/* ---- Reset & Base ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif; color: #333; background: #fff; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }
button { cursor: pointer; border: none; background: none; }

/* ---- Container ---- */
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* =====================================================
   HEADER
   ===================================================== */
.site-header {
    background: #1a1f2e;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,.3);
}
.site-header .container {
    display: flex;
    align-items: center;
    gap: 24px;
    height: 68px;
}
.logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}
.logo img { height: 44px; }
.logo span {
    color: #fff;
    font-size: 1.1rem;
    font-weight: 700;
    white-space: nowrap;
}
.main-nav {
    display: flex;
    gap: 4px;
    margin-left: auto;
}
.main-nav a {
    color: rgba(255,255,255,.85);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: .9rem;
    transition: color .2s, background .2s;
    white-space: nowrap;
}
.main-nav a:hover,
.main-nav a.active {
    color: #fff;
    background: #e63329;
}
.header-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}
.header-search {
    display: flex;
    overflow: hidden;
    border-radius: 20px;
    background: rgba(255,255,255,.1);
}
.header-search input {
    background: none;
    border: none;
    color: #fff;
    padding: 5px 12px;
    font-size: .85rem;
    width: 130px;
    outline: none;
}
.header-search input::placeholder { color: rgba(255,255,255,.5); }
.header-search button {
    background: #e63329;
    color: #fff;
    padding: 5px 12px;
    font-size: .82rem;
    border-radius: 0 20px 20px 0;
}
.lang-switch {
    display: flex;
    gap: 4px;
}
.lang-switch button {
    color: rgba(255,255,255,.75);
    font-size: .82rem;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,.3);
    border-radius: 3px;
    transition: all .2s;
}
.lang-switch button:hover,
.lang-switch button.active { color: #fff; border-color: #e63329; background: #e63329; }
.nav-toggle {
    display: none;
    color: #fff;
    font-size: 1.4rem;
    flex-shrink: 0;
}

/* =====================================================
   FOOTER
   ===================================================== */
.site-footer {
    background: #1a1f2e;
    color: rgba(255,255,255,.75);
    padding: 48px 0 24px;
    margin-top: 60px;
}
.footer-cols {
    display: flex;
    gap: 48px;
    margin-bottom: 36px;
    flex-wrap: wrap;
}
.footer-cols .col h4 {
    color: #fff;
    margin-bottom: 12px;
    font-size: 1rem;
}
.footer-cols .col p { font-size: .9rem; line-height: 2; }
.footer-copyright {
    border-top: 1px solid rgba(255,255,255,.1);
    padding-top: 20px;
    font-size: .85rem;
    text-align: center;
    color: rgba(255,255,255,.45);
}
.footer-copyright p { line-height: 2; }
.footer-copyright a { color: inherit; transition: color .2s; }
.footer-copyright a:hover { color: rgba(255,255,255,.85); }

/* =====================================================
   COMMON SECTION STYLES
   ===================================================== */
.section { padding: 64px 0; }
.section:nth-child(even) { background: #f7f8fa; }
.section-title {
    font-size: 1.75rem;
    font-weight: 700;
    text-align: center;
    margin-bottom: 40px;
    color: #1a1f2e;
    position: relative;
}
.section-title::after {
    content: '';
    display: block;
    width: 48px;
    height: 3px;
    background: #e63329;
    margin: 10px auto 0;
    border-radius: 2px;
}
.section-label {
    font-size: .78rem;
    letter-spacing: .15em;
    color: #e63329;
    font-weight: 600;
    margin-bottom: 8px;
    text-transform: uppercase;
}
.section-sub {
    text-align: center;
    color: #666;
    margin-top: -28px;
    margin-bottom: 32px;
    font-size: .95rem;
}
.page-header {
    background: #1a1f2e;
    color: #fff;
    padding: 56px 0 48px;
    text-align: center;
}
.page-header h1 { font-size: 2rem; font-weight: 700; margin-bottom: 8px; }
.page-header p { font-size: .95rem; color: rgba(255,255,255,.65); }

/* =====================================================
   HERO BANNER
   ===================================================== */
.hero-banner { position: relative; overflow: hidden; }
.hero-banner .swiper { position: relative; }
.hero-banner .slide {
    background-size: cover;
    background-position: center;
    min-height: 500px;
    display: flex;
    align-items: center;
    padding: 60px 40px;
    position: relative;
}
.hero-banner .slide::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,.45);
}
.hero-banner .slide h2 {
    position: relative;
    color: #fff;
    font-size: 2.2rem;
    font-weight: 700;
    max-width: 600px;
    text-shadow: 0 2px 8px rgba(0,0,0,.5);
    margin-bottom: 24px;
}
.hero-banner .slide .btn {
    position: relative;
    display: inline-block;
    background: #e63329;
    color: #fff;
    padding: 12px 32px;
    border-radius: 4px;
    font-size: 1rem;
    font-weight: 600;
    transition: background .2s;
}
.hero-banner .slide .btn:hover { background: #c9251c; }

/* 轮播只展示图片：隐藏标题与「了解更多」按钮。
   文字仍保留在 HTML 中（利于 SEO），如需恢复显示，删除下面这两条规则即可。 */
.hero-banner .slide h2,
.hero-banner .slide .btn { display: none; }
/* 上面那层 45% 黑色遮罩本是为了压暗背景、保证白字可读，文字隐藏后不再需要 */
.hero-banner .slide::before { display: none; }

.banner-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}
.banner-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,.5);
    cursor: pointer;
    transition: background .2s;
}
.banner-dot.active { background: #e63329; }

/* ---- 轮播左右切换按钮 ---- */
.banner-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(0,0,0,.35);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background .2s;
}
.banner-arrow:hover { background: #e63329; }
.banner-arrow::before {
    content: '';
    width: 12px;
    height: 12px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}
.banner-prev { left: 28px; }
.banner-prev::before { transform: rotate(-135deg); margin-left: 4px; }
.banner-next { right: 28px; }
.banner-next::before { transform: rotate(45deg); margin-right: 4px; }
@media (max-width: 768px) {
    .banner-arrow { width: 36px; height: 36px; }
    .banner-arrow::before { width: 9px; height: 9px; }
    .banner-prev { left: 10px; }
    .banner-next { right: 10px; }
}

/* =====================================================
   HOMEPAGE — PRODUCT GRID
   ===================================================== */
.product-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}
.product-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    transition: box-shadow .2s, transform .2s;
}
.product-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.product-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
/* 注意：模板 widget/product_card.html 用的是 .info，早期这里错写成 .product-card-body，
   导致内边距一直没生效、文字贴着边框。 */
.product-card .info { padding: 16px 18px 18px; }
.product-card .info h3 { font-size: .95rem; font-weight: 600; margin-bottom: 4px; color: #1a1f2e; line-height: 1.5; }
.product-card .info .model { font-size: .8rem; color: #999; margin-bottom: 8px; }
.product-card .info .summary {
    font-size: .85rem;
    color: #777;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}
.product-card .info .price { color: #e63329; font-weight: 700; font-size: 1rem; }
.more { text-align: center; margin-top: 32px; }
.more a {
    display: inline-block;
    border: 2px solid #e63329;
    color: #e63329;
    padding: 10px 36px;
    border-radius: 4px;
    font-weight: 600;
    transition: all .2s;
}
.more a:hover { background: #e63329; color: #fff; }

/* =====================================================
   HOMEPAGE — NEWS GRID
   ===================================================== */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    border-radius: 8px;
    overflow: hidden;
    border: 1px solid #eee;
    background: #fff;
    transition: box-shadow .2s;
    display: flex;
    flex-direction: column;
}
.news-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.news-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
}
.news-card-body { padding: 16px; flex: 1; display: flex; flex-direction: column; }
.news-card-body .date { font-size: .8rem; color: #999; margin-bottom: 6px; }
.news-card-body h3 { font-size: 1rem; font-weight: 600; margin-bottom: 8px; color: #1a1f2e; line-height: 1.5; }
.news-card-body p { font-size: .88rem; color: #666; flex: 1; }
.news-card-body .read-more { display: inline-block; margin-top: 12px; color: #e63329; font-size: .85rem; font-weight: 600; }

/* =====================================================
   HOMEPAGE — CASE GRID
   ===================================================== */
.case-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.case-card {
    border-radius: 8px;
    overflow: hidden;
    position: relative;
    display: block;
}
.case-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform .3s;
}
.case-card:hover img { transform: scale(1.04); }
.case-card h3 {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,.75));
    color: #fff;
    padding: 24px 16px 14px;
    font-size: .95rem;
}

/* =====================================================
   HOMEPAGE — CERT LIST
   ===================================================== */
.cert-list {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    justify-content: center;
}
.cert-item {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 14px 20px;
    min-width: 140px;
    text-align: center;
}
.cert-badge {
    font-size: .88rem;
    color: #555;
    font-weight: 500;
}

/* =====================================================
   ABOUT PAGE
   ===================================================== */
.about-intro-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.about-intro-img img {
    width: 100%;
    border-radius: 8px;
    box-shadow: 0 8px 32px rgba(0,0,0,.12);
}
.about-intro-text h2 { font-size: 1.6rem; font-weight: 700; margin-bottom: 16px; color: #1a1f2e; }
.about-intro-text p { color: #555; margin-bottom: 12px; line-height: 1.8; }
.about-stats {
    display: flex;
    gap: 24px;
    margin-top: 28px;
    flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-item strong { display: block; font-size: 1.6rem; font-weight: 800; color: #e63329; }
.stat-item span { font-size: .8rem; color: #777; }
.strengths-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.strength-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 12px rgba(0,0,0,.06);
    transition: box-shadow .2s, transform .2s;
}
.strength-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.strength-icon { width: 56px; height: 56px; margin: 0 auto 16px; }
.strength-icon svg { width: 100%; height: 100%; }
.strength-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #1a1f2e; }
.strength-card p { font-size: .88rem; color: #666; line-height: 1.7; }
.cert-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}
.cert-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border: 1px solid #f0f0f0;
    border-radius: 10px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.cert-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.cert-card-icon { width: 52px; height: 52px; flex-shrink: 0; }
.cert-card-icon svg { width: 100%; height: 100%; }
.cert-card-icon img { width: 52px; height: 52px; object-fit: contain; }
.cert-card-body h4 { font-size: .95rem; font-weight: 600; color: #1a1f2e; margin-bottom: 6px; }
.cert-tag {
    display: inline-block;
    background: #fff0ef;
    color: #e63329;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.rich-content { color: #555; line-height: 1.9; }
.rich-content p { margin-bottom: 12px; }

/* =====================================================
   NEWS PAGE
   ===================================================== */
.news-page {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 48px 0;
    align-items: start;
}
.news-cats {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 20px;
    position: sticky;
    top: 88px;
}
.news-cats h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1f2e;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63329;
}
.news-cats ul li a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: .9rem;
    color: #555;
    transition: all .2s;
}
.news-cats ul li a:hover,
.news-cats ul li a.active {
    background: #fff0ef;
    color: #e63329;
    font-weight: 600;
}
.news-list { display: flex; flex-direction: column; gap: 20px; }
.news-list-card {
    display: flex;
    gap: 20px;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow .2s;
    padding-right: 20px;
}
.news-list-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.nlc-cover { width: 220px; flex-shrink: 0; }
.nlc-cover img { width: 100%; height: 150px; object-fit: cover; }
.nlc-body { padding: 16px 0; flex: 1; display: flex; flex-direction: column; }
.nlc-meta { display: flex; gap: 10px; align-items: center; margin-bottom: 8px; }
.nlc-date { font-size: .8rem; color: #999; }
.nlc-cat {
    background: #fff0ef;
    color: #e63329;
    font-size: .75rem;
    padding: 2px 8px;
    border-radius: 10px;
    font-weight: 600;
}
.nlc-title { font-size: 1.05rem; font-weight: 700; color: #1a1f2e; margin-bottom: 8px; line-height: 1.5; }
.nlc-summary { font-size: .88rem; color: #666; flex: 1; line-height: 1.7; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.nlc-more { margin-top: 12px; font-size: .85rem; color: #e63329; font-weight: 600; }

/* =====================================================
   CASES PAGE
   ===================================================== */
.case-page {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 48px 0;
    align-items: start;
}
.case-cats {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 20px;
    position: sticky;
    top: 88px;
}
.case-cats h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1f2e;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63329;
}
.case-cats ul li a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: .9rem;
    color: #555;
    transition: all .2s;
}
.case-cats ul li a:hover,
.case-cats ul li a.active {
    background: #fff0ef;
    color: #e63329;
    font-weight: 600;
}
.case-list-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.case-list-card {
    display: block;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #eee;
    overflow: hidden;
    transition: box-shadow .2s, transform .2s;
}
.case-list-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.clc-cover img { width: 100%; height: 200px; object-fit: cover; }
.clc-body { padding: 16px; }
.clc-loc { font-size: .8rem; color: #999; display: block; margin-bottom: 6px; }
.clc-title { font-size: 1rem; font-weight: 700; color: #1a1f2e; margin-bottom: 6px; }
.clc-partner { font-size: .85rem; color: #888; margin-bottom: 6px; }
.clc-summary { font-size: .88rem; color: #666; line-height: 1.6; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.clc-more { display: inline-block; margin-top: 10px; font-size: .85rem; color: #e63329; font-weight: 600; }

/* =====================================================
   SUPPORT PAGE
   ===================================================== */
.promise-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
}
.promise-card {
    background: #fff;
    border-radius: 10px;
    padding: 28px 20px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
    transition: box-shadow .2s, transform .2s;
}
.promise-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.1); transform: translateY(-3px); }
.promise-icon { width: 56px; height: 56px; margin: 0 auto 16px; }
.promise-icon svg { width: 100%; height: 100%; }
.promise-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: 8px; color: #1a1f2e; }
.promise-card p { font-size: .85rem; color: #666; line-height: 1.7; }

.flow-steps {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    flex-wrap: wrap;
}
.flow-step {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 24px 20px;
    flex: 1;
    min-width: 180px;
    box-shadow: 0 2px 10px rgba(0,0,0,.05);
}
.flow-arrow {
    font-size: 1.5rem;
    color: #e63329;
    padding: 0 10px;
    flex-shrink: 0;
    align-self: center;
}
.flow-num {
    font-size: 2rem;
    font-weight: 800;
    color: #e63329;
    line-height: 1;
    flex-shrink: 0;
}
.flow-content h4 { font-size: .95rem; font-weight: 700; color: #1a1f2e; margin-bottom: 6px; }
.flow-content p { font-size: .85rem; color: #666; line-height: 1.6; }

.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
}
.faq-q {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px 20px;
    cursor: pointer;
    transition: background .2s;
}
.faq-q:hover { background: #f9f9f9; }
.faq-icon {
    background: #e63329;
    color: #fff;
    width: 26px;
    height: 26px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .8rem;
    font-weight: 700;
    flex-shrink: 0;
}
.faq-q h4 { flex: 1; font-size: .95rem; color: #1a1f2e; font-weight: 600; }
.faq-toggle {
    font-size: 1.4rem;
    color: #e63329;
    font-weight: 300;
    transition: transform .2s;
    line-height: 1;
    flex-shrink: 0;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); }
.faq-a {
    display: none;
    padding: 0 20px 16px 58px;
    font-size: .9rem;
    color: #555;
    line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

.download-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}
.download-card {
    display: flex;
    align-items: center;
    gap: 16px;
    background: #fff;
    border-radius: 10px;
    padding: 20px;
    border: 1px solid #eee;
    box-shadow: 0 2px 8px rgba(0,0,0,.04);
    transition: box-shadow .2s;
}
.download-card:hover { box-shadow: 0 6px 20px rgba(0,0,0,.08); }
.dl-icon { width: 48px; height: 48px; flex-shrink: 0; }
.dl-icon svg { width: 100%; height: 100%; }
.dl-info { flex: 1; }
.dl-info h4 { font-size: .95rem; font-weight: 600; color: #1a1f2e; margin-bottom: 4px; }
.dl-info p { font-size: .82rem; color: #888; }
.dl-btn {
    display: inline-block;
    background: #e63329;
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: .82rem;
    font-weight: 600;
    white-space: nowrap;
    transition: background .2s;
    flex-shrink: 0;
}
.dl-btn:hover { background: #c9251c; }

.support-contact-section { background: #1a1f2e !important; }
.support-contact-box {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap;
}
.sc-left h2 { font-size: 1.6rem; font-weight: 700; color: #fff; margin-bottom: 10px; }
.sc-left > p { color: rgba(255,255,255,.7); margin-bottom: 20px; }
.sc-channels { display: flex; flex-direction: column; gap: 10px; }
.sc-channels li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: rgba(255,255,255,.8);
    font-size: .9rem;
}
.sc-channels svg { width: 20px; height: 20px; flex-shrink: 0; }
.sc-channels strong { color: #fff; }
.sc-btn {
    display: inline-block;
    background: #e63329;
    color: #fff;
    padding: 16px 36px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    transition: background .2s;
    white-space: nowrap;
}
.sc-btn:hover { background: #c9251c; }

/* =====================================================
   CONTACT PAGE
   ===================================================== */
.contact-wrap { padding: 48px 0 80px; }
.contact-layout {
    display: grid;
    grid-template-columns: 340px 1fr;
    gap: 40px;
    align-items: start;
}
.contact-aside-inner {
    background: #1a1f2e;
    border-radius: 10px;
    padding: 36px 28px;
    color: #fff;
    position: sticky;
    top: 88px;
}
.contact-aside-inner h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 24px; }
.contact-items { display: flex; flex-direction: column; gap: 24px; }
.contact-items li { display: flex; gap: 14px; align-items: flex-start; }
.ci-icon { width: 36px; height: 36px; flex-shrink: 0; }
.ci-icon svg { width: 100%; height: 100%; }
.ci-body { display: flex; flex-direction: column; gap: 2px; }
.ci-label { font-size: .78rem; color: rgba(255,255,255,.5); }
.ci-body strong { font-size: .95rem; color: #fff; }
.ci-sub { font-size: .8rem; color: rgba(255,255,255,.5); }
.contact-aside-note {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid rgba(255,255,255,.1);
}
.contact-aside-note svg { width: 24px; height: 24px; flex-shrink: 0; margin-top: 2px; }
.contact-aside-note p { font-size: .85rem; color: rgba(255,255,255,.6); line-height: 1.7; }
.contact-aside-note strong { color: rgba(255,255,255,.9); }
.contact-form-box {
    background: #fff;
    border-radius: 10px;
    padding: 36px;
    box-shadow: 0 4px 20px rgba(0,0,0,.06);
}
.contact-form-box h2 { font-size: 1.3rem; font-weight: 700; margin-bottom: 6px; color: #1a1f2e; }
.form-desc { font-size: .9rem; color: #888; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 16px; }
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.form-row .form-group { margin-bottom: 0; }
.form-group label { font-size: .88rem; font-weight: 600; color: #444; }
.form-group label em { color: #e63329; font-style: normal; margin-left: 2px; }
.form-group input,
.form-group textarea {
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .9rem;
    font-family: inherit;
    outline: none;
    transition: border-color .2s;
    color: #333;
    background: #fafafa;
}
.form-group input:focus,
.form-group textarea:focus { border-color: #e63329; background: #fff; }
.form-group textarea { resize: vertical; }
.form-msg {
    padding: 12px 16px;
    border-radius: 6px;
    font-size: .9rem;
    margin-bottom: 16px;
}
.form-msg.success { background: #f0fdf0; color: #166534; border: 1px solid #bbf7d0; }
.form-msg.error { background: #fff5f5; color: #991b1b; border: 1px solid #fecaca; }
.form-submit {
    display: block;
    width: 100%;
    background: #e63329;
    color: #fff;
    padding: 13px;
    border-radius: 6px;
    font-size: 1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s;
    border: none;
}
.form-submit:hover { background: #c9251c; }
.form-submit:disabled { background: #ccc; cursor: not-allowed; }

/* =====================================================
   PRODUCT PAGE
   ===================================================== */
.product-page {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 40px;
    padding: 48px 0;
    align-items: start;
}
.product-cats {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,.06);
    padding: 20px;
    position: sticky;
    top: 88px;
}
.product-cats h3 {
    font-size: .95rem;
    font-weight: 700;
    color: #1a1f2e;
    margin-bottom: 12px;
    padding-bottom: 10px;
    border-bottom: 2px solid #e63329;
}
.product-cats ul li a {
    display: block;
    padding: 8px 10px;
    border-radius: 4px;
    font-size: .9rem;
    color: #555;
    transition: all .2s;
}
.product-cats ul li a:hover,
.product-cats ul li a.active { background: #fff0ef; color: #e63329; font-weight: 600; }
.product-main .product-grid { grid-template-columns: repeat(3, 1fr); }

/* =====================================================
   PAGINATION
   ===================================================== */
.pagination {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 36px;
    flex-wrap: wrap;
}
.pagination a, .pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
    font-size: .9rem;
    color: #555;
    transition: all .2s;
}
.pagination a:hover, .pagination .current, .pagination .pg-cur { background: #e63329; color: #fff; border-color: #e63329; }
.pagination .pg-btn { padding: 0 14px; }
.pagination .pg-ellipsis { border: none; color: #aaa; }

/* =====================================================
   BREADCRUMB
   ===================================================== */
.breadcrumb {
    padding: 12px 0;
    font-size: .85rem;
    color: #888;
    display: flex;
    gap: 6px;
    align-items: center;
}
.breadcrumb a { color: #888; }
.breadcrumb a:hover { color: #e63329; }
.breadcrumb .sep { color: #ccc; }

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .product-grid { grid-template-columns: repeat(3, 1fr); }
    .strengths-grid { grid-template-columns: repeat(2, 1fr); }
    .promise-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
    .about-intro-grid { grid-template-columns: 1fr; gap: 32px; }
    .news-page, .case-page, .product-page { grid-template-columns: 1fr; }
    .news-cats, .case-cats, .product-cats { position: static; }
    .contact-layout { grid-template-columns: 1fr; }
    .contact-aside-inner { position: static; }
}
@media (max-width: 768px) {
    .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #1a1f2e; padding: 16px; gap: 4px; }
    .main-nav.open { display: flex; }
    .main-nav a { padding: 10px 14px; }
    .nav-toggle { display: block; }
    .header-search { display: none; }
    .site-header .container { position: relative; }
    .product-grid, .news-grid, .case-grid { grid-template-columns: repeat(2, 1fr); }
    .case-list-grid { grid-template-columns: 1fr; }
    .download-grid { grid-template-columns: 1fr; }
    .flow-steps { flex-direction: column; align-items: stretch; }
    .flow-arrow { transform: rotate(90deg); text-align: center; }
    .support-contact-box { flex-direction: column; }
    .hero-banner .slide { min-height: 320px; }
    .hero-banner .slide h2 { font-size: 1.5rem; }
    .section { padding: 48px 0; }
}
@media (max-width: 540px) {
    .product-grid, .news-grid { grid-template-columns: 1fr; }
    .about-stats { gap: 16px; }
    .strengths-grid { grid-template-columns: 1fr 1fr; }
    .promise-grid { grid-template-columns: 1fr 1fr; }
    .cert-cards { grid-template-columns: 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .news-list-card { flex-direction: column; padding-right: 0; }
    .nlc-cover { width: 100%; }
    .nlc-cover img { height: 200px; }
    .nlc-body { padding: 14px; }
}
@media (max-width: 400px) {
    .strengths-grid, .promise-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: 1fr; }
}

/* =====================================================
   PRODUCT CATEGORY SIDEBAR (multi-level accordion)
   ===================================================== */
.pcat .pcat-all {
    display: block;
    padding: 9px 10px;
    margin-bottom: 4px;
    border-radius: 4px;
    font-size: .9rem;
    color: #555;
    transition: all .2s;
}
.pcat .pcat-all:hover,
.pcat .pcat-all.active { background: #fff0ef; color: #e63329; font-weight: 600; }

.pcat-tree, .pcat-children { list-style: none; margin: 0; padding: 0; }
.pcat-item { border-bottom: 1px solid #f0f0f0; }
.pcat-children > .pcat-item:last-child { border-bottom: none; }

.pcat-row { display: flex; align-items: center; }
.pcat-row .pcat-link {
    flex: 1 1 auto;
    display: block;
    padding: 9px 10px;
    font-size: .9rem;
    color: #333;
    transition: color .2s;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.pcat-row .pcat-link:hover { color: #e63329; }
.pcat-row .pcat-link.active { color: #e63329; font-weight: 700; }

/* +/- 折叠按钮 */
.pcat-toggle {
    flex: none;
    width: 20px; height: 20px;
    margin-left: 6px;
    position: relative;
    cursor: pointer;
    border: 1px solid #e0e0e0;
    border-radius: 3px;
    background: #fafafa;
}
.pcat-toggle::before,
.pcat-toggle::after { content: ''; position: absolute; background: #e63329; }
.pcat-toggle::before { left: 4px; right: 4px; top: 50%; height: 2px; transform: translateY(-50%); }
.pcat-toggle::after  { top: 4px; bottom: 4px; left: 50%; width: 2px; transform: translateX(-50%); }
.pcat-item.open > .pcat-row > .pcat-toggle::after { display: none; } /* 展开时显示减号 */

/* 子级缩进与层级弱化 */
.pcat-children { padding-left: 12px; border-left: 2px solid #f5f5f5; margin-left: 8px; }
.pcat-children .pcat-link { font-size: .86rem; color: #666; }
.pcat-children .pcat-children .pcat-link { font-size: .83rem; color: #888; }

/* =====================================================
   PRODUCT DETAIL with sidebar (two-column)
   ===================================================== */
.product-detail-main { min-width: 0; }
.product-detail-main > section { margin-bottom: 32px; }

/* 图库 + 产品信息：左右两栏 */
.product-detail {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 36px;
    align-items: start;
}

/* ---- 图库 ---- */
.gallery { min-width: 0; }
.gallery #main-img {
    width: 100%;
    height: 400px;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 16px;
}
.gallery .thumbs {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    gap: 10px;
    margin-top: 12px;
}
.gallery .thumbs img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: contain;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 6px;
    padding: 5px;
    cursor: pointer;
    transition: border-color .2s;
}
.gallery .thumbs img:hover { border-color: #e63329; }

/* ---- 右侧产品信息 ---- */
.product-detail .info { min-width: 0; }
.product-detail .info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #1a1f2e;
    line-height: 1.4;
    margin-bottom: 12px;
}
.product-detail .info .model {
    font-size: .9rem;
    color: #888;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #eee;
}
.product-detail .info .summary {
    font-size: .92rem;
    color: #555;
    line-height: 1.9;
    margin-bottom: 22px;
}
.btn-inquiry {
    display: inline-block;
    background: #e63329;
    color: #fff;
    padding: 11px 34px;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 700;
    transition: background .2s;
}
.btn-inquiry:hover { background: #c9251c; }

/* ---- 详情页询价表单 ---- */
.product-inquiry h2 { margin-bottom: 16px; }
#inquiry-form {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 24px;
}
#inquiry-form input[type="hidden"] { display: none; }
#inquiry-form input,
#inquiry-form textarea {
    width: 100%;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 10px 14px;
    font-size: .9rem;
    font-family: inherit;
    color: #333;
    background: #fafafa;
    outline: none;
    transition: border-color .2s;
}
#inquiry-form input:focus,
#inquiry-form textarea:focus { border-color: #e63329; background: #fff; }
#inquiry-form textarea {
    grid-column: 1 / -1;
    min-height: 110px;
    resize: vertical;
}
#inquiry-form button[type="submit"] {
    grid-column: 1 / -1;
    justify-self: start;
    background: #e63329;
    color: #fff;
    padding: 11px 40px;
    border-radius: 6px;
    font-size: .95rem;
    font-weight: 700;
    transition: background .2s;
}
#inquiry-form button[type="submit"]:hover { background: #c9251c; }

@media (max-width: 992px) {
    .product-detail-page { grid-template-columns: 1fr; }
    .product-detail { grid-template-columns: 1fr; gap: 24px; }
    .gallery #main-img { height: 320px; }
}
@media (max-width: 768px) {
    #inquiry-form { grid-template-columns: 1fr; padding: 18px; }
    #inquiry-form button[type="submit"] { justify-self: stretch; text-align: center; }
}
