/*
 * 前台官网公共样式：所有主题共用的组件，外观由 CSS 变量决定（主题的 theme.css 覆盖变量 + 自己的特色样式）
 * 断点：900px 以下平板 / 手机（导航折叠为菜单按钮）
 */
:root {
  --primary: #1a66d6;
  --primary-ink: #ffffff;
  --text: #0f172a;
  --muted: #5b6475;
  --faint: #8a93a3;
  --line: #e6e8ee;
  --bg: #ffffff;
  --bg-soft: #f5f7fb;
  --bg-dark: #0b1220;
  --radius: 14px;
  --radius-sm: 8px;
  --container: 1200px;
  --header-h: 72px;
  --font: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font);
  --heading-weight: 600;
  --heading-spacing: -0.01em;
  --eyebrow-transform: none;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }
body { overflow-x: clip; }
body { margin: 0; font-family: var(--font); color: var(--text); background: var(--bg); font-size: 16px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--font-heading); font-weight: var(--heading-weight); letter-spacing: var(--heading-spacing); line-height: 1.25; margin: 0; }
p { margin: 0; }
.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.muted { color: var(--muted); }
.faint { color: var(--faint); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent; font-size: 15px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn-primary { background: var(--primary); color: var(--primary-ink); }
.btn-primary:hover { filter: brightness(1.08); }
.btn-outline { border-color: var(--line); background: var(--bg); color: var(--text); }
.btn-outline:hover { border-color: var(--text); }
.btn-light { border-color: rgba(255, 255, 255, .55); color: #fff; background: rgba(255, 255, 255, .08); backdrop-filter: blur(6px); }
.btn-light:hover { background: rgba(255, 255, 255, .18); }
.btn-sm { height: 36px; padding: 0 16px; font-size: 14px; }
.btn-block { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; color: var(--primary); font-weight: 500; }
.link-arrow::after { content: "→"; transition: transform .2s; }
.link-arrow:hover::after { transform: translateX(3px); }

/* ---------- 顶部导航 ---------- */
.header { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); transition: background .3s, border-color .3s; }
.header .container { height: 100%; display: flex; align-items: center; gap: 20px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 19px; flex: none; }
.logo img { height: 34px; width: auto; }
.nav { display: flex; align-items: center; gap: 4px; flex: 1; }
.nav-item { position: relative; }
.nav-link { display: flex; align-items: center; height: var(--header-h); padding: 0 11px; font-size: 15px; white-space: nowrap; color: var(--text); transition: color .2s; }
.nav-link:hover, .nav-item.active > .nav-link { color: var(--primary); }
.nav-item.has-sub > .nav-link::after { content: ""; width: 6px; height: 6px; margin-left: 6px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg) translateY(-2px); opacity: .6; }
.nav-sub { position: absolute; top: calc(100% - 8px); left: 0; min-width: 180px; padding: 8px; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: var(--shadow); opacity: 0; visibility: hidden; transform: translateY(6px); transition: all .2s; }
.nav-item:hover .nav-sub { opacity: 1; visibility: visible; transform: none; }
.nav-sub a { display: block; padding: 8px 12px; border-radius: 6px; font-size: 14px; color: var(--muted); }
.nav-sub a:hover { background: var(--bg-soft); color: var(--primary); }
.header-tools { display: flex; align-items: center; gap: 6px; margin-left: auto; flex: none; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 0; background: transparent; cursor: pointer; color: var(--text); }
.icon-btn:hover { background: var(--bg-soft); }
.icon-btn svg { width: 20px; height: 20px; }
.lang-switch { position: relative; }
.lang-switch > button { display: flex; align-items: center; gap: 6px; height: 36px; padding: 0 12px; white-space: nowrap; border: 1px solid var(--line); border-radius: 999px; background: transparent; font-size: 13px; cursor: pointer; }
.lang-switch svg { width: 16px; height: 16px; flex: none; }
.lang-switch .nav-sub { right: 0; left: auto; top: calc(100% + 6px); min-width: 140px; }
.lang-switch:hover .nav-sub, .lang-switch:focus-within .nav-sub { opacity: 1; visibility: visible; transform: none; }
.menu-btn { display: none; }
.search-bar { position: absolute; left: 0; right: 0; top: 100%; background: var(--bg); border-bottom: 1px solid var(--line); padding: 16px 0; display: none; }
.search-bar.open { display: block; }
.search-bar form { display: flex; gap: 10px; }
.search-bar input { flex: 1; height: 46px; padding: 0 18px; border: 1px solid var(--line); border-radius: 999px; outline: none; }
.search-bar input:focus { border-color: var(--primary); }

