/* 禾禾官网：保留青绿色品牌、白色导航与原有图片，统一适配各类屏幕。 */
:root {
    --brand: #00afb3;
    --brand-dark: #007e82;
    --ink: #242b30;
    --muted: #687279;
    --line: #e4e9eb;
    --soft: #f5f8f8;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 24px; }
body { margin: 0; color: var(--ink); background: #fff; font: 16px/1.75 "Microsoft YaHei", "PingFang SC", Arial, sans-serif; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--brand-dark); }
button, input, textarea { font: inherit; }
button, a, input, textarea { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: .65; }
button, input, textarea { border-radius: 0; }
img { display: block; max-width: 100%; height: auto; }
button:focus-visible, a:focus-visible, input:focus-visible, textarea:focus-visible, [tabindex]:focus-visible { outline: 3px solid #007e82; outline-offset: 4px; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { line-height: 1.45; }
.container { width: min(1400px, calc(100% - 48px)); margin-inline: auto; }
.section { padding-block: 64px; }
.sr-only, .honeypot { position: absolute; width: 1px; height: 1px; padding: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip-link { position: fixed; top: -100px; left: 16px; z-index: 100; padding: 12px 20px; background: #fff; }
.skip-link:focus { top: 8px; }

/* 品牌头部与主导航 */
.welcome { background: var(--brand); color: #fff; font-size: 13px; padding: 9px 0; }
.brand-row { display: flex; align-items: center; justify-content: space-between; min-height: 112px; gap: 24px; }
.brand img { width: 265px; }
.hotline { color: var(--brand-dark); line-height: 1.4; }
.hotline span { display: block; font-size: 14px; }
.hotline strong { font-size: 27px; font-weight: 400; letter-spacing: .5px; }
.main-nav { border-top: 1px solid #f2f4f4; border-bottom: 1px solid var(--line); }
.nav-links { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.nav-item { min-width: 0; }
.nav-row { position: relative; }
.nav-link { position: relative; min-height: 76px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; padding: 12px 6px; font-size: 16px; border-bottom: 3px solid transparent; }
.nav-link::after { content: ""; position: absolute; bottom: -3px; left: 50%; width: 44px; height: 3px; transform: translateX(-50%); background: var(--brand); opacity: 0; }
.nav-english { font-size: 12px; }
.nav-link.active, .nav-link:hover { color: var(--brand-dark); }
.nav-link.active::after, .nav-link:hover::after, .nav-link:focus-visible::after { opacity: 1; }
.nav-expand, .nav-forward, .nav-submenu { display: none; }
.menu-toggle { display: none; }

/* 首页横幅与模块标题 */
.hero { position: relative; background: #e9eeee; }
.hero-slide img { width: 100%; }
.hero-controls { position: absolute; bottom: 16px; left: 50%; transform: translateX(-50%); display: flex; align-items: center; gap: 4px; padding: 2px 6px; color: #fff; background: rgb(0 0 0 / 48%); border-radius: 30px; }
.hero-controls button { min-width: 40px; min-height: 40px; background: transparent; border: 0; color: #fff; font-size: 23px; }
.hero-controls button[data-slide="pause"] { font-size: 12px; padding-inline: 10px; }
.hero-position { font-size: 12px; min-width: 38px; text-align: center; }
.mobile-intro { display: none; }
.section-heading { text-align: center; max-width: 940px; margin: 0 auto 36px; }
.eyebrow { color: var(--brand-dark); font-size: 14px; letter-spacing: 2px; font-weight: 600; margin-bottom: 5px; }
.section-heading h1, .section-heading h2 { font-size: 30px; font-weight: 500; margin-bottom: 14px; }
.section-heading h1::after, .section-heading h2::after { content: ""; display: block; width: 36px; height: 3px; background: var(--brand); margin: 16px auto 0; }
.section-heading > p:last-child { color: var(--muted); font-size: 14px; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 8px; min-height: 46px; padding: 10px 26px; border: 1px solid var(--brand-dark); background: var(--brand-dark); color: #fff; text-align: center; font-size: 15px; }
.button:hover { background: #006c70; border-color: #006c70; color: #fff; }
.button.outline { color: var(--brand-dark); background: transparent; }
.button.outline:hover { color: #fff; background: var(--brand-dark); }
.section-action { margin-top: 32px; text-align: center; }

/* 首页案例、新闻标题沿用旧站英文背景字和装饰线。 */
.home-section-heading { text-align: center; margin-bottom: 36px; }
.home-section-title { position: relative; padding-top: 32px; height: 88px; background: url('/assets/hehe/images/bg2.png') center 12px / 428px 69px no-repeat; }
.home-section-title > span { position: absolute; inset: 0 0 auto; color: #f5f5f5; font: 56px/1 Impact, 'Arial Narrow', sans-serif; }
.home-section-title h2 { position: relative; z-index: 1; color: #00b2b3; font-size: 30px; font-weight: 700; }
.home-section-heading > p { margin-top: 20px; color: #111; font-size: 16px; }

/* 首页产品区沿用旧站样式，独立作用于本区，保留全站 1400px 主体宽度。 */
.home-products-heading { text-align: center; }
.home-products-title { position: relative; padding-top: 32px; height: 88px; background: url('/assets/hehe/images/bg2.png') center 12px / 428px 69px no-repeat; }
.home-products-title > span { position: absolute; inset: 0 0 auto; color: #f5f5f5; font: 56px/1 Impact, 'Arial Narrow', sans-serif; }
.home-products-title h1 { position: relative; z-index: 1; color: #00b2b3; font-size: 30px; font-weight: 700; }
.home-products-heading > p { margin-top: 20px; font-size: 16px; color: #111; }
.home-product-panel { margin-top: 30px; }
.home-product-carousel { --product-columns: 4; --product-gap: 30px; position: relative; padding-inline: 40px; }
.home-product-track { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - (var(--product-columns) - 1) * var(--product-gap)) / var(--product-columns)); gap: var(--product-gap); align-items: start; overflow-x: auto; padding-block: 6px 20px; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; scrollbar-width: none; }
.home-product-track::-webkit-scrollbar { display: none; }
.home-product-card { position: relative; min-width: 0; overflow: hidden; display: flex; flex-direction: column; border-radius: 8px; background: #fff; box-shadow: 0 2px 15px rgb(0 0 0 / 8%); scroll-snap-align: start; transition: box-shadow .3s, transform .3s; }
.home-product-card:focus-visible { outline-offset: -4px; }
.home-product-image { width: 100%; height: 220px; object-fit: cover; }
.home-product-body { padding: 18px 16px 20px; }
.home-product-body h2 { margin-bottom: 6px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; font-size: 17px; line-height: 1.4; font-weight: 700; color: #222; }
.home-product-line { display: block; width: 40px; height: 3px; margin-bottom: 10px; border-radius: 2px; background: #e60012; }
.home-product-body p { margin-bottom: 12px; font-size: 13px; line-height: 1.5; color: #777; overflow-wrap: anywhere; }
.home-product-more { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 600; letter-spacing: .5px; color: #e60012; }
.home-product-more > span { display: inline-block; margin-left: 4px; transition: transform .3s; }
.home-product-arrow { position: absolute; top: 50%; z-index: 2; display: flex; align-items: center; justify-content: center; width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; color: #fff; background: rgb(0 0 0 / 50%); font: 34px/1 Arial, sans-serif; transform: translateY(-50%); }
.home-product-arrow.previous { left: 10px; }
.home-product-arrow.next { right: 10px; }
.home-product-arrow:hover:not(:disabled) { background: #e60012; }
.home-product-arrow:disabled { cursor: default; opacity: .35; }
.home-product-specs { position: absolute; inset: 0; z-index: 1; display: flex; flex-direction: column; justify-content: center; padding: 20px; color: #fff; background: rgb(0 149 61 / 90%); visibility: hidden; opacity: 0; pointer-events: none; transition: opacity .3s, visibility .3s; }
.home-product-specs h3 { font-size: 20px; line-height: 1.3; margin-bottom: 15px; overflow-wrap: anywhere; }
.home-product-specs > strong { align-self: flex-start; border-bottom: 2px solid #fffb; padding-bottom: 6px; margin-bottom: 12px; font-size: 16px; }
.home-product-specs dl { margin: 0; font-size: 14px; line-height: 1.6; }
.home-product-specs dl > div { padding-block: 5px; }
.home-product-specs dt, .home-product-specs dd { display: inline; margin: 0; }
.home-product-specs dl > div:last-child { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 5; overflow: hidden; }
@media (hover: hover) and (pointer: fine) {
    .home-product-card:hover { transform: translateY(-5px); box-shadow: 0 8px 30px rgb(0 0 0 / 15%); }
    .home-product-card:hover .home-product-specs { visibility: visible; opacity: 1; }
}
.home-product-card:focus-visible .home-product-specs { visibility: visible; opacity: 1; }
@media (max-width: 1199px) {
    .home-product-carousel { --product-columns: 3; --product-gap: 25px; }
}
@media (max-width: 899px) {
    .home-product-carousel { --product-columns: 2; --product-gap: 20px; padding-inline: 30px; }
    .home-product-arrow.previous { left: 0; }
    .home-product-arrow.next { right: 0; }
    .home-product-image { height: 180px; }
    .home-product-body { padding: 14px 12px 16px; }
    .home-product-body h2 { font-size: 15px; }
}
@media (max-width: 767px) {
    .home-products-title { height: 80px; background-size: min(428px, 100%) 69px; }
    .home-products-title > span { font-size: 46px; }
    .home-products-title h1 { font-size: 26px; }
    .home-products-heading > p { font-size: 14px; margin-top: 16px; }
    .home-product-panel { margin-top: 24px; }
    .home-product-carousel { --product-columns: 1; padding-inline: 22px; }
    .home-product-image { height: 220px; }
    .home-product-arrow { width: 40px; height: 44px; }
    .home-product-body { padding: 18px 16px 20px; }
    .home-product-body h2 { font-size: 17px; }
}

/* 产品、案例、新闻列表 */
.card-grid { display: grid; gap: 24px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card { min-width: 0; display: flex; flex-direction: column; border: 1px solid var(--line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.card:hover { border-color: var(--brand); box-shadow: 0 8px 24px rgb(17 63 65 / 8%); }
.card-image { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #f8fafa; }
.card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.product-card .card-image img, .gallery-card .card-image img { object-fit: contain; padding: 12px; }
.gallery-card .card-image { aspect-ratio: 4 / 4; }
.card-body { padding: 22px; display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.card-body h2, .card-body h3 { font-size: 18px; font-weight: 500; overflow-wrap: anywhere; }
.card-body p { font-size: 14px; color: var(--muted); margin-top: 12px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.card-body time { color: var(--muted); font-size: 13px; margin-bottom: 10px; }
.text-link { color: var(--brand-dark); font-size: 14px; padding-top: 20px; margin-top: auto; }
.case-card .card-body { flex-direction: row; justify-content: space-between; align-items: center; gap: 12px; }
.case-card .text-link { padding: 0; margin: 0; white-space: nowrap; font-size: 13px; }
.play-label { position: absolute; inset: auto 0 0; padding: 10px; text-align: center; background: rgb(0 0 0 / 55%); color: #fff; }
.empty-state { padding: 56px 20px; text-align: center; color: var(--muted); background: var(--soft); }
.pagination { display: flex; justify-content: center; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 38px; }
.pagination a { padding: 8px 18px; min-height: 44px; border: 1px solid var(--line); color: var(--brand-dark); }
.pagination span { color: var(--muted); font-size: 14px; }

/* 首页优势与企业介绍 */
/* 四大优势：背景延展至宽屏，文字沿用主体宽度，图标居于两栏交界处。 */
.advantages-heading { text-align: center; margin-bottom: 36px; }
.advantages-title { position: relative; padding-top: 32px; height: 88px; background: url('/assets/hehe/images/bg2.png') center 12px / 428px 69px no-repeat; }
.advantages-title > span { position: absolute; inset: 0 0 auto; color: #f5f5f5; font: 56px/1 Impact, 'Arial Narrow', sans-serif; }
.advantages-title h2 { position: relative; z-index: 1; color: #00b2b3; font-size: 30px; font-weight: 700; }
.advantages-heading > p { margin-top: 20px; color: #111; font-size: 16px; }
.advantages-panel { position: relative; width: min(1920px, 100%); margin-inline: auto; background: #00b2b3; }
.advantages-image { position: absolute; inset: 0 auto 0 0; width: 50%; height: 100%; object-fit: cover; }
.advantage-list { position: relative; width: 50%; margin-left: 50%; min-height: 758px; display: flex; flex-direction: column; justify-content: space-between; gap: 38px; padding-block: 48px 82px; color: #fff; }
.advantage-list article { position: relative; min-height: 108px; padding-left: 100px; }
.advantage-icon { position: absolute; top: 4px; left: -52px; display: flex; align-items: center; justify-content: center; width: 104px; height: 104px; border: 1px solid #00b2b3; border-radius: 50%; background: #fff; }
.advantage-icon img { width: 48px; height: 48px; object-fit: contain; }
.advantage-list h3 { margin-bottom: 10px; font-size: 24px; font-weight: 700; line-height: 1.4; overflow-wrap: anywhere; }
.advantage-list p { font-size: 14px; line-height: 1.4; overflow-wrap: anywhere; }
.about-section { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-grid > * { min-width: 0; }
.about-grid h2 { font-size: 30px; margin-bottom: 18px; font-weight: 500; }
.about-image { width: 100%; max-height: 430px; object-fit: cover; }
.about-summary { margin-bottom: 24px; font-size: 15px; }

/* 栏目导航与富文本 */
.category-banner img { width: 100%; }
.category-bar { background: #fff; border-bottom: 1px solid #edf1f2; box-shadow: 0 3px 8px rgb(28 58 69 / 5%); }
.category-navigation { display: flex; align-items: center; justify-content: space-between; gap: 32px; min-height: 64px; }
.breadcrumbs { display: flex; flex: 0 1 auto; flex-wrap: wrap; align-items: center; gap: 10px; padding: 18px 0; color: var(--ink); font-size: 14px; }
.breadcrumbs > span { color: #667078; }
.category-tabs { display: flex; flex: 0 1 auto; min-width: 0; max-width: 100%; overflow-x: auto; overscroll-behavior-x: contain; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.category-tabs a { position: relative; display: flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 64px; padding: 18px 22px; color: var(--ink); font-size: 14px; white-space: nowrap; }
.category-tabs a + a::before { content: ""; position: absolute; top: 50%; left: 0; height: 16px; border-left: 1px solid #cfd7dc; transform: translateY(-50%); }
.category-tabs a::after { content: ""; position: absolute; bottom: 0; left: 50%; width: 44px; height: 3px; background: var(--brand); transform: translateX(-50%); opacity: 0; }
.category-tabs a.active, .category-tabs a:hover, .category-tabs a:focus-visible { color: var(--brand-dark); }
.category-tabs a.active::after, .category-tabs a:hover::after, .category-tabs a:focus-visible::after { opacity: 1; }
.rich-text { line-height: 2; overflow-wrap: anywhere; color: #414b50; }
.rich-text p { margin-bottom: 1em; }
.rich-text img { max-width: 100% !important; height: auto !important; margin-inline: auto; }
.rich-text div, .rich-text p, .rich-text section { max-width: 100% !important; }
.rich-text video, .rich-text iframe { max-width: 100%; }
.rich-text table { border-collapse: collapse; max-width: none; }
.rich-text td, .rich-text th { padding: 10px; border: 1px solid #dce3e5; }
.table-scroll { max-width: 100%; overflow-x: auto; margin-block: 20px; }
.page-content { max-width: 1100px; margin-inline: auto; min-height: 160px; }
.history-list { max-width: 960px; margin-inline: auto; }
.history-item { display: grid; grid-template-columns: 125px 1fr; gap: 24px; padding: 30px 0 30px 24px; border-left: 3px solid var(--brand); border-bottom: 1px solid var(--line); }
.history-item h2 { color: var(--brand-dark); font-size: 30px; }
.history-item h3 { font-size: 18px; margin-bottom: 10px; }
.history-item p { white-space: pre-line; }
.history-english { font-size: 13px; color: var(--muted); margin-top: 12px; }
.history-content { min-width: 0; }
.history-image { display: block; width: fit-content; max-width: 100%; margin-top: 20px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.history-image:hover { border-color: var(--brand); }
.history-image img { width: auto; max-width: 100%; height: auto; max-height: 360px; object-fit: contain; }
.history-image-hint { display: block; margin-top: 8px; color: var(--brand-dark); font-size: 12px; }

/* 详情页、产品图册与参数 */
.product-detail-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 54px; align-items: start; }
.product-detail-grid > * { min-width: 0; }
.gallery-main { display: block; border: 1px solid var(--line); padding: 18px; }
.gallery-main img { aspect-ratio: 1 / 1; width: 100%; object-fit: contain; }
.gallery-thumbs { display: flex; overflow-x: auto; gap: 10px; margin-top: 14px; padding: 4px; }
.gallery-thumbs button { flex: 0 0 84px; width: 84px; padding: 4px; border: 1px solid var(--line); background: #fff; }
.gallery-thumbs button[aria-pressed="true"] { border: 2px solid var(--brand-dark); }
.gallery-thumbs img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.product-information h1 { font-size: 28px; font-weight: 500; margin-bottom: 20px; }
.product-intro { color: var(--muted); font-size: 14px; line-height: 1.9; }
.product-specs { margin: 22px 0; font-size: 14px; }
.product-specs > div { display: grid; grid-template-columns: 78px 1fr; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.product-specs dt { color: var(--muted); }
.product-specs dd { margin: 0; overflow-wrap: anywhere; }
.detail-subtitle { font-size: 22px; font-weight: 500; padding-bottom: 15px; border-bottom: 2px solid var(--brand); margin-top: 54px; }
.article-content { padding-top: 30px; }
.article-heading { text-align: center; border-bottom: 1px solid var(--line); padding-bottom: 28px; margin-bottom: 28px; }
.article-heading h1 { font-size: 28px; font-weight: 500; overflow-wrap: anywhere; }
.article-heading p { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; font-size: 13px; color: var(--muted); margin-top: 18px; }
.detail-cover { max-height: 680px; margin-inline: auto; object-fit: contain; }
.article-neighbours { display: grid; grid-template-columns: 1fr auto 1fr; gap: 24px; padding-top: 24px; margin-top: 36px; border-top: 1px solid var(--line); font-size: 14px; }
.article-neighbours > :last-child { text-align: right; }
.article-neighbours a { min-height: 44px; overflow-wrap: anywhere; }
.article-neighbours span { color: var(--muted); }
.back-list { color: var(--brand-dark); }
.video-entry { text-align: center; }
.video-entry img { max-height: 520px; margin: 0 auto 24px; }

/* 联系信息、留言和搜索表单 */
.contact-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; }
.contact-item { padding: 26px 12px; text-align: center; border: 1px solid var(--line); overflow-wrap: anywhere; }
.contact-item img { height: 60px; width: 60px; object-fit: contain; margin: 0 auto 22px; }
.contact-item img.contact-qr { width: 100px; height: 100px; margin-bottom: 6px; }
.contact-item h2 { font-size: 18px; font-weight: 500; margin-bottom: 14px; }
.contact-item p, .contact-item a { font-size: 14px; color: var(--muted); }
.contact-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; margin-top: 64px; align-items: start; }
.contact-layout > * { min-width: 0; }
.contact-layout h2 { font-size: 22px; font-weight: 500; margin-bottom: 14px; }
.form-intro, .form-privacy { font-size: 13px; color: var(--muted); margin-bottom: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; margin-bottom: 6px; }
.field label span { color: var(--muted); font-size: 12px; }
input, textarea { padding: 11px 14px; width: 100%; min-width: 0; border: 1px solid #c9d2d5; color: var(--ink); background: #fff; }
textarea { resize: vertical; }
.form-result { margin-top: 16px; color: var(--brand-dark); }
.form-result.error { color: #b32323; }
.company-map img { width: 100%; margin-top: 24px; }
.company-map p { margin-top: 20px; font-size: 14px; color: var(--muted); }
.search-form { max-width: 700px; margin: 0 auto 28px; display: flex; gap: 12px; }
.search-form button { flex-shrink: 0; }
.search-count { margin-bottom: 24px; font-size: 14px; color: var(--muted); }

/* 页脚与移动端联系入口 */
.site-footer { background: #f0f4f4; }
.footer-main { padding-block: 45px; display: flex; justify-content: space-between; gap: 40px; }
.footer-contact { display: flex; align-items: center; gap: 28px; min-width: 0; }
.qr-code { width: 108px; height: 108px; flex: 0 0 108px; object-fit: contain; }
.footer-contact p { font-size: 13px; color: var(--muted); }
.footer-contact .footer-name { font-size: 17px; color: var(--ink); }
.footer-phone { display: block; color: var(--brand-dark); font-size: 24px; margin: 5px 0; }
.footer-links { flex: 0 0 230px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 6px 20px; font-size: 14px; }
.footer-links a { min-height: 36px; display: flex; align-items: center; }
.footer-bottom { border-top: 1px solid #dde5e5; padding-block: 18px; font-size: 12px; color: var(--muted); }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 4px 24px; }
/* 右侧浮窗使用旧站的白色图标与文字，手机另用底部联系栏。 */
.floating-contact { position: fixed; top: 50%; right: 0; z-index: 20; display: flex; flex-direction: column; gap: 1px; background: #fff; transform: translateY(-50%); }
.floating-item { position: relative; }
.floating-action { position: relative; display: block; flex: 0 0 70px; width: 70px; height: 70px; padding: 0; border: 0; background-color: #999; background-position: center; background-size: 70px 70px; background-repeat: no-repeat; }
.floating-action:focus-visible { outline-offset: -4px; }
.floating-phone { background-image: url('/assets/hehe/images/r_phone.png'); }
.floating-qq { background-image: url('/assets/hehe/images/r_qq.png'); }
.floating-wechat { background-image: url('/assets/hehe/images/r_wx.png'); }
.floating-top { background-image: url('/assets/hehe/images/r_top.png'); }
.floating-phone:hover, .floating-phone:focus-visible { background-color: #ff811b; }
.floating-qq:hover, .floating-qq:focus-visible { background-color: #488bc7; }
.floating-wechat:hover, .floating-wechat:focus-visible, .floating-wechat[aria-expanded="true"] { background-color: #58a81c; }
.floating-top:hover, .floating-top:focus-visible { background-color: #444; }
.floating-popover { position: absolute; right: 100%; z-index: 1; padding: 12px; border: 1px solid var(--line); background: #fff; color: var(--ink); box-shadow: 0 3px 14px #0002; visibility: hidden; }
.floating-phone-panel { top: 0; display: flex; flex-direction: column; justify-content: center; min-height: 70px; padding: 8px 18px; white-space: nowrap; }
.floating-phone-panel > span { font-size: 12px; color: var(--muted); }
.floating-phone-panel strong { font-size: 20px; color: var(--brand-dark); }
.floating-phone-item:hover .floating-popover, .floating-phone-item:focus-within .floating-popover, .floating-wechat-item.is-open .floating-popover { visibility: visible; }
.floating-qr-panel { bottom: 0; width: 188px; }
.floating-qr-panel img { width: 160px; height: 160px; object-fit: contain; margin-inline: auto; }
.floating-qr-panel p { margin-top: 8px; font-size: 12px; text-align: center; }
.contact-shortcuts { position: fixed; right: 0; top: 50%; z-index: 20; display: none; box-shadow: 0 3px 12px #0001; }
.contact-shortcuts a { background: var(--brand-dark); color: #fff; padding: 12px 10px; font-size: 12px; border-bottom: 1px solid #fff5; }
.back-top { position: fixed; right: 18px; bottom: 20px; width: 44px; height: 44px; border: 1px solid var(--line); background: #fff; color: var(--brand-dark); font-size: 24px; z-index: 21; box-shadow: 0 2px 12px #0001; }
@media (min-width: 1101px) {
    .back-top { display: none; }
}

/* 平板：调整列数和头部密度 */
@media (max-width: 1100px) {
    .product-grid, .listing-grid, .case-grid, .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .contact-shortcuts { display: none; }
    .floating-contact { display: none; }
    .product-detail-grid { gap: 30px; }
    .contact-layout { gap: 30px; }
    .about-grid { gap: 32px; }
    .contact-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .advantage-list { padding-block: 40px; gap: 32px; }
    .advantage-list article { padding-left: 76px; }
    .advantage-icon { left: -42px; width: 84px; height: 84px; }
    .advantage-icon img { width: 42px; height: 42px; }
    .advantage-list h3 { font-size: 21px; }
    .category-navigation { flex-direction: column; align-items: stretch; gap: 0; }
    .category-tabs { border-top: 1px solid var(--line); }
    .category-tabs a { min-height: 52px; padding: 14px 20px; }
}

/* 手机：可展开导航、内容单列和底部快捷联系 */
@media (max-width: 767px) {
    body { font-size: 15px; padding-bottom: calc(50px + env(safe-area-inset-bottom)); }
    .container { width: calc(100% - 32px); }
    .section { padding-block: 36px; }
    .welcome { font-size: 11px; padding-block: 5px; }
    .brand-row { min-height: 80px; gap: 12px; }
    .brand img { width: 180px; }
    .hotline { display: none; }
    .menu-toggle { display: flex; align-items: center; justify-content: center; flex: 0 0 44px; width: 44px; height: 44px; padding: 8px; background: transparent; border: 0; color: var(--brand-dark); }
    .menu-icon, .menu-icon::before, .menu-icon::after { display: block; height: 3px; width: 28px; background: currentColor; position: relative; }
    .menu-icon::before, .menu-icon::after { content: ""; position: absolute; left: 0; }
    .menu-icon::before { top: -8px; }
    .menu-icon::after { top: 8px; }
    .menu-toggle[aria-expanded="true"] .menu-icon { background: transparent; }
    .menu-toggle[aria-expanded="true"] .menu-icon::before { top: 0; transform: rotate(45deg); }
    .menu-toggle[aria-expanded="true"] .menu-icon::after { top: 0; transform: rotate(-45deg); }
    .js .main-nav:not(.is-open) { display: none; }
    .main-nav { background: #fff; }
    .nav-links { display: block; width: 100%; padding: 0; }
    .nav-item { border-bottom: 1px solid #e4e4e4; }
    .nav-item:last-child { border-bottom: 0; }
    .nav-link { min-height: 48px; padding: 12px 48px; border-bottom: 0; color: #333; font-size: 14px; font-weight: 600; line-height: 1.5; text-align: center; }
    .nav-link::after, .nav-english { display: none; }
    .nav-expand, .nav-forward { position: absolute; top: 0; right: 0; display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; padding: 0; border: 0; color: #555; background: transparent; font: 24px/1 Arial, sans-serif; }
    .nav-forward { pointer-events: none; }
    .nav-expand[aria-expanded="true"] > span { transform: rotate(90deg); }
    .nav-submenu { display: block; padding-block: 4px; border-top: 1px solid #e4e4e4; background: #f7f9f9; }
    .nav-submenu a { display: flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 24px; color: #555; font-size: 13px; text-align: center; }
    .nav-submenu a + a { border-top: 1px solid #edf0f0; }
    .nav-submenu a:hover, .nav-submenu a:focus-visible { color: var(--brand-dark); background: #edf6f6; }
    .hero-controls { bottom: 5px; gap: 0; padding: 0 4px; }
    .hero-controls button { min-width: 36px; min-height: 36px; }
    .hero-controls button[data-slide="pause"] { padding-inline: 6px; }
    .mobile-intro { display: block; text-align: center; padding: 20px 16px; background: var(--soft); border-bottom: 1px solid var(--line); }
    .mobile-intro strong { font-size: 21px; font-weight: 500; }
    .mobile-intro p { color: var(--muted); font-size: 13px; margin-top: 6px; }
    .section-heading { margin-bottom: 24px; }
    .section-heading h1, .section-heading h2 { font-size: 24px; }
    .section-heading > p:last-child { font-size: 13px; }
    .home-section-heading { margin-bottom: 24px; }
    .home-section-title { height: 80px; background-size: min(428px, 100%) 69px; }
    .home-section-title > span { font-size: 46px; }
    .home-section-title h2 { font-size: 26px; }
    .home-section-heading > p { margin-top: 16px; font-size: 14px; }
    .eyebrow { font-size: 12px; letter-spacing: 1.5px; }
    .card-grid { gap: 16px; }
    .card-body { padding: 16px; }
    .card-body h2, .card-body h3 { font-size: 16px; }
    .card-body p { font-size: 13px; }
    .case-card .card-body { display: block; }
    .case-card .text-link { display: block; margin-top: 10px; }
    .advantages-heading { margin-bottom: 24px; }
    .advantages-title { height: 80px; background-size: min(428px, 100%) 69px; }
    .advantages-title > span { font-size: clamp(30px, 9vw, 46px); }
    .advantages-title h2 { font-size: 24px; }
    .advantages-heading > p { margin-top: 16px; font-size: 14px; }
    .advantages-image { display: none; }
    .advantage-list { width: 100%; margin-left: 0; min-height: 0; padding-block: 28px; gap: 28px; }
    .advantage-list article { min-height: 64px; padding-left: 82px; }
    .advantage-icon { top: 0; left: 0; width: 64px; height: 64px; }
    .advantage-icon img { width: 34px; height: 34px; }
    .advantage-list h3 { font-size: 18px; }
    .advantage-list p { font-size: 13px; line-height: 1.75; }
    .about-grid { grid-template-columns: 1fr; gap: 24px; }
    .about-grid h2 { font-size: 24px; }
    .about-summary { font-size: 14px; }
    .category-tabs a { min-height: 48px; padding: 12px 16px; font-size: 13px; }
    .breadcrumbs { gap: 8px; padding-block: 12px; font-size: 13px; }
    .product-detail-grid, .contact-layout { grid-template-columns: 1fr; }
    .product-information h1 { font-size: 24px; }
    .gallery-main img { aspect-ratio: 4 / 3; }
    .detail-subtitle { margin-top: 32px; }
    .article-heading h1 { font-size: 23px; }
    .article-neighbours { grid-template-columns: 1fr; gap: 8px; }
    .article-neighbours > :last-child { text-align: left; }
    .article-neighbours .back-list { order: 3; }
    .contact-layout { margin-top: 36px; gap: 36px; }
    .contact-item { padding: 20px 12px; }
    .contact-item h2 { font-size: 16px; }
    .contact-grid { gap: 16px; }
    .contact-layout h2 { font-size: 20px; }
    .history-item { grid-template-columns: 1fr; gap: 10px; padding: 22px 0 22px 20px; }
    .history-item h2 { font-size: 26px; }
    .history-image { padding: 8px; }
    .history-image img { max-height: 320px; }
    .footer-main { flex-direction: column; padding-block: 30px; gap: 24px; }
    .footer-contact { gap: 18px; align-items: flex-start; }
    .qr-code { width: 88px; height: 88px; flex-basis: 88px; }
    .footer-contact .footer-name { font-size: 15px; }
    .footer-phone { font-size: 21px; }
    .footer-links { flex-basis: auto; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px 12px; }
    .footer-bottom { padding-block: 14px; }
    .contact-shortcuts { display: grid; grid-template-columns: 1fr 1fr; inset: auto 0 0; padding-bottom: env(safe-area-inset-bottom); background: var(--brand-dark); }
    .contact-shortcuts a { text-align: center; min-height: 50px; font-size: 15px; border-bottom: 0; }
    .contact-shortcuts a + a { background: #006b70; }
    .back-top { right: 12px; bottom: calc(64px + env(safe-area-inset-bottom)); }
}
@media (max-width: 520px) {
    .product-grid, .listing-grid, .news-grid { grid-template-columns: 1fr; }
    .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .product-card .card-image { aspect-ratio: 4 / 3; }
    .case-card .card-body { padding: 12px; }
    .case-card .card-body h2, .case-card .card-body h3 { font-size: 15px; }
    .form-row { grid-template-columns: 1fr; gap: 0; }
    .contact-grid { grid-template-columns: 1fr; }
    .contact-item { padding: 20px; }
    .contact-item img { margin-bottom: 12px; }
}
@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { animation: none !important; transition: none !important; }
}
