/* ============ 中昊镁基外贸网站 前台样式（全端自适应：手机 / iPhone / 平板 / 桌面） ============ */
:root {
  --primary: #1e4d8b;         /* 工业蓝 */
  --primary-dark: #143a6b;
  --accent: #c8922b;          /* 熔金橙 */
  --bg: #ffffff;
  --bg-alt: #f4f6f9;
  --text: #1d2530;
  --muted: #5f6b7a;
  --border: #e3e8ef;
  --radius: 10px;
  --maxw: 1180px;
  --header-h: 72px;
  --safe-l: env(safe-area-inset-left, 0px);
  --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
[hidden] { display: none !important; }
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;   /* 阻止 iOS 横屏自动放大字体 */
  text-size-adjust: 100%;
}
body {
  font-family: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "Noto Sans", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: var(--text); background: var(--bg); line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;                /* 杜绝小屏横向滚动 */
  -webkit-tap-highlight-color: transparent;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body.nav-open { overflow: hidden; }
img, svg, video, iframe { max-width: 100%; }
img { height: auto; }
a { color: var(--primary); text-decoration: none; }
a, button, label, select, input { touch-action: manipulation; }   /* 取消 300ms 点击延迟 */
h1, h2, h3, h4 { overflow-wrap: break-word; }
p, li, td, th { overflow-wrap: break-word; }
[id] { scroll-margin-top: calc(var(--header-h) + 16px); }

.container {
  width: 100%; max-width: var(--maxw); margin-inline: auto;
  padding-inline: 20px;
}
.center { text-align: center; padding: 80px 20px; }
.muted { color: var(--muted); }

/* ---------- 顶部 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100; background: #fff;
  border-bottom: 1px solid var(--border); box-shadow: 0 1px 8px rgba(0,0,0,.04);
  padding-top: env(safe-area-inset-top, 0px);
}
.header-inner { display: flex; align-items: center; gap: 16px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); min-width: 0; flex: 0 1 auto; max-width: min(300px, 34vw); }
.brand-logo { height: 42px; width: auto; max-width: 170px; max-height: 42px; flex: none; object-fit: contain; }
.brand-text { display: flex; flex-direction: column; line-height: 1.2; min-width: 0; }
.brand-text strong { font-size: 17px; color: var(--primary); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-text small { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* 导航紧跟 Logo 与公司名左侧排列；语言切换与菜单按钮靠右 */
.main-nav { display: flex; gap: 2px; flex: 1 1 auto; flex-wrap: wrap; justify-content: flex-start; align-items: center;
  margin-inline-start: 4px; padding-inline-start: 16px; border-inline-start: 1px solid var(--border); }
.nav-link { padding: 8px 9px; border-radius: 6px; color: var(--text); font-size: 14px; font-weight: 500; white-space: nowrap; }
.nav-link:hover { background: var(--bg-alt); color: var(--primary); }
.nav-link.active { color: var(--primary); background: rgba(30,77,139,.09); font-weight: 700; }
.site-header.is-scrolled { box-shadow: 0 4px 18px rgba(8,20,36,.1); }
.header-actions { display: flex; align-items: center; gap: 10px; flex: none; margin-inline-start: auto; }
.lang-switcher { position: relative; }
.lang-btn { background: var(--bg-alt); border: 1px solid var(--border); padding: 8px 13px; border-radius: 6px; cursor: pointer; font-size: 14px; font-family: inherit; color: var(--text); min-height: 40px; display: inline-flex; align-items: center; gap: 5px; }
.lang-menu { position: absolute; inset-inline-end: 0; top: calc(100% + 6px); background: #fff; border: 1px solid var(--border); border-radius: 8px; list-style: none; min-width: 150px; box-shadow: 0 8px 24px rgba(0,0,0,.12); display: none; z-index: 130; overflow: hidden; }
.lang-menu.open { display: block; }
.lang-menu a { display: block; padding: 11px 14px; color: var(--text); font-size: 14.5px; }
.lang-menu a:hover, .lang-menu a.active { background: var(--bg-alt); color: var(--primary); }
.nav-toggle { display: none; font-size: 22px; line-height: 1; background: none; border: none; cursor: pointer; color: var(--text); width: 44px; height: 44px; border-radius: 8px; align-items: center; justify-content: center; }
.nav-toggle:hover { background: var(--bg-alt); }

/* 抽屉（移动端）专用元素，桌面隐藏 */
.nav-drawer-head, .nav-drawer-foot { display: none; }
.nav-backdrop {
  position: fixed; inset: 0; background: rgba(8,18,32,.55); z-index: 95;
  opacity: 0; visibility: hidden; transition: opacity .26s ease, visibility .26s;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.nav-backdrop.show { opacity: 1; visibility: visible; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, #2e66ad 100%); color: #fff; padding: 96px 0; position: relative; overflow: hidden; }
.hero.has-image { background-size: cover; background-position: center; background-repeat: no-repeat; padding: 130px 0; }
.hero::after { content: ""; position: absolute; inset: 0; background: radial-gradient(circle at 85% 20%, rgba(200,146,43,.25), transparent 45%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; max-width: 900px; }
.hero h1 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.25; margin-bottom: 18px; }
.hero-sub { font-size: clamp(14.5px, 1.4vw, 16.5px); opacity: .92; max-width: 720px; margin-bottom: 30px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero .btn-ghost { border-color: rgba(255,255,255,.85); color: #fff; }
.hero .btn-ghost:hover { background: #fff; color: var(--primary); }

/* ---------- 按钮 ---------- */
.btn { display: inline-block; padding: 10px 22px; border-radius: 8px; font-size: 15px; font-weight: 600; border: 2px solid transparent; cursor: pointer; transition: all .18s; text-align: center; min-height: 42px; line-height: 1.3; }
.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-dark); }
.btn-outline { border-color: var(--primary); color: var(--primary); background: transparent; }
.btn-outline:hover { background: var(--primary); color: #fff; }
.btn-light { background: var(--accent); color: #fff; }
.btn-light:hover { background: #ad7c1e; }
.btn-lg { padding: 14px 30px; font-size: 16px; min-height: 50px; }

/* ---------- 数据条 ---------- */
.stats { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-block: 26px; }
.stat { text-align: center; }
.stat strong { font-size: clamp(22px, 2.6vw, 30px); color: var(--primary); display: block; line-height: 1.25; }
.stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- 区块 ---------- */
.section { padding: 68px 0; }
.section-alt { background: var(--bg-alt); }
.section-title { font-size: clamp(22px, 2.6vw, 30px); text-align: center; margin-bottom: 8px; color: var(--text); line-height: 1.35; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 40px; }
.page-hero { background: linear-gradient(120deg, var(--primary-dark), var(--primary)); color: #fff; padding: 56px 0; position: relative; overflow: hidden; }
.page-hero > .container { position: relative; z-index: 2; }
/* 行业元素装饰层：镁锭 / 晶格 / 光谱 / 熔炉 / 航线，半透明叠加，蓝色主色调保持不变 */
.page-hero::before {
  content: ""; position: absolute; top: 0; right: 0; bottom: 0; width: min(56%, 720px); z-index: 1; pointer-events: none;
  background-image: var(--hero-deco, none);
  background-repeat: no-repeat; background-position: right center; background-size: contain;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 16%, #000 42%);
  mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,.55) 16%, #000 42%);
}
.page-hero::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: radial-gradient(circle at 86% 16%, rgba(200,146,43,.16), transparent 50%);
}
/* 各栏目装饰图 */
.page-hero.hero-products      { --hero-deco: url("/img/hero-mg-products.svg"); }
.page-hero.hero-applications  { --hero-deco: url("/img/hero-mg-applications.svg"); }
.page-hero.hero-industry      { --hero-deco: url("/img/hero-mg-industry.svg"); }
.page-hero.hero-supply        { --hero-deco: url("/img/hero-mg-supply.svg"); }
.page-hero.hero-careers       { --hero-deco: url("/img/hero-mg-careers.svg"); }
.page-hero.hero-default       { --hero-deco: url("/img/hero-mg.svg"); }
.page-hero h1 { font-size: clamp(23px, 2.8vw, 34px); margin-bottom: 10px; line-height: 1.3; }
.page-hero p { opacity: .9; max-width: 760px; font-size: clamp(14px, 1.4vw, 16px); }
.page-hero .btn { margin-top: 18px; }
/* 页头文字保持在装饰层之上 */
.page-hero h1, .page-hero p, .page-hero .breadcrumb { text-shadow: 0 1px 10px rgba(6,26,44,.35); }
/* 小尺寸页头（岗位详情 / 报名页）装饰更淡 */
.page-hero-sm::before { width: min(46%, 560px); opacity: .4; }
.breadcrumb { font-size: 13.5px; opacity: .85; margin-bottom: 12px; }
.breadcrumb a { color: #cfe0f5; }

/* ---------- 产品卡片 ---------- */
.product-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(255px, 1fr)); gap: 24px; }
.product-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow .2s, transform .2s; display: flex; flex-direction: column; gap: 10px; padding-bottom: 20px; }
.product-card:hover { box-shadow: 0 10px 30px rgba(30,77,139,.14); transform: translateY(-3px); }
.product-thumb { height: 170px; background: #eef2f7; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.product-thumb img { width: 100%; height: 100%; object-fit: cover; }
.product-card h3 { font-size: 17.5px; padding: 4px 18px 0; color: var(--primary); }
.product-card p { padding: 0 18px; font-size: 14px; color: var(--muted); flex: 1; }
.product-card .btn { margin: 6px 18px 0; align-self: flex-start; }

/* ---------- 产品详情 ---------- */
.product-detail { display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr); gap: 40px; align-items: start; }
.pd-image { background: #eef2f7; border-radius: var(--radius); overflow: hidden; position: sticky; top: calc(var(--header-h) + 20px); }
.pd-image img { display: block; width: 100%; }
.pd-body { min-width: 0; }
.pd-body h2 { font-size: 21px; color: var(--primary); margin: 26px 0 10px; border-inline-start: 4px solid var(--accent); padding-inline-start: 10px; }
.pd-body h2:first-child { margin-top: 0; }
.spec-table { width: 100%; border-collapse: collapse; background: var(--bg-alt); border-radius: 8px; overflow: hidden; }
.spec-table th, .spec-table td { padding: 11px 16px; border-bottom: 1px solid var(--border); text-align: start; font-size: 14.5px; }
.spec-table th { color: var(--primary); width: 42%; font-weight: 600; }
.note { background: #fdf6e8; border: 1px solid #ecd9b0; padding: 12px 16px; border-radius: 8px; font-size: 13.5px; color: #7a5b16; margin: 14px 0; }

/* ---------- 新闻 ---------- */
.news-grid, .news-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 22px; }
.news-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); padding: 22px; }
.news-card.wide { grid-template-columns: 1fr; }
.news-card time { font-size: 12.5px; color: var(--accent); font-weight: 600; }
.news-card h3, .news-card h2 { margin: 6px 0 10px; font-size: 17.5px; }
.news-card h3 a, .news-card h2 a { color: var(--text); }
.news-card h3 a:hover, .news-card h2 a:hover { color: var(--primary); }
.news-card p { font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.read-more { font-size: 14px; font-weight: 600; }

/* ---------- 行业应用（列表 = 新闻浏览模式 / 详情页全文） ---------- */
.app-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 26px; }
.app-item {
  display: flex; flex-direction: column; background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: transform .18s, box-shadow .18s;
}
.app-item:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(18,40,72,.1); }
.app-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--bg-alt); }
.app-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.app-body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.app-index { font-size: 12px; font-weight: 800; letter-spacing: .12em; color: var(--accent); }
.app-body h2 { font-size: 19px; line-height: 1.4; }
.app-body h2 a { color: var(--text); }
.app-body h2 a:hover { color: var(--primary); }
.app-body p { font-size: 14.5px; color: var(--muted); line-height: 1.75; flex: 1; }

.app-detail-media { margin-bottom: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--border); }
.app-detail-media img { width: 100%; display: block; }
.app-detail .lead { font-size: 16.5px; color: var(--text); font-weight: 500; }
.about-body { max-width: 860px; }