/* 首页大图上的透明导航 */
.header.on-hero:not(.scrolled) { background: transparent; border-color: transparent; backdrop-filter: none; }
.header.on-hero:not(.scrolled) .nav-link, .header.on-hero:not(.scrolled) .logo, .header.on-hero:not(.scrolled) .icon-btn { color: #fff; }
.header.on-hero:not(.scrolled) .lang-switch > button { color: #fff; border-color: rgba(255, 255, 255, .4); }
.header.on-hero:not(.scrolled) .icon-btn:hover { background: rgba(255, 255, 255, .12); }
body.has-hero .header { position: fixed; left: 0; right: 0; }

/* ---------- 区块通用 ---------- */
.section { padding: 96px 0; }
.section-soft { background: var(--bg-soft); }
.section-dark { background: var(--bg-dark); color: #fff; }
.section-dark .muted { color: rgba(255, 255, 255, .7); }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 48px; }
.section-head.center { flex-direction: column; align-items: center; text-align: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; color: var(--primary); font-size: 14px; font-weight: 500; margin-bottom: 14px; text-transform: var(--eyebrow-transform); letter-spacing: .02em; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; }
.section-title { font-size: clamp(28px, 3.4vw, 42px); }
.section-desc { max-width: 520px; color: var(--muted); }
.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); }

/* ---------- 首页大图 ---------- */
.hero { position: relative; min-height: 640px; height: 100vh; max-height: 860px; color: #fff; overflow: hidden; background: var(--bg-dark); }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s ease; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 12, 26, .72) 0%, rgba(5, 12, 26, .35) 55%, rgba(5, 12, 26, .1) 100%); }
.hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: center; padding-top: var(--header-h); }
.hero h1 { font-size: clamp(38px, 6vw, 72px); max-width: 760px; font-weight: 500; letter-spacing: -0.02em; }
.hero p { max-width: 560px; margin-top: 20px; font-size: 18px; color: rgba(255, 255, 255, .82); }
.hero .actions { display: flex; gap: 12px; margin-top: 36px; flex-wrap: wrap; }
.hero-dots { position: absolute; z-index: 3; bottom: 120px; left: 50%; transform: translateX(-50%); display: flex; gap: 8px; }
.hero-dots button { width: 28px; height: 3px; border: 0; padding: 0; background: rgba(255, 255, 255, .4); cursor: pointer; }
.hero-dots button.active { background: #fff; }

/* Logo 滚动条 */
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 64px; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: flex; align-items: center; gap: 10px; height: 44px; color: inherit; opacity: .75; font-weight: 600; font-size: 18px; white-space: nowrap; }
.marquee-item img { height: 32px; width: auto; filter: grayscale(1); }
@keyframes marquee { to { transform: translateX(-50%); } }
.hero .marquee { position: absolute; z-index: 2; left: 0; right: 0; bottom: 36px; color: #fff; }

/* 数据亮点 */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.stat-value { font-family: var(--font-heading); font-size: clamp(34px, 4vw, 52px); font-weight: 600; color: var(--primary); line-height: 1.1; }
.stat-label { margin-top: 8px; color: var(--muted); font-size: 15px; }

/* ---------- 卡片 ---------- */
.card { position: relative; display: flex; flex-direction: column; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s, transform .25s, border-color .25s; }
a.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--bg-soft); }
.card-img.wide { aspect-ratio: 16 / 10; }
.card-img.square { aspect-ratio: 1; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
a.card:hover .card-img img { transform: scale(1.04); }
.card-body { padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 19px; font-weight: 600; line-height: 1.4; }
.card-text { color: var(--muted); font-size: 15px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; font-size: 13px; color: var(--faint); margin-top: auto; }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 10px; border-radius: 999px; background: var(--bg-soft); color: var(--muted); font-size: 12.5px; }
.tag-primary { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }

/* 图片叠字卡片（服务 / 方案） */
.photo-card { position: relative; display: block; border-radius: var(--radius); overflow: hidden; min-height: 280px; color: #fff; background: var(--bg-dark); }
.photo-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.photo-card::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(5, 12, 26, .78)); }
.photo-card:hover img { transform: scale(1.05); }
.photo-card .inner { position: absolute; z-index: 1; left: 24px; right: 24px; bottom: 22px; display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; }
.photo-card h3 { font-size: 21px; }
.photo-card p { margin-top: 6px; font-size: 14px; color: rgba(255, 255, 255, .78); }
.round-arrow { flex: none; display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; background: rgba(255, 255, 255, .16); backdrop-filter: blur(6px); }
.services-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 20px; }
.services-grid .photo-card:first-child { grid-row: span 2; min-height: 580px; }

