/* ============================================================
   无锡智蓝智能科技有限公司 · 官网样式
   工业科技感 + 蓝绿主色
   ============================================================ */

:root {
  --brand-blue: #2a62ae;
  --brand-green: #1b923b;
  --navy: #16324f;
  --navy-2: #1d3f63;
  --blue: #2a62ae;
  --cyan: #1b923b;
  --teal: #1b923b;
  --accent: #1b923b;
  --ink: #1c2b3a;
  --gray: #5a6b7b;
  --line: #e3e9ef;
  --bg: #f5f8fa;
  --bg-soft: #eef4f8;
  --white: #ffffff;
  --radius: 12px;
  --shadow-sm: 0 2px 10px rgba(22, 50, 79, .06);
  --shadow-md: 0 10px 30px rgba(22, 50, 79, .10);
  --shadow-lg: 0 20px 50px rgba(22, 50, 79, .16);
  --maxw: 1200px;
  /* 中文优先字体栈 */
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, sans-serif;
  /* 日文优先字体栈：避免汉字落到中文字形（如 直/骨/今/类 的字形差异） */
  --font-ja: "Hiragino Kaku Gothic ProN", "Hiragino Sans", "Yu Gothic", "YuGothic", "Meiryo", "Noto Sans JP", "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 英文优先字体栈 */
  --font-en: "Segoe UI", -apple-system, BlinkMacSystemFont, "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  /* 重字重：日文字体普遍缺 800 字重，降为 700 以避免浏览器伪粗体 */
  --fw-heavy: 800;
}

html[lang="ja"] { --fw-heavy: 700; }
html[lang="ja"] body { font-family: var(--font-ja); letter-spacing: .01em; }
html[lang="en"] body { font-family: var(--font-en); }

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ---------- 顶部栏 ---------- */
.topbar {
  background: var(--navy);
  color: #bcd0e6;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 40px; padding-top: 8px; padding-bottom: 8px;
  flex-wrap: wrap; gap: 4px 16px;
}
.topbar a { color: #d7e6f5; }
.topbar a:hover { color: var(--cyan); }
.topbar .tb-item { display: inline-flex; align-items: center; gap: 6px; }
.topbar .tb-right { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 4px 16px; margin-left: auto; }

/* 后台入口（顶部信息栏最右侧）：新窗口打开 */
.topbar .tb-admin {
  display: inline-flex; align-items: center; gap: 5px;
  color: #d7e6f5; white-space: nowrap;
  padding: 2px 10px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, .28);
  font-size: 12px; line-height: 1.5;
  transition: color .2s, border-color .2s, background .2s;
}
.topbar .tb-admin:hover {
  color: #fff; border-color: rgba(255, 255, 255, .65);
  background: rgba(255, 255, 255, .1); text-decoration: none;
}
.topbar .tb-admin-icon { font-size: 10.5px; line-height: 1; }

/* 英文版的标语与地址最长：实测标语 552px + 右侧组 631px 会超出容器 47px 导致换行，
   这里单独把英文字号降到 12px（中/日文余量充足，保持 13px 不变） */
html[lang="en"] .topbar { font-size: 12px; }

/* 窄一些时，英文版优先隐藏地址（页脚与联系页已有完整地址），保证信息栏仍是单行 */
@media (max-width: 1200px) {
  html[lang="en"] .topbar .tb-addr { display: none; }
}

/* ---------- 导航 ---------- */
.header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 72px; gap: 14px; flex-wrap: nowrap;
}

/* 品牌区：文字必须单行显示，且不允许被导航挤压后折行（仅限页头，页脚另有一套规则） */
.brand { display: flex; align-items: center; gap: 12px; }
.header .brand { flex-shrink: 0; }
.brand .logo {
  height: 40px; width: auto;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; border-radius: 6px;
}
.brand .logo img { height: 40px; width: auto; display: block; }
.header .brand .brand-text { flex-shrink: 0; }
.brand .brand-name { font-weight: 700; font-size: 18px; color: var(--navy); line-height: 1.2; }
.brand .brand-sub { font-size: 11px; color: var(--gray); letter-spacing: .5px; }
.header .brand .brand-name,
.header .brand .brand-sub { white-space: nowrap; }
/* 英文公司名最长（43 字符），用略小字号 + 微弱负字距，使其与 6 项导航、语言切换器同处一行 */
html[lang="en"] .header .brand .brand-name { font-size: 16px; letter-spacing: -.2px; }
.brand.logo-only { gap: 0; }
.brand.logo-only .logo { height: 44px; }
.brand.logo-only .logo img { height: 44px; }

