/* ======================================================================
   JCXS 建材供应一体站 - 主样式表
   设计: 深石墨灰 #1a1d24 + 钴蓝 #0f62fe + 暖金 #c9a227, 现代建材 B2B 质感
   响应式: 手机 / 平板 / PC
   ====================================================================== */

/* ---------- 设计令牌 ---------- */
:root {
    --c-ink:        #1a1d24;     /* 深石墨灰 - 主文字/深背景 */
    --c-ink-2:      #262b34;     /* 次级深 */
    --c-ink-3:      #3a4049;     /* 边框/分隔 */
    --c-paper:      #ffffff;
    --c-paper-2:    #f6f7f9;     /* 浅灰背景 */
    --c-paper-3:    #eceef2;     /* 卡片边 */
    --c-blue:       #0f62fe;     /* 钴蓝 - 主色/链接/按钮 */
    --c-blue-dark:  #0a4dc4;     /* hover */
    --c-blue-light: #e8f0ff;     /* 浅蓝底 */
    --c-gold:       #c9a227;     /* 暖金 - 强调/装饰 */
    --c-gold-dark:  #a8851d;
    --c-text:       #1a1d24;
    --c-text-2:     #5a6168;     /* 次级文字 */
    --c-text-3:     #8b919a;     /* 弱化 */
    --c-line:       #e3e6eb;
    --c-ok:         #1a9e5a;
    --radius:       4px;
    --radius-lg:    10px;
    --shadow-sm:    0 1px 3px rgba(26,29,36,.08);
    --shadow:       0 6px 24px rgba(26,29,36,.10);
    --shadow-lg:    0 18px 50px rgba(26,29,36,.16);
    --container:    1240px;
    --ff-sans:      'Inter','Manrope','Helvetica Neue',Arial,'Noto Sans',sans-serif;
    --ff-head:      'Manrope','Inter','Helvetica Neue',Arial,sans-serif;
}

/* ---------- 重置 ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--ff-sans);
    font-size: 16px;
    line-height: 1.65;
    color: var(--c-text);
    background: var(--c-paper);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--c-blue); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--c-blue-dark); }
h1, h2, h3, h4 { font-family: var(--ff-head); font-weight: 800; line-height: 1.2; color: var(--c-ink); margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.4rem); }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); }
p { margin: 0 0 1em; }

/* 多语言字体降级: 泰语/俄语 */
html[lang="th"] body, html[lang="ru"] body { font-family: 'Inter','Noto Sans Thai','Noto Sans',Arial,sans-serif; }

