:root {
    --brand-blue: #1557c0;
    --brand-blue-dark: #0f3f96;
    --brand-yellow: #f6c443;
    --brand-yellow-dark: #b48612;
    --ink: #132238;
    --muted: #526275;
    --line: #dce5f0;
    --surface: #f5f8fc;
    --white: #fff;
    --success: #218653;
    --container: 1260px;
    --header-height: 82px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); background: var(--white); font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif; font-size: 16px; line-height: 1.75; letter-spacing: 0; -webkit-font-smoothing: antialiased; }
body.nav-open { overflow: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; letter-spacing: 0; }
button, a { -webkit-tap-highlight-color: transparent; }
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible, select:focus-visible { outline: 3px solid var(--brand-yellow); outline-offset: 3px; }
h1, h2, h3, h4, p { margin-top: 0; }
h1, h2, h3, h4 { line-height: 1.24; letter-spacing: 0; }
h1 { font-size: 48px; }
h2 { font-size: 36px; }
h3 { font-size: 22px; }
p { color: var(--muted); }
ul, ol { margin-top: 0; }

.site-container { width: min(calc(100% - 48px), var(--container)); margin-inline: auto; }
.section-space { padding: 88px 0; }
.section-kicker { margin-bottom: 10px; color: var(--brand-blue); font-size: 14px; font-weight: 800; letter-spacing: 0; }
.section-kicker::before { content: ""; display: inline-block; width: 28px; height: 3px; margin-right: 10px; background: var(--brand-yellow); vertical-align: middle; }
.lead { font-size: 19px; line-height: 1.8; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; z-index: 1000; top: 12px; left: 12px; padding: 10px 16px; color: var(--white); background: var(--brand-blue); transform: translateY(-160%); }
.skip-link:focus { transform: translateY(0); }

