/* home.css —— 首页样式（配套换脸新 markup，断点 1080/860/560） */

/* ===== hero 轮播 ===== */
.hero { position: relative; }
.hero-track { position: relative; height: min(700px, calc(100vh - var(--header-height) - 34px)); min-height: 560px; overflow: hidden; background: #141414; }
.hero-slide { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility .5s ease; }
.hero-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.hero-slide picture { display: block; width: 100%; height: 100%; }
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-scrim { position: absolute; inset: 0; background: linear-gradient(to top, rgba(0, 0, 0, .55) 0%, rgba(0, 0, 0, .18) 46%, rgba(0, 0, 0, 0) 70%); }
.hero-content { position: absolute; inset: auto 0 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; padding-bottom: 72px; }
.hero-content h1, .hero-content h2 { margin-bottom: 0; color: var(--white); font-size: clamp(34px, 4.8vw, 56px); text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
.hero-content p { margin-bottom: 0; max-width: 640px; color: rgba(255, 255, 255, .88); font-size: 18px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }
.hero-controls { position: absolute; right: 0; bottom: 26px; left: 0; z-index: 2; display: flex; justify-content: center; gap: 8px; }
.hero-controls button { position: relative; width: 36px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.hero-controls button::before { content: ""; position: absolute; top: 50%; left: 4px; right: 4px; height: 4px; transform: translateY(-50%); border-radius: 2px; background: rgba(255, 255, 255, .45); transition: background-color .2s ease; }
.hero-controls button[aria-current="true"]::before { background: var(--jc-green-050); }

/* hero 无图降级 */
.hero-empty { display: flex; align-items: flex-end; min-height: 480px; background: var(--jc-green-050); }
.hero-empty .hero-content { position: static; padding-top: 80px; padding-bottom: 80px; }
.hero-empty .hero-content h1 { color: var(--ink); text-shadow: none; }
.hero-empty .hero-content p { color: var(--muted); }

/* ===== introduction 左文右图 ===== */
.intro-band { background: var(--white); }
.intro-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.intro-copy .text-link { margin-top: 6px; }
.intro-media { margin: 0; overflow: hidden; border-radius: var(--jc-radius); box-shadow: 0 18px 40px rgba(19, 34, 56, .1); }
.intro-media img, .intro-media video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 10; object-fit: cover; background: var(--surface); }
.intro-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 460px; margin-top: 40px; }
.intro-metrics .metric-item { padding: 18px 20px; text-align: left; }
.intro-metrics dt, .intro-metrics dd { margin: 0; }
.intro-metrics .metric-value { font-size: 32px; }
.intro-metrics .metric-label { margin-top: 4px; }

/* ===== businesses 卡片网格 ===== */
.business-band { background: var(--surface); }
.business-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--jc-gap); }
.business-item a { display: flex; flex-direction: column; height: 100%; overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--jc-radius); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.business-item a:hover, .business-item a:focus-visible { transform: translateY(-4px); border-color: var(--brand-blue); box-shadow: 0 18px 36px rgba(19, 34, 56, .1); }
.business-thumb { aspect-ratio: 8 / 5; overflow: hidden; background: var(--jc-green-050); }
.business-thumb img { width: 100%; height: 100%; object-fit: cover; }
.business-body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; padding: 22px 24px 24px; }
.business-index { color: var(--brand-blue); font-size: 13px; font-weight: 800; letter-spacing: .08em; }
.business-body h3 { margin-bottom: 0; font-size: 18px; }
.business-body p { margin-bottom: 0; font-size: 14px; }
.business-body .text-link { margin-top: auto; font-size: 14px; }

/* ===== advantages 编号理由列表 ===== */
.advantages-band { background: var(--white); }
.advantages-band .step-list { max-width: 880px; margin-inline: auto; }

/* ===== product_categories 分类卡 ===== */
.product-band { background: var(--jc-green-050); }
.product-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--jc-gap); }
.product-card { display: flex; flex-direction: column; overflow: hidden; background: var(--white); border-radius: var(--jc-radius); box-shadow: 0 10px 24px rgba(19, 34, 56, .06); transition: transform .2s ease, box-shadow .2s ease; }
.product-card:hover, .product-card:focus-visible { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(19, 34, 56, .12); }
.product-thumb { aspect-ratio: 16 / 10; overflow: hidden; background: var(--surface); }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.product-card:hover .product-thumb img { transform: scale(1.04); }
.product-body { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 18px; }
.product-name h3 { margin-bottom: 0; font-size: 17px; }
.product-name p { margin: 4px 0 0; font-size: 13px; }
.product-arrow { flex: 0 0 auto; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; color: var(--brand-blue); background: var(--jc-green-050); font-size: 15px; font-weight: 800; transition: background-color .2s ease, color .2s ease; }
.product-card:hover .product-arrow { color: var(--white); background: var(--brand-blue); }