.nav { display: flex; gap: 4px; align-items: center; flex-wrap: nowrap; }
.nav a {
  padding: 8px 12px; border-radius: 8px; font-size: 15px;
  color: var(--ink); font-weight: 500; transition: .2s; white-space: nowrap;
}
.nav a:hover { color: var(--blue); background: var(--bg-soft); }
.nav a.active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); }

/* ---------- 语言切换器 ---------- */
.lang-switch {
  display: inline-flex; align-items: center; flex-shrink: 0;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--bg-soft); padding: 3px; gap: 2px;
}
.lang-switch a {
  padding: 4px 9px; border-radius: 999px; font-size: 12.5px;
  color: var(--gray); white-space: nowrap; transition: .2s; line-height: 1.4;
}
.lang-switch a:hover { color: var(--blue); background: #fff; }
.lang-switch a.active { color: #fff; background: linear-gradient(135deg, var(--blue), var(--cyan)); font-weight: 600; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; border-radius: 8px; flex-shrink: 0;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy); margin: 5px auto; border-radius: 2px; }

/* 中等宽度：逐级收紧导航与语言切换器，仍保持品牌名单行；实在放不下才隐藏文字品牌名 */
@media (max-width: 1240px) {
  html[lang="en"] .header .brand .brand-name { font-size: 15px; }
  .nav a { padding: 8px 10px; font-size: 14.5px; }
}
@media (max-width: 1140px) {
  html[lang="en"] .header .brand .brand-name { font-size: 14px; }
  .nav a { padding: 8px 9px; font-size: 14px; }
  .lang-switch a { padding: 4px 8px; font-size: 12px; }
}
@media (max-width: 1040px) {
  .brand .brand-text { display: none; }
}
@media (max-width: 900px) {
  .nav a { padding: 8px 9px; font-size: 13.5px; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 70% -10%, #2a62ae 0%, var(--navy) 55%, #0d1f33 100%);
  color: #fff;
}
.hero-slider { padding: 0; min-height: 620px; display: block; perspective: 1600px; }
.hero-slide {
  position: relative; opacity: 0; visibility: hidden;
  transition: opacity 1.2s ease, transform 3s cubic-bezier(.4,.1,.2,1);
  display: flex; align-items: center;
  min-height: 620px;
  transform-origin: center center;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}
.hero-slide.active { opacity: 1; visibility: visible; transform: rotateY(0deg); }
.hero-slider .hero-slide { position: absolute; inset: 0; display: flex; align-items: center; min-height: 620px; }
.hero-slider .hero-slide.active { position: relative; width: 100%; }
.hero-slide > .container { width: 100%; }
.hero-slide.leaving {
  opacity: 0; visibility: hidden;
  transform: rotateY(-180deg);
  transition: opacity 1.2s ease, transform 3s cubic-bezier(.4,.1,.2,1);
}
.hero-slide.entering {
  opacity: 1; visibility: visible;
  transform: rotateY(180deg);
  transition: opacity 1.2s ease .3s, transform 3s cubic-bezier(.4,.1,.2,1);
}
.hero-slide.entering.active { transform: rotateY(0deg); }
.hero-slide-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
}
.hero-slide-mask {
  position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(13,31,51,.92) 0%, rgba(13,31,51,.65) 55%, rgba(13,31,51,.35) 100%);
}
.hero-dots {
  position: absolute; left: 50%; bottom: 28px; transform: translateX(-50%);
  z-index: 3; display: flex; gap: 10px;
}
.hero-dots .dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); cursor: pointer; transition: .25s;
  border: none; padding: 0;
}
.hero-dots .dot.active { background: #fff; width: 26px; border-radius: 5px; }
.hero::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background-image:
    linear-gradient(rgba(51,193,208,.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(51,193,208,.08) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(800px 500px at 60% 30%, #000, transparent 75%);
  pointer-events: none;
}
.hero .container {
  position: relative; z-index: 1;
  padding-top: 88px; padding-bottom: 96px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
}
.hero .kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; letter-spacing: 2px; color: var(--cyan);
  text-transform: uppercase; margin-bottom: 18px;
}
.hero h1 { font-size: 44px; line-height: 1.25; font-weight: var(--fw-heavy); margin-bottom: 20px; }
.hero h1 em { font-style: normal; color: var(--cyan); }
.hero .hero-title { font-size: 44px; line-height: 1.25; font-weight: var(--fw-heavy); margin-bottom: 20px; }
.hero .hero-title em { font-style: normal; color: var(--cyan); }
.hero .lead { font-size: 18px; color: #c8d8ea; max-width: 540px; margin-bottom: 32px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 10px; font-size: 15px; font-weight: 600;
  cursor: pointer; transition: .2s; border: 1px solid transparent;
}
.btn-primary { background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; box-shadow: 0 8px 22px rgba(51,193,208,.35); }
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(51,193,208,.45); }
.btn-ghost { background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.25); }
.btn-ghost:hover { background: rgba(255,255,255,.16); }
.btn-outline { background: #fff; color: var(--blue); border-color: var(--line); }
.btn-outline:hover { border-color: var(--blue); }

.hero .hero-visual {
  position: relative; display: flex; align-items: center; justify-content: center;
}
.hero .hero-visual .orb {
  width: 340px; height: 340px; border-radius: 50%;
  background: conic-gradient(from 0deg, var(--cyan), var(--blue), var(--teal), var(--cyan));
  filter: blur(2px); opacity: .9;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 0 80px rgba(51,193,208,.5);
}
.hero .hero-visual .orb-inner {
  width: 300px; height: 300px; border-radius: 50%;
  background: var(--navy);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  text-align: center; padding: 20px;
}
.hero .hero-visual .orb-inner .num { font-size: 54px; font-weight: var(--fw-heavy); color: var(--cyan); line-height: 1; }
.hero .hero-visual .orb-inner .lab { font-size: 14px; color: #bcd0e6; margin-top: 10px; }

/* ---------- 通用 section ---------- */
.section { padding: 84px 0; }
.section.alt { background: var(--bg); }
.section-head { max-width: 720px; margin: 0 auto 52px; text-align: center; }
.section-head .eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--blue);
  text-transform: uppercase; margin-bottom: 12px; font-weight: 600;
}
.section-head h2 { font-size: 34px; font-weight: var(--fw-heavy); color: var(--navy); margin-bottom: 14px; }
.section-head p { color: var(--gray); font-size: 17px; }