/* ---------- 布局 ---------- */
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section--tight { padding: 48px 0; }
.section--dark { background: var(--c-ink); color: #dfe3ea; }
.section--dark h1, .section--dark h2, .section--dark h3 { color: #fff; }
.section--paper2 { background: var(--c-paper-2); }
.section__head { text-align: center; max-width: 760px; margin: 0 auto 44px; }
.section__head .eyebrow { color: var(--c-gold); font-weight: 700; text-transform: uppercase; letter-spacing: .14em; font-size: .8rem; margin-bottom: 10px; display:block; }
.section__head p { color: var(--c-text-2); font-size: 1.05rem; }

/* ---------- 按钮 ---------- */
.btn {
    display: inline-flex; align-items: center; gap: 8px;
    padding: 13px 26px;
    font-family: var(--ff-head); font-weight: 700; font-size: .95rem;
    border: 2px solid transparent; border-radius: var(--radius);
    cursor: pointer; transition: all .18s ease; text-transform: none;
    letter-spacing: .01em;
}
.btn--primary { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.btn--primary:hover { background: var(--c-blue-dark); border-color: var(--c-blue-dark); color: #fff; transform: translateY(-1px); box-shadow: var(--shadow); }
.btn--gold { background: var(--c-gold); color: #fff; border-color: var(--c-gold); }
.btn--gold:hover { background: var(--c-gold-dark); border-color: var(--c-gold-dark); color: #fff; }
.btn--outline { background: transparent; color: var(--c-ink); border-color: var(--c-ink-3); }
.btn--outline:hover { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }
.btn--outline-light { background: transparent; color: #fff; border-color: rgba(255,255,255,.4); }
.btn--outline-light:hover { background: #fff; color: var(--c-ink); border-color: #fff; }
.btn--lg { padding: 16px 34px; font-size: 1rem; }
.btn--block { width: 100%; justify-content: center; }

/* ---------- 顶部 Header ---------- */
.site-header {
    position: sticky; top: 0; z-index: 900;
    background: rgba(26,29,36,.96);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(255,255,255,.08);
}
.site-header__inner {
    display: flex; align-items: center; justify-content: space-between;
    height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; color: #fff; font-family: var(--ff-head); font-weight: 800; font-size: 1.25rem; letter-spacing: -.01em; }
.brand:hover { color: #fff; }
.brand__mark { width: 34px; height: 34px; border-radius: 6px; background: linear-gradient(135deg, var(--c-blue), var(--c-gold)); display: grid; place-items: center; color: #fff; font-weight: 900; font-size: .9rem; }
.brand__name b { color: var(--c-gold); }

/* 主导航 */
.main-nav { display: flex; align-items: center; gap: 4px; }
.nav-item { position: relative; }
.nav-link {
    color: #dfe3ea; padding: 10px 14px; border-radius: var(--radius);
    font-family: var(--ff-head); font-weight: 600; font-size: .92rem;
    display: inline-flex; align-items: center; gap: 5px;
}
.nav-link:hover, .nav-item:hover > .nav-link { color: #fff; background: rgba(255,255,255,.08); }
.nav-link .caret { font-size: .6rem; opacity: .7; }

/* Mega menu 下拉 */
.dropdown {
    position: absolute; top: 100%; left: 0; min-width: 220px;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 10px; opacity: 0; visibility: hidden;
    transform: translateY(8px); transition: all .18s ease; z-index: 50;
}
.nav-item:hover > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown--mega { min-width: 560px; padding: 16px; }
.dropdown__group-title { font-size: .72rem; text-transform: uppercase; letter-spacing: .12em; color: var(--c-text-3); font-weight: 700; margin: 6px 0 6px; padding-left: 8px; }
.dropdown a {
    display: block; color: var(--c-ink); padding: 8px 10px; border-radius: var(--radius);
    font-size: .9rem; font-weight: 500;
}
.dropdown a:hover { background: var(--c-blue-light); color: var(--c-blue); }
.dropdown a small { display: block; color: var(--c-text-3); font-size: .76rem; font-weight: 400; }
.dropdown__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2px 18px; }

/* Header 右侧工具 */
.header-tools { display: flex; align-items: center; gap: 10px; }
.lang-switch { position: relative; }
.lang-flag { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 15px; flex-shrink: 0; overflow: hidden; }
.lang-flag img { width: 20px; height: 15px; object-fit: cover; display: block; border-radius: 2px; box-shadow: 0 0 0 1px rgba(0,0,0,.12); }
.lang-switch__btn {
    background: rgba(255,255,255,.08); color: #fff; border: 1px solid rgba(255,255,255,.16);
    padding: 6px 12px; border-radius: var(--radius); font-size: .82rem; font-weight: 600;
    cursor: pointer; display: inline-flex; align-items: center; gap: 6px; font-family: var(--ff-head);
}
.lang-switch__btn:hover { background: rgba(255,255,255,.16); }
.lang-switch__menu {
    position: absolute; top: 120%; right: 0; min-width: 170px;
    background: #fff; border: 1px solid var(--c-line); border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg); padding: 6px; opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .16s ease; z-index: 50;
}
.lang-switch:hover .lang-switch__menu, .lang-switch.is-open .lang-switch__menu { opacity: 1; visibility: visible; transform: translateY(0); }
.lang-switch__menu a { display: flex; align-items: center; gap: 8px; color: var(--c-ink); padding: 8px 10px; border-radius: var(--radius); font-size: .88rem; }
.lang-switch__menu a:hover { background: var(--c-blue-light); color: var(--c-blue); }
.lang-switch__menu a.is-active { background: var(--c-ink); color: #fff; }

/* 移动汉堡 */
.nav-toggle { display: none; background: none; border: 0; color: #fff; font-size: 1.5rem; cursor: pointer; padding: 6px; }

/* ---------- 面包屑 ---------- */
.breadcrumb { background: var(--c-paper-2); border-bottom: 1px solid var(--c-line); padding: 14px 0; font-size: .85rem; }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.breadcrumb li { color: var(--c-text-3); }
.breadcrumb li:not(:last-child)::after { content: "/"; margin-left: 8px; color: var(--c-line); }
.breadcrumb a { color: var(--c-text-2); }
.breadcrumb a:hover { color: var(--c-blue); }
.breadcrumb li:last-child { color: var(--c-ink); font-weight: 600; }

/* ---------- Hero (首页) ---------- */
.hero {
    position: relative; color: #fff; overflow: hidden;
    background: linear-gradient(120deg, #15181f 0%, #1d2533 60%, #23283a 100%);
}
.hero__bg { position: absolute; inset: 0; z-index: 0; opacity: .35; }
.hero__bg img { width: 100%; height: 100%; object-fit: cover; }
.hero__inner { position: relative; z-index: 2; padding: 110px 0 120px; max-width: 760px; }
.hero h1 { color: #fff; margin-bottom: 22px; }
.hero h1 b { color: var(--c-gold); }
.hero p { color: #c8cedb; font-size: 1.15rem; margin-bottom: 32px; max-width: 600px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }
.hero__stats { display: flex; flex-wrap: wrap; gap: 40px; margin-top: 60px; padding-top: 36px; border-top: 1px solid rgba(255,255,255,.14); }
.hero__stat b { font-family: var(--ff-head); font-size: 2rem; color: var(--c-gold); display: block; line-height: 1; }
.hero__stat span { color: #aab2c2; font-size: .85rem; }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

/* 产品/分类卡片 */
.card {
    background: var(--c-paper); border: 1px solid var(--c-paper-3); border-radius: var(--radius-lg);
    overflow: hidden; transition: all .2s ease; display: flex; flex-direction: column; height: 100%;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); border-color: transparent; }
.card__media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: var(--c-paper-2); }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card:hover .card__media img { transform: scale(1.06); }
.card__media--video::after {
    content: "▶"; position: absolute; inset: 0; display: grid; place-items: center;
    color: #fff; font-size: 2.2rem; background: rgba(15,98,254,.0); transition: all .2s;
}
.card__media--video:hover::after { background: rgba(15,98,254,.45); }
.card__duration { position: absolute; right: 10px; bottom: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: .75rem; padding: 3px 8px; border-radius: 3px; }
.card__body { padding: 18px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card__cat { color: var(--c-gold); font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 8px; }
.card h3 { font-size: 1.1rem; margin-bottom: 8px; line-height: 1.35; }
.card h3 a { color: var(--c-ink); }
.card h3 a:hover { color: var(--c-blue); }
.card__excerpt { color: var(--c-text-2); font-size: .9rem; flex: 1; }
.card__more { margin-top: 14px; font-family: var(--ff-head); font-weight: 700; font-size: .85rem; color: var(--c-blue); display: inline-flex; align-items: center; gap: 5px; }

/* 大分类卡 (首页产品分类) */
.cat-card { position: relative; aspect-ratio: 1/1; border-radius: var(--radius-lg); overflow: hidden; display: block; }
.cat-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.cat-card:hover img { transform: scale(1.08); }
.cat-card__overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(26,29,36,.92) 0%, rgba(26,29,36,.2) 55%, rgba(26,29,36,.05) 100%); }
.cat-card__label { position: absolute; left: 18px; right: 18px; bottom: 18px; color: #fff; }
.cat-card__label h3 { color: #fff; margin: 0 0 4px; font-size: 1.15rem; }
.cat-card__label small { color: #d4d8e0; font-size: .82rem; }
.cat-card__arrow { position: absolute; top: 16px; right: 16px; width: 38px; height: 38px; border-radius: 50%; background: var(--c-gold); display: grid; place-items: center; color: #fff; font-weight: 900; }

/* ---------- 优势 / 流程 ---------- */
.feature { text-align: center; padding: 28px 22px; border: 1px solid var(--c-paper-3); border-radius: var(--radius-lg); background: var(--c-paper); height: 100%; transition: all .2s; }
.feature:hover { border-color: var(--c-gold); box-shadow: var(--shadow); transform: translateY(-3px); }
.feature__icon { width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 12px; background: var(--c-blue-light); color: var(--c-blue); display: grid; place-items: center; font-size: 1.6rem; }
.feature h3 { font-size: 1.1rem; margin-bottom: 8px; }
.feature p { color: var(--c-text-2); font-size: .92rem; margin: 0; }

.process-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; counter-reset: step; }
.step { position: relative; padding: 32px 22px 26px; background: var(--c-paper); border: 1px solid var(--c-paper-3); border-radius: var(--radius-lg); }
.step::before { counter-increment: step; content: counter(step, decimal-leading-zero); position: absolute; top: -16px; left: 22px; background: var(--c-ink); color: var(--c-gold); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-family: var(--ff-head); font-weight: 800; font-size: .9rem; }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { color: var(--c-text-2); font-size: .9rem; margin: 0; }

/* ---------- CTA 横幅 ---------- */
.cta-banner { position: relative; background: linear-gradient(120deg, var(--c-ink) 0%, #23283a 100%); color: #fff; border-radius: var(--radius-lg); padding: 56px 48px; overflow: hidden; }
.cta-banner::before { content: ""; position: absolute; right: -40px; top: -40px; width: 260px; height: 260px; border-radius: 50%; background: var(--c-gold); opacity: .14; }
.cta-banner h2 { color: #fff; max-width: 620px; }
.cta-banner p { color: #c8cedb; max-width: 580px; }
.cta-banner__actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 8px; }

/* ---------- 详情页 ---------- */
.detail { padding: 56px 0; }
.detail__hero { aspect-ratio: 16/9; border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 36px; background: var(--c-paper-2); }
.detail__hero img { width: 100%; height: 100%; object-fit: cover; }
.detail__title { margin-bottom: 14px; }
.detail__meta { display: flex; flex-wrap: wrap; gap: 18px; color: var(--c-text-3); font-size: .85rem; margin-bottom: 28px; padding-bottom: 22px; border-bottom: 1px solid var(--c-line); }
.detail__content { font-size: 1.02rem; line-height: 1.8; color: var(--c-text); }
.detail__content h2, .detail__content h3 { margin-top: 1.6em; }
.detail__content p { margin-bottom: 1.1em; }
.detail__content img { border-radius: var(--radius); margin: 1.4em 0; }
.detail__layout { display: grid; grid-template-columns: 1fr 320px; gap: 44px; align-items: start; }
.detail__sidebar { position: sticky; top: 90px; }
.spec-list { background: var(--c-paper-2); border-radius: var(--radius-lg); padding: 22px; }
.spec-list h4 { font-size: 1rem; margin-bottom: 14px; }
.spec-list ul { list-style: none; margin: 0; padding: 0; }
.spec-list li { padding: 9px 0; border-bottom: 1px dashed var(--c-line); font-size: .92rem; display: flex; gap: 8px; }
.spec-list li:last-child { border-bottom: 0; }
.spec-list li::before { content: "✓"; color: var(--c-gold); font-weight: 800; }

.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 28px 0; }
.gallery img { aspect-ratio: 1; object-fit: cover; border-radius: var(--radius); border: 1px solid var(--c-line); }

/* 视频播放器 */
.video-player { aspect-ratio: 16/9; background: var(--c-ink); border-radius: var(--radius-lg); overflow: hidden; position: relative; cursor: pointer; }
.video-player video, .video-player iframe { width: 100%; height: 100%; border: 0; }
.video-player img { display: block; }
.video-player__play {
    position: absolute; inset: 0; display: grid; place-items: center;
    width: 84px; height: 84px; margin: auto; border-radius: 50%;
    background: rgba(15,98,254,.92); color: #fff; font-size: 2rem;
    box-shadow: 0 8px 30px rgba(0,0,0,.35); transition: transform .2s ease, background .2s ease;
    pointer-events: none;
}
.video-player:hover .video-player__play { transform: scale(1.1); background: var(--c-gold); }

/* ---------- 联系页 ---------- */
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 44px; }
.form-field { margin-bottom: 18px; }
.form-field label { display: block; font-family: var(--ff-head); font-weight: 600; font-size: .85rem; margin-bottom: 6px; color: var(--c-ink); }
.form-field label .req { color: #d33; }
.form-field input, .form-field select, .form-field textarea {
    width: 100%; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: var(--radius);
    font-family: var(--ff-sans); font-size: .95rem; background: var(--c-paper); transition: border .15s;
}
.form-field input:focus, .form-field textarea:focus, .form-field select:focus { outline: none; border-color: var(--c-blue); box-shadow: 0 0 0 3px var(--c-blue-light); }
.form-field textarea { resize: vertical; min-height: 130px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.contact-info__item { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--c-line); }
.contact-info__item:last-child { border-bottom: 0; }
.contact-info__icon { width: 44px; height: 44px; border-radius: 10px; background: var(--c-blue-light); color: var(--c-blue); display: grid; place-items: center; font-size: 1.2rem; flex-shrink: 0; }
.contact-info__label { font-size: .78rem; color: var(--c-text-3); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-info__value { font-family: var(--ff-head); font-weight: 700; color: var(--c-ink); }
.alert { padding: 14px 18px; border-radius: var(--radius); margin-bottom: 18px; font-size: .92rem; }
.alert--ok { background: #e7f7ee; color: #11613a; border: 1px solid #b9e6cf; }
.alert--err { background: #fdeaea; color: #a32323; border: 1px solid #f5c6c6; }

/* ---------- WhatsApp 浮动按钮 ---------- */
.wa-float {
    position: fixed; right: 22px; bottom: 22px; z-index: 800;
    width: 60px; height: 60px; border-radius: 50%; background: #25d366;
    display: grid; place-items: center; color: #fff; box-shadow: 0 8px 24px rgba(37,211,102,.5);
    transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); color: #fff; }
.wa-float svg { width: 32px; height: 32px; fill: #fff; }
.wa-float__pulse { position: absolute; inset: 0; border-radius: 50%; background: #25d366; opacity: .6; animation: wa-pulse 2.2s infinite; z-index: -1; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: .6; } 70%,100% { transform: scale(1.7); opacity: 0; } }

/* ---------- Footer ---------- */
.site-footer { background: var(--c-ink); color: #aab2c2; padding: 64px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 48px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer-col h4 { color: #fff; font-size: .95rem; margin-bottom: 18px; font-family: var(--ff-head); }
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { color: #aab2c2; font-size: .88rem; }
.footer-col a:hover { color: var(--c-gold); padding-left: 3px; }
.footer-about p { font-size: .88rem; line-height: 1.7; margin-bottom: 16px; }
.footer-about .brand { color: #fff; margin-bottom: 14px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; padding: 22px 0; font-size: .82rem; flex-wrap: wrap; gap: 12px; }
.footer-bottom a { color: #8b919a; }
.footer-bottom a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; }
.footer-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--c-gold); }

/* ---------- 分页 ----------
   ThinkPHP bootstrap 分页器输出 <ul class="pagination"><li>...<a>/<span></li></ul>，
   外层 <div class="pagination"> 仅作容器（不参与 flex，避免双重布局）。
   真正的按钮行是 ul.pagination，按钮样式作用于 li > a / li > span。 */
.pagination { margin-top: 44px; text-align: center; }
.pagination ul.pagination,
.pagination > ul { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
ul.pagination { list-style: none; margin: 0; padding: 0; display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; }
.pagination li { margin: 0; padding: 0; list-style: none; }
.pagination a, .pagination span,
ul.pagination a, ul.pagination span { display: grid; place-items: center; min-width: 40px; height: 40px; padding: 0 12px; border: 1px solid var(--c-line); border-radius: var(--radius); font-size: .9rem; color: var(--c-text-2); line-height: 1; }
.pagination a:hover,
ul.pagination a:hover { border-color: var(--c-blue); color: var(--c-blue); text-decoration: none; }
.pagination .active > span, .pagination .active > a,
ul.pagination .active > span, ul.pagination .active > a { background: var(--c-blue); color: #fff; border-color: var(--c-blue); }
.pagination .disabled > span, .pagination .disabled > a,
ul.pagination .disabled > span, ul.pagination .disabled > a { opacity: .4; cursor: not-allowed; }

/* ---------- 空状态 ---------- */
.empty { text-align: center; padding: 80px 20px; color: var(--c-text-3); }
.empty h3 { color: var(--c-text-2); }

/* ---------- 404 页 ---------- */
.error-page { min-height: 60vh; display: grid; place-items: center; text-align: center; padding: 80px 20px; background: var(--c-paper-2); }
.error-page__code { font-family: var(--ff-head); font-weight: 900; font-size: clamp(5rem, 16vw, 11rem); line-height: 1; background: linear-gradient(135deg, var(--c-blue), var(--c-gold)); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.error-page h1 { font-size: 1.6rem; margin-bottom: 12px; }
.error-page p { color: var(--c-text-2); max-width: 480px; margin: 0 auto 28px; }

/* ---------- 页面头 (栏目页 banner) ---------- */
.page-banner { background: linear-gradient(120deg, var(--c-ink) 0%, #23283a 100%); color: #fff; padding: 56px 0 48px; position: relative; overflow: hidden; }
.page-banner::after { content: ""; position: absolute; right: -60px; bottom: -60px; width: 240px; height: 240px; border-radius: 50%; background: var(--c-blue); opacity: .12; }
.page-banner h1 { color: #fff; position: relative; z-index: 1; }
.page-banner p { color: #c8cedb; position: relative; z-index: 1; max-width: 640px; }

/* ---------- 标签筛选 ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 36px; }
.filter-bar a { padding: 8px 18px; border: 1px solid var(--c-line); border-radius: 30px; font-size: .85rem; color: var(--c-text-2); font-weight: 600; }
.filter-bar a:hover { border-color: var(--c-blue); color: var(--c-blue); }
.filter-bar a.is-active { background: var(--c-ink); color: #fff; border-color: var(--c-ink); }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
    .footer-about { grid-column: 1 / -1; }
    .process-steps { grid-template-columns: repeat(2, 1fr); }
    .detail__layout { grid-template-columns: 1fr; }
    .detail__sidebar { position: static; }
}
@media (max-width: 860px) {
    .nav-toggle { display: block; }
    .main-nav, .header-tools .lang-switch { display: none; }
    .main-nav.is-open {
        display: flex; position: fixed; top: 68px; left: 0; right: 0; bottom: 0;
        background: var(--c-ink); flex-direction: column; align-items: stretch;
        gap: 0; padding: 16px; overflow-y: auto; z-index: 850;
    }
    .main-nav.is-open .nav-item { width: 100%; }
    .main-nav.is-open .nav-link { padding: 14px 12px; border-bottom: 1px solid rgba(255,255,255,.08); border-radius: 0; }
    .main-nav.is-open .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: rgba(255,255,255,.04); padding: 4px 0 4px 16px; min-width: 0; }
    .main-nav.is-open .dropdown--mega { min-width: 0; }
    .main-nav.is-open .dropdown a { color: #c8cedb; }
    .main-nav.is-open .dropdown a:hover { background: rgba(255,255,255,.08); color: #fff; }
    .header-tools { gap: 6px; }
    .grid--4 { grid-template-columns: repeat(2, 1fr); }
    .grid--3 { grid-template-columns: repeat(2, 1fr); }
    .contact-layout { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .container { padding: 0 16px; }
    .section { padding: 48px 0; }
    .hero__inner { padding: 60px 0 70px; }
    .hero__stats { gap: 24px; }
    .grid--4, .grid--3, .grid--2 { grid-template-columns: 1fr; }
    .process-steps { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .form-row { grid-template-columns: 1fr; }
    .cta-banner { padding: 36px 24px; }
    .gallery { grid-template-columns: repeat(2, 1fr); }
}
