/* ==========================================================
   E21官网 · 前台样式
   ========================================================== */
:root {
    --red: #e60012;
    --red-dark: #c1000f;
    --ink: #111318;
    --text: #2b2f36;
    --muted: #7b8290;
    --line: #e8eaee;
    --bg: #ffffff;
    --bg-gray: #f5f6f8;
    --radius: 10px;
    --radius-lg: 16px;
    --shadow: 0 2px 16px rgba(17, 19, 24, .06);
    --shadow-lg: 0 12px 40px rgba(17, 19, 24, .12);
    --container: 1240px;
    --header-h: 72px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font: 15px/1.7 "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border: 0; }
a { color: inherit; text-decoration: none; transition: color .2s; }
a:hover { color: var(--red); }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font-family: inherit; }
code { font-family: Menlo, Consolas, monospace; font-size: 13px; background: var(--bg-gray); padding: 2px 6px; border-radius: 4px; }
.muted { color: var(--muted); }

.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

/* ---------------- 按钮 ---------------- */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    padding: 12px 28px; border-radius: 6px; border: 1px solid transparent;
    font-size: 15px; font-weight: 600; cursor: pointer; white-space: nowrap;
    transition: all .2s; background: transparent;
}
.btn--primary { background: var(--red); color: #fff; }
.btn--primary:hover { background: var(--red-dark); color: #fff; }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: rgba(255,255,255,.88); color: var(--ink); }
.btn--outline { border-color: var(--line); color: var(--text); background: #fff; }
.btn--outline:hover { border-color: var(--red); color: var(--red); }
.btn--sm { padding: 9px 18px; font-size: 14px; }
.btn--block { width: 100%; }

/* ---------------- 头部 ---------------- */
.site-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(255,255,255,.94);
    backdrop-filter: saturate(180%) blur(12px);
    border-bottom: 1px solid var(--line);
}
.site-header__inner {
    height: var(--header-h);
    display: flex; align-items: center; gap: 36px;
}
.logo img { height: 26px; width: auto; }
.nav { flex: 1; }
.nav__list { display: flex; align-items: center; gap: 6px; }
.nav__item { position: relative; }
.nav__link {
    display: block; padding: 10px 16px; font-size: 15px; font-weight: 500;
    color: var(--text); border-radius: 6px; white-space: nowrap;
}
.nav__link:hover, .nav__link.active { color: var(--red); background: rgba(230,0,18,.05); }

.nav__dropdown {
    position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
    background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
    padding: 8px; opacity: 0; visibility: hidden; transform: translateY(8px);
    transition: all .22s;
}
.nav__item--has-menu:hover .nav__dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.nav__dropdown-link { display: block; padding: 10px 14px; border-radius: 6px; }
.nav__dropdown-link:hover { background: var(--bg-gray); }
.nav__dropdown-name { display: block; font-weight: 600; font-size: 14px; }
.nav__dropdown-desc { display: block; font-size: 12px; color: var(--muted); }

.site-header__actions { display: flex; align-items: center; gap: 12px; }
.search { position: relative; display: flex; align-items: center; }
.search__input {
    width: 190px; height: 38px; padding: 0 40px 0 14px;
    border: 1px solid var(--line); border-radius: 19px; font-size: 14px;
    background: var(--bg-gray); outline: none; transition: all .2s;
}
.search__input:focus { border-color: var(--red); background: #fff; width: 230px; }
.search__btn {
    position: absolute; right: 4px; width: 32px; height: 32px;
    border: 0; background: transparent; color: var(--muted); cursor: pointer;
    display: flex; align-items: center; justify-content: center;
}
.search__btn:hover { color: var(--red); }

.nav-toggle { display: none; width: 40px; height: 40px; border: 0; background: transparent; cursor: pointer; flex-direction: column; gap: 5px; align-items: center; justify-content: center; }
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: all .2s; }

/* ---------------- 提示条 ---------------- */
.flash { padding: 12px 0; font-size: 14px; }
.flash--success { background: #eaf8ef; color: #0a7a36; }
.flash--error { background: #fdecec; color: #b00; }

/* ---------------- 轮播 ---------------- */
.hero { position: relative; overflow: hidden; background: var(--ink); }
.hero__track { position: relative; }
.hero__slide {
    position: absolute; inset: 0; opacity: 0; transition: opacity .7s ease;
    pointer-events: none;
}
.hero__slide.is-active { position: relative; opacity: 1; pointer-events: auto; }
.hero__img { width: 100%; height: 560px; object-fit: cover; }
.hero__mask {
    position: absolute; inset: 0;
    background: linear-gradient(90deg, rgba(0,0,0,.62) 0%, rgba(0,0,0,.28) 46%, rgba(0,0,0,.05) 100%);
}
.hero__content {
    position: absolute; inset: 0; display: flex; flex-direction: column;
    justify-content: center; align-items: flex-start; color: #fff; gap: 14px;
}
.hero__title { font-size: 46px; line-height: 1.2; font-weight: 700; letter-spacing: -.5px; }
.hero__subtitle { font-size: 18px; opacity: .88; max-width: 560px; }
.hero__content .btn { margin-top: 10px; }

.hero__dots { position: absolute; left: 0; right: 0; bottom: 26px; display: flex; justify-content: center; gap: 10px; z-index: 3; }
.hero__dot {
    width: 34px; height: 3px; border: 0; border-radius: 2px; cursor: pointer;
    background: rgba(255,255,255,.42); transition: all .25s;
}
.hero__dot.is-active { background: #fff; width: 52px; }

/* ---------------- 区块 ---------------- */
.section { padding: 76px 0; }
.section--gray { background: var(--bg-gray); }
.section--plain { padding: 48px 0; }
.section__head { text-align: center; margin-bottom: 44px; }
.section__head--left { text-align: left; margin-bottom: 26px; }
.section__title { font-size: 32px; font-weight: 700; letter-spacing: -.4px; }
.section__sub { margin-top: 10px; color: var(--muted); font-size: 15px; }
.section__more { text-align: center; margin-top: 44px; }
.block-title { font-size: 22px; margin: 40px 0 20px; }

.page-hero { padding: 56px 0 34px; border-bottom: 1px solid var(--line); margin-bottom: 34px; }
.page-hero--dark { background: var(--ink); color: #fff; border: 0; padding: 78px 0; text-align: center; }
.page-hero--dark .page-hero__desc { color: rgba(255,255,255,.72); margin-left: auto; margin-right: auto; }
.page-hero__title { font-size: 34px; font-weight: 700; }
.page-hero__desc { margin-top: 10px; color: var(--muted); font-size: 15px; max-width: 680px; }

/* ---------------- 分类卡 ---------------- */
.cat-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.cat-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; transition: all .25s;
}
.cat-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.cat-card__media { aspect-ratio: 4/3; background: var(--bg-gray); overflow: hidden; }
.cat-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.cat-card:hover .cat-card__media img { transform: scale(1.06); }
.cat-card__body { padding: 16px 18px 20px; }
.cat-card__name { font-size: 17px; font-weight: 600; }
.cat-card__desc { margin-top: 6px; font-size: 13px; color: var(--muted); }

/* ---------------- 产品卡 ---------------- */
.product-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.product-grid--4 { grid-template-columns: repeat(4, 1fr); }
.product-card {
    background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
    overflow: hidden; display: flex; flex-direction: column; transition: all .25s;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.product-card__media { position: relative; aspect-ratio: 4/3; background: var(--bg-gray); overflow: hidden; }
.product-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.product-card:hover .product-card__media img { transform: scale(1.05); }
.product-card__badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; }
.badge { font-size: 12px; padding: 3px 9px; border-radius: 4px; color: #fff; font-weight: 600; }
.badge--new { background: #1f7ae0; }
.badge--hot { background: var(--red); }
.badge--rec { background: #f0a020; }
.product-card__body { padding: 18px; display: flex; flex-direction: column; flex: 1; }
.product-card__name { font-size: 16px; font-weight: 600; line-height: 1.45; min-height: 46px; }
.product-card__model { margin-top: 4px; font-size: 12px; color: var(--muted); }
.product-card__desc { margin-top: 8px; font-size: 13px; color: var(--muted); flex: 1; }
.product-card__foot { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.price { color: var(--red); font-size: 20px; font-weight: 700; }
.price i { font-size: 13px; font-style: normal; margin-right: 2px; }
.price--ask { font-size: 14px; color: var(--muted); font-weight: 500; }
.price--lg { font-size: 32px; }
.product-card__link { font-size: 13px; color: var(--muted); }
.product-card:hover .product-card__link { color: var(--red); }

/* ---------------- 新闻卡 ---------------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.news-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; transition: all .25s; }
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-card__media { display: block; aspect-ratio: 16/9; background: var(--bg-gray); overflow: hidden; }
.news-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-card:hover .news-card__media img { transform: scale(1.05); }
.news-card__body { padding: 20px; }
.news-card__title { margin-top: 12px; font-size: 17px; font-weight: 600; line-height: 1.5; }
.news-card__desc { margin-top: 10px; font-size: 13px; color: var(--muted); }
.news-card__time { display: block; margin-top: 14px; font-size: 12px; color: var(--muted); }

.tag { display: inline-block; font-size: 12px; padding: 2px 9px; border-radius: 4px; background: var(--bg-gray); color: var(--muted); }
.tag--red { background: rgba(230,0,18,.08); color: var(--red); }

/* ---------------- CTA ---------------- */
.banner-cta { background: linear-gradient(115deg, #1a1d24 0%, #34383f 100%); color: #fff; padding: 74px 0; }
.banner-cta__inner { text-align: center; }
.banner-cta h2 { font-size: 34px; font-weight: 700; }
.banner-cta p { margin: 12px 0 26px; opacity: .78; }

/* ---------------- 面包屑 / 筛选 ---------------- */
.breadcrumb { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 22px 0; font-size: 13px; color: var(--muted); }
.breadcrumb em { font-style: normal; color: var(--text); }
.breadcrumb a:hover { color: var(--red); }

.filter-bar { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: center; padding-bottom: 22px; border-bottom: 1px solid var(--line); margin-bottom: 22px; }
.filter-bar--plain { border: 0; padding-bottom: 12px; margin-bottom: 12px; }
.filter-bar__cats { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
    display: inline-block; padding: 8px 18px; border-radius: 20px; font-size: 14px;
    background: var(--bg-gray); color: var(--text); transition: all .2s;
}
.chip:hover { background: #eceef1; color: var(--red); }
.chip.is-active { background: var(--red); color: #fff; }
.filter-bar__search { display: flex; gap: 8px; }
.filter-bar__search input {
    height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px;
    font-size: 14px; outline: none; min-width: 200px;
}
.filter-bar__search input:focus { border-color: var(--red); }
.result-count { margin-bottom: 22px; font-size: 14px; color: var(--muted); }
.result-count strong { color: var(--red); }

/* ---------------- 分页 ---------------- */
.pager { display: flex; justify-content: center; gap: 8px; padding: 44px 0; flex-wrap: wrap; }
.pager__item {
    min-width: 40px; height: 40px; padding: 0 14px; border-radius: 6px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid var(--line); font-size: 14px; background: #fff;
}
.pager__item:hover { border-color: var(--red); color: var(--red); }
.pager__item.is-current { background: var(--red); border-color: var(--red); color: #fff; font-weight: 600; }

/* ---------------- 空状态 ---------------- */
.empty { text-align: center; padding: 80px 20px; }
.empty__title { font-size: 18px; font-weight: 600; }
.empty__desc { margin: 10px 0 22px; color: var(--muted); font-size: 14px; }

/* ---------------- 产品详情 ---------------- */
.detail { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; padding-bottom: 20px; }
.detail__main { border-radius: var(--radius-lg); overflow: hidden; background: var(--bg-gray); aspect-ratio: 4/3; }
.detail__main img { width: 100%; height: 100%; object-fit: cover; }
.detail__thumbs { display: flex; gap: 10px; margin-top: 12px; }
.detail__thumb { width: 78px; height: 78px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; padding: 0; background: var(--bg-gray); cursor: pointer; }
.detail__thumb.is-active { border-color: var(--red); }
.detail__thumb img { width: 100%; height: 100%; object-fit: cover; }

.detail__badges { display: flex; gap: 6px; margin-bottom: 12px; }
.detail__name { font-size: 30px; font-weight: 700; line-height: 1.35; }
.detail__model { margin-top: 8px; font-size: 14px; color: var(--muted); }
.detail__summary { margin-top: 16px; font-size: 15px; color: #4a5058; }
.detail__price { display: flex; align-items: baseline; gap: 12px; margin: 24px 0; padding: 20px; background: var(--bg-gray); border-radius: var(--radius); }
.detail__price-note { font-size: 12px; color: var(--muted); }
.detail__tags { display: flex; flex-wrap: wrap; gap: 8px; }
.detail__meta { display: flex; gap: 40px; margin: 24px 0; padding: 18px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.detail__meta dt { font-size: 12px; color: var(--muted); }
.detail__meta dd { font-size: 15px; font-weight: 600; margin-top: 2px; }
.detail__actions { display: flex; gap: 12px; }
.detail__content { max-width: 900px; }
.detail__content-title { font-size: 22px; margin-bottom: 20px; }

.rich-text { font-size: 15px; line-height: 1.9; color: #3a4048; }
.rich-text h3 { font-size: 18px; margin: 26px 0 12px; color: var(--ink); }
.rich-text p { margin-bottom: 14px; }
.rich-text ul { margin: 12px 0 18px; padding-left: 4px; }
.rich-text li { position: relative; padding-left: 18px; margin-bottom: 8px; }
.rich-text li::before { content: ""; position: absolute; left: 0; top: 10px; width: 6px; height: 6px; border-radius: 50%; background: var(--red); }
.rich-text img { border-radius: var(--radius); margin: 16px 0; }

/* ---------------- 新闻列表 / 详情 ---------------- */
.news-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-bottom: 60px; }
.news-list { display: flex; flex-direction: column; gap: 22px; }
.news-item { display: grid; grid-template-columns: 260px 1fr; gap: 22px; padding-bottom: 22px; border-bottom: 1px solid var(--line); }
.news-item__media { border-radius: var(--radius); overflow: hidden; aspect-ratio: 16/10; background: var(--bg-gray); }
.news-item__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.news-item:hover .news-item__media img { transform: scale(1.05); }
.news-item__body { display: flex; flex-direction: column; }
.news-item__meta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; font-size: 12px; color: var(--muted); }
.news-item__title { margin-top: 10px; font-size: 19px; font-weight: 600; line-height: 1.5; }
.news-item__desc { margin-top: 10px; font-size: 14px; color: var(--muted); flex: 1; }
.news-item__more { margin-top: 12px; font-size: 13px; color: var(--red); font-weight: 600; }

.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 22px; margin-bottom: 20px; }
.side-card__title { font-size: 16px; font-weight: 600; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px solid var(--line); }
.rank-list li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; font-size: 14px; line-height: 1.5; }
.rank-list__no { flex: none; width: 20px; height: 20px; border-radius: 4px; background: var(--bg-gray); color: var(--muted); font-size: 12px; display: flex; align-items: center; justify-content: center; font-weight: 600; }
.rank-list__no--1 { background: var(--red); color: #fff; }
.rank-list__no--2 { background: #f08a2a; color: #fff; }
.rank-list__no--3 { background: #f0b429; color: #fff; }
.side-links li { padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.side-links li:last-child { border: 0; }
.side-search { display: flex; flex-direction: column; gap: 10px; }
.side-search input { height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 6px; font-size: 14px; outline: none; }
.side-search input:focus { border-color: var(--red); }

.article-layout { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding-bottom: 60px; }
.article { max-width: 860px; }
.article__title { font-size: 30px; font-weight: 700; line-height: 1.4; }
.article__meta { display: flex; gap: 18px; margin-top: 14px; padding-bottom: 20px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--muted); }
.article__lead { margin: 22px 0; padding: 16px 20px; background: var(--bg-gray); border-left: 3px solid var(--red); border-radius: 4px; font-size: 15px; color: #4a5058; }
.article__cover { margin: 22px 0; border-radius: var(--radius-lg); overflow: hidden; }
.article__nav { display: flex; justify-content: space-between; gap: 20px; margin-top: 40px; padding-top: 22px; border-top: 1px solid var(--line); font-size: 14px; }
.article__nav-item--right { text-align: right; }

/* ---------------- 关于 / 联系 ---------------- */
.value-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 50px 0 10px; }
.value-card { padding: 28px 24px; background: var(--bg-gray); border-radius: var(--radius-lg); }
.value-card__no { font-size: 13px; font-weight: 700; color: var(--red); letter-spacing: 1px; }
.value-card__name { margin-top: 10px; font-size: 19px; font-weight: 600; }
.about-text { max-width: 820px; margin: 0 auto; font-size: 15.5px; line-height: 2; }
.stat-band { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin: 20px 0 10px; }
.stat-band__item { text-align: center; padding: 30px 16px; background: var(--ink); color: #fff; border-radius: var(--radius-lg); }
.stat-band__item strong { display: block; font-size: 32px; font-weight: 700; color: #fff; }
.stat-band__item span { font-size: 13px; opacity: .66; }
.cta-inline { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 34px 40px; background: var(--bg-gray); border-radius: var(--radius-lg); }
.cta-inline h3 { font-size: 20px; font-weight: 600; }
.cta-inline p { margin-top: 6px; color: var(--muted); font-size: 14px; }

.contact-layout { display: grid; grid-template-columns: 1fr 1.2fr; gap: 56px; padding-bottom: 70px; }
.contact-title { font-size: 22px; font-weight: 600; margin-bottom: 22px; }
.contact-list li { display: flex; gap: 16px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.contact-list__label { flex: none; width: 84px; color: var(--muted); font-size: 14px; }
.contact-list__value { font-size: 15px; font-weight: 500; }
.contact-note { margin-top: 28px; padding: 20px; background: var(--bg-gray); border-radius: var(--radius); }
.contact-note h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.contact-note p { font-size: 13px; color: var(--muted); line-height: 1.8; }

/* ---------------- 表单 ---------------- */
.form__row { margin-bottom: 20px; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form__row--3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.form__label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.form__label i { color: var(--red); font-style: normal; }
.form__input, .form__textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 6px;
    font-size: 14px; font-family: inherit; outline: none; transition: border-color .2s; background: #fff;
}
.form__input:focus, .form__textarea:focus { border-color: var(--red); }
.form__textarea { resize: vertical; line-height: 1.7; }
.form__hint { margin: -8px 0 18px; font-size: 12px; color: var(--muted); }

.search-page { display: flex; gap: 10px; margin-top: 20px; max-width: 560px; }
.search-page input { flex: 1; height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 8px; font-size: 15px; outline: none; }
.search-page input:focus { border-color: var(--red); }

/* ---------------- 错误页 ---------------- */
.error-page { text-align: center; padding: 100px 20px 120px; }
.error-page__code { font-size: 92px; font-weight: 800; color: var(--red); line-height: 1; letter-spacing: -3px; }
.error-page__title { margin-top: 16px; font-size: 26px; }
.error-page__desc { margin: 12px 0 30px; color: var(--muted); }
.error-page__actions { display: flex; gap: 12px; justify-content: center; }

/* ---------------- 页脚 ---------------- */
.site-footer { background: var(--ink); color: rgba(255,255,255,.68); padding: 62px 0 0; margin-top: 20px; }
.site-footer a { color: rgba(255,255,255,.68); }
.site-footer a:hover { color: #fff; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-bottom: 46px; }
.footer__logo { height: 26px; filter: brightness(0) invert(1); margin-bottom: 16px; }
.footer__slogan { font-size: 15px; color: rgba(255,255,255,.9); margin-bottom: 14px; }
.footer__contact { display: flex; flex-direction: column; gap: 6px; font-size: 13px; }
.footer__title { font-size: 15px; color: #fff; font-weight: 600; margin-bottom: 16px; }
.footer__links li { margin-bottom: 10px; font-size: 14px; }
.footer__bottom {
    display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
    padding: 22px 0; border-top: 1px solid rgba(255,255,255,.1); font-size: 13px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
    .cat-grid { grid-template-columns: repeat(3, 1fr); }
    .product-grid, .product-grid--4 { grid-template-columns: repeat(3, 1fr); }
    .news-layout, .article-layout { grid-template-columns: 1fr; }
    .contact-layout { grid-template-columns: 1fr; gap: 36px; }
    .hero__title { font-size: 36px; }
    .hero__img { height: 460px; }
}

@media (max-width: 900px) {
    .nav {
        position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0;
        background: #fff; padding: 16px; overflow-y: auto; z-index: 99;
        transform: translateX(-100%); transition: transform .25s;
    }
    .nav.is-open { transform: translateX(0); }
    .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
    .nav__link { padding: 14px 12px; font-size: 16px; border-bottom: 1px solid var(--line); border-radius: 0; }
    .nav__dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; padding: 0 0 8px 12px; }
    .nav-toggle { display: flex; }
    .search__input { width: 140px; }
    .search__input:focus { width: 160px; }
    .detail { grid-template-columns: 1fr; gap: 30px; }
    .value-grid, .stat-band { grid-template-columns: repeat(2, 1fr); }
    .footer__grid { grid-template-columns: 1fr 1fr; gap: 30px; }
    .news-item { grid-template-columns: 1fr; gap: 14px; }
}

@media (max-width: 640px) {
    .container { padding: 0 18px; }
    .cat-grid, .product-grid, .product-grid--4 { grid-template-columns: repeat(2, 1fr); }
    .news-grid { grid-template-columns: 1fr; }
    .hero__img { height: 400px; }
    .hero__title { font-size: 26px; }
    .hero__subtitle { font-size: 15px; }
    .section { padding: 52px 0; }
    .section__title { font-size: 24px; }
    .page-hero__title { font-size: 26px; }
    .detail__name, .article__title { font-size: 22px; }
    .form__row--2, .form__row--3 { grid-template-columns: 1fr; }
    .cta-inline { flex-direction: column; text-align: center; }
    .footer__grid { grid-template-columns: 1fr; }
    .footer__bottom { flex-direction: column; text-align: center; }
    .article__nav { flex-direction: column; }
    .article__nav-item--right { text-align: left; }
    .search { display: none; }

/* ---------------- 移动端增强（2026-10 补） ---------------- */
@media (max-width: 900px) {
    .hero__img { height: 380px; }
    .hero__title { font-size: 30px; }
    .filter-bar { flex-direction: column; align-items: stretch; gap: 12px; }
    .filter-bar__search { width: 100%; }
    .filter-bar__search input { flex: 1; min-width: 0; width: 100%; }
    .article__meta { flex-wrap: wrap; gap: 10px 18px; }
    .detail__meta { flex-wrap: wrap; gap: 16px 28px; }
    .detail__thumbs { overflow-x: auto; padding-bottom: 6px; }
    .detail__actions { flex-wrap: wrap; }
    .banner-cta h2 { font-size: 28px; }
}

@media (max-width: 640px) {
    .hero__img { height: 280px; }
    .hero__title { font-size: 24px; letter-spacing: 0; }
    .hero__content { gap: 10px; }
    .hero__dots { bottom: 14px; }
    .page-hero--dark { padding: 52px 0; }
    .banner-cta { padding: 52px 0; }
    .banner-cta h2 { font-size: 24px; }
    .stat-band { gap: 12px; }
    .stat-band__item { padding: 20px 10px; }
    .stat-band__item strong { font-size: 24px; }
    .value-card { padding: 20px 16px; }
    .cta-inline { padding: 24px 20px; }
    .detail__price { padding: 14px; margin: 16px 0; }
    .price--lg { font-size: 26px; }
    .form__input, .form__textarea { font-size: 16px; }
    .search-page { max-width: 100%; }
    .error-page { padding: 70px 20px 90px; }
    .error-page__code { font-size: 64px; }
    .error-page__actions { flex-wrap: wrap; }
    .pager { padding: 30px 0; gap: 6px; }
    .pager__item { min-width: 36px; height: 36px; padding: 0 10px; }
}

/* 全局防溢出 */
body { overflow-x: hidden; }
.rich-text { overflow-wrap: break-word; word-break: break-word; }
.rich-text img { max-width: 100%; height: auto; }
.rich-text table { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.article__title, .detail__name, .news-item__title, .product-card__name { overflow-wrap: break-word; }
}

/* 语言切换 */
.lang-switch { display: flex; align-items: center; gap: 4px; font-size: 13px; }
.lang-switch__item { padding: 6px 8px; color: var(--muted); border-radius: 4px; }
.lang-switch__item:hover { color: var(--red); }
.lang-switch__item.is-active { color: var(--red); font-weight: 600; }
.lang-switch__sep { color: var(--line); }