/* ---------- 内页 ---------- */
.page-hero { position: relative; padding: 120px 0 64px; background: var(--bg-dark) center / cover no-repeat; color: #fff; overflow: hidden; }
.page-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(5, 12, 26, .82), rgba(5, 12, 26, .45)); }
.page-hero .container { position: relative; z-index: 1; }
.page-hero h1 { font-size: clamp(32px, 4.4vw, 52px); }
.page-hero p { margin-top: 12px; color: rgba(255, 255, 255, .78); max-width: 640px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 13px; color: rgba(255, 255, 255, .7); margin-bottom: 18px; }
.crumbs a:hover { color: #fff; }
.crumbs span + span::before, .crumbs a + span::before, .crumbs a + a::before { content: "/"; margin-right: 8px; opacity: .5; }
.sub-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 40px; }
.sub-tabs a { padding: 8px 18px; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.sub-tabs a.active, .sub-tabs a:hover { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.with-side { display: grid; grid-template-columns: 240px 1fr; gap: 48px; align-items: start; }
.side-nav { position: sticky; top: calc(var(--header-h) + 24px); border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; }
.side-nav h4 { padding: 10px 14px; font-size: 15px; color: var(--faint); }
.side-nav a { display: block; padding: 10px 14px; border-radius: var(--radius-sm); color: var(--muted); }
.side-nav a.active, .side-nav a:hover { background: var(--bg-soft); color: var(--primary); }

/* 正文排版 */
.prose { font-size: 16.5px; line-height: 1.9; color: #263043; overflow-wrap: anywhere; }
.prose > * + * { margin-top: 1.1em; }
.prose h2 { font-size: 26px; margin-top: 1.8em; }
.prose h3 { font-size: 21px; margin-top: 1.5em; }
.prose img { border-radius: var(--radius-sm); height: auto; }
.prose a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose blockquote { margin-left: 0; padding: 12px 20px; border-left: 3px solid var(--primary); background: var(--bg-soft); color: var(--muted); }
.prose table { width: 100%; border-collapse: collapse; }
.prose th, .prose td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
/* 商品详情：详情图常是一张长图切成多段，要无缝拼接（不留间距、不加圆角、去掉行内图片底部空隙） */
.goods-prose img { display: block; max-width: 100%; margin: 0 auto; border-radius: 0; }
.goods-prose img + br { display: none; }
.goods-prose > :is(img, :has(img)) + :is(img, :has(img)) { margin-top: 0; }

/* 文章列表 */
.post-list { display: flex; flex-direction: column; }
.post-item { display: grid; grid-template-columns: 260px 1fr; gap: 28px; padding: 28px 0; border-bottom: 1px solid var(--line); }
.post-item.no-img { grid-template-columns: 1fr; }
.post-item .card-img { border-radius: var(--radius-sm); aspect-ratio: 16 / 10; }
.post-date { display: flex; flex-direction: column; align-items: center; justify-content: center; width: 72px; height: 72px; border-radius: var(--radius-sm); background: var(--bg-soft); flex: none; }
.post-date b { font-size: 24px; line-height: 1; color: var(--primary); }
.post-date span { font-size: 12px; color: var(--faint); margin-top: 4px; }
.post-item h3 { font-size: 20px; margin-bottom: 8px; }
.post-item h3 a:hover { color: var(--primary); }

/* 分页 */
.pager { display: flex; justify-content: center; flex-wrap: wrap; gap: 6px; margin-top: 56px; }
.pager a, .pager span { min-width: 40px; height: 40px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: 999px; border: 1px solid var(--line); font-size: 14px; color: var(--muted); }
.pager a:hover { border-color: var(--primary); color: var(--primary); }
.pager .current { background: var(--primary); border-color: var(--primary); color: var(--primary-ink); }
.pager .disabled { opacity: .4; }

/* 详情页 */
.article { max-width: 820px; margin: 0 auto; }
.article-head { padding-bottom: 28px; margin-bottom: 36px; border-bottom: 1px solid var(--line); }
.article-head h1 { font-size: clamp(28px, 3.6vw, 40px); }
.article-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; color: var(--faint); font-size: 14px; }
.article-foot { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 1fr 1fr; gap: 16px; font-size: 14px; }
.article-foot a { display: block; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.article-foot a:hover { border-color: var(--primary); }
.article-foot small { display: block; color: var(--faint); margin-bottom: 4px; }
.article-foot .next { text-align: right; }
.tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.tags a:hover { color: var(--primary); }

/* 产品详情 */
.product-top { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: start; }
.gallery-main { aspect-ratio: 1; border-radius: var(--radius); overflow: hidden; background: var(--bg-soft); border: 1px solid var(--line); }
.gallery-main img { width: 100%; height: 100%; object-fit: contain; }   /* 商品图整张显示不裁切 */
.gallery-thumbs { display: flex; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.gallery-thumbs button { width: 72px; height: 72px; padding: 0; border: 2px solid transparent; border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; background: var(--bg-soft); }
.gallery-thumbs button.active { border-color: var(--primary); }
.gallery-thumbs img { width: 100%; height: 100%; object-fit: contain; }

/* 图集放大镜与全屏大图 */
.gallery-main, .pd-main { position: relative; }
[data-gallery-main] { cursor: zoom-in; }
.gallery-lens { position: fixed; z-index: 80; pointer-events: none; border-radius: 4px; border: 1px solid rgba(255, 255, 255, .85); background: rgba(255, 255, 255, .16); box-shadow: 0 0 0 1px rgba(0, 0, 0, .22), 0 10px 26px rgba(0, 0, 0, .16); opacity: 0; transition: opacity .12s ease; }
.gallery-zoom { position: fixed; z-index: 80; pointer-events: none; border-radius: var(--radius-sm); border: 1px solid var(--line); background-color: var(--bg-soft); background-repeat: no-repeat; box-shadow: 0 24px 60px rgba(0, 0, 0, .2); opacity: 0; transition: opacity .14s ease; }
.gallery-lens.is-on, .gallery-zoom.is-on { opacity: 1; }
.gallery-viewer { position: fixed; inset: 0; z-index: 120; display: flex; align-items: center; justify-content: center; padding: 32px; background: rgba(12, 12, 14, .92); opacity: 0; cursor: zoom-out; transition: opacity .18s ease; }
.gallery-viewer.is-on { opacity: 1; }
.gallery-viewer img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: var(--radius-sm); box-shadow: 0 30px 80px rgba(0, 0, 0, .5); }
.gallery-viewer-close { position: absolute; top: 20px; right: 20px; width: 44px; height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 0; border: 1px solid rgba(255, 255, 255, .28); border-radius: 50%; background: rgba(255, 255, 255, .08); color: #fff; font-size: 18px; line-height: 1; cursor: pointer; transition: background .2s ease, transform .2s ease; }
.gallery-viewer-close:hover { background: rgba(255, 255, 255, .2); transform: rotate(90deg); }
body.viewer-open { overflow: hidden; }
@media (max-width: 900px) {
  .gallery-lens, .gallery-zoom { display: none; }
  .gallery-viewer { padding: 0; }
  .gallery-viewer-close { top: 14px; right: 14px; }
}
.product-info h1 { font-size: clamp(26px, 3vw, 36px); }
.price { font-family: var(--font-heading); font-size: 30px; font-weight: 600; color: var(--primary); margin-top: 16px; }
.price small { font-size: 15px; color: var(--faint); font-weight: 400; margin-left: 8px; }
.feature-list { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.feature-list li { position: relative; padding-left: 28px; color: var(--muted); }
.feature-list li::before { content: ""; position: absolute; left: 0; top: .55em; width: 16px; height: 9px; border-left: 2px solid var(--primary); border-bottom: 2px solid var(--primary); transform: rotate(-45deg); }
.spec-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.spec-table th, .spec-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 30%; color: var(--muted); font-weight: 500; background: var(--bg-soft); }
.sku-group { margin-top: 22px; }
.sku-group > div:first-child { font-size: 14px; color: var(--muted); margin-bottom: 10px; }
.sku-values { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { min-width: 52px; height: 40px; padding: 0 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; font-size: 14px; transition: all .15s; }
.chip:hover { border-color: var(--text); }
.chip.active { border-color: var(--primary); color: var(--primary); box-shadow: inset 0 0 0 1px var(--primary); }
.chip:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.stock-line { margin-top: 16px; font-size: 14px; color: var(--muted); }
.stock-line.out { color: #d03b3b; }
.info-box { margin-top: 28px; padding: 20px 22px; border-radius: var(--radius); background: var(--bg-soft); display: grid; gap: 8px; font-size: 14px; color: var(--muted); }
.info-box b { color: var(--text); font-weight: 500; margin-right: 6px; }

/* 时间轴（发展历程） */
.timeline { position: relative; max-width: 860px; margin: 0 auto; }
.timeline::before { content: ""; position: absolute; left: 120px; top: 8px; bottom: 8px; width: 1px; background: var(--line); }
.timeline-item { position: relative; display: grid; grid-template-columns: 120px 1fr; gap: 48px; padding-bottom: 44px; }
.timeline-item::before { content: ""; position: absolute; left: 114px; top: 8px; width: 13px; height: 13px; border-radius: 50%; background: var(--bg); border: 3px solid var(--primary); }
.timeline-year { font-family: var(--font-heading); font-size: 28px; font-weight: 600; color: var(--primary); line-height: 1.2; }
.timeline-item h3 { font-size: 19px; margin-bottom: 6px; }

/* 招聘 */
.job-row { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 26px 28px; border: 1px solid var(--line); border-radius: var(--radius); transition: border-color .2s, box-shadow .2s; }
.job-row + .job-row { margin-top: 14px; }
.job-row:hover { border-color: var(--primary); box-shadow: var(--shadow); }
.job-row h3 { font-size: 19px; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 8px; color: var(--muted); font-size: 14px; }
.job-meta span::before { content: "·"; margin-right: 8px; color: var(--faint); }
.job-meta span:first-child::before { display: none; }
.salary { font-weight: 600; color: var(--primary); font-size: 17px; }

/* ---------- 表单 ---------- */
.form { display: grid; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field label { display: block; font-size: 14px; color: var(--muted); margin-bottom: 6px; }
.field label i { color: #d03b3b; font-style: normal; margin-left: 2px; }
.field input, .field textarea, .field select { width: 100%; padding: 12px 16px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); outline: none; transition: border-color .2s, box-shadow .2s; }
.field textarea { min-height: 130px; resize: vertical; }
.field input:focus, .field textarea:focus { border-color: var(--primary); box-shadow: 0 0 0 3px color-mix(in srgb, var(--primary) 14%, transparent); }
.hp { position: absolute !important; left: -9999px !important; }
.alert { padding: 14px 18px; border-radius: var(--radius-sm); font-size: 14px; }
.alert-success { background: #e9f8ef; color: #17733f; }
.alert-error { background: #fdecec; color: #b42323; }
.form-card { padding: 36px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.form-card h3 { font-size: 22px; margin-bottom: 6px; }

/* 联系方式 */
.contact-cards { display: grid; gap: 16px; }
.contact-card { display: flex; gap: 16px; padding: 22px 24px; border-radius: var(--radius); background: var(--bg-soft); }
.contact-card .ico { flex: none; width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: flex; align-items: center; justify-content: center; }
.contact-card .ico svg { width: 20px; height: 20px; }
.contact-card small { display: block; color: var(--faint); font-size: 13px; }
.contact-card b { font-weight: 500; }

/* CTA */
.cta { position: relative; border-radius: calc(var(--radius) * 1.6); padding: 72px; background: var(--bg-dark); color: #fff; overflow: hidden; display: flex; align-items: center; justify-content: space-between; gap: 32px; }
.cta::before { content: ""; position: absolute; right: -120px; top: -120px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, color-mix(in srgb, var(--primary) 70%, transparent), transparent 70%); opacity: .6; }
.cta > * { position: relative; }
.cta h2 { font-size: clamp(26px, 3vw, 38px); }
.cta p { margin-top: 10px; color: rgba(255, 255, 255, .72); max-width: 560px; }

/* ---------- 页脚 ---------- */
.footer { background: var(--bg-dark); color: rgba(255, 255, 255, .72); padding: 72px 0 32px; font-size: 14px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr) auto; gap: 40px; }
.footer .logo { color: #fff; margin-bottom: 16px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.footer a:hover { color: #fff; }
.footer-qr img { width: 112px; height: 112px; border-radius: var(--radius-sm); background: #fff; padding: 6px; }
.footer-bottom { margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .1); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; font-size: 13px; color: rgba(255, 255, 255, .5); }
.footer-bottom a:hover { color: #fff; }
.friend-links { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-top: 16px; font-size: 13px; color: rgba(255, 255, 255, .5); }

/* 右侧悬浮 */
.float-tools { position: fixed; right: 20px; bottom: 28px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.float-tools a, .float-tools button { width: 48px; height: 48px; border-radius: 50%; border: 0; display: flex; align-items: center; justify-content: center; background: var(--bg); color: var(--text); box-shadow: var(--shadow); cursor: pointer; }
.float-tools .main { background: var(--primary); color: var(--primary-ink); }
.float-tools svg { width: 20px; height: 20px; }
.to-top { opacity: 0; pointer-events: none; transition: opacity .3s; }
.to-top.show { opacity: 1; pointer-events: auto; }

.empty { padding: 80px 0; text-align: center; color: var(--faint); }
.notfound { padding: 140px 0; text-align: center; }
.notfound b { display: block; font-size: 110px; line-height: 1; color: var(--primary); font-family: var(--font-heading); }

/* 进入视口淡入 */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } .marquee-track { animation: none; } }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .grid-4, .stats { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1240px) {
  .nav-link { padding: 0 8px; font-size: 14px; }
  .lang-switch .label { display: none; }
}
@media (max-width: 900px) {
  :root { --header-h: 62px; }
  .section { padding: 64px 0; }
  .menu-btn { display: inline-flex; }
  .nav { position: fixed; top: var(--header-h); left: 0; right: 0; bottom: 0; flex-direction: column; align-items: stretch; gap: 0; padding: 12px 24px 40px; background: var(--bg); overflow-y: auto; transform: translateX(100%); transition: transform .3s; }
  /* 顶栏有 backdrop-filter，会成为 fixed 子元素的定位参照：bottom: 0 只到顶栏底部（菜单只露一行），所以明确写高度 */
  .nav { bottom: auto; height: calc(100vh - var(--header-h)); height: calc(100dvh - var(--header-h)); }
  .nav.open { transform: none; }
  .nav-link, .header.on-hero:not(.scrolled) .nav.open .nav-link { height: auto; padding: 14px 0; border-bottom: 1px solid var(--line); color: var(--text); }
  .nav .nav-sub { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: 4px 0 8px 14px; }
  .grid-2, .grid-3, .grid-4, .services-grid, .with-side, .product-top, .form-row, .post-item { grid-template-columns: 1fr; }
  .services-grid .photo-card:first-child { min-height: 320px; grid-row: auto; }
  .section-head { flex-direction: column; align-items: flex-start; }
  .side-nav { position: static; }
  .cta { flex-direction: column; align-items: flex-start; padding: 44px 28px; }
  .timeline::before { left: 7px; }
  .timeline-item { grid-template-columns: 1fr; gap: 6px; padding-left: 32px; }
  .timeline-item::before { left: 1px; }
  .hero-dots { bottom: 100px; }
}
@media (max-width: 560px) {
  .container { padding: 0 18px; }
  .stats, .grid-4 { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .form-card { padding: 24px; }
  .article-foot { grid-template-columns: 1fr; }
  .job-row { grid-template-columns: 1fr; }
}

/* ---------- 商城：购买区、购物车、结算、支付、会员中心 ---------- */
.icon-btn.has-badge { position: relative; }
.icon-btn.has-badge b { position: absolute; top: 2px; right: 0; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 999px; background: var(--primary); color: var(--primary-ink); font-size: 10.5px; line-height: 17px; text-align: center; font-weight: 600; }
.icon-btn.has-badge b[hidden] { display: none; }
.site-toast { position: fixed; left: 50%; top: 90px; z-index: 200; transform: translate(-50%, -10px); max-width: calc(100% - 32px); padding: 12px 20px; border-radius: var(--radius-sm); background: #111827; color: #fff; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); opacity: 0; transition: opacity .25s, transform .25s; pointer-events: none; }
.site-toast.show { opacity: 1; transform: translate(-50%, 0); }
.site-toast.error { background: #b42323; }
.buy-box { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.buy-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.qty-stepper { display: inline-flex; align-items: center; height: 46px; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; }
.qty-stepper button { width: 40px; height: 100%; border: 0; background: transparent; cursor: pointer; font-size: 18px; color: var(--muted); }
.qty-stepper button:hover { background: var(--bg-soft); color: var(--text); }
.qty-stepper input { width: 48px; height: 100%; border: 0; text-align: center; outline: none; background: transparent; -moz-appearance: textfield; }
.qty-stepper input::-webkit-inner-spin-button, .qty-stepper input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.qty-stepper.sm { height: 34px; }
.qty-stepper.sm button { width: 30px; font-size: 15px; }
.qty-stepper.sm input { width: 40px; font-size: 14px; }
.member-head { padding: 40px 0 28px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.member-head h1 { font-size: clamp(24px, 2.6vw, 32px); }
.member-head .crumbs { color: var(--faint); margin-bottom: 10px; }
.member-head .crumbs a:hover { color: var(--primary); }
.auth-wrap { display: flex; justify-content: center; }
.auth-card { width: 100%; max-width: 440px; }
.auth-card h1 { font-size: 28px; margin-bottom: 6px; }
.auth-switch { margin-top: 20px; text-align: center; font-size: 14px; }
.auth-switch a { color: var(--primary); }
.form { display: grid; gap: 16px; }
.check { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); cursor: pointer; }
.check input, .order-line > input[type="checkbox"] { width: 16px; height: 16px; accent-color: var(--primary); }
.member-side { padding: 0 10px 10px; }
.member-card { display: flex; align-items: center; gap: 12px; padding: 16px 8px; margin-bottom: 6px; border-bottom: 1px solid var(--line); }
.member-card .avatar { width: 42px; height: 42px; flex: none; border-radius: 50%; background: var(--primary); color: var(--primary-ink); display: grid; place-items: center; font-weight: 600; }
.member-card b { display: block; font-weight: 500; line-height: 1.3; }
.member-card small { color: var(--faint); font-size: 12.5px; }
.member-side + div .sub-tabs { margin-bottom: 20px; }
.order-card { border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); margin-bottom: 16px; overflow: hidden; }
.order-card-head, .order-card-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 12px 18px; font-size: 14px; background: var(--bg-soft); }
.order-card-foot { background: transparent; border-top: 1px solid var(--line); }
.order-line { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-top: 1px solid var(--line); font-size: 15px; }
.order-card-head + .order-line, .order-card > .order-line:first-child { border-top: 0; }
.order-line img { width: 64px; height: 64px; object-fit: cover; flex: none; border-radius: var(--radius-sm); background: var(--bg-soft); }
.order-line .grow, .grow { flex: 1; min-width: 0; }
.order-line a:hover { color: var(--primary); }
.order-line.invalid { opacity: .55; }
.order-line small { display: block; font-size: 13px; }
.warn-text { color: #c2410c; }
.money { color: #d0342c; font-weight: 600; }
.money.big { font-size: 32px; line-height: 1.2; margin-top: 4px; }
.status-pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: 999px; font-size: 12.5px; background: var(--bg-soft); color: var(--muted); }
.status-pill.warn { background: #fff4e5; color: #b45309; }
.status-pill.info { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.status-pill.ok { background: #e9f8ef; color: #17733f; }
.order-banner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); }
.order-banner .status-pill { height: 28px; font-size: 14px; padding: 0 14px; }
.order-banner .actions { display: flex; gap: 10px; }
.sum-lines { display: grid; gap: 10px; padding: 16px 18px; font-size: 14px; color: var(--muted); }
.order-card .sum-lines { border-top: 1px solid var(--line); margin-left: auto; max-width: 340px; border-top: 0; }
.sum-lines > div { display: flex; justify-content: space-between; gap: 16px; }
.sum-lines .total { padding-top: 10px; border-top: 1px dashed var(--line); color: var(--text); font-size: 15px; }
.sum-lines .total .money { font-size: 20px; }
.cart-layout { display: grid; grid-template-columns: 1fr 320px; gap: 28px; align-items: start; }
.cart-layout .summary { position: sticky; top: calc(var(--header-h) + 24px); padding: 20px; }
.cart-layout .summary .sum-lines { padding: 0; }
.btn.disabled { opacity: .5; pointer-events: none; }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.block-title { font-size: 18px; margin-bottom: 14px; }
.address-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin-bottom: 16px; }
.address-card { display: flex; flex-direction: column; gap: 6px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); font-size: 14px; }
.address-card p { font-size: 13.5px; margin-top: 4px; }
.address-card .links { display: flex; gap: 14px; margin-top: auto; padding-top: 6px; font-size: 13px; color: var(--primary); }
.address-card.pick { flex-direction: row; align-items: flex-start; gap: 12px; cursor: pointer; transition: border-color .2s; }
.address-card.pick input { margin-top: 5px; accent-color: var(--primary); }
.address-card.pick:has(input:checked) { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.address-form { padding: 18px 22px; margin-top: 8px; }
.address-form summary { cursor: pointer; color: var(--primary); font-size: 15px; }
.pay-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 12px; padding-bottom: 20px; border-bottom: 1px solid var(--line); }
.pay-channels { display: flex; flex-wrap: wrap; gap: 12px; }
.pay-channel { min-width: 150px; height: 52px; padding: 0 20px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; font-size: 15px; display: inline-flex; align-items: center; gap: 10px; }
.pay-channel::before { content: ""; width: 10px; height: 10px; border-radius: 50%; background: #07c160; }
.pay-channel.alipay::before { background: #1677ff; }
.pay-channel.active, .pay-channel:hover { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); }
.qr-box { margin-top: 24px; text-align: center; display: grid; justify-items: center; gap: 8px; }
.qr-box[hidden] { display: none; }
.qr { width: 220px; height: 220px; padding: 10px; border: 1px solid var(--line); background: #fff; }
.qr svg { width: 100%; height: 100%; }
@media (max-width: 900px) {
  .cart-layout { grid-template-columns: 1fr; }
  .cart-layout .summary { position: static; }
  .order-line { flex-wrap: wrap; gap: 10px 14px; }
  .order-line .grow { flex-basis: calc(100% - 110px); }
  .site-toast { top: 76px; }
  .member-side { display: flex; gap: 4px; padding: 6px; overflow-x: auto; }
  .member-side .member-card { display: none; }
  .member-side a { flex: none; white-space: nowrap; }
  .with-side { gap: 20px; }
  .order-banner .actions { width: 100%; }
}

/* ---------- 会员中心：首页、余额、充值、余额支付 ---------- */
.member-side a { display: flex; align-items: center; }
.side-num { margin-left: auto; font-size: 12.5px; color: var(--faint); }
.member-main { display: grid; gap: 20px; min-width: 0; }
.member-hero { display: grid; grid-template-columns: 1fr 1.1fr; gap: 20px; }
.member-hero .who { display: flex; align-items: center; gap: 16px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.member-hero h2 { font-size: 22px; }
.avatar.lg { width: 60px; height: 60px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--primary); color: var(--primary-ink); font-size: 24px; font-weight: 600; }
.balance-card { position: relative; overflow: hidden; padding: 24px 26px; border-radius: var(--radius); color: #fff; background: linear-gradient(135deg, var(--primary), color-mix(in srgb, var(--primary) 55%, #000)); }
.balance-card::after { content: ""; position: absolute; right: -60px; top: -60px; width: 200px; height: 200px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.balance-card small { opacity: .8; font-size: 13px; }
.balance-card .num { margin-top: 4px; font-family: var(--font-heading); font-size: 36px; font-weight: 600; line-height: 1.2; }
.balance-card .acts { position: relative; z-index: 1; display: flex; align-items: center; gap: 16px; margin-top: 14px; font-size: 13.5px; }
.balance-card .acts .link { opacity: .85; }
.balance-card .acts .link:hover { opacity: 1; }
.balance-card.wide { padding: 30px 32px; }
.balance-card.wide .num { font-size: 44px; }
.order-stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.order-stats a { padding: 22px 12px; text-align: center; transition: background .2s; }
.order-stats a + a { border-left: 1px solid var(--line); }
.order-stats a:hover { background: var(--bg-soft); }
.order-stats b { display: block; font-family: var(--font-heading); font-size: 28px; line-height: 1.2; color: var(--text); }
.order-stats span { font-size: 13.5px; color: var(--muted); }
.member-block { padding: 22px 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.member-block .block-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.member-block .block-head h3 { font-size: 18px; }
.mini-order { display: flex; align-items: center; gap: 16px; padding: 14px 0; border-top: 1px solid var(--line); }
.mini-order:first-of-type { border-top: 0; padding-top: 0; }
.mini-order .thumbs { display: flex; flex: none; }
.mini-order .thumbs img { width: 52px; height: 52px; object-fit: cover; border-radius: var(--radius-sm); border: 2px solid var(--bg); background: var(--bg-soft); }
.mini-order .thumbs img + img { margin-left: -14px; }
.mini-order:hover .grow > div { color: var(--primary); }
.mini-order small { display: block; }
.balance-logs { display: flex; flex-direction: column; }
.balance-log { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.balance-log:first-child { border-top: 0; }
.balance-log small { display: block; font-size: 12.5px; margin-top: 2px; }
.balance-log b { font-weight: 500; }
.log-ico { flex: none; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-weight: 600; }
.log-ico.in { background: #e9f8ef; color: #17733f; }
.log-ico.out { background: var(--bg-soft); color: var(--muted); }
.amt-in { color: #17733f; }
.amt-out { color: var(--text); }
.amount-options { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 12px; }
.amount-opt { height: 64px; display: flex; align-items: center; justify-content: center; gap: 2px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); cursor: pointer; font-size: 14px; color: var(--muted); transition: border-color .15s, box-shadow .15s, color .15s; }
.amount-opt b { font-size: 22px; color: var(--text); font-weight: 600; }
.amount-opt:hover { border-color: var(--text); }
.amount-opt.active { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary); color: var(--primary); }
.amount-opt.active b { color: var(--primary); }
.amount-opt.custom { flex-direction: column; gap: 0; padding: 6px 10px; }
.amount-opt.custom span { font-size: 12px; }
.amount-opt.custom input { width: 100%; border: 0; outline: none; background: transparent; text-align: center; font-size: 18px; font-weight: 600; color: var(--text); -moz-appearance: textfield; }
.amount-opt.custom input::-webkit-inner-spin-button { -webkit-appearance: none; }
.balance-pay { display: flex; align-items: center; gap: 16px; margin-top: 22px; padding: 18px 20px; border: 1px solid var(--primary); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--primary) 5%, var(--bg)); }
.balance-pay.short { border-color: var(--line); background: var(--bg-soft); }
.balance-pay small { display: block; margin-top: 2px; }
@media (max-width: 900px) {
  .member-hero { grid-template-columns: 1fr; }
  .order-stats { grid-template-columns: repeat(2, 1fr); }
  .order-stats a:nth-child(3) { border-left: 0; }
  .order-stats a:nth-child(n+3) { border-top: 1px solid var(--line); }
  .balance-pay { flex-wrap: wrap; }
  .member-block { padding: 18px; }
}

/* 管理员预览未上架商品 */
.preview-notice { position: sticky; top: var(--header-h); z-index: 40; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; background: #fff4e5; color: #b45309; font-size: 14px; border-bottom: 1px solid #fde1b8; }
.preview-notice svg { width: 18px; height: 18px; }

/* 收货地址省 / 市 / 区三级联动 */
.region-select { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.region-select select:disabled { opacity: .55; }
@media (max-width: 560px) { .region-select { grid-template-columns: 1fr; } }
.region-search { position: relative; grid-column: 1 / -1; }
.region-results { position: absolute; z-index: 20; left: 0; right: 0; top: calc(100% + 4px); max-height: 260px; overflow-y: auto; margin: 0; padding: 4px 0; list-style: none; background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-sm); box-shadow: 0 8px 24px rgba(0, 0, 0, .1); font-size: 14px; }
.region-results li { padding: 8px 14px; cursor: pointer; }
.region-results li:hover, .region-results li.active { background: color-mix(in srgb, var(--primary) 10%, transparent); color: var(--primary); }
.region-results li.empty { color: var(--muted); cursor: default; background: none; }
