﻿/* ============================================================
   Nanning Standard Industry — Design System
   Self-contained B2B e-commerce + CRM styles (no build step)
   ============================================================ */

:root {
  /* Brand */
  --brand: #ff6a00;
  --brand-dark: #e85d00;
  --brand-soft: #fff3e9;
  --accent: #0a66c2;
  --accent-soft: #e7f1fb;

  /* Neutrals */
  --ink: #1f2733;
  --ink-2: #4a5568;
  --ink-3: #8a94a6;
  --line: #e7ebf0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --bg-mute: #eef1f5;

  /* Status */
  --ok: #1f9d55;
  --ok-soft: #e7f6ed;
  --warn: #d98300;
  --warn-soft: #fdf3e2;
  --bad: #d64545;
  --bad-soft: #fdeaea;
  --info: #2b7de9;
  --info-soft: #e8f1fd;

  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 6px 22px rgba(20, 34, 58, .08);
  --shadow-sm: 0 2px 10px rgba(20, 34, 58, .06);
  --maxw: 1240px;
  --font: "Inter", "Segoe UI", "PingFang SC", "Microsoft YaHei", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { scroll-padding-top: 132px; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg-soft);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; transition: transform .25s ease; cursor: zoom-in; }
img:hover { transform: scale(1.08); position: relative; z-index: 5; }
/* 品牌标识 / 顶部功能性小徽标 / 灯箱大图 不参与悬停放大 */
.logo .mark img,
.tb-certs img,
.group-badge img,
.crm-side .brand .mark img,
#lbImg { cursor: default; }
.logo .mark img:hover,
.tb-certs img:hover,
.group-badge img:hover,
.crm-side .brand .mark img:hover,
#lbImg:hover { transform: none; }
button { font-family: inherit; cursor: pointer; }
.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.muted { color: var(--ink-3); }
.center { text-align: center; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid transparent; border-radius: 999px;
  padding: 10px 20px; font-size: 16px; font-weight: 600;
  transition: .15s ease; white-space: nowrap;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { background: #fff; border-color: var(--line); color: var(--ink); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.btn-ghost { background: transparent; color: var(--ink-2); }
.btn-ghost:hover { color: var(--brand); }
.btn-sm { padding: 6px 14px; font-size: 15px; }
.btn-block { width: 100%; justify-content: center; }

/* ---------- Top utility bar ---------- */
.topbar { background: #0f1622; color: #cbd3df; font-size: 14.5px; }
.topbar .wrap { display: flex; justify-content: space-between; align-items: center; gap: 18px; min-height: 66px; }
.topbar a:hover { color: #fff; }
.topbar .right { display: flex; gap: 18px; align-items: center; white-space: nowrap; }
/* Language selector */
.langsel { position: relative; }
.langsel-btn { display: inline-flex; align-items: center; gap: 5px; background: transparent; color: #cbd3df; border: 1px solid #33405a; border-radius: 6px; padding: 5px 9px; font-size: 13.5px; font-weight: 700; cursor: pointer; line-height: 1; }
.langsel-btn:hover { color: #fff; border-color: #5a6a88; }
.langsel-btn .car { width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: .8; }
.langsel-pop { position: absolute; top: calc(100% + 8px); right: 0; z-index: 200; min-width: 170px; background: #fff; border: 1px solid var(--line); border-radius: 10px; box-shadow: var(--shadow); padding: 6px; display: none; }
.langsel-pop.open { display: block; }
.langsel-pop a { display: flex; align-items: center; gap: 9px; padding: 7px 11px; border-radius: 7px; color: var(--ink); font-size: 14px; font-weight: 600; white-space: nowrap; }
.langsel-pop a:hover { background: var(--brand-soft); color: var(--brand); }
.langsel-pop a.on { background: var(--brand); color: #fff; }
/* Language flags */
.lang-flag { width: 22px; height: 15px; flex: 0 0 auto; border-radius: 2px; object-fit: cover; box-shadow: 0 0 0 1px rgba(0,0,0,.15); vertical-align: middle; }
.langsel-btn .lang-flag { width: 20px; height: 14px; }
.langsel-pop a[dir="rtl"] .lang-flag { order: 0; }
.topbar .tb-left { display: flex; align-items: center; gap: 16px; min-width: 0; }
.tb-locale { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.tb-locale svg { width: 15px; height: 15px; flex: 0 0 auto; opacity: .85; }
.tb-certs { display: flex; align-items: center; gap: 8px; }
.tb-certs-label { font-size: 13px; font-weight: 700; letter-spacing: .7px; text-transform: uppercase; color: #7f8ca1; white-space: nowrap; }
.tb-certs a { display: inline-flex; align-items: center; justify-content: center; height: 58px; padding: 4px 10px; background: #fff; border-radius: 8px; transition: transform .15s ease, box-shadow .15s ease; box-shadow: 0 2px 8px rgba(0,0,0,.28); }
.tb-certs a:hover { transform: translateY(-3px); box-shadow: 0 8px 18px rgba(0,0,0,.5); }
.tb-certs img { height: 44px; width: auto; max-width: 92px; object-fit: contain; display: block; }

/* ---------- Header (sticky) ---------- */
.header { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 60; }
.header .wrap { display: flex; align-items: center; gap: 22px; height: 80px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--ink); flex: 0 0 auto; }
.logo .mark {
  width: 48px; height: 48px; border-radius: 10px; overflow: hidden;
  display: grid; place-items: center; background: #fff;
}
.logo .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo .co-name { font-size: 16px; font-weight: 800; line-height: 1.15; white-space: nowrap; letter-spacing: -.2px; }
.logo small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: .6px; margin-top: 3px; }
.group-badge { display: flex; align-items: center; gap: 6px; padding: 4px 10px 4px 5px; border: 1px solid var(--line); border-radius: 999px; text-decoration: none; background: #fff; }
.group-badge img { width: 34px; height: 34px; object-fit: contain; display: block; }
.group-badge span { font-size: 13px; font-weight: 800; color: var(--ink); letter-spacing: .4px; line-height: 1.1; }
.group-badge small { display: block; font-size: 13px; font-weight: 600; color: var(--ink-3); letter-spacing: 1px; }
.group-badge b { display: block; font-size: 13px; font-weight: 700; color: var(--ink-3); }
.group-badge:hover { border-color: var(--brand); }

/* Brand combo: ULINKWIN (top) + Nanning Standard (bottom), stacked together */
.brand-combo { display: flex; flex-direction: column; gap: 5px; flex: 0 0 auto; text-decoration: none; color: var(--ink); }
.bc-group { display: flex; align-items: center; gap: 6px; }
.bc-group img { width: 30px; height: 30px; object-fit: contain; display: block; }
.bc-group span { font-size: 12.5px; font-weight: 800; color: var(--ink); letter-spacing: .5px; line-height: 1.05; }
.bc-group b { display: block; font-size: 9.5px; font-weight: 700; color: var(--ink-3); letter-spacing: .9px; }
.bc-co { display: flex; align-items: center; gap: 8px; padding-top: 5px; border-top: 1px solid var(--line); }
.bc-co .mark { width: 34px; height: 34px; border-radius: 8px; overflow: hidden; display: grid; place-items: center; background: #fff; flex: 0 0 auto; border: 1px solid var(--line); }
.bc-co .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.bc-co .co-name { font-size: 13px; font-weight: 800; line-height: 1.1; white-space: nowrap; letter-spacing: -.2px; }
.bc-co small { display: block; font-size: 11px; font-weight: 600; color: var(--ink-3); letter-spacing: .5px; margin-top: 2px; }
.brand-combo:hover .bc-co .co-name { color: var(--brand); }

.search { flex: 1; display: flex; border: 2px solid var(--brand); border-radius: 999px; overflow: hidden; max-width: 460px; }
.search input { border: 0; padding: 11px 16px; flex: 1; font-size: 16px; outline: none; }
.search button { background: var(--brand); color: #fff; border: 0; padding: 0 22px; font-weight: 600; }
.header-actions { display: flex; align-items: center; gap: 12px; }

/* ---------- Nav (sticky + dropdown) ---------- */
.nav { background: #fff; border-bottom: 1px solid var(--line); position: sticky; top: 81px; z-index: 55; box-shadow: 0 6px 16px rgba(15,22,34,.06); }
.nav .wrap { display: flex; gap: 12px; height: 58px; align-items: center; }
.nav .nav-link { display: flex; align-items: center; gap: 5px; padding: 0 16px; height: 38px; font-size: 15px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); border-radius: 9px; background: #fff; white-space: nowrap; transition: background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease; }
.nav .nav-link:hover, .nav .nav-link.active { color: #fff; background: var(--brand); border-color: var(--brand); box-shadow: 0 4px 12px rgba(255,106,0,.22); }
.nav .nav-item { position: relative; display: flex; align-items: center; height: 38px; border: 1px solid var(--line); border-radius: 9px; background: #fff; transition: background .15s ease, border-color .15s ease, box-shadow .15s ease; }
.nav .nav-item > .nav-link { padding: 0 4px 0 16px; height: 100%; border: 0; border-radius: 0; background: transparent; box-shadow: none; }
.nav .nav-item:hover, .nav .nav-item.open { border-color: var(--brand); background: var(--brand); box-shadow: 0 4px 12px rgba(255,106,0,.22); }
.nav .nav-item:hover > .nav-link, .nav .nav-item.open > .nav-link, .nav .nav-item:hover > .nav-caret, .nav .nav-item.open > .nav-caret { color: #fff; }
.nav-caret { display: flex; align-items: center; justify-content: center; width: 26px; height: 100%; border: 0; background: transparent; color: var(--ink-3); cursor: pointer; padding: 0 10px 0 2px; }
.nav-caret:hover { color: var(--brand); }
.nav .caret { width: 13px; height: 13px; opacity: .75; transition: transform .18s ease; }
.nav .nav-item:hover > .nav-caret .caret, .nav .nav-item.open > .nav-caret .caret { transform: rotate(180deg); opacity: 1; }
.nav .drop-menu { display: none; position: absolute; top: 100%; left: 4px; min-width: 226px; background: #fff; border: 1px solid var(--line); border-radius: 0 0 12px 12px; box-shadow: 0 16px 34px rgba(15,22,34,.16); padding: 8px; z-index: 80; }
.nav .nav-item.align-right > .drop-menu { left: auto; right: 4px; }
.nav .nav-item:hover > .drop-menu, .nav .nav-item:focus-within > .drop-menu, .nav .nav-item.open > .drop-menu { display: block; }
.nav .drop-menu .dm-title { font-size: 13px; font-weight: 700; letter-spacing: .8px; text-transform: uppercase; color: var(--ink-3); padding: 6px 11px 9px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.nav .drop-menu a { display: flex; align-items: center; gap: 8px; padding: 9px 11px; border-radius: 8px; font-size: 15px; font-weight: 500; color: var(--ink-2); white-space: nowrap; }
.nav .drop-menu a:hover { background: var(--brand-soft); color: var(--brand); }
/* 长菜单(如 13 项产品分类)超出视口时可滚动，保证所有项可达 */
@media (min-width: 861px) {
  .nav .drop-menu { max-height: calc(100vh - 220px); overflow-y: auto; overscroll-behavior: contain; }
  .nav .drop-menu::-webkit-scrollbar { width: 6px; }
  .nav .drop-menu::-webkit-scrollbar-thumb { background: #c9d0dc; border-radius: 6px; }
}

/* ---------- Hero ---------- */
.hero { background: linear-gradient(120deg, #fff6ef, #eef4fb); }
.hero .wrap { display: grid; grid-template-columns: 1.4fr 1fr; gap: 30px; padding: 46px 20px; align-items: center; }
.hero h1 { font-size: 44px; line-height: 1.15; margin: 0 0 14px; letter-spacing: -.5px; }
.hero p { font-size: 18px; color: var(--ink-2); max-width: 520px; }
.hero .tags { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.hero .tag { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 15px; font-weight: 600; }
.hero-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; box-shadow: var(--shadow); }
.hero-card h3 { margin: 0 0 6px; font-size: 18px; }
.hero-card .stat-row { display: flex; justify-content: space-between; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 16px; }
.hero-card .stat-row:last-child { border-bottom: 0; }
.hero-card .stat-row b { color: var(--brand); }

/* China factory map (replaces hero image) */
#chinaMap { width: 100%; height: 360px; border-radius: 10px; background: linear-gradient(135deg,#f7fbff,#fff6ee); margin-bottom: 14px; }
.map-fallback { display: grid; place-items: center; height: 100%; color: var(--ink-3); font-size: 14px; }
.factory-list { display: flex; flex-direction: column; gap: 6px; max-height: 210px; overflow-y: auto; margin: 4px 0 14px; padding-right: 4px; }
.factory-item { display: flex; gap: 9px; width: 100%; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 9px; padding: 8px 10px; cursor: pointer; transition: border-color .15s, background .15s; }
.factory-item:hover { border-color: var(--brand); }
.factory-item.active { border-color: var(--brand); background: var(--brand-soft); }
.fi-pin { flex: 0 0 auto; width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 3px rgba(255,106,0,.18); }
.fi-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fi-body b { font-size: 14px; color: var(--ink); }
.fi-body em { font-style: normal; font-size: 12px; color: var(--brand); font-weight: 600; }
.fi-desc { font-size: 11.5px; line-height: 1.45; color: var(--ink-3); }

/* ---------- Sections ---------- */
.section { padding: 46px 0; }
.section.alt { background: #fff; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 22px; }
.section-head h2 { font-size: 30px; margin: 0 0 4px; letter-spacing: -.3px; }
.section-head p { margin: 0; color: var(--ink-3); font-size: 16px; }

/* ---------- Category tiles ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px;
  transition: .18s ease; display: block;
}
.cat:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: #ffd6b8; }
.cat .ico { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: grid; place-items: center; font-size: 24px; margin-bottom: 12px; }
.cat h4 { margin: 0 0 4px; font-size: 17px; }
.cat p { margin: 0; font-size: 15px; color: var(--ink-3); }

/* ---------- Product grid ---------- */
.products { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.product {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column; transition: .18s ease;
}
.product:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.product .thumb { aspect-ratio: 4/3; background: linear-gradient(135deg, #eef2f7, #e3e9f1); display: grid; place-items: center; font-size: 46px; color: #c3ccd9; position: relative; }
.product .badge { position: absolute; top: 10px; left: 10px; background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 3px 9px; border-radius: 999px; }
.product .body { padding: 14px 15px 16px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.product .title { font-size: 16px; font-weight: 600; line-height: 1.4; min-height: 40px; }
.product .meta { font-size: 14.5px; color: var(--ink-3); }
.product .price { color: var(--brand); font-weight: 800; font-size: 18px; }
.product .foot { display: flex; gap: 8px; margin-top: auto; }

/* ---------- Info cards ---------- */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.fact { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; text-align: center; }
.fact .num { font-size: 34px; font-weight: 800; color: var(--brand); }
.fact .lbl { color: var(--ink-3); font-size: 15px; margin-top: 4px; }

.certs { display: flex; flex-wrap: wrap; gap: 12px; }
.cert { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 10px; padding: 12px 18px; font-weight: 600; font-size: 16px; }

/* ---------- Two column ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; align-items: center; }
.feature-list { list-style: none; padding: 0; margin: 16px 0 0; }
.feature-list li { display: flex; gap: 10px; padding: 8px 0; font-size: 17px; }
.feature-list .ck { color: var(--ok); font-weight: 800; }

/* ---------- Forms ---------- */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field label { display: block; font-size: 15px; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 11px 13px; font-size: 16px; font-family: inherit; outline: none;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); }
.field.full { grid-column: 1 / -1; }

/* ---------- Footer ---------- */
.footer { background: #0f1622; color: #aeb8c6; padding: 44px 0 26px; margin-top: 30px; }
.footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.25fr; gap: 26px; }
.footer h4 { color: #fff; font-size: 16px; margin: 0 0 14px; }
.footer a { display: block; padding: 5px 0; font-size: 15.5px; }
.footer a:hover { color: #fff; }
.footer .bottom { border-top: 1px solid #243044; margin-top: 30px; padding-top: 18px; font-size: 14.5px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.footer-group { display: flex; align-items: center; gap: 12px; margin-top: 24px; padding: 12px 16px; border: 1px solid #243044; border-radius: 12px; background: rgba(255,255,255,.03); }
.footer-group img { width: 48px; height: 48px; object-fit: contain; background: #fff; border-radius: 8px; padding: 3px; flex: 0 0 auto; }
.footer-group span { font-size: 14.5px; color: #94a3b8; flex: 1; }
.footer-group b { color: #fff; }
.footer-group a { font-size: 14.5px; color: #ffb266; font-weight: 700; white-space: nowrap; }
.footer .footer-contact { margin: 12px 0 0; font-size: 14.5px; line-height: 1.75; color: #94a3b8; }
.footer .footer-contact a { display: inline; padding: 0; }
.contact-lines { margin-top: 18px; font-size: 15.5px; line-height: 1.9; }
.contact-lines b { color: var(--ink-2); }
.social-follow { display: flex; align-items: center; gap: 12px; margin-top: 26px; flex-wrap: wrap; }
.social-follow .s-label { font-size: 15.5px; color: #94a3b8; }
.social-follow a { width: 38px; height: 38px; border-radius: 50%; background: #243044; display: inline-flex; align-items: center; justify-content: center; transition: background .15s, transform .15s; }
.social-follow a svg { width: 17px; height: 17px; fill: #cbd5e1; }
.social-follow a:hover { background: var(--bc, #f60); transform: translateY(-2px); }
.social-follow a:hover svg { fill: #fff; }
.brand-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(380px, 1fr)); gap: 20px; }
.brand-card { display: flex; gap: 18px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; box-shadow: var(--shadow); }
.brand-card img { width: 130px; height: 130px; object-fit: contain; flex: 0 0 auto; }
.brand-card h3 { margin: 0 0 8px; font-size: 20px; }
.brand-card p { margin: 0 0 10px; font-size: 15.5px; color: var(--ink-3); line-height: 1.6; }
.social-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 18px; }
.social-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; text-align: center; box-shadow: var(--shadow); transition: transform .15s; }
.social-card:hover { transform: translateY(-3px); }
.social-card .s-ico svg { width: 34px; height: 34px; }
.social-card h4 { margin: 10px 0 2px; font-size: 18px; }
.social-card .s-handle { font-size: 14.5px; color: #94a3b8; margin-bottom: 8px; }
.social-card p { font-size: 15.5px; color: var(--ink-3); margin: 0 0 10px; min-height: 38px; }
.social-card .s-stat { font-size: 14.5px; font-weight: 700; color: var(--brand); margin-bottom: 14px; }

/* ============================================================
   CRM
   ============================================================ */
.auth-screen { min-height: 100vh; display: grid; place-items: center; background: linear-gradient(135deg, #fff3e9, #e9f2fd); padding: 20px; }
.auth-card { background: #fff; border-radius: 18px; box-shadow: var(--shadow); width: 380px; max-width: 100%; padding: 34px; }
.auth-logos { display: flex; align-items: center; justify-content: center; gap: 14px; margin-bottom: 14px; }
.auth-logos img { width: 46px; height: 46px; object-fit: contain; }
.auth-logos .auth-x { font-size: 17px; color: var(--ink-3); font-weight: 700; }
.auth-card h1 { font-size: 24px; margin: 0 0 4px; }
.auth-card .sub { color: var(--ink-3); font-size: 15.5px; margin-bottom: 22px; }
.auth-roles { display: flex; gap: 8px; margin-bottom: 18px; }
.auth-roles button { flex: 1; border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 10px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.auth-roles button.active { border-color: var(--brand); color: var(--brand); background: var(--brand-soft); }

.crm { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.crm-side { background: #0f1622; color: #cbd3df; display: flex; flex-direction: column; }
.crm-side .brand { display: flex; align-items: center; gap: 10px; padding: 18px 18px; font-weight: 800; color: #fff; border-bottom: 1px solid #1c283c; }
.crm-side .brand .mark { width: 34px; height: 34px; border-radius: 9px; background: #fff; overflow: hidden; display: grid; place-items: center; }
.crm-side .brand .mark img { width: 100%; height: 100%; object-fit: contain; display: block; }
.crm-nav { padding: 10px; overflow-y: auto; flex: 1; }
.crm-nav .group { font-size: 13px; text-transform: uppercase; letter-spacing: 1px; color: #6b788c; padding: 14px 12px 6px; }
.crm-nav a { display: flex; align-items: center; gap: 11px; padding: 10px 12px; border-radius: 9px; font-size: 16px; font-weight: 500; color: #cbd3df; margin-bottom: 2px; }
.crm-nav a:hover { background: #1a2436; color: #fff; }
.crm-nav a.active { background: var(--brand); color: #fff; }
.crm-nav a .dot { margin-left: auto; background: var(--bad); color: #fff; font-size: 13px; font-weight: 700; border-radius: 999px; padding: 1px 7px; }
.crm-side .me { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-top: 1px solid #1c283c; font-size: 15px; }
.crm-side .me .av { width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: #fff; display: grid; place-items: center; font-weight: 700; }

.crm-main { background: var(--bg-soft); overflow-y: auto; }
.crm-top { background: #fff; border-bottom: 1px solid var(--line); padding: 14px 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.crm-top h1 { font-size: 21px; margin: 0; }
.crm-top .crumb { font-size: 14.5px; color: var(--ink-3); }
.crm-content { padding: 24px; }
.crm-subbar { background: #fff; border-bottom: 1px solid var(--line); padding: 12px 0; }
.crm-subbar .wrap { display: flex; align-items: center; }
.crm-top .tools { display: flex; align-items: center; gap: 10px; }
.crm-top .tools input { border: 1px solid var(--line); border-radius: 999px; padding: 8px 14px; font-size: 15px; outline: none; width: 220px; }

.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-bottom: 22px; }
.kpi { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
.kpi .top { display: flex; align-items: center; justify-content: space-between; }
.kpi .lab { color: var(--ink-3); font-size: 15px; }
.kpi .ico { width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center; font-size: 20px; }
.kpi .val { font-size: 34px; font-weight: 800; margin: 10px 0 2px; }
.kpi .trend { font-size: 14.5px; font-weight: 600; }
.trend.up { color: var(--ok); } .trend.down { color: var(--bad); }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.card .hd { padding: 16px 18px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.card .hd h3 { margin: 0; font-size: 18px; }
.card .bd { padding: 18px; }

/* Tables */
table.t { width: 100%; border-collapse: collapse; font-size: 15.5px; }
table.t th { text-align: left; color: var(--ink-3); font-weight: 600; font-size: 14.5px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: var(--bg-soft); }
table.t td { padding: 11px 12px; border-bottom: 1px solid var(--line); }
table.t tr:hover td { background: #fafbfc; }
.table-wrap { overflow-x: auto; }

/* Pills */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 14px; font-weight: 600; padding: 3px 10px; border-radius: 999px; }
.pill.ok { background: var(--ok-soft); color: var(--ok); }
.pill.warn { background: var(--warn-soft); color: var(--warn); }
.pill.bad { background: var(--bad-soft); color: var(--bad); }
.pill.info { background: var(--info-soft); color: var(--info); }
.pill.mute { background: var(--bg-mute); color: var(--ink-2); }
.pill.brand { background: var(--brand-soft); color: var(--brand); }

/* Bars (simple chart) */
.bar-row { display: grid; grid-template-columns: 120px 1fr 54px; gap: 12px; align-items: center; font-size: 15px; margin-bottom: 12px; }
.bar-track { background: var(--bg-mute); border-radius: 999px; height: 12px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--brand), #ff944d); }

.spark { display: flex; align-items: flex-end; gap: 4px; height: 70px; }
.spark .b { flex: 1; background: linear-gradient(180deg, var(--brand), #ffb482); border-radius: 4px 4px 0 0; }

/* Modal */
.modal-bg { position: fixed; inset: 0; background: rgba(15,22,34,.45); display: none; place-items: center; z-index: 100; padding: 20px; }
.modal-bg.show { display: grid; }
.modal { background: #fff; border-radius: 16px; width: 560px; max-width: 100%; max-height: 90vh; overflow-y: auto; }
.modal .mhd { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal .mhd h3 { margin: 0; font-size: 20px; }
.modal .mbd { padding: 22px; }
.modal .mft { padding: 16px 22px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }
.close-x { border: 0; background: var(--bg-mute); width: 32px; height: 32px; border-radius: 50%; font-size: 20px; color: var(--ink-2); }

/* Misc */
.row { display: flex; gap: 12px; align-items: center; }
.row.wrap { flex-wrap: wrap; }
.between { justify-content: space-between; }
.spacer { flex: 1; }
.seg { display: inline-flex; background: var(--bg-mute); border-radius: 999px; padding: 3px; }
.seg button { border: 0; background: transparent; padding: 6px 14px; border-radius: 999px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.seg button.active { background: #fff; color: var(--brand); box-shadow: var(--shadow-sm); }
@media (max-width: 760px) { .seg { flex-wrap: wrap; border-radius: 12px; max-width: 100%; } }
.avatar-sm { width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); display: grid; place-items: center; font-size: 14px; font-weight: 700; }
.toast { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: #0f1622; color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 16px; z-index: 200; opacity: 0; transition: .25s; pointer-events: none; }
.toast.show { opacity: 1; }
.hidden { display: none !important; }

/* Activity feed */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { display: flex; gap: 12px; padding: 11px 0; border-bottom: 1px dashed var(--line); }
.feed li:last-child { border-bottom: 0; }
.feed .ic { width: 30px; height: 30px; border-radius: 8px; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.feed .txt { font-size: 15.5px; }
.feed .txt b { font-weight: 700; }
.feed .time { font-size: 14px; color: var(--ink-3); }

@media (max-width: 980px) {
  .hero .wrap, .split, .cats, .products, .facts, .grid-2, .grid-3, .kpis, .form-grid, .footer .cols { grid-template-columns: 1fr 1fr; }
  .crm { grid-template-columns: 1fr; }
  .crm-side { display: none; }
  .nav .wrap { flex-wrap: wrap; height: auto; padding-top: 4px; padding-bottom: 4px; }
  .nav .nav-item { flex-direction: row; flex-wrap: wrap; align-items: stretch; position: static; }
  .nav .nav-item > .drop-menu { flex: 0 0 100%; }
  .nav .nav-item.align-right > .drop-menu { left: 4px; right: auto; }
  .nav .drop-menu { position: static; min-width: 0; width: 100%; box-shadow: none; border: 0; border-top: 1px solid var(--line); border-radius: 0; padding: 4px 0 8px; }
  .tb-certs-label { display: none; }
  .header .wrap { gap: 12px; }
  .header-actions .btn-outline { display: none; }
}
@media (max-width: 760px) {
  .hero .wrap { grid-template-columns: 1fr; }
  .hero-card { max-width: 100%; }
}
@media (max-width: 600px) {
  .cats, .products, .facts, .grid-2, .grid-3, .kpis, .form-grid, .footer .cols { grid-template-columns: 1fr; }
  .hero h1 { font-size: 34px; }
  .search { display: none; }
  .logo .co-name { font-size: 13px; white-space: normal; max-width: 168px; }
  .group-badge { display: none; }
  .topbar .wrap { flex-wrap: wrap; gap: 6px; padding-top: 7px; padding-bottom: 7px; }
  .topbar .right { gap: 12px; }
  .tb-left { flex-wrap: wrap; gap: 6px; width: 100%; }
  .tb-certs { flex-wrap: wrap; }
  .tb-certs img { height: 34px; max-width: 68px; }
  .tb-certs a { height: 46px; }
  .nav .nav-link { padding: 0 7px; font-size: 14px; }
  .nav-caret { width: 17px; padding-right: 3px; }
}

/* ---------- Media galleries & lightbox ---------- */
.hero-banner { margin-top: 22px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.hero-banner img { width: 100%; max-height: 360px; object-fit: cover; display: block; }
.media-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.media-grid .ph { aspect-ratio: 4/3; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: #eef2f7; cursor: pointer; }
.media-grid .ph img { width: 100%; height: 100%; object-fit: cover; transition: .25s ease; }
.media-grid .ph:hover img { transform: scale(1.06); }
.gallery-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.gallery-tabs button { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 7px 16px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.gallery-tabs button.active { background: var(--brand); border-color: var(--brand); color: #fff; }
.video-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.video-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.video-card video { width: 100%; display: block; background: #000; aspect-ratio: 16/9; object-fit: cover; }
.video-card .cap { padding: 11px 14px; font-size: 15.5px; font-weight: 600; display: flex; justify-content: space-between; align-items: center; }
.lightbox { position: fixed; inset: 0; background: rgba(15,22,34,.88); display: none; place-items: center; z-index: 300; padding: 30px; }
.lightbox.show { display: grid; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 10px; box-shadow: 0 12px 60px rgba(0,0,0,.55); }
.lb-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 34px; background: transparent; border: 0; cursor: pointer; line-height: 1; }
.lb-cap { position: absolute; bottom: 20px; left: 0; right: 0; text-align: center; color: #cbd3df; font-size: 15px; }
@media (max-width: 980px) { .media-grid { grid-template-columns: repeat(3, 1fr); } .video-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .media-grid { grid-template-columns: repeat(2, 1fr); } .video-grid { grid-template-columns: 1fr; } }

/* ---------- Homepage: 26-year manufacturer hero ---------- */
.hero-points { list-style: none; padding: 0; margin: 16px 0 0; max-width: 660px; }
.hero-points li { display: flex; gap: 10px; align-items: flex-start; padding: 7px 0; font-size: 16px; line-height: 1.5; }
.hero-points .ck { color: #1f7a3d; font-weight: 900; flex: 0 0 auto; }
.hero-points b { color: #17492a; }
/* 5 项排为两排：第一行 3 项，第二行 2 项各占半行 */
.hero-promise { display: grid; grid-template-columns: repeat(6, 1fr); gap: 9px; margin-top: 14px; }
.hero-promise .hp-item {
  grid-column: span 2; align-items: center; gap: 8px; padding: 10px 12px; font-size: 13.5px; line-height: 1.35;
}
.hero-promise .hp-item:nth-child(4),
.hero-promise .hp-item:nth-child(5) { grid-column: span 3; }
.hero-promise .hp-item .ck { flex: 0 0 auto; }
@media (max-width: 760px) {
  .hero-promise { grid-template-columns: repeat(2, 1fr); }
  .hero-promise .hp-item:nth-child(4),
  .hero-promise .hp-item:nth-child(5) { grid-column: auto; }
}
.hero-promise .hp-item {
  display: flex; gap: 10px; align-items: center; background: #f2f9f4;
  border: 1px solid #d9ebde; border-radius: 10px; padding: 9px 12px;
  font-size: 15px; font-weight: 600; color: #1f5b35;
}
.hero-promise .hp-item .ck { color: #1f7a3d; font-weight: 900; }

/* ---------- Product range table ---------- */
.range-table { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; }
.range-row { display: grid; grid-template-columns: 200px 1fr; border-top: 1px solid var(--line); }
.range-row:first-child { border-top: 0; }
.range-label {
  background: linear-gradient(90deg, #f1faf3, #f8fcf9); border-left: 4px solid #2b8a4b;
  padding: 18px 16px; display: flex; align-items: center; gap: 8px;
  font-size: 17px; font-weight: 800; color: #1c5c33;
}
.range-body { padding: 14px 16px; }
.range-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.range-chip { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 7px; padding: 5px 10px; font-size: 14px; font-weight: 700; color: var(--ink-2); }
.range-thumbs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 8px; margin-top: 12px; }
.range-thumbs .rt { text-align: center; min-width: 0; }
.range-thumbs img { width: 100%; aspect-ratio: 1; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); background: #fff; display: block; }
.range-thumbs span { display: block; font-size: 13px; color: var(--ink-3); margin-top: 3px; overflow-wrap: anywhere; word-break: break-word; line-height: 1.3; }
@media (max-width: 980px) { .range-row { grid-template-columns: 150px 1fr; } .range-thumbs { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
@media (max-width: 600px) { .range-row { grid-template-columns: 1fr; } .range-label { padding: 12px 14px; } .range-thumbs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ---------- Explore rich cards ---------- */
.explore-grid { align-items: start; }
/* Certificate & Report 单卡居中布局 */
.cert-explore-wrap { display: flex; justify-content: center; }
.cert-explore-wrap .explore-card { width: 100%; max-width: 860px; }
.cert-explore-wrap .cert-badges { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 600px) { .cert-explore-wrap .cert-badges { grid-template-columns: repeat(2, 1fr); } }
.explore-card .bd { padding: 18px; }
.explore-card h3 { margin: 8px 0 6px; }
.explore-card .mini-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 5px 10px; }
.explore-card .mini-list li { font-size: 14px; color: var(--ink-2); display: flex; gap: 5px; align-items: baseline; }
.explore-card .mini-list li::before { content: "•"; color: var(--brand); font-weight: 800; }
.explore-card .mini-list li.head { grid-column: 1 / -1; font-weight: 800; color: var(--ink); font-size: 14.5px; margin-top: 4px; }
.explore-card .mini-list li.head::before { content: ""; }
.prod-lines { list-style: none; padding: 0; margin: 12px 0 0; counter-reset: pl; }
.prod-lines li { counter-increment: pl; position: relative; padding: 0 0 10px 24px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.prod-lines li::before {
  content: counter(pl); position: absolute; left: 0; top: 0; width: 17px; height: 17px;
  border-radius: 50%; background: var(--brand-soft); color: var(--brand);
  font-size: 13px; font-weight: 800; display: grid; place-items: center;
}
.prod-lines b { color: var(--ink); }
.cert-badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 12px; }
.cert-badge { background: #f5faf6; border: 1px solid #dfeee2; border-radius: 9px; padding: 9px 6px; text-align: center; }
.cert-badge b { display: block; color: #1c6b38; font-size: 14px; font-weight: 800; }
.cert-badge small { display: block; font-size: 13px; line-height: 1.3; color: var(--ink-3); margin-top: 3px; }
@media (max-width: 600px) { .cert-badges { grid-template-columns: repeat(2, 1fr); } }

/* ---------- Floating Contact Us ---------- */
.fc-wrap { position: fixed; right: 22px; bottom: 22px; z-index: 400; }
.fc-bar { display: flex; align-items: stretch; gap: 6px; touch-action: none; }
.fc-btn {
  display: inline-flex; align-items: center; gap: 9px; border: 0; cursor: grab; text-decoration: none;
  background: linear-gradient(135deg, #ff8a1f, #f2630d); color: #fff;
  font-size: 16px; font-weight: 800; padding: 13px 19px; border-radius: 999px;
  box-shadow: 0 10px 26px rgba(242, 99, 13, .38); user-select: none; touch-action: none;
  position: relative; transition: transform .16s ease, box-shadow .16s ease;
}
.fc-btn:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(242, 99, 13, .48); color: #fff; }
.fc-wrap.fc-dragging .fc-btn { cursor: grabbing; transform: none; }
.fc-btn .fc-ping { position: absolute; inset: -5px; border: 2px solid rgba(242, 99, 13, .5); border-radius: 999px; animation: fcPing 2.2s ease-out infinite; pointer-events: none; }
@keyframes fcPing { 0% { transform: scale(.94); opacity: .8; } 100% { transform: scale(1.22); opacity: 0; } }
.fc-btn svg { width: 19px; height: 19px; flex: 0 0 auto; }
.fc-toggle {
  width: 38px; border: 1px solid rgba(255,255,255,.55); background: #fff; color: var(--brand);
  border-radius: 50%; cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 8px 22px rgba(15,22,34,.18); touch-action: none;
}
.fc-toggle svg { width: 18px; height: 18px; transition: transform .2s ease; }
.fc-wrap.open .fc-toggle svg { transform: rotate(180deg); }
.fc-panel {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  width: 274px; background: #fff; border: 1px solid var(--line); border-radius: 16px;
  box-shadow: 0 20px 50px rgba(15, 22, 34, .22); padding: 16px; display: none;
  max-height: min(70vh, 460px); overflow-y: auto;
}
.fc-wrap.fc-below .fc-panel { bottom: auto; top: calc(100% + 12px); }
.fc-wrap.open .fc-panel { display: block; }
.fc-panel h4 { margin: 0 0 4px; font-size: 17px; }
.fc-panel .fc-sub { margin: 0 0 12px; font-size: 14px; color: var(--ink-3); line-height: 1.5; }
.fc-panel a { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 9px; font-size: 15px; font-weight: 600; color: var(--ink-2); text-decoration: none; }
.fc-panel a:hover { background: var(--brand-soft); color: var(--brand); }
.fc-panel a svg { width: 18px; height: 18px; flex: 0 0 auto; }
.fc-panel .fc-addr { display: flex; align-items: flex-start; gap: 9px; margin: 6px 0 0; padding: 6px 10px; font-size: 14px; line-height: 1.5; color: var(--ink-3); }
.fc-panel .fc-addr svg { width: 18px; height: 18px; flex: 0 0 auto; }
.fc-panel .fc-hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-3); border-top: 1px solid var(--line); padding-top: 9px; }
@media (max-width: 600px) { .fc-wrap { right: 12px; bottom: 12px; } .fc-btn { padding: 11px 15px; font-size: 15px; } .fc-panel { width: min(274px, calc(100vw - 30px)); } }

/* ---------- Legal / compliance pages ---------- */
.legal-wrap { display: grid; grid-template-columns: 220px 1fr; gap: 34px; align-items: start; }
.legal-toc { position: sticky; top: 140px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px; }
.legal-toc h4 { margin: 0 0 10px; font-size: 14px; text-transform: uppercase; letter-spacing: .8px; color: var(--ink-3); }
.legal-toc a { display: block; font-size: 14.5px; color: var(--ink-2); padding: 6px 0; border-bottom: 1px dashed var(--line); }
.legal-toc a:last-child { border-bottom: 0; }
.legal-toc a:hover { color: var(--brand); }
.legal-doc { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 30px 34px; }
.legal-doc h2 { font-size: 22px; margin: 28px 0 10px; padding-top: 14px; border-top: 1px solid var(--line); scroll-margin-top: 140px; }
.legal-doc h2:first-child { margin-top: 0; border-top: 0; padding-top: 0; }
.legal-doc p, .legal-doc li { font-size: 16px; line-height: 1.85; color: var(--ink-2); }
.legal-doc ul, .legal-doc ol { padding-left: 20px; }
.legal-doc .meta { font-size: 14.5px; color: var(--ink-3); }
.legal-doc strong { color: var(--ink); }
@media (max-width: 980px) { .legal-wrap { grid-template-columns: 1fr; } .legal-toc { position: static; } .legal-doc { padding: 22px; } }

/* ---------- Footer legal links ---------- */
.footer .bottom a { color: #cbd3df; }
.footer .bottom a:hover { color: #fff; }
.footer .bottom .legal-links { display: block; }
.footer .bottom .legal-links a { display: inline; padding: 0; }

/* ---------- Arabic: RTL text flow, LTR page layout (no full mirroring) ---------- */
html[lang="ar"] body { text-align: right; }
html[lang="ar"] input,
html[lang="ar"] textarea { text-align: right; }
html[lang="ar"] .langsel-pop a[dir="rtl"] { text-align: right; }

/* ---------- Certificate photo galleries (home + certificates page) ---------- */
.cert-photo-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 12px; margin-top: 18px; }
.cert-photo { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px; background: #fff; border: 1px solid var(--line); border-radius: 12px; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.cert-photo:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(15,22,34,.14); border-color: var(--brand); }
.cert-photo img { width: 100%; height: 130px; object-fit: contain; display: block; cursor: zoom-in; background: #fafbfc; border-radius: 7px; }
.cert-photo span { font-size: 12.5px; line-height: 1.3; color: var(--ink-2); font-weight: 600; text-align: center; }
.cert-photo-page { grid-template-columns: repeat(5, 1fr); gap: 16px; }
.cert-photo-page .cert-photo { padding: 14px; }
.cert-photo-page .cert-photo img { height: 175px; }
.cert-photo-page .cert-photo span { font-size: 14px; }
@media (max-width: 980px) { .cert-photo-grid, .cert-photo-page { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 600px) { .cert-photo-grid, .cert-photo-page { grid-template-columns: repeat(2, 1fr); } .cert-photo img, .cert-photo-page .cert-photo img { height: 120px; } }
