/* ============================================================
   Xiamen Baixu Chemical Industry CO.,LTD. — Site stylesheet
   Light / Dark themes, carousel, dropdown nav, search overlay
   ============================================================ */

:root {
  --brand:        #2c4a9a;
  --brand-deep:   #1e3674;
  --brand-dark:   #12234a;
  --accent:       #b5252c;
  --accent-light: #fbeceb;

  --bg:           #ffffff;
  --bg-soft:      #f5f8fc;
  --bg-soft-2:    #eef3fa;
  --card:         #ffffff;
  --line:         #e4e9f0;
  --ink:          #16202f;
  --ink-2:        #3c4a60;
  --ink-3:        #6b7a90;
  --heading:      #12234a;
  --hl:           #2c4a9a;
  --header-bg:    rgba(255,255,255,.94);
  --shadow-sm:    0 2px 10px rgba(16, 40, 80, .06);
  --shadow:       0 10px 30px rgba(16, 40, 80, .09);
  --shadow-lg:    0 22px 60px rgba(16, 40, 80, .14);

  --maxw:         1240px;
  --header-h:     74px;
  --ease:         cubic-bezier(.22, .61, .36, 1);
}

[data-theme="dark"] {
  --bg:           #0b1322;
  --bg-soft:      #0f1a2e;
  --bg-soft-2:    #13203a;
  --card:         #111c31;
  --line:         #243352;
  --ink:          #e8edf6;
  --ink-2:        #b8c3d6;
  --ink-3:        #8695ae;
  --heading:      #f2f5fb;
  --hl:           #8fa9e8;
  --header-bg:    rgba(11,19,34,.92);
  --shadow-sm:    0 2px 10px rgba(0, 0, 0, .3);
  --shadow:       0 10px 30px rgba(0, 0, 0, .38);
  --shadow-lg:    0 22px 60px rgba(0, 0, 0, .5);
  --accent:       #e05a60;
  --accent-light: #3a1b1e;
  color-scheme: dark;
}