/* ---------- 首页「关于我们」：左视频 + 右文字 ---------- */
.about-section { background: var(--bg-alt); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.about-section .section-title { margin-bottom: 34px; }
.about-split { display: grid; grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.about-media .video-wrap { max-width: none; margin: 0; }
.about-media .video-placeholder { background: repeating-linear-gradient(45deg, #10203a, #10203a 12px, #12243f 12px, #12243f 24px); }
.about-text { max-width: none; font-size: 15.5px; line-height: 1.85; }
.about-text p { margin-bottom: 15px; color: var(--muted); }
.about-text p:first-of-type { font-size: 16.5px; color: var(--text); }
.about-text h3 { color: var(--primary); font-size: 18px; margin: 22px 0 10px; }
@media (max-width: 900px) {
  .about-split { grid-template-columns: minmax(0, 1fr); gap: 26px; }
  .about-text { font-size: 15px; }
}

/* ---------- 首页「合作模式」 ---------- */
.coop-section { background: var(--bg); }
.coop-body { max-width: 100%; }
.coop-body p { font-size: 15.5px; line-height: 1.9; margin-bottom: 14px; color: var(--muted); }
.coop-body p:last-child { margin-bottom: 0; }

/* ---------- 工厂与供应链：生产线与供应链介绍视频 ---------- */
.supply-video-section { padding-bottom: 8px; }
.supply-video-section .video-wrap { max-width: 960px; }

/* ---------- 文章正文 ---------- */
.article-body { max-width: 860px; font-size: 15.5px; }
.article-body h3 { color: var(--primary); margin: 26px 0 10px; font-size: 19px; }
.article-body p { margin-bottom: 14px; }
.page-cta { margin-top: 36px; padding: 28px; background: var(--bg-alt); border-radius: var(--radius); text-align: center; }
.page-cta h3 { margin-bottom: 12px; color: var(--primary); }

/* ---------- 表单 ---------- */
.inquiry-form { max-width: 940px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 22px; }
.form-grid label, .admin-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 600; color: var(--text); }
.inquiry-form input, .inquiry-form select, .inquiry-form textarea,
.admin-form input[type="text"], .admin-form input[type="email"], .admin-form input[type="password"],
.admin-form input[type="date"], .admin-form input[type="number"], .admin-form select, .admin-form textarea {
  padding: 10px 13px; border: 1px solid var(--border); border-radius: 8px; font-size: 14.5px; font-family: inherit; background: #fff; color: var(--text); width: 100%;
  -webkit-appearance: none; appearance: none;
}
.inquiry-form select {
  background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%235f6b7a' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 13px center;
  padding-inline-end: 34px;
}
[dir="rtl"] .inquiry-form select { background-position: left 13px center; }
.inquiry-form input:focus, .inquiry-form select:focus, .inquiry-form textarea:focus { outline: 2px solid rgba(30,77,139,.25); border-color: var(--primary); }
.full { grid-column: 1 / -1; }
.hp-field { position: absolute; left: -9999px; height: 0; overflow: hidden; }
.privacy-note { font-size: 12.5px; color: var(--muted); margin: 16px 0; }
.form-msg { margin-top: 12px; font-weight: 600; }
.form-msg.ok { color: #1e7a3c; }
.form-msg.err { color: #b3261e; }

/* 逐字段错误提示 */
.field-err { display: none; font-size: 12.5px; font-weight: 600; color: #b3261e; }
label.has-error .field-err { display: block; }
label.has-error input, label.has-error select, label.has-error textarea { border-color: #e8493f; background: #fff8f7; }
label.has-error > .field-err::before { content: "⚠ "; }

/* 提交按钮加载态 */
.inquiry-submit { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px; }
.btn-spinner {
  width: 15px; height: 15px; border-radius: 50%; display: none;
  border: 2px solid rgba(255,255,255,.35); border-top-color: #fff;
  animation: btnSpin .7s linear infinite;
}
.inquiry-submit.is-loading { opacity: .88; pointer-events: none; }
.inquiry-submit.is-loading .btn-spinner { display: inline-block; }
@keyframes btnSpin { to { transform: rotate(360deg); } }

/* 提交成功面板 */
.form-success {
  max-width: 940px; background: #f2fbf5; border: 1px solid #bfe3c9; border-radius: 14px;
  padding: 34px 26px; text-align: center;
}
.form-success[hidden] { display: none; }
.fs-icon {
  width: 56px; height: 56px; margin: 0 auto 16px; border-radius: 50%;
  background: #1e7a3c; color: #fff; font-size: 27px; font-weight: 700;
  display: flex; align-items: center; justify-content: center;
}
.form-success h3 { color: #1e7a3c; font-size: 20px; margin-bottom: 8px; }
.form-success p { color: #3a4b3f; font-size: 15px; margin-bottom: 20px; }
.fs-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* 产品分类筛选 */
.filter-row { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 28px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 9px 18px; border-radius: 24px; border: 1.5px solid var(--border);
  background: #fff; color: var(--muted); font: inherit; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: background .16s, color .16s, border-color .16s;
}
.chip span { font-size: 12px; padding: 1px 7px; border-radius: 10px; background: var(--bg-alt); color: var(--muted); }
.chip:hover { border-color: var(--primary); color: var(--primary); }
.chip.is-active { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip.is-active span { background: rgba(255,255,255,.22); color: #fff; }
.is-hidden { display: none !important; }

/* 空状态 */
.empty-state { grid-column: 1 / -1; text-align: center; padding: 44px 10px; }

/* 回到顶部 */
.to-top {
  position: fixed; inset-inline-end: 16px; bottom: calc(62px + var(--safe-b)); z-index: 89;
  width: 42px; height: 42px; border-radius: 50%; background: #fff; border: 1px solid var(--border);
  color: var(--primary); box-shadow: 0 6px 18px rgba(8,20,36,.16);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(10px);
  transition: opacity .22s, transform .22s, visibility .22s, background .18s;
}
.to-top svg { width: 20px; height: 20px; }
.to-top.show { opacity: 1; visibility: visible; transform: none; }
.to-top:hover { background: var(--primary); color: #fff; }

/* 滚动淡入 */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity .55s ease, transform .55s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: minmax(0, 340px) minmax(0, 1fr); gap: 44px; align-items: start; }
.contact-info p { margin-bottom: 12px; font-size: 15px; overflow-wrap: anywhere; }

/* ---------- 图文模块（行业应用 / 质量 / 工厂 / 物流） ---------- */
.module-list { display: flex; flex-direction: column; gap: 56px; }
.module-block { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 44px; align-items: center; }
.module-block.reverse .module-media { order: 2; }
.module-media { border-radius: 14px; overflow: hidden; background: #eef2f7; box-shadow: 0 12px 32px rgba(18,35,60,.12); }
.module-media img { width: 100%; height: 100%; display: block; object-fit: cover; aspect-ratio: 8 / 5; }
.module-body { position: relative; min-width: 0; }
.module-index { display: inline-block; font-size: 13px; font-weight: 800; letter-spacing: .12em; color: var(--accent); margin-bottom: 8px; }
.module-body h2 { font-size: clamp(19px, 2.2vw, 25px); color: var(--primary); margin-bottom: 14px; line-height: 1.35; }
.module-body p { font-size: 15px; color: #45505f; margin-bottom: 10px; }

/* ---------- 视频模块 ---------- */
.video-wrap { max-width: 880px; margin: 0 auto; border-radius: 14px; overflow: hidden; background: #0d1a2b; box-shadow: 0 14px 40px rgba(18,35,60,.18); }
.video-wrap iframe, .video-wrap video { width: 100%; aspect-ratio: 16 / 9; display: block; border: 0; }
.video-empty { background: #142b47; }
.video-placeholder { aspect-ratio: 16 / 9; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 16px; color: #93a9c4; font-size: 15px; text-align: center; padding: 30px; }
.vp-icon { width: 74px; height: 74px; border-radius: 50%; border: 2px solid rgba(255,255,255,.28); display: flex; align-items: center; justify-content: center; font-size: 26px; color: rgba(255,255,255,.55); padding-inline-start: 6px; }
.vp-text { max-width: 480px; line-height: 1.7; }

/* ---------- 页脚 ---------- */
.site-footer { background: #12233c; color: #b9c7d9; padding: 54px 0 0; margin-top: 40px; }
.footer-grid { display: grid; grid-template-columns: 1.2fr 1.3fr 1fr; gap: 36px; padding-bottom: 34px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links a, .footer-link { color: #b9c7d9; font-size: 14px; padding: 2px 0; background: none; border-radius: 0; display: inline-block; }
.footer-links a:hover, .footer-link:hover { color: #fff; background: none; text-decoration: underline; }
.site-footer p { font-size: 14px; margin-bottom: 6px; overflow-wrap: anywhere; }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; border-top: 1px solid rgba(255,255,255,.12); padding: 18px 20px; font-size: 13px; }
.footer-bottom a { color: #b9c7d9; }

/* ---------- 社交分享（各社媒品牌色小圆 logo） ---------- */
.share-row { margin-top: 34px; padding-top: 22px; border-top: 1px solid var(--border); }
.share-row-inner { max-width: 860px; }
.share-bar { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.share-label { font-size: 13.5px; font-weight: 700; color: var(--muted); margin-inline-end: 4px; }
.share-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 18px; border-radius: 50%;
  border: none; background: #888; color: #fff; cursor: pointer;
  font-family: inherit; text-decoration: none; padding: 0;
  transition: transform .15s, box-shadow .15s, background .15s, opacity .15s;
}
.share-btn svg { width: 9px; height: 9px; }
.share-btn:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(0,0,0,.18); color: #fff; }
.share-btn.s-weibo { background: #e6423d; }
.share-btn.s-weibo:hover { background: #cf3531; }
.share-btn.s-wechat { background: #2aae67; }
.share-btn.s-wechat:hover { background: #1f9256; }
.share-btn.s-facebook { background: #1877f2; }
.share-btn.s-facebook:hover { background: #0e63d8; }
.share-btn.s-linkedin { background: #0a66c2; }
.share-btn.s-linkedin:hover { background: #0857a5; }
.share-btn.s-x { background: #1d2530; }
.share-btn.s-x:hover { background: #000; }
.share-btn.s-whatsapp { background: #25d366; }
.share-btn.s-whatsapp:hover { background: #1cb857; }
.share-btn.s-native { background: var(--primary); }
.share-btn.s-native:hover { background: var(--primary-dark); }
.share-btn.s-copy { background: var(--bg-alt); border: 1px solid var(--border); color: var(--muted); }
.share-btn.s-copy:hover { background: var(--primary); border-color: var(--primary); color: #fff; box-shadow: 0 4px 10px rgba(0,0,0,.18); }
.share-btn.s-copy svg { width: 8px; height: 8px; }
.share-btn.copy-ok { background: #2aae67 !important; border-color: #2aae67 !important; color: #fff !important; font-weight: 800; }
.share-btn.copy-fail { background: #e6423d !important; border-color: #e6423d !important; color: #fff !important; font-weight: 800; }

/* 微信二维码模态框 */
.share-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px; }
.share-modal[hidden] { display: none; }
.share-modal-mask { position: absolute; inset: 0; background: rgba(8,18,32,.6); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
.share-modal-card {
  position: relative; background: #fff; border-radius: 16px; padding: 26px 24px;
  width: min(92vw, 360px); text-align: center; box-shadow: 0 24px 60px rgba(0,0,0,.3);
  animation: sharePop .22s ease;
}
@keyframes sharePop { from { transform: scale(.92); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.share-modal-close { position: absolute; top: 10px; inset-inline-end: 10px; width: 34px; height: 34px; border: none; background: var(--bg-alt); border-radius: 50%; font-size: 15px; cursor: pointer; color: var(--text); }
.share-qr img { border: 1px solid var(--border); border-radius: 10px; background: #fff; }
.share-qr-fallback { word-break: break-all; font-size: 13px; background: var(--bg-alt); padding: 16px; border-radius: 10px; }
.share-modal-title { font-weight: 800; font-size: 16px; margin-top: 14px; color: var(--text); }
.share-modal-tip { font-size: 13px; color: var(--muted); line-height: 1.7; margin: 10px 0 16px; text-align: start; }
.share-modal-copy { width: 100%; min-height: 46px; }

/* 页脚底部右侧 */
.footer-bottom-right { display: inline-flex; align-items: center; gap: 18px; flex-wrap: wrap; }
/* 全站分享条：位于版权所有行之后 */
.footer-share-row { padding: 0 20px 22px; }
.footer-share-row .share-label { color: #93a7bd; font-size: 12.5px; }
.footer-share-row .share-btn.s-copy { background: rgba(255,255,255,.1); border-color: rgba(255,255,255,.18); color: #cfdae7; }
.footer-share-row .share-btn.s-copy:hover { background: var(--primary); border-color: var(--primary); color: #fff; }

@media (max-width: 960px) {
  .share-btn { width: 20px; height: 20px; }
  .share-btn svg { width: 10px; height: 10px; }
  .share-modal-card { padding: 22px 18px; }
}

/* ---------- 悬浮询盘按钮（右下角，小型） ---------- */
.float-quote {
  position: fixed; inset-inline-end: 16px; bottom: calc(16px + var(--safe-b)); z-index: 90;
  background: var(--accent); color: #fff; padding: 8px 14px; border-radius: 30px;
  font-weight: 700; font-size: 13px; box-shadow: 0 6px 16px rgba(200,146,43,.38);
  cursor: grab; touch-action: none; -webkit-user-select: none; user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.float-quote.dragging { cursor: grabbing; box-shadow: 0 10px 22px rgba(200,146,43,.55); }
.float-quote:hover { background: #ad7c1e; color: #fff; }

/* ---------- CTA 横带 ---------- */
.cta-band { background: linear-gradient(120deg, var(--primary), var(--primary-dark)); color: #fff; text-align: center; }
.cta-band h2 { font-size: clamp(21px, 2.4vw, 28px); margin-bottom: 10px; }
.cta-band p { opacity: .9; margin-bottom: 22px; }

/* ---------- RTL（阿拉伯语） ---------- */
[dir="rtl"] .main-nav { justify-content: flex-start; }
[dir="rtl"] .hero-inner { max-width: 900px; }

/* ==================================================================
   平板横向 / 小笔记本（≤1100px）
   ================================================================== */
@media (max-width: 1100px) {
  .header-inner { gap: 12px; }
  .nav-link { padding: 8px 8px; font-size: 14px; }
  .brand-text small { display: none; }
  .brand { max-width: min(260px, 30vw); }
  .main-nav { padding-inline-start: 12px; }
}

/* ==================================================================
   平板（≤960px）：导航改抽屉、双列开始合并
   ================================================================== */
@media (max-width: 960px) {
  :root { --header-h: 64px; }

  .container { padding-inline: max(18px, var(--safe-l), var(--safe-r)); }
  .header-inner { gap: 10px; }
  .brand { flex: 1 1 auto; max-width: none; }
  .brand-logo { height: 38px; max-height: 38px; max-width: 130px; width: auto; }
  .nav-toggle { display: inline-flex; }

  /* 导航抽屉 */
  .main-nav {
    position: fixed; top: 0; bottom: 0; inset-inline-end: 0;
    width: min(86vw, 360px); height: 100vh; height: 100dvh;
    background: #fff; border-inline-start: 1px solid var(--border);
    box-shadow: -18px 0 44px rgba(8,20,36,.22);
    display: flex; flex-direction: column; align-items: stretch; flex-wrap: nowrap;
    gap: 0; padding: calc(env(safe-area-inset-top, 0px) + 8px) 14px calc(env(safe-area-inset-bottom, 0px) + 18px);
    overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
    transform: translateX(103%); visibility: hidden; z-index: 120;
    transition: transform .3s cubic-bezier(.4,0,.2,1), visibility .3s;
    flex: none; margin: 0; justify-content: flex-start;
  }
  [dir="rtl"] .main-nav { transform: translateX(-103%); box-shadow: 18px 0 44px rgba(8,20,36,.22); }
  .main-nav.open { transform: none !important; visibility: visible; }

  .nav-drawer-head {
    display: flex; align-items: center; justify-content: space-between;
    padding: 6px 4px 12px; margin-bottom: 6px; border-bottom: 1px solid var(--border);
    font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  }
  .nav-close {
    width: 40px; height: 40px; border: none; background: var(--bg-alt); border-radius: 8px;
    font-size: 20px; line-height: 1; color: var(--text); cursor: pointer; display: flex; align-items: center; justify-content: center;
  }
  .nav-link { display: flex; align-items: center; min-height: 50px; padding: 0 10px; font-size: 16.5px; border-radius: 8px; }
  .nav-link + .nav-link { border-top: 1px solid var(--border); border-radius: 0; }
  .nav-link:hover { background: var(--bg-alt); }
  .nav-drawer-foot { display: block; margin-top: auto; padding-top: 16px; border-top: 1px solid var(--border); }
  .nav-langs { display: flex; flex-wrap: wrap; gap: 8px; }
  .nav-langs a { font-size: 13.5px; padding: 8px 12px; border: 1px solid var(--border); border-radius: 20px; color: var(--text); }
  .nav-langs a.active { background: var(--primary); color: #fff; border-color: var(--primary); }

  /* 布局合并 */
  .product-detail, .contact-grid { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .pd-image { position: static; }
  .module-block { grid-template-columns: minmax(0, 1fr); gap: 22px; }
  .module-block.reverse .module-media { order: 0; }
  .module-list { gap: 46px; }
  .module-media img { aspect-ratio: 16 / 10; }
  .hero.has-image { padding: 90px 0; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 18px 12px; padding-block: 22px; }
  .form-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .full { grid-column: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
  .section { padding: 52px 0; }
}

/* ==================================================================
   平板竖屏 / 大屏手机（≤768px）
   ================================================================== */
@media (max-width: 768px) {
  :root { --header-h: 60px; }
  .container { padding-inline: max(16px, var(--safe-l), var(--safe-r)); }

  .page-hero { padding: 40px 0; }
  .section { padding: 44px 0; }
  .section-sub { margin-bottom: 28px; padding-inline: 4px; }

  /* iOS 输入框字号 <16px 会触发自动缩放，此处统一 16px */
  .inquiry-form input, .inquiry-form select, .inquiry-form textarea { font-size: 16px; min-height: 46px; }
  .inquiry-form textarea { min-height: 110px; }
  .inquiry-form .btn-lg { width: 100%; }

  .hero { padding: 64px 0; }
  .hero.has-image { padding: 76px 0; }
  .hero-actions { gap: 12px; }
  .hero-actions .btn { flex: 1 1 auto; min-width: 150px; }

  .product-grid { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 16px; }
  .product-thumb { height: 160px; }

  /* 参数表改为卡片式，避免小屏横向挤压 */
  .spec-table, .spec-table tbody, .spec-table tr, .spec-table th, .spec-table td { display: block; width: 100%; }
  .spec-table { background: #fff; border: 1px solid var(--border); }
  .spec-table tr { padding: 11px 15px; border-bottom: 1px solid var(--border); }
  .spec-table tr:last-child { border-bottom: 0; }
  .spec-table th { border: 0; padding: 0 0 3px; font-size: 12.5px; letter-spacing: .03em; text-transform: uppercase; color: var(--muted); }
  .spec-table td { border: 0; padding: 0; font-size: 15px; }

  .article-body { font-size: 15.5px; }
  .page-cta { padding: 22px 18px; }

  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding-bottom: 26px; }
  .footer-links { flex-direction: row; flex-wrap: wrap; gap: 6px 18px; }
  .site-footer { padding-top: 40px; padding-bottom: calc(64px + var(--safe-b)); }
  .footer-bottom { padding: 16px; font-size: 12.5px; }

  .float-quote { padding: 7px 13px; font-size: 12.5px; inset-inline-end: 12px; bottom: calc(12px + var(--safe-b)); }
  .to-top { width: 40px; height: 40px; bottom: calc(56px + var(--safe-b)); inset-inline-end: 12px; }

  .news-grid, .news-list { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .news-card { padding: 18px; }

  .module-media { border-radius: 12px; }
  .vp-icon { width: 60px; height: 60px; font-size: 22px; }
  .video-placeholder { gap: 12px; padding: 20px; font-size: 14px; }
}

/* ==================================================================
   手机（≤560px）
   ================================================================== */
@media (max-width: 560px) {
  .brand-text strong { font-size: 15.5px; }
  .brand-text small { display: none; }
  .brand-logo { height: 34px; max-height: 34px; width: auto; max-width: 110px; }
  .lang-btn { padding: 7px 9px; font-size: 13px; min-height: 38px; }
  .nav-toggle { width: 40px; height: 40px; font-size: 20px; }
  .header-inner { gap: 8px; }

  .hero { padding: 52px 0; }
  .hero.has-image { padding: 58px 0; }
  .hero h1 { font-size: 25px; margin-bottom: 14px; }
  .hero-sub { font-size: 14.5px; margin-bottom: 24px; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; min-width: 0; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 16px 10px; }
  .stat strong { font-size: 22px; }
  .stat span { font-size: 12.5px; }

  .product-grid { grid-template-columns: minmax(0, 1fr); }
  .product-thumb { height: 190px; }
  .product-card .btn { align-self: stretch; text-align: center; margin-inline: 18px; }

  .section { padding: 38px 0; }
  .section-title { font-size: 21px; }
  .cta-band h2 { font-size: 20px; }
  .center { padding: 56px 18px; }

  .btn-lg { padding: 13px 22px; font-size: 15px; width: 100%; }
  .page-cta .btn, .page-hero .btn { width: 100%; }

  .module-body h2 { font-size: 19px; }
  .module-body p { font-size: 14.5px; }
  .module-list { gap: 36px; }

  .contact-info p { font-size: 14.5px; }
  .float-quote { padding: 7px 12px; font-size: 12px; border-radius: 28px; }
}

/* ==================================================================
   小屏手机（iPhone SE / 320-400px）
   ================================================================== */
@media (max-width: 400px) {
  .brand-text strong { font-size: 14.5px; letter-spacing: -.01em; }
  .lang-globe { display: none; }
  .lang-btn { padding: 7px 8px; }
  .hero h1 { font-size: 22px; }
  .page-hero h1 { font-size: 21px; }
  .stats-grid { gap: 14px 8px; }
  .stat strong { font-size: 20px; }
  .stat span { font-size: 12px; }
  .section-title { font-size: 19.5px; }
  .product-thumb { height: 170px; }
  .footer-links { gap: 6px 14px; }
  .footer-links a { font-size: 13px; }
}

/* ==================================================================
   手机横向（高度受限）
   ================================================================== */
@media (orientation: landscape) and (max-height: 480px) {
  .hero, .hero.has-image { padding: 40px 0; }
  .hero h1 { font-size: 24px; }
  .hero-sub { margin-bottom: 18px; }
  .main-nav { padding-top: 8px; }
  .nav-link { min-height: 44px; }
}

/* ==================================================================
   触屏设备：去掉悬停位移，避免点击后"卡住"的浮起效果
   ================================================================== */
@media (hover: none) {
  .product-card:hover { transform: none; box-shadow: none; }
  .btn:hover { filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ---------- 动态（视频模块化卡片） ---------- */
.mom-filter { border-bottom: 1px solid var(--border); background: #fff; position: sticky; top: var(--header-h); z-index: 90; }
.mom-cats { display: flex; gap: 10px; overflow-x: auto; padding: 12px 0; scrollbar-width: none; }
.mom-cats::-webkit-scrollbar { display: none; }
.mom-cat { flex: none; padding: 8px 18px; border-radius: 999px; border: 1px solid var(--border); background: var(--bg-alt); font-size: 14px; cursor: pointer; font-family: inherit; color: var(--text); min-height: 38px; transition: all .15s ease; }
.mom-cat:hover { border-color: var(--primary); color: var(--primary); }
.mom-cat.active { background: var(--primary); border-color: var(--primary); color: #fff; }
.moments-grid { display: grid; grid-template-columns: 1fr; gap: 28px; }
@media (min-width: 760px) { .moments-grid { gap: 40px; } }
.moment-card { display: grid; grid-template-columns: 1fr; background: #fff; border: 1px solid var(--border); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 14px rgba(8,20,36,.05); }
@media (min-width: 760px) { .moment-card { grid-template-columns: minmax(0, 58%) 1fr; } .moment-card.reverse > .moment-media { order: 2; } }
.moment-media { position: relative; background: #0d1b2e; min-height: 220px; }
.mom-video { display: block; width: 100%; height: 100%; min-height: 220px; object-fit: cover; border: 0; }
.moment-badge { position: absolute; top: 12px; inset-inline-start: 12px; background: rgba(200,146,43,.92); color: #fff; font-size: 12.5px; padding: 4px 12px; border-radius: 999px; pointer-events: none; }
.moment-body { padding: 22px 24px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.moment-title { font-size: 20px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.35; }
.moment-sub { font-size: 15px; font-weight: 600; color: var(--primary); margin: 0; }
.moment-brief { font-size: 14.5px; color: var(--text-soft, #5f6b7a); margin: 0; line-height: 1.7; }
.moment-date { font-size: 12.5px; color: var(--text-soft, #5f6b7a); opacity: .75; }
.mom-empty { grid-column: 1 / -1; text-align: center; padding: 60px 20px; color: var(--text-soft, #5f6b7a); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 14px; font-size: 15px; }
.moment-card[hidden] { display: none; }

/* ============================================================
   加入我们：全球招聘 + 区域代理
   ============================================================ */
.careers-tabs { display: flex; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.careers-tab {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 24px; border-radius: 999px; text-decoration: none;
  border: 1.5px solid rgba(255,255,255,.45); color: #fff;
  font-size: 15px; font-weight: 600; transition: all .18s ease;
  background: rgba(255,255,255,.08);
}
.careers-tab:hover { background: rgba(255,255,255,.2); border-color: #fff; }
.careers-tab.active { background: #fff; color: var(--primary); border-color: #fff; }

.section-head { margin-bottom: 26px; }
.section-sub { color: var(--muted); font-size: 15.5px; line-height: 1.75; margin-top: 10px; max-width: 820px; }

/* 岗位卡片：模块化 */
.jobs-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 780px) { .jobs-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.job-card {
  background: #fff; border: 1px solid var(--border); border-radius: 14px;
  padding: 22px 24px; display: flex; flex-direction: column; gap: 12px;
  box-shadow: 0 2px 12px rgba(8,20,36,.04);
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.job-card:hover { box-shadow: 0 10px 26px rgba(8,20,36,.1); transform: translateY(-2px); border-color: rgba(30,77,139,.28); }
.job-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 14px; }
.job-title { font-size: 19px; font-weight: 700; color: var(--text); margin: 0; line-height: 1.4; }
.job-dept { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.job-salary { flex: none; font-size: 14px; font-weight: 700; color: var(--accent); background: rgba(200,146,43,.1); border-radius: 999px; padding: 5px 14px; white-space: nowrap; }
.job-meta { display: flex; flex-wrap: wrap; gap: 8px 16px; }
.job-meta-item { font-size: 13.5px; color: var(--muted); }
.job-summary { font-size: 14.5px; color: var(--text); line-height: 1.75; margin: 0; opacity: .88; }
.job-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: auto; padding-top: 6px; }
.jobs-empty { text-align: center; padding: 56px 20px; color: var(--muted); background: var(--bg-alt); border: 1px dashed var(--border); border-radius: 14px; }

/* 报名表单区 */
.careers-apply-box { margin-top: 40px; background: var(--bg-alt); border: 1px solid var(--border); border-radius: 16px; padding: 28px 26px 30px; }
.careers-apply-box > h3 { font-size: 19px; margin: 0 0 18px; color: var(--text); }
.career-form .form-grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 700px) { .career-form .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.career-form .form-grid label.full { grid-column: 1 / -1; }
.career-form label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--text); font-weight: 600; }
.career-form input, .career-form select, .career-form textarea {
  font-family: inherit; font-size: 15px; padding: 11px 13px; border: 1px solid var(--border);
  border-radius: 8px; background: #fff; color: var(--text); min-height: 44px; width: 100%;
}
.career-form textarea { resize: vertical; min-height: 96px; }
.career-form input:focus, .career-form select:focus, .career-form textarea:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 3px rgba(30,77,139,.12); }
.career-form .field-err { font-size: 12.5px; color: #c3362d; font-weight: 500; min-height: 0; }
.career-form label.has-error input, .career-form label.has-error select { border-color: #c3362d; }
.career-form .privacy-note { font-size: 13px; color: var(--muted); margin: 16px 0 14px; }
.career-submit { min-width: 190px; }
.career-msg { margin-top: 14px; font-size: 14.5px; }
.career-msg.ok { color: #1e7a3c; font-weight: 600; }
.career-msg.err { color: #c3362d; font-weight: 600; }
.career-submit.is-loading { opacity: .7; cursor: progress; }

/* 区域代理两栏 */
.agent-grid { display: grid; grid-template-columns: 1fr; gap: 26px; }
@media (min-width: 980px) { .agent-grid { grid-template-columns: minmax(0, 38%) minmax(0, 1fr); align-items: start; } }
.agent-support { background: #fff; border: 1px solid var(--border); border-left: 4px solid var(--accent); border-radius: 14px; padding: 24px 26px; }
.agent-support h3 { font-size: 18px; margin: 0 0 16px; color: var(--text); }
.agent-benefits { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.agent-benefits li { position: relative; padding-inline-start: 26px; font-size: 14.5px; line-height: 1.7; color: var(--text); }
.agent-benefits li::before {
  content: "✓"; position: absolute; inset-inline-start: 0; top: 1px;
  width: 18px; height: 18px; border-radius: 50%; background: rgba(30,122,60,.12);
  color: #1e7a3c; font-size: 11px; font-weight: 700; display: grid; place-items: center;
}
.agent-form-box { background: #fff; border: 1px solid var(--border); border-radius: 14px; padding: 26px; }
.agent-form-box h3 { font-size: 18px; margin: 0 0 8px; color: var(--text); }
.agent-form-box .muted { font-size: 14px; color: var(--muted); margin-bottom: 18px; line-height: 1.65; }

/* 岗位详情 */
.page-hero-sm { padding-block: 46px 38px; }
.job-detail { display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 980px) { .job-detail { grid-template-columns: minmax(0, 1fr) 320px; align-items: start; } }
.job-facts { width: 100%; border-collapse: collapse; margin-bottom: 26px; background: var(--bg-alt); border-radius: 10px; overflow: hidden; }
.job-facts th { text-align: start; padding: 12px 16px; font-size: 14px; color: var(--muted); font-weight: 600; white-space: nowrap; width: 130px; border-bottom: 1px solid var(--border); }
.job-facts td { padding: 12px 16px; font-size: 14.5px; color: var(--text); border-bottom: 1px solid var(--border); }
.job-facts tr:last-child th, .job-facts tr:last-child td { border-bottom: 0; }
.job-body ul, .job-body ol { padding-inline-start: 22px; margin: 8px 0 14px; }
.job-body li { margin-bottom: 8px; line-height: 1.75; font-size: 15px; }
.job-detail .article-body h2 { font-size: 17px; margin: 24px 0 10px; color: var(--text); }
.job-detail-side { display: flex; flex-direction: column; gap: 18px; position: sticky; top: calc(var(--header-h) + 18px); }
.card-like { background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 20px 22px; box-shadow: 0 2px 12px rgba(8,20,36,.04); }
.card-like h3 { font-size: 16px; margin: 0 0 8px; color: var(--text); }
.card-like .muted { font-size: 13.5px; color: var(--muted); margin-bottom: 14px; }
.other-jobs { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.other-jobs a { font-size: 14.5px; color: var(--primary); text-decoration: none; }
.other-jobs a:hover { text-decoration: underline; }
.narrow { max-width: 860px; }
.btn-block { display: block; width: 100%; text-align: center; }

@media (max-width: 640px) {
  .careers-apply-box { padding: 22px 16px 24px; margin-top: 30px; }
  .job-card { padding: 18px 16px; }
  .job-card-head { flex-direction: column; gap: 8px; }
  .job-detail-side { position: static; }
  .careers-tab { padding: 9px 18px; font-size: 14px; }
}

/* ---------- 首页「公司架构」（母公司 + 子公司） ---------- */
.org-section { background: var(--bg-alt); border-top: 1px solid var(--border); }
.org-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 22px; max-width: 1180px; margin: 30px auto 0; }
.org-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: 12px; padding: 24px 22px 20px; box-shadow: 0 2px 12px rgba(8,20,36,.04); display: flex; flex-direction: column; transition: box-shadow .2s ease, transform .2s ease; }
.org-card:hover { box-shadow: 0 10px 28px rgba(18,35,60,.1); transform: translateY(-2px); }
.org-card::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; border-radius: 12px 12px 0 0; background: linear-gradient(90deg, var(--primary), var(--accent)); }
.org-role { display: inline-block; align-self: flex-start; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--primary); background: rgba(30,77,139,.08); border: 1px solid rgba(30,77,139,.16); border-radius: 999px; padding: 3px 10px; margin-bottom: 12px; }
.org-card h3 { font-size: 17.5px; line-height: 1.45; color: var(--text); margin-bottom: 10px; }
.org-intro { font-size: 14.5px; line-height: 1.8; color: var(--muted); margin-bottom: 16px; flex: 1; }
.org-contact { border-top: 1px dashed var(--border); padding-top: 14px; display: flex; flex-direction: column; gap: 8px; }
.org-row { display: flex; gap: 8px; font-size: 13.5px; line-height: 1.6; color: var(--muted); align-items: flex-start; }
.org-row .org-ico { flex: 0 0 auto; width: 18px; text-align: center; font-size: 13px; line-height: 1.6; }
.org-row a { color: var(--primary); word-break: break-all; }
.org-row a:hover { text-decoration: underline; }
@media (max-width: 640px) {
  .org-grid { gap: 16px; margin-top: 22px; }
  .org-card { padding: 20px 18px 18px; }
  .org-card h3 { font-size: 16px; }
}

/* 集团总部首卡：通栏展示，信息分两栏 */
.org-card.is-hq { grid-column: 1 / -1; background: linear-gradient(135deg, #ffffff 0%, #f7fbff 100%); border-color: rgba(30,77,139,.22); }
.org-card.is-hq::before { height: 4px; }
.org-card.is-hq h3 { font-size: 20px; }
.org-card.is-hq .org-intro { font-size: 15.5px; max-width: 880px; }
.org-card.is-hq .org-contact { flex-direction: row; flex-wrap: wrap; gap: 10px 32px; border-top-style: solid; }
@media (max-width: 760px) {
  .org-card.is-hq .org-contact { flex-direction: column; }
}