/* ---------- 卡片网格 ---------- */
.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); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .25s; box-shadow: var(--shadow-sm);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #cfe0ec; }
.card .icon {
  width: 52px; height: 52px; border-radius: 12px; margin-bottom: 18px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff; display: flex; align-items: center; justify-content: center;
  font-size: 24px;
}
.card h3 { font-size: 19px; color: var(--navy); margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 15px; }

/* 产品卡片（带图） */
.card-product { padding: 0; overflow: hidden; }

/* 案例图片组 */
.case-gallery { display: grid; gap: 16px; margin-bottom: 24px; }
.case-gallery.g3 { grid-template-columns: repeat(3, 1fr); }
.case-gallery.g2 { grid-template-columns: repeat(2, 1fr); }
.case-gallery img {
  width: 100%; height: 200px; object-fit: cover;
  border-radius: 10px; box-shadow: var(--shadow-sm); cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}
.case-gallery img:hover { transform: scale(1.03); box-shadow: var(--shadow-md); }
@media (max-width: 640px) {
  .case-gallery.g3, .case-gallery.g2 { grid-template-columns: 1fr; }
  .case-gallery img { height: 180px; }
}
.card-product .pimg {
  width: 100%; height: 220px; background: #f0f5f9;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.card-product .pimg img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.card-product:hover .pimg img { transform: scale(1.06); }
.card-product .pbody { padding: 20px 22px 24px; }
.card-product .pbody h3 { font-size: 18px; color: var(--navy); margin-bottom: 8px; }
.card-product .pbody p { color: var(--gray); font-size: 14px; }
.card-product .picon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10px; margin-bottom: 12px;
  background: linear-gradient(135deg, var(--blue), var(--cyan)); color: #fff; font-size: 20px;
}

/* ---------- 数字统计 ---------- */
.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  text-align: center;
}
.stat .num { font-size: 46px; font-weight: var(--fw-heavy); color: var(--navy); line-height: 1; }
.stat .num span { color: var(--blue); }
.stat .lab { color: var(--gray); margin-top: 8px; font-size: 15px; }