/* ---------- base ---------- */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB",
               "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
  transition: background .3s var(--ease), color .3s var(--ease);
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 700; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* ---------- reusable ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 26px; height: 2px; background: var(--accent); border-radius: 2px; }
.section { padding: 92px 0; }
.section--soft { background: var(--bg-soft); }
.section--soft2 { background: var(--bg-soft-2); }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(28px, 3.4vw, 40px); margin-bottom: 16px; color: var(--heading); }
.section-head h2 .hl { color: var(--hl); }
.section-head p { color: var(--ink-3); font-size: 16.5px; margin: 0; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 30px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1.5px solid transparent; cursor: pointer; transition: all .25s var(--ease); white-space: nowrap;
  font-family: inherit;
}
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 8px 22px rgba(11, 94, 215, .28); }
.btn-primary:hover { background: var(--brand-deep); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,.6); color: #fff; }
.btn-ghost:hover { background: rgba(255,255,255,.14); border-color: #fff; }
.btn-outline { border-color: var(--hl); color: var(--hl); }
.btn-outline:hover { background: var(--hl); color: #fff; transform: translateY(-2px); }
[data-theme="dark"] .btn-outline:hover { color: #0b1322; }

/* ---------- topbar ---------- */
.topbar { background: var(--brand-dark); color: rgba(255,255,255,.82); font-size: 13px; padding: 9px 0; }
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.topbar a:hover { color: #fff; }
.topbar .sep { opacity: .3; margin: 0 10px; }
.topbar-right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }

/* ---------- header ---------- */
.header { position: sticky; top: 0; z-index: 100; background: var(--header-bg);
  backdrop-filter: blur(12px); border-bottom: 1px solid transparent;
  transition: box-shadow .3s var(--ease), border-color .3s var(--ease), background .3s var(--ease); }
.header.stuck { box-shadow: var(--shadow-sm); border-bottom-color: var(--line); }
.header .container { height: var(--header-h); display: flex; align-items: center; justify-content: space-between; gap: 20px; }

.logo { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.logo-img { height: 42px; width: auto; display: block; }
.logo-full { height: 42px; width: auto; display: block; }
.logo-text strong { display: block; font-size: 18px; letter-spacing: .02em; color: var(--heading); line-height: 1.25; }
.logo-text span { display: block; font-size: 11px; letter-spacing: .12em; color: var(--ink-3); text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; }
.nav > li { position: relative; }
.nav a { position: relative; padding: 9px 16px; border-radius: 9px; font-size: 15.5px; font-weight: 500;
  color: var(--ink-2); transition: color .2s var(--ease), background .2s var(--ease); display: inline-flex; align-items: center; gap: 6px; }
.nav > li > a::after {
  content: ""; position: absolute; left: 16px; right: 16px; bottom: 3px;
  height: 2px; background: var(--hl); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform .28s var(--ease);
}
.nav a:hover { color: var(--hl); background: var(--bg-soft); }
.nav > li > a:hover::after, .nav > li > a.active::after { transform: scaleX(1); }
.nav > li > a.active { color: var(--hl); font-weight: 600; }
.nav .caret { width: 12px; height: 12px; stroke: currentColor; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }

.drop {
  position: absolute; top: calc(100% + 8px); left: 0; min-width: 260px;
  background: var(--card); border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lg); padding: 8px; display: none; z-index: 50;
}
.nav li:hover > .drop, .nav li.open > .drop { display: block; animation: dropIn .22s var(--ease); }
@keyframes dropIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.drop a { display: block; padding: 10px 14px; border-radius: 9px; font-size: 14.5px; color: var(--ink-2); }
.drop a::after { display: none; }
.drop a:hover { background: var(--bg-soft); color: var(--hl); }
.drop .drop-label { font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-3); padding: 8px 14px 4px; }

.header-cta { display: flex; align-items: center; gap: 10px; }
.header-tel { font-size: 15px; font-weight: 700; color: var(--heading); display: flex; align-items: center; gap: 7px; }
.header-tel svg { width: 16px; height: 16px; }
.icon-btn {
  width: 40px; height: 40px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--card); color: var(--ink-2); cursor: pointer; display: grid; place-items: center;
  transition: all .25s var(--ease); flex-shrink: 0;
}
.icon-btn:hover { color: var(--hl); border-color: var(--hl); }
.icon-btn svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
[data-theme="dark"] .icon-btn .moon { display: none; }
[data-theme="light"] .icon-btn .sun, :root:not([data-theme="dark"]) .icon-btn .sun { display: none; }
[data-theme="dark"] .icon-btn .sun { display: block; }

/* language switch */
.lang-switch { position: relative; flex-shrink: 0; }
.lang-toggle {
  width: auto; padding: 0 11px; gap: 6px; display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 700; letter-spacing: .04em; height: 40px;
}
.lang-toggle .lang-cur { line-height: 1; }
.lang-drop {
  position: absolute; top: calc(100% + 10px); right: 0; min-width: 132px; z-index: 120;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px;
  box-shadow: 0 16px 40px rgba(9, 20, 44, .16); padding: 6px; opacity: 0; visibility: hidden;
  transform: translateY(-6px); transition: all .22s var(--ease);
}
.lang-switch:hover .lang-drop, .lang-switch.open .lang-drop, .lang-switch:focus-within .lang-drop {
  opacity: 1; visibility: visible; transform: translateY(0);
}
.lang-drop a { display: block; padding: 9px 12px; border-radius: 8px; font-size: 14px;
  color: var(--ink); transition: all .2s var(--ease); }
.lang-drop a:hover { background: var(--bg-soft); color: var(--brand); }
.lang-drop a.active { color: var(--brand); font-weight: 700; background: var(--bg-soft); }
.lang-drop a.active::after { content: "✓"; float: right; }

.burger { display: none; width: 42px; height: 42px; border: 1px solid var(--line); background: var(--card);
  border-radius: 10px; cursor: pointer; padding: 0; }
.burger span { display: block; width: 18px; height: 2px; background: var(--ink); margin: 3.5px auto; border-radius: 2px; transition: all .28s var(--ease); }
.burger.on span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.burger.on span:nth-child(2) { opacity: 0; }
.burger.on span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

/* ---------- hero slider ---------- */
.hero-slider { position: relative; height: min(78vh, 720px); min-height: 480px; overflow: hidden; background: var(--brand-dark); }
.slide { position: absolute; inset: 0; opacity: 0; transition: opacity .9s var(--ease); }
.slide.is-active { opacity: 1; }
.slide img { width: 100%; height: 100%; object-fit: cover; transform: scale(1.04); }
.slide.is-active img { animation: slideZoom 7s var(--ease) forwards; }
@keyframes slideZoom { from { transform: scale(1.06); } to { transform: scale(1.0); } }
.slide-shade { position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,20,44,.42) 0%, rgba(9,20,44,.06) 40%, rgba(9,20,44,.62) 100%); }
.slide-caption { position: absolute; left: 0; right: 0; bottom: 54px; color: #fff; z-index: 2; }
.slide-kicker {
  display: inline-flex; align-items: center; gap: 9px; font-size: 13px; font-weight: 700; letter-spacing: .16em;
  text-transform: uppercase; margin-bottom: 12px; color: #ffd9da;
}
.slide-kicker::before { content: ""; width: 30px; height: 2px; background: #fff; opacity: .8; }
.slide-caption h2 { font-size: clamp(26px, 3.8vw, 46px); text-shadow: 0 3px 18px rgba(9,20,44,.5); max-width: 780px; }
.slide-caption p { margin: 8px 0 0; font-size: 15px; letter-spacing: .08em; color: rgba(255,255,255,.85); text-transform: uppercase; }
.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35);
  background: rgba(9,20,44,.28); color: #fff; cursor: pointer; display: grid; place-items: center;
  backdrop-filter: blur(4px); transition: all .25s var(--ease);
}
.slider-arrow:hover { background: rgba(9,20,44,.55); border-color: #fff; }
.slider-arrow svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.slider-arrow.prev { left: 22px; }
.slider-arrow.next { right: 22px; }
.slider-dots { position: absolute; bottom: 20px; left: 0; right: 0; z-index: 5; display: flex; justify-content: center; gap: 9px; }
.slider-dots button { width: 26px; height: 4px; border-radius: 4px; border: none; cursor: pointer;
  background: rgba(255,255,255,.4); transition: all .3s var(--ease); padding: 0; }
.slider-dots button.active { background: #fff; width: 40px; }

/* ---------- stat strip ---------- */
.stat-strip { background: var(--bg); border-bottom: 1px solid var(--line); }
.stat-strip .container { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; padding: 40px 24px; }
.stat { display: flex; align-items: baseline; gap: 12px; justify-content: center; }
.stat .num { font-size: 38px; font-weight: 800; color: var(--brand); line-height: 1; }
.stat .num small { font-size: 16px; font-weight: 700; }
.stat .lbl { font-size: 14.5px; color: var(--ink-3); font-weight: 500; }

/* ---------- slogan band ---------- */
.slogan-band { background: linear-gradient(120deg, var(--brand-dark) 0%, var(--brand) 60%, #4a1d20 100%); color: #fff; padding: 64px 0; position: relative; overflow: hidden; }
.slogan-band::after { content: ""; position: absolute; right: -90px; top: -90px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.07); }
.slogan-band .container { position: relative; z-index: 2; text-align: center; }
.slogan-band .mark { font-size: 54px; line-height: .6; color: rgba(255,255,255,.4); font-family: Georgia, serif; }
.slogan-band h2 { font-size: clamp(22px, 3vw, 34px); margin: 10px 0 12px; }
.slogan-band p { color: rgba(255,255,255,.78); font-size: 15px; letter-spacing: .04em; margin: 0; }

/* ---------- business cards ---------- */
.biz-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.biz-card { position: relative; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; padding: 34px 30px 32px; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease); }
.biz-card::after { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, var(--brand), var(--accent)); transform: scaleX(0); transform-origin: left; transition: transform .4s var(--ease); }
.biz-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); border-color: transparent; }
.biz-card:hover::after { transform: scaleX(1); }
.biz-icon { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(44,74,154,.12), rgba(181,37,44,.12)); margin-bottom: 22px; }
.biz-icon svg { width: 28px; height: 28px; stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.biz-card h3 { font-size: 20.5px; color: var(--heading); margin-bottom: 12px; }
.biz-card p { color: var(--ink-3); font-size: 15px; margin-bottom: 18px; }
.biz-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.biz-tags span { font-size: 12.5px; padding: 5px 12px; border-radius: 999px; background: var(--bg-soft-2); color: var(--brand-deep); font-weight: 600; }
[data-theme="dark"] .biz-tags span { color: #9db4ea; }

/* ---------- product filter & cards ---------- */
.filter-bar { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 44px; }
.filter-btn { padding: 10px 22px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--card); font-size: 15px; font-weight: 500; color: var(--ink-2);
  cursor: pointer; transition: all .25s var(--ease); font-family: inherit; }
.filter-btn:hover { border-color: var(--hl); color: var(--hl); }
.filter-btn.active { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(11,94,215,.25); }

.prod-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.prod-card { display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: 20px; overflow: hidden; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.prod-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.prod-thumb { position: relative; height: 190px; background: linear-gradient(160deg, var(--bg-soft-2), var(--bg-soft));
  display: grid; place-items: center; overflow: hidden; }
.prod-thumb img { width: 92%; height: 88%; object-fit: contain; transition: transform .4s var(--ease); }
.prod-card:hover .prod-thumb img { transform: scale(1.06); }
.prod-cat { position: absolute; top: 12px; left: 12px; z-index: 2; font-size: 12px; font-weight: 700;
  padding: 4px 11px; border-radius: 999px; background: var(--card); color: var(--brand-deep);
  border: 1px solid var(--line); }
[data-theme="dark"] .prod-cat { color: #9db4ea; }
.prod-body { padding: 20px 22px 24px; display: flex; flex-direction: column; flex: 1; }
.prod-body h3 { font-size: 17px; color: var(--heading); margin-bottom: 10px; line-height: 1.45; }
.prod-body p { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.prod-more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--hl); display: inline-flex; align-items: center; gap: 6px; }
.prod-more svg { width: 15px; height: 15px; transition: transform .25s var(--ease); }
.prod-card:hover .prod-more svg { transform: translateX(4px); }

/* ---------- advantages ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-item { background: var(--card); border-radius: 14px; padding: 28px 24px; border: 1px solid var(--line); transition: all .3s var(--ease); }
.adv-item:hover { border-color: rgba(44,74,154,.4); box-shadow: var(--shadow); transform: translateY(-5px); }
.adv-num { font-size: 13px; font-weight: 800; color: var(--accent); letter-spacing: .1em; margin-bottom: 12px; }
.adv-item h4 { font-size: 17px; color: var(--heading); margin-bottom: 8px; }
.adv-item p { font-size: 14.5px; color: var(--ink-3); margin: 0; }

/* ---------- applications ---------- */
.app-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.app-item { text-align: center; padding: 26px 12px; background: var(--card); border: 1px solid var(--line);
  border-radius: 14px; transition: all .3s var(--ease); }
.app-item:hover { background: var(--brand); border-color: var(--brand); transform: translateY(-5px); }
.app-item:hover svg { stroke: #fff; }
.app-item:hover span { color: #fff; }
.app-item svg { width: 30px; height: 30px; margin: 0 auto 12px; stroke: var(--brand); fill: none;
  stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; display: block; transition: stroke .3s var(--ease); }
.app-item span { font-size: 14.5px; font-weight: 600; color: var(--ink-2); transition: color .3s var(--ease); }

/* ---------- news ---------- */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.news-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; overflow: hidden;
  display: flex; flex-direction: column; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.news-card:hover { transform: translateY(-7px); box-shadow: var(--shadow-lg); border-color: transparent; }
.news-media { position: relative; height: 215px; overflow: hidden; flex-shrink: 0; }
.news-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s var(--ease); }
.news-card:hover .news-media img { transform: scale(1.06); }
.news-date-badge { position: absolute; left: 16px; bottom: 16px; background: rgba(9,20,44,.82);
  -webkit-backdrop-filter: blur(5px); backdrop-filter: blur(5px); color: #fff; border-radius: 12px;
  padding: 9px 14px; text-align: center; line-height: 1.2; }
.news-date-badge .d { font-size: 24px; font-weight: 800; }
.news-date-badge .m { font-size: 10.5px; letter-spacing: .14em; opacity: .85; margin-top: 2px; text-transform: uppercase; }
.news-date { height: 130px; display: flex; flex-direction: column; align-items: center; justify-content: center;
  background: linear-gradient(135deg, var(--brand-dark), var(--brand)); color: #fff; position: relative; overflow: hidden; }
.news-date::after { content: ""; position: absolute; inset: 0; opacity: .2;
  background-image: linear-gradient(rgba(255,255,255,.4) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.4) 1px, transparent 1px);
  background-size: 22px 22px; }
.news-date .d { font-size: 40px; font-weight: 800; line-height: 1; position: relative; z-index: 1; }
.news-date .m { font-size: 12.5px; letter-spacing: .2em; opacity: .85; margin-top: 6px; position: relative; z-index: 1; }
.news-body { padding: 22px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.news-tag { font-size: 12px; font-weight: 700; color: var(--accent); letter-spacing: .08em; text-transform: uppercase; margin-bottom: 8px; }
.news-body h3 { font-size: 17px; line-height: 1.5; color: var(--heading); margin-bottom: 12px; }
.news-body p { font-size: 14px; color: var(--ink-3); line-height: 1.7; margin-bottom: 16px;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.news-body .prod-more { margin-top: auto; }

/* ---------- CTA band (light card style) ---------- */
.cta-band { background: none; padding: 0 0 44px; position: relative; }
.cta-band .container { position: relative; overflow: hidden;
  background: linear-gradient(115deg, var(--bg-soft-2) 0%, var(--bg) 55%, var(--bg-soft) 100%);
  border: 1px solid var(--line); border-radius: 24px;
  box-shadow: var(--shadow-sm);
  display: flex; align-items: center; justify-content: space-between; gap: 34px; flex-wrap: wrap;
  padding: 46px 52px; }
.cta-band .container::before { content: ""; position: absolute; right: -60px; top: -90px;
  width: 250px; height: 250px; border-radius: 50%; background: rgba(44,74,154,.07); }
.cta-band .container::after { content: ""; position: absolute; right: 130px; bottom: -130px;
  width: 210px; height: 210px; border-radius: 50%; background: rgba(181,37,44,.05); }
.cta-band .container > div { position: relative; z-index: 1;
  border-left: 4px solid var(--accent); padding-left: 22px; }
.cta-band h2 { font-size: clamp(22px, 2.6vw, 30px); margin-bottom: 8px; color: var(--heading); }
.cta-band p { margin: 0; color: var(--ink-2); font-size: 15px; }
.cta-band .btn { position: relative; z-index: 1; padding: 14px 32px;
  background: var(--brand) !important; color: #fff !important;
  box-shadow: 0 10px 26px rgba(44,74,154,.28) !important; }
.cta-band .btn:hover { background: var(--brand-deep) !important; transform: translateY(-2px); }
@media (max-width: 640px) {
  .cta-band .container { padding: 30px 22px; }
}

/* ---------- page hero ---------- */
.page-hero { position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(135deg, var(--brand-dark) 0%, #1d3a7e 60%, var(--brand) 100%); padding: 74px 0 76px; }
.page-hero::after { content: ""; position: absolute; inset: 0; opacity: .14;
  background-image: linear-gradient(rgba(255,255,255,.45) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,.45) 1px, transparent 1px);
  background-size: 50px 50px;
  mask-image: radial-gradient(700px 320px at 80% 30%, #000, transparent 75%);
  -webkit-mask-image: radial-gradient(700px 320px at 80% 30%, #000, transparent 75%); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { font-size: clamp(28px, 3.8vw, 42px); margin-bottom: 12px; }
.page-hero p { color: rgba(255,255,255,.8); margin: 0; font-size: 16px; max-width: 680px; }
.crumb { font-size: 13.5px; color: rgba(255,255,255,.62); margin-bottom: 14px; }
.crumb a:hover { color: #fff; }
.crumb span { margin: 0 8px; opacity: .5; }

/* ---------- about ---------- */
.about-wrap { display: grid; grid-template-columns: 1.05fr .95fr; gap: 60px; align-items: center; }
.about-img { position: relative; border-radius: 20px; overflow: hidden; min-height: 400px;
  background: url("../img/about-building.jpg") center/cover no-repeat;
  display: grid; place-items: center; padding: 40px; }
.about-img::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(165deg, rgba(9,20,44,.30) 0%, rgba(9,20,44,.16) 55%, rgba(9,20,44,.38) 100%); }
.about-img::after { content: ""; position: absolute; inset: 0; opacity: .18;
  background-image: radial-gradient(rgba(255,255,255,.7) 1px, transparent 1px); background-size: 24px 24px; }
.about-img-mark { position: relative; z-index: 2; text-align: center; color: #fff; }
.about-img-mark .sub { font-size: 14px; letter-spacing: .28em; opacity: .85; margin-top: 14px; text-transform: uppercase; }
.about-img-mark .line { width: 60px; height: 3px; background: rgba(255,255,255,.7); margin: 22px auto; border-radius: 3px; }
.about-img-mark .slogan { font-size: 16px; opacity: .92; font-weight: 500; }
.about-text h2 { font-size: clamp(26px, 3vw, 34px); color: var(--heading); margin-bottom: 18px; }
.about-text p { color: var(--ink-2); font-size: 16px; }

.bilingual { display: flex; flex-direction: column; gap: 4px; margin-bottom: 22px;
  border-left: 4px solid var(--accent); padding-left: 18px; }
.bilingual .name-cn { font-size: 26px; font-weight: 800; color: var(--heading); letter-spacing: .04em; }
.bilingual .name-en { font-size: 17px; font-weight: 600; color: var(--hl); letter-spacing: .02em; }

.mission-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.mission-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px; text-align: center; transition: all .3s var(--ease); }
.mission-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.mission-card.has-bg { position: relative; min-height: 360px; display: flex; flex-direction: column;
  justify-content: flex-end; text-align: left; color: #fff; border: none;
  background-size: cover; background-position: center; overflow: hidden; }
.mission-card.has-bg::before { content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(9,20,44,.10) 0%, rgba(9,20,44,.22) 55%, rgba(9,20,44,.70) 100%); }
.mission-card.has-bg > * { position: relative; z-index: 1; }
.mission-card.has-bg .k { color: rgba(255,255,255,.85); }
.mission-card.has-bg h3 { color: #fff; }
.mission-card.has-bg p { color: rgba(255,255,255,.88); }
.mission-card.has-bg:hover { box-shadow: var(--shadow-lg); }
.mission-card .k { font-size: 13px; font-weight: 700; letter-spacing: .16em; color: var(--accent); text-transform: uppercase; margin-bottom: 14px; }
.mission-card h3 { font-size: 19px; color: var(--heading); margin-bottom: 10px; }
.mission-card p { font-size: 14.5px; color: var(--ink-3); margin: 0; }

.timeline { position: relative; padding-left: 34px; }
.timeline::before { content: ""; position: absolute; left: 9px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(180deg, var(--brand), var(--accent)); border-radius: 2px; }
.tl-item { position: relative; padding-bottom: 34px; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before { content: ""; position: absolute; left: -31px; top: 7px; width: 14px; height: 14px;
  border-radius: 50%; background: var(--bg); border: 3px solid var(--brand); }
.tl-item .yr { font-size: 15px; font-weight: 800; color: var(--brand); margin-bottom: 4px; }
.tl-item h4 { font-size: 17px; color: var(--heading); margin-bottom: 6px; }
.tl-item p { font-size: 14.5px; color: var(--ink-3); margin: 0; }

/* ---------- detail page ---------- */
.detail-wrap { display: grid; grid-template-columns: 1fr 320px; gap: 46px; align-items: start; }
.detail-main h1 { font-size: clamp(26px, 3.2vw, 36px); color: var(--heading); margin-bottom: 14px; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }
.detail-meta span { font-size: 13px; padding: 5px 14px; border-radius: 999px;  background: var(--bg-soft-2); color: var(--brand-deep); font-weight: 600; }
[data-theme="dark"] .detail-meta span { color: #9db4ea; }
.detail-featured { margin: 4px 0 30px; border-radius: 16px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); }
.detail-featured img { width: 100%; display: block; }
.news-gallery { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 28px 0 6px; }
.news-gallery figure { margin: 0; border-radius: 14px; overflow: hidden;
  border: 1px solid var(--line); box-shadow: var(--shadow); background: var(--bg-soft); }
.news-gallery img { width: 100%; height: 280px; object-fit: cover; display: block; }
.news-gallery figcaption { padding: 10px 14px; font-size: 13px; line-height: 1.5;
  color: var(--ink-2); text-align: center; }
.news-gallery.g-single { grid-template-columns: 1fr; max-width: 540px; margin-left: auto; margin-right: auto; }
.news-gallery.g-single img { height: auto; max-height: 640px; }
.mol-hero { background: linear-gradient(160deg, var(--bg-soft-2), var(--bg-soft)); border: 1px solid var(--line);
  border-radius: 18px; padding: 26px; margin-bottom: 30px; }
.mol-hero img { width: 100%; max-height: 260px; object-fit: contain; }
.detail-main h2 { font-size: 21px; color: var(--heading); margin: 40px 0 16px; padding-left: 14px; border-left: 4px solid var(--brand); }
.detail-main h3 { font-size: 17.5px; color: var(--heading); margin: 26px 0 10px; }
.detail-main p { color: var(--ink-2); font-size: 16px; }
.detail-main ul li { position: relative; padding-left: 20px; margin-bottom: 9px; color: var(--ink-2); font-size: 15.5px; }
.detail-main ul li::before { content: ""; position: absolute; left: 2px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 14.5px; margin: 6px 0 10px;
  background: var(--card); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.spec-table thead th { background: var(--brand); color: #fff; font-weight: 600; text-align: left;
  padding: 12px 16px; font-size: 14px; white-space: nowrap; }
.spec-table td { padding: 11px 16px; border-bottom: 1px solid var(--line); color: var(--ink-2); }
.spec-table tbody tr:nth-child(even) { background: var(--bg-soft); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-scroll { overflow-x: auto; }

.side-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 26px 24px; margin-bottom: 22px; position: sticky; top: calc(var(--header-h) + 22px); }
.side-card h3 { font-size: 17px; color: var(--heading); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.side-list li { border-bottom: 1px dashed var(--line); }
.side-list li:last-child { border-bottom: none; }
.side-list a { display: block; padding: 11px 0; font-size: 14.5px; color: var(--ink-2);
  transition: color .2s var(--ease), padding-left .2s var(--ease); }
.side-list a:hover { color: var(--hl); padding-left: 5px; }
.side-contact { background: linear-gradient(140deg, var(--brand-dark), var(--brand)); color: #fff; border: none; }
.side-contact h3 { color: #fff; border-bottom-color: rgba(255,255,255,.22); }
.side-contact .ci { display: flex; gap: 11px; margin-bottom: 14px; font-size: 14.5px; }
.side-contact .ci b { font-weight: 600; color: rgba(255,255,255,.7); flex-shrink: 0; width: 52px; }
.side-contact .btn { width: 100%; margin-top: 8px; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 20px; }
.contact-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px;
  padding: 32px 28px; text-align: center; transition: all .3s var(--ease); }
.contact-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.contact-card .ci { width: 54px; height: 54px; border-radius: 16px; margin: 0 auto 18px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(44,74,154,.12), rgba(181,37,44,.12)); }
.contact-card .ci svg { width: 24px; height: 24px; stroke: var(--brand); fill: none; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.contact-card h3 { font-size: 17px; color: var(--heading); margin-bottom: 10px; }
.contact-card p { font-size: 14.5px; color: var(--ink-3); margin: 0 0 4px; }
.contact-card .strong { font-size: 18px; font-weight: 700; color: var(--brand); }

.office-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.office-card { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 30px 28px;
  position: relative; overflow: hidden; }
.office-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(180deg, var(--brand), var(--accent)); }
.office-card h3 { font-size: 18px; color: var(--heading); margin-bottom: 14px; }
.office-card dl { margin: 0; }
.office-card dt { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: .06em; margin-top: 14px; }
.office-card dd { margin: 2px 0 0; font-size: 15px; color: var(--ink-2); }

.form-wrap { background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 38px 36px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 14px; font-weight: 600; color: var(--ink-2); margin-bottom: 7px; }
.field input, .field textarea, .field select {
  width: 100%; font-family: inherit; font-size: 15px; color: var(--ink);
  padding: 12px 15px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg-soft);
  transition: border-color .2s var(--ease), background .2s var(--ease); }
.field input:focus, .field textarea:focus, .field select:focus {
  outline: none; border-color: var(--brand); background: var(--card); box-shadow: 0 0 0 3px rgba(44,74,154,.14); }
.field textarea { resize: vertical; min-height: 130px; }
.form-note { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* ---------- search overlay ---------- */
.search-overlay { position: fixed; inset: 0; z-index: 200; background: rgba(9,16,32,.55);
  backdrop-filter: blur(6px); display: none; align-items: flex-start; justify-content: center; padding: 96px 20px 40px; }
.search-overlay.open { display: flex; }
.search-panel { width: 100%; max-width: 640px; background: var(--card); border: 1px solid var(--line);
  border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; }
.search-input-wrap { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.search-input-wrap svg { width: 20px; height: 20px; stroke: var(--ink-3); fill: none; stroke-width: 2; flex-shrink: 0; }
#searchInput { flex: 1; border: none; outline: none; background: transparent; font-size: 17px; color: var(--ink); font-family: inherit; }
.search-close { border: none; background: none; cursor: pointer; color: var(--ink-3); font-size: 22px; line-height: 1; padding: 4px 8px; }
.search-results { max-height: 52vh; overflow-y: auto; padding: 10px; }
.search-results a { display: block; padding: 13px 16px; border-radius: 11px; transition: background .2s var(--ease); }
.search-results a:hover, .search-results a.sel { background: var(--bg-soft); }
.search-results .r-type { font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); }
.search-results .r-title { font-size: 15px; font-weight: 600; color: var(--heading); margin-top: 2px; }
.search-results .r-text { font-size: 13.5px; color: var(--ink-3); margin-top: 3px; line-height: 1.6;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.search-empty { padding: 34px 20px; text-align: center; color: var(--ink-3); font-size: 14.5px; }

/* ---------- footer ---------- */
.footer { background: var(--brand-dark); color: rgba(255,255,255,.7); padding: 66px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.3fr; gap: 44px; padding-bottom: 44px; }
.footer-grid--slim { grid-template-columns: 1.4fr 1fr; }
.f-top { display: flex; align-items: center; justify-content: space-between; gap: 34px;
  padding-bottom: 30px; border-bottom: 1px solid rgba(255,255,255,.14); }
.f-logo-img { height: 54px; width: auto; display: block; flex-shrink: 0; }
.f-slogan { font-size: clamp(14px, 1.45vw, 19px); font-weight: 600; letter-spacing: .02em;
  color: rgba(255,255,255,.92); font-style: italic; text-align: right; margin: 0; white-space: nowrap; }
.f-slogan::before { content: "\201C"; font-size: 1.6em; line-height: 0; vertical-align: -.35em;
  margin-right: 4px; opacity: .5; }
.beian { color: rgba(255,255,255,.55); text-decoration: none; transition: color .2s; }
.beian:hover { color: rgba(255,255,255,.9); }
.footer h4 { color: #fff; font-size: 16.5px; margin-bottom: 20px; }
.footer .f-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.footer .f-logo .logo-img { height: 40px; }
.footer .f-logo strong { color: #fff; font-size: 17px; display: block; }
.footer .f-logo span { font-size: 11px; letter-spacing: .12em; opacity: .6; text-transform: uppercase; }
.footer p { font-size: 14.5px; line-height: 1.8; }
.footer ul li { margin-bottom: 11px; font-size: 14.5px; }
.footer ul a { transition: color .2s var(--ease), padding-left .2s var(--ease); }
.footer ul a:hover { color: #fff; padding-left: 4px; }
.footer .f-contact li { display: flex; gap: 10px; }
.footer .f-contact b { color: rgba(255,255,255,.5); font-weight: 500; flex-shrink: 0; width: 52px; }
.footer .f-contact div { color: rgba(255,255,255,.82); }
.footer-bottom { margin-top: 24px; padding: 0 0 4px;
  display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; font-size: 13.5px; }
.footer-bottom .f-copy { text-align: center; line-height: 1.7; }
.footer-bottom .beian { margin-left: 10px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- back to top ---------- */
.to-top { position: fixed; right: 24px; bottom: 24px; z-index: 90; width: 46px; height: 46px;
  border-radius: 50%; border: none; cursor: pointer; background: var(--brand); color: #fff;
  display: grid; place-items: center; box-shadow: 0 10px 26px rgba(11,94,215,.36);
  opacity: 0; pointer-events: none; transform: translateY(12px); transition: all .3s var(--ease); }
.to-top.show { opacity: 1; pointer-events: auto; transform: translateY(0); }
.to-top:hover { background: var(--brand-deep); }
.to-top svg { width: 18px; height: 18px; stroke: #fff; fill: none; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .prod-grid { grid-template-columns: repeat(3, 1fr); }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .detail-wrap { grid-template-columns: 1fr; }
  .side-card { position: static; }
}
@media (max-width: 900px) {
  .nav, .header-tel { display: none; }
  .burger { display: block; }
  .nav.open {
    display: flex; flex-direction: column; align-items: stretch; gap: 2px;
    position: absolute; top: var(--header-h); left: 0; right: 0;
    background: var(--card); padding: 14px 20px 20px;
    box-shadow: var(--shadow); border-top: 1px solid var(--line);
  }
  .nav.open > li > a { padding: 13px 10px; font-size: 16px; border-radius: 8px; }
  .nav.open > li > a::after { display: none; }
  .nav.open .drop {
    position: static; box-shadow: none; border: none; background: transparent;
    padding: 0 0 6px 12px; display: none;
  }
  .nav.open li.open .drop { display: block; animation: none; }
  .nav.open .caret { transition: transform .2s; }
  .nav.open li.open .caret { transform: rotate(180deg); }
  .biz-grid { grid-template-columns: 1fr; }
  .adv-grid { grid-template-columns: repeat(2, 1fr); }
  .news-grid { grid-template-columns: 1fr; }
  .mission-grid { grid-template-columns: 1fr; }
  .about-wrap { grid-template-columns: 1fr; gap: 36px; }
  .contact-grid, .office-grid { grid-template-columns: 1fr; }
  .stat-strip .container { grid-template-columns: repeat(2, 1fr); }
  .section { padding: 68px 0; }
  .topbar-right { display: none; }
  .hero-slider { min-height: 420px; height: 62vh; }
  .slide-caption { bottom: 44px; }
}
@media (max-width: 640px) {
  .container { padding: 0 18px; }
  .news-gallery { grid-template-columns: 1fr; }
  .news-gallery img { height: 240px; }
  .prod-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .app-grid { grid-template-columns: repeat(2, 1fr); }
  .adv-grid { grid-template-columns: 1fr; }
  .stat-strip .container { gap: 14px; padding: 30px 18px; }
  .stat { flex-direction: column; gap: 4px; align-items: center; text-align: center; }
  .stat .num { font-size: 30px; }
  .form-row { grid-template-columns: 1fr; }
  .form-wrap { padding: 26px 20px; }
  .footer-grid { grid-template-columns: 1fr; }
  .prod-thumb { height: 150px; }
  .slider-arrow { display: none; }
  .to-top { right: 14px; bottom: 14px; }
  .slide-caption h2 { font-size: 22px; }
  .logo-full { height: 32px; }
  .f-logo-img { height: 40px; }
  .news-media { height: 220px; }
  .f-top { flex-wrap: wrap; gap: 14px; }
  .f-slogan { white-space: normal; text-align: left; font-size: 14px; }
  .search-overlay { padding-top: 64px; }
}
@media (max-width: 420px) {
  .prod-grid { grid-template-columns: 1fr; }
}