/* ===== certifications 认证墙 ===== */
.certification-band { background: var(--white); }
.auth-card { display: flex; flex-direction: column; }
.auth-thumb { aspect-ratio: 4 / 3; overflow: hidden; background: var(--surface); border: 1px solid var(--line); border-radius: 8px; }
.auth-thumb img { width: 100%; height: 100%; object-fit: cover; }
.certification-band figcaption { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.certification-band figcaption strong { color: var(--ink); font-size: 15px; }
.certification-band figcaption span { color: var(--muted); font-size: 13px; }

/* ===== locations 基地卡 + 卡内轮播 ===== */
.locations-band { background: var(--surface); }
.location-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--jc-gap); }
.location-card { overflow: hidden; background: var(--white); border: 1px solid var(--line); border-radius: var(--jc-radius); }
.location-carousel { position: relative; }
.location-track { position: relative; aspect-ratio: 16 / 11; overflow: hidden; background: var(--surface); }
.location-slide { position: absolute; inset: 0; margin: 0; opacity: 0; visibility: hidden; transition: opacity .4s ease, visibility .4s ease; }
.location-slide.is-active { opacity: 1; visibility: visible; z-index: 1; }
.location-slide img { width: 100%; height: 100%; object-fit: cover; }
.location-arrow { position: absolute; z-index: 2; top: 50%; display: grid; place-items: center; width: 38px; height: 38px; border: 0; border-radius: 50%; color: var(--ink); background: rgba(255, 255, 255, .92); box-shadow: 0 6px 16px rgba(0, 0, 0, .18); cursor: pointer; transform: translateY(-50%); }
.location-arrow:hover, .location-arrow:focus-visible { color: var(--white); background: var(--brand-blue); }
.location-arrow-prev { left: 12px; }
.location-arrow-next { right: 12px; }
.location-controls { position: absolute; z-index: 2; right: 14px; bottom: 12px; left: 14px; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.location-controls button { padding: 0; border: 0; cursor: pointer; }
.location-controls [data-location-dot] { width: 22px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .55); transition: background-color .2s ease; }
.location-controls [data-location-dot][aria-current="true"] { background: var(--jc-green-050); }
.location-pause { margin-left: auto; padding: 6px 12px; border-radius: 999px; color: var(--ink); background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: 700; }
.location-copy { padding: 18px 20px 22px; }
.location-copy p { margin-bottom: 0; color: var(--brand-blue); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.location-copy h3 { margin: 6px 0 0; font-size: 18px; }
.location-copy span { display: block; margin-top: 8px; color: var(--muted); font-size: 14px; }

/* ===== stories 链接卡列表 ===== */
.stories-band { background: var(--white); }
.story-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.story-card { display: flex; flex-direction: column; gap: 8px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--jc-radius); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.story-card:hover, .story-card:focus-visible { transform: translateY(-3px); border-color: var(--brand-blue); box-shadow: 0 14px 28px rgba(19, 34, 56, .08); }
.story-type { color: var(--brand-blue); font-size: 12px; font-weight: 800; letter-spacing: .06em; }
.story-card h3 { margin-bottom: 0; font-size: 17px; }
.story-card .text-link { margin-top: auto; font-size: 14px; }

/* ===== 断点 ===== */
@media (max-width: 1080px) {
    .intro-grid { grid-template-columns: 1fr; gap: 36px; }
    .business-grid, .product-grid, .location-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .hero-content { padding-bottom: 56px; }
    .hero-controls { bottom: 20px; }
    .intro-metrics { margin-top: 32px; }
    .story-list { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
    .hero-track { height: min(520px, calc(100vh - var(--header-height) - 20px)); min-height: 440px; }
    .hero-empty { min-height: 380px; }
    .hero-empty .hero-content { padding-top: 56px; padding-bottom: 56px; }
    .business-grid, .product-grid, .location-grid { grid-template-columns: 1fr; }
    .intro-media img, .intro-media video { aspect-ratio: 16 / 11; }
}

/* ================= T5：hero 纯图模式 + 左右圆形描边箭头 ================= */
.hero-arrows { position: absolute; left: 0; right: 0; bottom: .6rem; z-index: 3; display: none; align-items: center; gap: .75rem; pointer-events: none; }
.hero.hero--js .hero-arrows { display: flex; }
.hero-arrow { pointer-events: auto; appearance: none; -webkit-appearance: none; width: 48px; height: 48px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .65); background: rgba(17, 17, 17, .22); color: #fff; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; transition: background-color .2s ease, border-color .2s ease; }
.hero-arrow:hover, .hero-arrow:focus-visible { background: rgba(17, 17, 17, .5); border-color: #fff; }
.hero-arrow:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hero-arrow svg { display: block; }

/* ================= T6：产品全系列 标题行 + 搜索框 + 分页轮播 ================= */
.section-heading--split { display: flex; align-items: flex-end; justify-content: space-between; gap: 1.25rem 2rem; flex-wrap: wrap; }
.section-heading--split .section-heading-main { flex: 1 1 340px; min-width: 0; }
.section-heading--split .catalog-search { flex: 0 1 360px; }
.catalog-search { display: flex; align-items: stretch; gap: .4rem; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .3rem; }
.catalog-search input[type="search"] { flex: 1 1 auto; min-width: 0; min-height: 44px; border: 0; background: transparent; padding: .25rem .9rem; font: inherit; color: var(--ink); appearance: none; -webkit-appearance: none; outline: none; }
.catalog-search input[type="search"]:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: -2px; border-radius: 999px; }
.catalog-search-submit { flex: 0 0 auto; border: 0; border-radius: 999px; background: var(--brand-blue); color: #fff; padding: .35rem 1.3rem; min-height: 44px; font: inherit; font-weight: 600; cursor: pointer; transition: filter .2s ease; }
.catalog-search-submit:hover, .catalog-search-submit:focus-visible { filter: brightness(1.12); }
.product-grid .product-card { background: var(--surface); box-shadow: none; display: flex; flex-direction: column; overflow: hidden; }
.product-grid .product-card[hidden] { display: none; }
.product-grid .product-card:hover { box-shadow: 0 14px 30px rgba(0, 0, 0, .08); }
.product-grid .product-card .product-thumb { aspect-ratio: 1 / 1; width: 100%; background: #fff; }
.product-grid .product-card .product-thumb img { width: 100%; height: 100%; object-fit: contain; }
.product-grid .product-card .product-name { display: block; padding: 1rem 1rem 1.35rem; text-align: center; }
.product-grid .product-card .product-name h3 { margin: 0; font-size: 1.05rem; color: var(--ink); }
.catalog-dots { display: flex; justify-content: center; align-items: center; gap: .25rem; margin-top: 1.75rem; }
.catalog-dots[hidden] { display: none; }
.catalog-dot { position: relative; width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; padding: 0; }
.catalog-dot::before { content: ""; position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 8px; height: 8px; border-radius: 50%; background: var(--muted); transition: background-color .2s ease, transform .2s ease; }
.catalog-dot:hover::before { background: var(--ink); }
.catalog-dot[aria-current="true"]::before { background: var(--brand-blue); transform: translate(-50%, -50%) scale(1.25); }
.catalog-dot:focus-visible { outline: 2px solid var(--brand-blue); outline-offset: 2px; }

/* ================= T7：businesses 三联背景图卡 ================= */
.business-grid .business-item { border: 0; background: transparent; box-shadow: none; overflow: hidden; }
.business-item--hero { border-radius: .9rem; }
.business-item--hero > a { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 400px; height: 100%; color: #fff; text-decoration: none; }
.business-item--hero .business-cover { position: absolute; inset: 0; z-index: 0; width: 100%; height: 100%; object-fit: cover; }
.business-item--hero .business-hero-scrim { position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, rgba(0, 0, 0, .05) 35%, rgba(0, 0, 0, .74) 100%); }
.business-item--hero .business-hero-body { position: relative; z-index: 2; display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; padding: 1.6rem; }
.business-badge { display: inline-flex; align-items: center; padding: .32rem .75rem; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .45); background: rgba(255, 255, 255, .14); color: #fff; font-size: .78rem; font-weight: 600; letter-spacing: .06em; }
.business-item--hero h3 { margin: 0; color: #fff; font-size: 1.5rem; line-height: 1.25; }
.business-hero-summary { margin: 0; color: rgba(255, 255, 255, .88); font-size: .95rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }
.business-hero-more { display: inline-flex; align-items: center; gap: .45rem; margin-top: .35rem; min-height: 44px; padding: .4rem 1.15rem; border-radius: 999px; background: #fff; border: 1px solid var(--brand-blue); color: var(--brand-blue); font-weight: 600; font-size: .9rem; transition: background-color .2s ease, color .2s ease; }
.business-item--hero > a:hover .business-hero-more, .business-item--hero > a:focus-visible .business-hero-more { background: var(--brand-blue); color: #fff; }
.business-item--hero > a:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }

/* ================= T5-T7 断点补充 ================= */
@media (max-width: 560px) {
    .hero-arrow { width: 44px; height: 44px; }
    .hero-arrows { gap: .5rem; }
    .business-item--hero > a { min-height: 340px; }
    .business-item--hero h3 { font-size: 1.25rem; }
    .section-heading--split .catalog-search { flex: 1 1 100%; }
}

/* ===== T8: introduction 关于我们（居中标题 + 点阵纹理 + 双栏） ===== */
.intro-band { position: relative; }
.intro-band::before { content: ""; position: absolute; inset: 0; z-index: 0; background-image: radial-gradient(rgba(0, 0, 0, 0.08) 1.2px, transparent 1.3px); background-size: 26px 26px; pointer-events: none; }
.intro-band > .site-container { position: relative; z-index: 1; }
.intro-heading { text-align: center; margin: 0 auto var(--jc-gap); }
.intro-heading .section-kicker { text-align: center; }
.intro-heading h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; color: var(--ink); }
.band-bar { display: block; width: 60px; height: 4px; border-radius: 2px; background: var(--brand-blue); margin: 0 auto; }
.intro-more { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; margin-top: 8px; padding: 0 28px; border: 1px solid var(--brand-blue); border-radius: 999px; background: var(--white); color: var(--brand-blue); font-weight: 600; text-decoration: none; transition: background-color 0.2s ease, color 0.2s ease; }
.intro-more::after { content: "→"; }
.intro-more:hover, .intro-more:focus-visible { background: var(--brand-blue); color: var(--white); }
.intro-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: var(--jc-gap); margin: var(--jc-gap) 0 0; }
.intro-metrics .metric-value { font-size: clamp(30px, 3.6vw, 44px); font-weight: 700; line-height: 1.15; color: var(--brand-blue); }
.intro-metrics .metric-label { margin: 4px 0 0; color: var(--muted); font-size: 13px; }
.intro-media { margin: 0; background: var(--white); border: 1px solid var(--line); border-radius: var(--jc-radius); box-shadow: 0 12px 32px rgba(0, 0, 0, 0.07); overflow: hidden; }
.intro-media video, .intro-media img { display: block; width: 100%; height: auto; }

/* ===== T9: certifications 认证分组 ===== */
.certs-heading { text-align: center; max-width: 720px; margin: 0 auto var(--jc-gap); }
.certs-heading .section-kicker { text-align: center; }
.certs-heading h2 { margin: 0 0 12px; font-size: clamp(26px, 3.4vw, 38px); line-height: 1.25; color: var(--ink); }
.certs-lede { margin: 14px 0 0; color: var(--muted); }
.auth-group { margin-top: calc(var(--jc-gap) * 1.5); }
.auth-group:first-of-type { margin-top: 0; }
.auth-group-title { margin: 0 0 var(--jc-gap); text-align: center; font-size: clamp(18px, 2vw, 22px); color: var(--ink); }
.auth-group-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--jc-gap); }
.auth-group-grid .auth-card { display: flex; flex-direction: column; align-items: center; justify-content: center; margin: 0; padding: 22px 16px; background: var(--white); border: 1px solid var(--line); border-radius: var(--jc-radius); box-shadow: 0 2px 10px rgba(0, 0, 0, 0.04); text-align: center; transition: transform 0.2s ease, box-shadow 0.2s ease; }
.auth-group-grid .auth-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.08); }
.auth-group-grid .auth-thumb img { height: 90px; width: auto; max-width: 100%; object-fit: contain; }
.auth-card-title { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.auth-desc { margin: 10px 0 0; color: var(--muted); font-size: 13px; line-height: 1.6; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

@media (max-width: 1080px) {
    .auth-group-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 860px) {
    .auth-group-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
    .intro-heading h2, .certs-heading h2 { font-size: 24px; }
    .intro-metrics { gap: 16px; }
    .auth-group-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
    .auth-group-grid .auth-card { padding: 16px 10px; }
    .auth-desc { font-size: 12px; }
}

/* QA D-2：首页产品区对齐参考站 5 列（断点 1080→4、860→2、560→2） */
.product-band .product-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.product-band .product-grid .product-card .product-name h3 { font-size: 0.95rem; }
@media (max-width: 1080px) {
    .product-band .product-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
    .product-band .product-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