/* ---------- 页头 banner ---------- */
.page-hero {
  background: linear-gradient(135deg, #2a62ae 0%, #1b923b 100%);
  color: #fff; padding: 72px 0;
}
.page-hero h1 { font-size: 38px; font-weight: var(--fw-heavy); margin-bottom: 12px; }
.page-hero .crumbs { font-size: 14px; color: rgba(255,255,255,.8); }
.page-hero .crumbs a { color: #fff; }
.page-hero .crumbs a:hover { text-decoration: underline; }

/* ---------- 图文模块 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow-md); width: 100%; object-fit: cover; }
.split h3 { font-size: 26px; color: var(--navy); margin-bottom: 16px; }
.split p { color: var(--gray); margin-bottom: 14px; }

/* ---------- 标签 ---------- */
.tags { display: flex; flex-wrap: wrap; gap: 10px; }
.tag {
  padding: 7px 16px; border-radius: 999px; background: var(--bg-soft);
  color: var(--blue); font-size: 14px; font-weight: 500; border: 1px solid #dbe7f0;
}

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 32px; }
.timeline::before { content: ""; position: absolute; left: 8px; top: 4px; bottom: 4px; width: 2px; background: var(--line); }
.timeline-item { position: relative; padding-bottom: 28px; }
.timeline-item::before {
  content: ""; position: absolute; left: -30px; top: 6px;
  width: 14px; height: 14px; border-radius: 50%;
  background: var(--cyan); border: 3px solid #fff; box-shadow: 0 0 0 2px var(--cyan);
}
.timeline-item h4 { color: var(--navy); font-size: 17px; margin-bottom: 6px; }
.timeline-item p { color: var(--gray); font-size: 15px; }

/* ---------- 动画 ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- 底部 ---------- */
.footer { background: linear-gradient(90deg, #1b923b 0%, #2a62ae 50%, #1b923b 100%); color: #ffffff; padding: 64px 0 32px; }
.footer .container { display: grid; grid-template-columns: 1.7fr 0.9fr 0.9fr 1fr; gap: 32px; }
.footer h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer a { color: rgba(255,255,255,.85); display: block; margin-bottom: 10px; font-size: 14px; }
.footer a:hover { color: #fff; text-decoration: underline; }
.footer .brand { color: #fff; }
.footer .brand-sub { color: rgba(255,255,255,.7); }
.footer .brand-desc { font-size: 14px; margin-top: 12px; color: rgba(255,255,255,.85); }
.footer .footer-brand { display: flex; flex-direction: row; align-items: center; gap: 14px; margin-bottom: 0; }
.footer .footer-brand .logo img { height: 44px; }
.footer .footer-brand { min-width: 0; }
.footer .fb-text { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.footer .fb-text .brand-name { font-size: 16px; color: #fff; overflow-wrap: anywhere; }
.footer .fb-text .brand-sub { font-size: 11px; color: rgba(255,255,255,.75); overflow-wrap: anywhere; }
.footer .footer-bottom {
  border-top: 1px solid rgba(255,255,255,.3);
  margin: 48px auto 0; padding-top: 24px;
  width: fit-content; max-width: 100%;
  text-align: center; font-size: 13px; color: rgba(255,255,255,.85);
}
.footer .footer-bottom .beian { display: inline; color: inherit; margin: 0; }
.footer .footer-bottom-wrap { display: block; }

/* 微信二维码 / 地图 */
.qr-box { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.qr-box img { width: 140px; height: 140px; object-fit: contain; border-radius: 10px; border: 1px solid var(--line); }
.qr-box .qr-label { font-size: 13px; color: var(--gray); }

/* 图片灯箱 */
.img-zoom { cursor: zoom-in; }
[data-lightbox] { cursor: zoom-in; }
.lightbox {
  position: fixed; inset: 0; z-index: 9999;
  background: rgba(0,0,0,.88);
  display: none; align-items: center; justify-content: center;
  padding: 40px; cursor: zoom-out;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 92vw; max-height: 90vh;
  border-radius: 6px; box-shadow: 0 20px 60px rgba(0,0,0,.5);
}
.lightbox .lb-close {
  position: absolute; top: 20px; right: 28px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,.15); color: #fff;
  border: none; font-size: 26px; line-height: 1; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
}
.lightbox .lb-close:hover { background: rgba(255,255,255,.3); }

/* ---------- 通用工具类 ---------- */
.eyebrow {
  display: inline-block; font-size: 13px; letter-spacing: 2px; color: var(--blue);
  text-transform: uppercase; margin-bottom: 12px; font-weight: 600;
}
.split .eyebrow { display: block; }
.center-cta { text-align: center; margin-top: 36px; }
.center-note { text-align: center; margin-top: 28px; color: var(--gray); font-size: 15px; }
.muted { color: var(--gray); }
.muted-sm { color: var(--gray); font-size: 14px; }
.mt-10 { margin-top: 10px; }
.mt-12 { margin-top: 12px; }
.mt-14 { margin-top: 14px; }
.mt-16 { margin-top: 16px; }
.mt-36 { margin-top: 36px; }
.mt-48 { margin-top: 48px; }

/* 首页 CTA 卡片 */
.cta-card {
  text-align: center; padding: 48px;
  background: linear-gradient(135deg, var(--navy), #16324f); border: none;
}
.cta-card h2 { color: #fff; font-size: 30px; margin-bottom: 14px; }
.cta-card p { color: #bcd0e6; margin-bottom: 28px; }

/* 案例页 */
.case-card { margin-bottom: 28px; }
.case-body { gap: 32px; }
.case-subtitle { color: var(--navy); margin-bottom: 10px; }
.case-list { color: var(--gray); font-size: 14px; line-height: 2; }

/* 文本列表 / 段落块 */
.plain-list { color: var(--gray); font-size: 15px; line-height: 2; }
.blocks { color: var(--gray); font-size: 14px; line-height: 1.9; }
.timeline { margin-top: 8px; }

/* 通栏图片 */
.wide-img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow-md); }

/* 联系页 */
.contact-grid { margin-bottom: 40px; }
.contact-stack { display: flex; flex-direction: column; gap: 16px; }
.contact-divider { border-top: 1px solid var(--line); padding-top: 16px; }
.contact-title { font-size: 17px; }
.contact-phone { font-size: 24px; font-weight: 700; color: var(--blue); }
.contact-person { color: var(--gray); margin-left: 8px; font-size: 14px; }
.contact-email { font-size: 18px; color: var(--blue); }
.address-card { padding: 0; overflow: hidden; }
.address-head { padding: 28px 36px 0; }
.address-head h3 { font-size: 22px; color: var(--navy); margin-bottom: 10px; }
.address-head p { color: var(--gray); margin-bottom: 20px; }
.address-map { width: 100%; height: auto; display: block; }

/* ---------- 在线留言表单 ---------- */
.form-card { margin-bottom: 40px; padding: 36px 40px 32px; }
.form-head { max-width: 640px; margin-bottom: 26px; }
.form-head h3 { font-size: 24px; color: var(--navy); margin-bottom: 8px; }
.form-head p { color: var(--gray); font-size: 15px; }

.contact-form { display: flex; flex-direction: column; gap: 16px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field label { font-size: 14px; font-weight: 600; color: var(--navy); }
.field .req { color: #d93025; }
.field .opt { color: var(--gray); font-weight: 400; font-size: 12px; }
.field input[type="text"],
.field input[type="email"],
.field input[type="tel"],
.field select,
.field textarea {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  background: #fff; border: 1px solid var(--line); border-radius: 10px;
  padding: 11px 14px; transition: border-color .2s, box-shadow .2s;
  line-height: 1.5;
}
.field textarea { resize: vertical; min-height: 120px; }
.field input::placeholder, .field textarea::placeholder { color: #a8b4c0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(42,98,174,.12);
}
.field input.is-invalid, .field textarea.is-invalid, .field select.is-invalid {
  border-color: #d93025; box-shadow: 0 0 0 3px rgba(217,48,37,.10);
}
.field-hint { color: var(--gray); font-size: 12.5px; margin-top: -6px; }

.field-error { display: none; color: #d93025; font-size: 12.5px; }
.field-error.show { display: block; }
.field-error--wide { margin-top: -6px; }

.field-check { gap: 4px; }
.check-label {
  display: flex; align-items: flex-start; gap: 9px;
  font-size: 13.5px; font-weight: 400; color: var(--gray);
  line-height: 1.6; cursor: pointer;
}
.check-label input[type="checkbox"] {
  width: 16px; height: 16px; margin: 3px 0 0; flex-shrink: 0; accent-color: var(--blue); cursor: pointer;
}
.check-label .req { font-size: 13px; }

.privacy-note {
  background: var(--bg-soft); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 14px; font-size: 13px; color: var(--gray);
}
.privacy-note summary { cursor: pointer; font-weight: 600; color: var(--blue); }
.privacy-note summary:hover { text-decoration: underline; }
.privacy-note p { margin-top: 8px; line-height: 1.75; }

/* 蜜罐字段：真实用户不可见，机器人会填。不用 display:none（部分机器人会跳过） */
.hp-field {
  position: absolute; left: -9999px; top: auto;
  width: 1px; height: 1px; overflow: hidden;
}

.form-actions { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 4px; }
.form-actions button[disabled] { opacity: .6; cursor: not-allowed; transform: none; }
.form-note { color: var(--gray); font-size: 12.5px; }
.form-status { color: var(--gray); font-size: 13px; min-height: 0; }

.form-result { padding: 20px 22px; border-radius: 10px; }
.form-result h3 { font-size: 17px; margin-bottom: 6px; }
.form-result p { font-size: 14px; }
.form-result--ok { background: #eaf7ee; border: 1px solid #b9e0c6; }
.form-result--ok h3 { color: #1b7a3a; }
.form-result--ok p { color: #276b41; }
.form-result--err { background: #fdecea; border: 1px solid #f5c2bd; }
.form-result--err h3 { color: #b3261e; }
.form-result--err p { color: #8c2018; }
.contact-form.is-sent .form-row,
.contact-form.is-sent > .field,
.contact-form.is-sent > .field-error,
.contact-form.is-sent > .field-hint,
.contact-form.is-sent > .privacy-note,
.contact-form.is-sent > .form-actions,
.contact-form.is-sent > .form-status { display: none; }

/* 多语言排版保护：英文/日文更长，允许在窄容器内折行而不是溢出 */
.stat .num, .hero h1, .hero .hero-title, .section-head h2, .card h3 { overflow-wrap: anywhere; }

/* ---------- 响应式 ---------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero .container { grid-template-columns: 1fr; padding-top: 56px; padding-bottom: 64px; }
  .hero .hero-visual { order: -1; }
  .hero .hero-visual .orb { width: 220px; height: 220px; }
  .hero .hero-visual .orb-inner { width: 190px; height: 190px; }
  .hero .hero-visual .orb-inner .num { font-size: 40px; }
  .split { grid-template-columns: 1fr; gap: 28px; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .footer .container { grid-template-columns: 1fr 1fr; }
}

/* 820px 以下横向导航放不下（6 项 + 语言切换器），改为汉堡菜单 */
@media (max-width: 820px) {
  .nav {
    position: absolute; top: 72px; left: 0; right: 0;
    flex-direction: column; align-items: stretch; background: #fff;
    border-bottom: 1px solid var(--line); padding: 12px 20px;
    display: none;
  }
  .nav.open { display: flex; }
  .nav a { padding: 12px 14px; }
  .nav-toggle { display: block; }
  /* 顺序：logo …… 语言切换 · 汉堡按钮 */
  .brand { order: 0; margin-right: auto; }
  .lang-switch { order: 1; }
  .nav-toggle { order: 2; }
}

@media (max-width: 640px) {
  body { font-size: 15px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .hero h1, .hero .hero-title { font-size: 32px; }
  .section { padding: 56px 0; }
  .section-head h2 { font-size: 27px; }
  .stat .num { font-size: 36px; }
  /* 留言表单：两列改单列 */
  .form-row { grid-template-columns: 1fr; }
  .form-card { padding: 24px 20px 22px; margin-bottom: 28px; }
  .form-head h3 { font-size: 21px; }
  .form-actions { gap: 10px; }
  .form-actions .btn { width: 100%; justify-content: center; }
  .stat .num { font-size: 36px; }
  .cta-card { padding: 32px 22px; }
  .cta-card h2 { font-size: 24px; }
  .contact-phone { font-size: 20px; }
  .footer .container { grid-template-columns: 1fr; }
  .footer .footer-brand { align-items: flex-start; }
}

/* 小屏手机（≤480px）：收紧容器留白、logo 与语言切换器，保证页头一行放得下 */
@media (max-width: 480px) {
  .container { padding: 0 16px; }
  /* 超窄屏：后台入口只留锁图标，减少信息栏换行 */
  .topbar .tb-admin-text { display: none; }
  .topbar .tb-admin { padding: 2px 7px; }
  .header .container { gap: 10px; }
  .brand .logo, .brand .logo img { height: 34px; }
  .footer .footer-brand .logo img { height: 36px; }
  .lang-switch { padding: 2px; gap: 1px; }
  .lang-switch a { padding: 3px 7px; font-size: 11.5px; }
  .nav-toggle { width: 34px; }
  .topbar { font-size: 12px; }
  .footer { padding: 48px 0 28px; }
  .footer .footer-brand { gap: 10px; }
  .footer .fb-text .brand-name { font-size: 14px; }
}