.site-header { position: sticky; z-index: 100; top: 0; height: var(--header-height); border-bottom: 1px solid var(--line); background: rgba(255, 255, 255, .98); box-shadow: 0 8px 24px rgba(20, 55, 100, .06); backdrop-filter: blur(12px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; min-height: var(--header-height); }
.brand { display: inline-flex; align-items: center; min-width: 260px; gap: 13px; }
.brand img { flex: 0 0 auto; width: 56px; height: 56px; border-radius: 12px; box-shadow: 0 8px 16px rgba(21, 87, 192, .18); }
.brand-copy { display: grid; line-height: 1.2; }
.brand-copy strong { color: var(--brand-blue); font-size: 21px; }
.brand-copy small { margin-top: 5px; color: var(--muted); font-size: 11px; }
.primary-nav { display: flex; align-items: center; gap: 28px; }
.primary-nav ul { display: flex; align-items: center; gap: 4px; padding: 0; margin: 0; list-style: none; }
.primary-nav ul a { position: relative; display: block; padding: 28px 12px 26px; color: #3c4b60; font-size: 15px; font-weight: 700; }
.primary-nav ul a::after { content: ""; position: absolute; right: 12px; bottom: 16px; left: 12px; height: 3px; background: var(--brand-yellow); transform: scaleX(0); transform-origin: left; transition: transform .2s ease; }
.primary-nav ul a:hover, .primary-nav ul a:focus-visible { color: var(--brand-blue); }
.primary-nav ul a:hover::after, .primary-nav ul a:focus-visible::after { transform: scaleX(1); }
.header-action { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; min-height: 44px; padding: 0 20px; color: var(--white); background: var(--brand-blue); box-shadow: 0 8px 18px rgba(21, 87, 192, .18); font-size: 14px; font-weight: 800; white-space: nowrap; }
.header-action:hover { background: var(--brand-blue-dark); }
.nav-toggle { display: none; width: 44px; height: 44px; padding: 10px; border: 0; background: transparent; cursor: pointer; }
.nav-toggle span[aria-hidden] { display: block; width: 24px; height: 2px; margin: 5px 0; background: var(--brand-blue); transition: transform .2s ease, opacity .2s ease; }

.button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; padding: 0 26px; border: 2px solid transparent; font-size: 15px; font-weight: 800; transition: transform .2s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.button:hover { transform: translateY(-2px); }
.button-yellow { color: #151515; background: var(--brand-yellow); }
.button-yellow:hover { background: #ffda3b; }
.button-outline-light { color: var(--white); border-color: rgba(255, 255, 255, .72); }
.button-outline-light:hover { color: var(--brand-blue); background: var(--white); }
.text-link { color: var(--brand-blue); font-weight: 800; }
.text-link:hover { text-decoration: underline; text-underline-offset: 4px; }

.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: 38px; }
.section-heading h2 { max-width: 720px; margin-bottom: 0; }
.section-heading > p { max-width: 420px; margin-bottom: 3px; }

.breadcrumbs { padding-top: 18px; padding-bottom: 18px; }
.breadcrumbs ol { display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; list-style: none; color: var(--muted); font-size: 13px; }
.breadcrumbs li + li::before { content: "/"; margin-right: 8px; color: #a4aab2; }
.breadcrumbs a:hover { color: var(--brand-blue); }

.contact-band { color: var(--white); background: linear-gradient(115deg, var(--brand-blue-dark), var(--brand-blue)); }
.contact-band-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; min-height: 300px; padding-top: 52px; padding-bottom: 52px; }
.contact-band .section-kicker, .contact-band h2, .contact-band p { color: var(--white); }
.contact-band h2 { max-width: 760px; margin-bottom: 14px; }
.contact-band p { max-width: 760px; margin-bottom: 0; opacity: .82; }
.contact-actions { display: flex; flex: 0 0 auto; flex-wrap: wrap; gap: 12px; }

.site-footer { color: #e3e5ef; background: #0c1a34; }
.footer-grid { display: grid; grid-template-columns: 1.45fr .8fr 1.1fr 1fr; gap: 48px; padding-top: 64px; padding-bottom: 56px; }
.footer-grid h2 { margin-bottom: 16px; color: var(--white); font-size: 15px; }
.footer-grid p, .footer-grid li { color: #b8bdcc; font-size: 13px; }
.footer-grid ul { padding: 0; margin: 0; list-style: none; }
.footer-grid li { margin: 7px 0; overflow-wrap: anywhere; }
.footer-grid a:hover { color: var(--brand-yellow); }
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand img { border-radius: 8px; }
.footer-brand strong { color: var(--white); font-size: 21px; }
.footer-brand p { margin: 5px 0 0; }
.footer-link { color: var(--brand-yellow); font-size: 13px; font-weight: 800; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .1); }
.footer-bottom .site-container { display: flex; justify-content: space-between; gap: 20px; padding-top: 20px; padding-bottom: 20px; color: #949aab; font-size: 12px; }

@media (max-width: 1080px) {
    h1 { font-size: 42px; }
    h2 { font-size: 32px; }
    .primary-nav { gap: 10px; }
    .primary-nav ul a { padding-inline: 8px; font-size: 14px; }
    .footer-grid { grid-template-columns: 1.3fr 1fr 1fr; }
    .footer-grid > div:last-child { grid-column: 2 / 4; }
}

@media (max-width: 860px) {
    :root { --header-height: 70px; }
    .site-container { width: min(calc(100% - 36px), var(--container)); }
    .section-space { padding: 72px 0; }
    .brand { min-width: 0; }
    .brand img { width: 48px; height: 48px; border-radius: 10px; }
    .brand-copy small { display: none; }
    .nav-toggle { display: block; }
    .primary-nav { position: fixed; z-index: 110; inset: var(--header-height) 0 auto; display: none; max-height: calc(100vh - var(--header-height)); align-items: stretch; padding: 14px 18px 24px; overflow-y: auto; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 16px 32px rgba(15, 63, 150, .16); }
    .nav-open .primary-nav { display: block; }
    .primary-nav ul { display: block; }
    .primary-nav ul a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
    .primary-nav ul a::after { display: none; }
    .header-action { width: 100%; margin-top: 16px; }
    .nav-open .nav-toggle span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-of-type(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }
    body.no-js .site-header { height: auto; }
    body.no-js .header-inner { flex-wrap: wrap; }
    body.no-js .nav-toggle { display: none; }
    body.no-js .primary-nav { position: static; flex: 1 0 100%; display: block; max-height: none; padding: 0 0 16px; border-top: 0; box-shadow: none; }
    .section-heading { display: block; }
    .section-heading > p, .section-heading > a { display: block; margin-top: 16px; }
    .contact-band-inner { display: block; }
    .contact-actions { margin-top: 28px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
    .footer-grid > div:last-child { grid-column: auto; }
}

@media (max-width: 560px) {
    body { font-size: 15px; }
    h1 { font-size: 34px; }
    h2 { font-size: 28px; }
    h3 { font-size: 20px; }
    .site-container { width: min(calc(100% - 28px), var(--container)); }
    .section-space { padding: 58px 0; }
    .brand-copy strong { font-size: 18px; }
    .section-heading { margin-bottom: 28px; }
    .contact-band-inner { min-height: 0; padding-top: 50px; padding-bottom: 50px; }
    .contact-actions { display: grid; }
    .footer-grid { grid-template-columns: 1fr; padding-top: 48px; }
    .footer-bottom .site-container { display: grid; }
}

@media (prefers-reduced-motion: reduce) {
    html { scroll-behavior: auto; }
    *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ==== 换脸追加块：主题换绿 + 新组件 ==== */

/* 主题换绿：值覆盖法，仅覆盖值不改名，全站自动变绿 */
:root {
    --brand-blue: #e71b24;
    --brand-blue-dark: #c01019;
    --jc-radius: 4px;
    --jc-gap: 24px;
    --jc-green-050: #f5f5f5;
}

/* 页头：绿阴影、胶囊按钮、语言切换弱化为描边 */
.brand img { box-shadow: 0 8px 16px rgba(0, 0, 0, .08); }
.header-action { border-radius: 4px; box-shadow: 0 8px 18px rgba(0, 0, 0, .08); }
.primary-nav .header-action.lang-switch { color: var(--brand-blue); background: transparent; border: 1px solid var(--line); box-shadow: none; }
.primary-nav .header-action.lang-switch:hover { color: var(--brand-blue-dark); border-color: var(--brand-blue); background: var(--jc-green-050); }
.button { border-radius: 4px; }

/* 文字链接箭头 */
.text-link::after { content: "→"; display: inline-block; margin-left: 6px; transition: transform .2s ease; }
.text-link:hover::after, .text-link:focus-visible::after { transform: translateX(3px); }

/* 页脚：深色 → 浅色（白底 + 顶部细分割线）覆盖 */
.site-footer { color: var(--muted); background: var(--white); border-top: 1px solid var(--line); }
.footer-grid h2 { color: var(--ink); font-size: 14px; }
.footer-grid p, .footer-grid li { color: var(--muted); }
.footer-grid a:hover { color: var(--brand-blue); }
.footer-brand strong { color: var(--ink); }
.footer-link { color: var(--brand-blue); }
.footer-link:hover { color: var(--brand-blue-dark); }
.footer-bottom { border-top: 1px solid var(--line); }
.footer-bottom .site-container { color: var(--muted); }

/* CTA 条：蓝渐变 → 浅绿大留白覆盖 */
.contact-band { color: var(--ink); background: var(--jc-green-050); }
.contact-band .section-kicker { color: var(--brand-blue); }
.contact-band h2 { color: var(--ink); }
.contact-band p { color: var(--muted); opacity: 1; }
.contact-band .button-outline-light { color: var(--brand-blue); border-color: var(--brand-blue); }
.contact-band .button-outline-light:hover { color: var(--white); background: var(--brand-blue); }
.contact-band-inner { min-height: 260px; }

/* ==== T3/T4 追加块：三列 Header（左导航/中 Logo/右操作）+ 浅色 Footer 重构 ==== */

/* ---------- Header 三列 grid ---------- */
.header-inner { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: var(--jc-gap); }
.header-inner .brand { justify-self: center; min-width: 0; }
.header-inner .brand img { width: 54px; height: 54px; }
.header-actions { display: flex; align-items: center; justify-self: end; gap: 6px; }

/* 图标按钮：搜索（44px 触控目标） */
.icon-button { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 44px; height: 44px; border: 0; border-radius: var(--jc-radius); background: transparent; color: var(--brand-blue); cursor: pointer; }
.icon-button:hover { background: var(--jc-green-050); }
.icon-button svg { width: 22px; height: 22px; }

/* 汉堡：桌面也显示；no-js 时不显示（桌面 no-js 走内联菜单） */
.nav-toggle { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; }
body.no-js .nav-toggle { display: none; }

/* 顶栏内语言切换只保留在抽屉与页脚 */
.primary-nav .lang-switch { display: none; }

/* 下拉子菜单 */
.primary-nav ul > li { position: relative; display: flex; align-items: center; }
.submenu-toggle { display: inline-flex; align-items: center; justify-content: center; width: 20px; height: 44px; padding: 0; border: 0; background: transparent; color: #3c4b60; cursor: pointer; }
.submenu-toggle svg { width: 13px; height: 13px; transition: transform .2s ease; }
.submenu-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.submenu { position: absolute; z-index: 120; top: 100%; left: 0; display: none; min-width: 210px; padding: 8px 0; margin: 0; list-style: none; background: var(--white); border: 1px solid var(--line); border-radius: var(--jc-radius); box-shadow: 0 14px 30px rgba(20, 30, 50, .12); }
.submenu::before { content: ""; position: absolute; top: -6px; right: 0; left: 0; height: 6px; }
.submenu li { display: block; }
.submenu a { display: block; padding: 10px 18px; color: var(--muted); font-size: 14px; font-weight: 500; text-align: left; }
.submenu a::after { display: none; }
.submenu a:hover, .submenu a:focus-visible { color: var(--brand-blue); background: var(--jc-green-050); }

@media (min-width: 861px) {
    .has-submenu:hover > .submenu, .has-submenu:focus-within > .submenu, .has-submenu.submenu-open > .submenu { display: block; }

    /* 桌面抽屉：汉堡复用 body.nav-open，同一元素变 fixed 抽屉 */
    body.nav-open .primary-nav { position: fixed; z-index: 110; inset: var(--header-height) 0 auto; display: block; max-height: calc(100vh - var(--header-height)); padding: 16px 24px 28px; overflow-y: auto; border-top: 1px solid var(--line); background: var(--white); box-shadow: 0 18px 36px rgba(15, 20, 40, .18); }
    body.nav-open .primary-nav ul { display: block; }
    body.nav-open .primary-nav ul > li { display: block; }
    body.nav-open .primary-nav ul > li > a { padding: 13px 4px; border-bottom: 1px solid var(--line); font-size: 16px; }
    body.nav-open .primary-nav ul > li > a::after { display: none; }
    body.nav-open .primary-nav .submenu-toggle { display: none; }
    body.nav-open .primary-nav .submenu { position: static; display: block; min-width: 0; padding: 0 0 4px 18px; border: 0; border-radius: 0; box-shadow: none; }
    body.nav-open .primary-nav .submenu a { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
    body.nav-open .primary-nav .header-action { display: inline-flex; width: 100%; margin-top: 16px; }
    body.nav-open .primary-nav .lang-switch { display: inline-flex; }
    .nav-open .nav-toggle span:nth-of-type(1) { transform: translateY(7px) rotate(45deg); }
    .nav-open .nav-toggle span:nth-of-type(2) { opacity: 0; }
    .nav-open .nav-toggle span:nth-of-type(3) { transform: translateY(-7px) rotate(-45deg); }

    /* 搜索展开面板：绝对定位锚定容器右缘（sticky header 即包含块） */
    body.js .site-header.search-open .header-search { position: absolute; z-index: 130; top: 100%; right: max(14px, calc((100% - var(--container)) / 2)); display: flex; gap: 8px; margin-top: 10px; padding: 10px; background: var(--white); border: 1px solid var(--line); border-radius: var(--jc-radius); box-shadow: 0 14px 30px rgba(20, 30, 50, .14); }
}

/* 搜索表单本体（默认隐藏：桌面由 search-open 展开，移动端在抽屉内显示） */
.header-search { display: none; }
.header-search input[type="search"] { width: 240px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--line); border-radius: var(--jc-radius); font-size: 14px; background: var(--white); color: var(--ink); }
.header-search button { min-height: 44px; padding: 8px 18px; border: 0; border-radius: var(--jc-radius); color: var(--white); background: var(--brand-blue); font-size: 14px; font-weight: 800; cursor: pointer; }
.header-search button:hover { background: var(--brand-blue-dark); }

@media (max-width: 1080px) {
    /* 中距下联系按钮收进抽屉，避免左列溢出 */
    .primary-nav > .header-action { display: none; }
}

@media (max-width: 860px) {
    /* 移动端搜索入口在抽屉内，顶栏图标隐藏 */
    .search-toggle { display: none; }
    .primary-nav ul > li { display: block; }
    .submenu-toggle { display: none; }
    .submenu { position: static; display: block; min-width: 0; padding: 0 0 2px 18px; border: 0; border-radius: 0; box-shadow: none; }
    .submenu a { padding: 11px 4px; border-bottom: 1px solid var(--line); font-size: 15px; }
    .primary-nav .lang-switch { display: inline-flex; }
    .primary-nav > .header-action { display: inline-flex; }
    .header-search { display: flex; gap: 8px; margin-top: 16px; }
    .header-search input[type="search"] { flex: 1 1 auto; width: auto; }
}

/* ---------- Footer：列数可变，grid 改 flex-wrap 自适应 ---------- */
.footer-grid { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 44px 40px; }
.footer-contact-col { flex: 1 1 240px; max-width: 340px; }
.footer-links-col { flex: 1 1 150px; }
.footer-company { display: block; margin: 0 0 12px; color: var(--ink); font-size: 16px; font-weight: 800; }
.footer-qr-col { flex: 0 0 auto; }
.footer-qr-col img { width: 104px; height: 104px; border: 1px solid var(--line); border-radius: var(--jc-radius); background: var(--white); }
.footer-qr-col p { margin: 8px 0 0; font-size: 12px; }

@media (max-width: 560px) {
    .footer-contact-col, .footer-links-col, .footer-qr-col { flex: 1 1 100%; max-width: none; }
}

/* QA D-1：no-js 移动端 header 三列 grid 回退为纵向 flex，避免菜单挤压 */
@media (max-width: 860px) {
    body.no-js .header-inner { display: flex; flex-wrap: wrap; }
}
