/* ==========================================================================
   温州市企信软件科技有限公司 · 官网样式
   风格：科技蓝 / 简约大气
   ========================================================================== */

:root {
  --ink:        #0B1B33;
  --ink-2:      #1E3454;
  --muted:      #5C7089;
  --muted-2:    #8A9BB0;
  --line:       #E4EAF2;
  --line-soft:  #EFF3F9;
  --blue:       #1A4FD6;
  --blue-dark:  #123AA6;
  --blue-deep:  #0A1F52;
  --blue-50:    #F5F8FE;
  --blue-100:   #E8EFFD;
  --blue-200:   #D3E0FB;
  --white:      #FFFFFF;
  --radius:     10px;
  --radius-lg:  16px;
  --shadow-sm:  0 1px 2px rgba(11, 27, 51, .04);
  --shadow:     0 8px 28px rgba(11, 27, 51, .07);
  --shadow-lg:  0 20px 50px rgba(11, 27, 51, .12);
  --sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
          "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.75;
  color: var(--ink-2);
  background: var(--white);
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { color: var(--ink); margin: 0; font-weight: 600; line-height: 1.3; letter-spacing: -.01em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button, input, textarea, select { font: inherit; color: inherit; }
ul { margin: 0; padding: 0; list-style: none; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 28px; }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, .94);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .container { height: 100%; display: flex; align-items: center; gap: 40px; }

.brand { display: flex; align-items: center; gap: 11px; flex-shrink: 0; }
.brand-mark {
  width: 36px; height: 36px; border-radius: 9px;
  background: linear-gradient(145deg, var(--blue) 0%, var(--blue-deep) 100%);
  color: #fff; font-size: 17px; font-weight: 700;
  display: grid; place-items: center; letter-spacing: -.5px;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
/* 后台「内容装修 → 站点 LOGO」传过图就用它；没传则仍是上面 .brand-mark 的「企」字方块。
   固定高度、宽度自适应并限宽，避免用户传一张超宽图把页头挤变形。 */
.brand-logo { height: 38px; width: auto; max-width: 240px; object-fit: contain; display: block; }
.brand-name { font-size: 15.5px; font-weight: 600; color: var(--ink); letter-spacing: .01em; }
.brand-sub { font-size: 10.5px; color: var(--muted-2); letter-spacing: .16em; text-transform: uppercase; }

.nav { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.nav a {
  padding: 8px 15px; border-radius: 8px; font-size: 14.5px; color: var(--ink-2);
  transition: background .18s, color .18s;
}
.nav a:hover { background: var(--blue-50); color: var(--blue); }
.nav a.active { color: var(--blue); font-weight: 600; background: var(--blue-50); }

.header-actions { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }

/* 移动端汉堡按钮：只在窄屏出现（宽屏是横向导航，见文件末尾的 @media）。
   点它把同一份 .nav 竖排成面板 —— 不复制第二份导航 DOM，改菜单只需要改一处。 */
.nav-burger {
  display: none;
  flex-direction: column; align-items: center; justify-content: center; gap: 4px;
  width: 38px; height: 34px; padding: 0; margin-left: 4px;
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  cursor: pointer; flex-shrink: 0;
}
.nav-burger span {
  display: block; width: 16px; height: 1.6px; border-radius: 2px;
  background: var(--ink-2); transition: transform .2s, opacity .2s;
}
.nav-burger:hover { border-color: var(--blue-200); }
.nav-burger:focus-visible { outline: 2px solid var(--blue-200); outline-offset: 2px; }
/* 展开时三横变叉，给一个"再点就关"的视觉反馈 */
body.nav-open .nav-burger span:nth-child(1) { transform: translateY(5.6px) rotate(45deg); }
body.nav-open .nav-burger span:nth-child(2) { opacity: 0; }
body.nav-open .nav-burger span:nth-child(3) { transform: translateY(-5.6px) rotate(-45deg); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 7px;
  height: 42px; padding: 0 22px; border-radius: 8px;
  font-size: 14.5px; font-weight: 500; cursor: pointer;
  border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 2px 8px rgba(26, 79, 214, .22); }
.btn-primary:hover { background: var(--blue-dark); box-shadow: 0 6px 16px rgba(26, 79, 214, .3); transform: translateY(-1px); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue-200); color: var(--blue); background: var(--blue-50); }
.btn-sm { height: 34px; padding: 0 15px; font-size: 13.5px; border-radius: 7px; }
.btn-block { width: 100%; }
.btn-danger { background: #fff; color: #C0392B; border-color: #F3D3CE; }
.btn-danger:hover { background: #FDF3F2; border-color: #E8B4AB; }
.btn:disabled { opacity: .55; cursor: not-allowed; transform: none; }

.user-chip {
  display: inline-flex; align-items: center; gap: 8px;
  height: 34px; padding: 0 12px 0 4px; border-radius: 20px;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  font-size: 13.5px; color: var(--ink-2);
}
.user-chip .avatar {
  width: 26px; height: 26px; border-radius: 50%; background: var(--blue); color: #fff;
  display: grid; place-items: center; font-size: 12px; font-weight: 600;
}

/* ---------- 通用区块 ---------- */
.section { padding: 92px 0; }
.section-tight { padding: 64px 0; }
.section-alt { background: var(--blue-50); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }

.section-head { max-width: 720px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.eyebrow {
  display: inline-block; font-size: 12.5px; font-weight: 600; letter-spacing: .1em;
  color: var(--blue); background: var(--blue-100); padding: 5px 12px; border-radius: 20px; margin-bottom: 18px;
}
.section-head h2 { font-size: 34px; margin-bottom: 16px; }
.section-head p { color: var(--muted); font-size: 16px; }

/* ---------- 首页 Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 104px 0 96px;
  background:
    radial-gradient(900px 460px at 82% -12%, rgba(26, 79, 214, .09), transparent 62%),
    radial-gradient(620px 320px at 6% 8%, rgba(26, 79, 214, .05), transparent 60%),
    var(--white);
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(11, 27, 51, .035) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(11, 27, 51, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(circle at 50% 0%, #000 0%, transparent 72%);
}
.hero .container { position: relative; z-index: 1; }
.hero-inner { max-width: 800px; }
.hero h1 { font-size: 52px; line-height: 1.18; letter-spacing: -.025em; margin: 22px 0 24px; }
.hero h1 .accent { color: var(--blue); }
.hero-lead { font-size: 17.5px; color: var(--muted); max-width: 640px; line-height: 1.85; }
.hero-actions { display: flex; gap: 14px; margin-top: 40px; flex-wrap: wrap; }

.hero-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  margin-top: 76px; border-top: 1px solid var(--line); padding-top: 34px;
}
.hero-stats .stat { padding-right: 24px; border-right: 1px solid var(--line); }
.hero-stats .stat:last-child { border-right: 0; }
.hero-stats .stat b { display: block; font-size: 30px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.hero-stats .stat b em { font-style: normal; font-size: 16px; color: var(--blue); margin-left: 2px; }
.hero-stats .stat span { font-size: 13.5px; color: var(--muted); }

/* ---------- 卡片网格 ---------- */
.grid { display: grid; gap: 22px; }
.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-lg);
  padding: 30px 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.card h3 { font-size: 18px; margin-bottom: 12px; }
.card p { color: var(--muted); font-size: 14.5px; line-height: 1.8; }

.icon-box {
  width: 46px; height: 46px; border-radius: 11px; margin-bottom: 20px;
  background: var(--blue-50); border: 1px solid var(--blue-100);
  display: grid; place-items: center; color: var(--blue);
}
.icon-box svg { width: 22px; height: 22px; }

/* ---------- 产品卡 ---------- */
.product-card {
  display: flex; flex-direction: column;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  overflow: hidden; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.product-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.product-cover {
  height: 156px; background: linear-gradient(140deg, var(--blue-50), var(--blue-100));
  display: grid; place-items: center; overflow: hidden; border-bottom: 1px solid var(--line);
}
.product-cover img { width: 100%; height: 100%; object-fit: cover; }
.product-cover .ph { font-size: 26px; font-weight: 700; color: var(--blue); opacity: .22; letter-spacing: .08em; }
.product-body { padding: 24px 24px 26px; display: flex; flex-direction: column; flex: 1; }
.product-tags { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 14px; }
.tag {
  font-size: 12px; padding: 3px 10px; border-radius: 5px;
  background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100);
}
.tag-muted { background: #F6F8FB; color: var(--muted); border-color: var(--line); }
.product-body h3 { font-size: 17px; margin-bottom: 10px; }
.product-body p { color: var(--muted); font-size: 14px; line-height: 1.75; flex: 1; }
.product-foot {
  margin-top: 20px; padding-top: 16px; border-top: 1px solid var(--line-soft);
  display: flex; align-items: center; justify-content: space-between; font-size: 13.5px;
}
.product-foot .price { color: var(--blue); font-weight: 600; }
.product-foot .more { color: var(--muted-2); }

/* 分类筛选 */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 38px; }
.filter-bar button {
  height: 36px; padding: 0 18px; border-radius: 20px; cursor: pointer;
  background: #fff; border: 1px solid var(--line); color: var(--muted); font-size: 14px;
  transition: all .18s;
}
.filter-bar button:hover { border-color: var(--blue-200); color: var(--blue); }
.filter-bar button.on { background: var(--blue); border-color: var(--blue); color: #fff; }

.empty {
  padding: 70px 20px; text-align: center; color: var(--muted-2);
  border: 1px dashed var(--line); border-radius: var(--radius-lg); background: var(--blue-50);
}

/* ---------- 页头（内页） ---------- */
.page-head {
  padding: 62px 0 52px; background: var(--blue-50);
  border-bottom: 1px solid var(--line);
}
.crumb { font-size: 13.5px; color: var(--muted-2); margin-bottom: 16px; }
.crumb a:hover { color: var(--blue); }
.crumb span { margin: 0 8px; }
.page-head h1 { font-size: 38px; letter-spacing: -.02em; margin-bottom: 14px; }
.page-head p { color: var(--muted); font-size: 16px; max-width: 640px; }

/* ---------- 时间线 ---------- */
.timeline { position: relative; padding-left: 30px; }
.timeline::before {
  content: ''; position: absolute; left: 5px; top: 8px; bottom: 8px; width: 2px;
  background: linear-gradient(to bottom, var(--blue), var(--blue-200));
  border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 34px 22px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline li::before {
  content: ''; position: absolute; left: -30px; top: 7px;
  width: 12px; height: 12px; border-radius: 50%;
  background: #fff; border: 2.5px solid var(--blue);
}
.timeline .year { font-size: 17px; font-weight: 700; color: var(--blue); margin-bottom: 4px; }
.timeline .desc { color: var(--muted); font-size: 14.5px; }

/* ---------- 流程步骤 ---------- */
.steps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; counter-reset: s; }
.steps .step { position: relative; padding: 0 20px 0 0; }
.steps .step::after {
  content: ''; position: absolute; top: 15px; left: 36px; right: 4px; height: 1px;
  background: var(--line);
}
.steps .step:last-child::after { display: none; }
.steps .step .no {
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: #fff; border: 1.5px solid var(--blue-200); color: var(--blue);
  font-size: 13.5px; font-weight: 700; margin-bottom: 16px; position: relative; z-index: 1;
}
.steps .step h4 { font-size: 15.5px; margin-bottom: 8px; }
.steps .step p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }

/* ---------- 关于我们 ---------- */
.intro-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: 60px; align-items: start; }
.intro-text p { color: var(--muted); font-size: 15.5px; line-height: 1.95; margin-bottom: 16px; }
.intro-aside { background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; }
.intro-aside dl { margin: 0; }
.intro-aside dt { font-size: 12.5px; color: var(--muted-2); letter-spacing: .06em; margin-bottom: 6px; }
.intro-aside dd { margin: 0 0 22px; font-size: 15px; color: var(--ink); font-weight: 500; }
.intro-aside dd:last-child { margin-bottom: 0; }

.value-item { padding: 26px 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 260px 1fr; gap: 32px; }
.value-item:last-child { border-bottom: 0; }
.value-item h4 { font-size: 17px; display: flex; align-items: center; gap: 10px; }
.value-item h4 .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--blue); flex-shrink: 0; }
.value-item p { color: var(--muted); font-size: 14.5px; }

/* ---------- 联系页 ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 56px; align-items: start; }
.contact-item { display: flex; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.contact-item:last-child { border-bottom: 0; }
.contact-item .icon-box { margin: 0; width: 42px; height: 42px; flex-shrink: 0; }
.contact-item .label { font-size: 12.5px; color: var(--muted-2); letter-spacing: .06em; margin-bottom: 3px; }
.contact-item .value { font-size: 15.5px; color: var(--ink); font-weight: 500; word-break: break-all; }

.form-panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow-sm); }
.form-panel h3 { font-size: 20px; margin-bottom: 8px; }
.form-panel .hint { color: var(--muted); font-size: 13.5px; margin-bottom: 26px; }

/* ---------- 表单控件 ---------- */
.field { margin-bottom: 18px; }
.field label { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 7px; font-weight: 500; }
.field label .req { color: #D9534F; margin-left: 2px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 13px; border-radius: 8px;
  border: 1px solid var(--line); background: #fff; font-size: 14.5px;
  transition: border-color .18s, box-shadow .18s; outline: none;
}
.field textarea { min-height: 118px; resize: vertical; line-height: 1.7; }
.field input:focus, .field textarea:focus, .field select:focus {
  border-color: var(--blue); box-shadow: 0 0 0 3px rgba(26, 79, 214, .1);
}
.field .tip { font-size: 12.5px; color: var(--muted-2); margin-top: 6px; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* ---------- 登录页 ---------- */
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; min-height: calc(100vh - var(--header-h)); }
.auth-brand {
  background: linear-gradient(155deg, var(--blue-deep) 0%, var(--blue) 115%);
  color: #fff; padding: 76px 62px; display: flex; flex-direction: column; justify-content: center;
  position: relative; overflow: hidden;
}
.auth-brand::after {
  content: ''; position: absolute; right: -120px; bottom: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  background: rgba(255, 255, 255, .05);
}
.auth-brand h2 { color: #fff; font-size: 34px; line-height: 1.35; margin-bottom: 20px; letter-spacing: -.02em; }
.auth-brand p { color: rgba(255, 255, 255, .72); font-size: 15px; line-height: 1.9; max-width: 400px; }
.auth-brand ul { margin-top: 40px; }
.auth-brand li { display: flex; align-items: center; gap: 11px; color: rgba(255, 255, 255, .86); font-size: 14.5px; padding: 9px 0; }
.auth-brand li svg { width: 17px; height: 17px; flex-shrink: 0; opacity: .85; }

.auth-form { display: flex; align-items: center; justify-content: center; padding: 60px 28px; background: #fff; }
.auth-box { width: 100%; max-width: 396px; }
.auth-box h1 { font-size: 27px; margin-bottom: 8px; }
.auth-box .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 32px; }
.auth-tabs { display: flex; gap: 4px; background: var(--blue-50); padding: 4px; border-radius: 10px; margin-bottom: 28px; }
.auth-tabs button {
  flex: 1; height: 38px; border: 0; background: transparent; border-radius: 7px;
  cursor: pointer; font-size: 14.5px; color: var(--muted); transition: all .18s;
}
.auth-tabs button.on { background: #fff; color: var(--blue); font-weight: 600; box-shadow: var(--shadow-sm); }

/* ---------- CTA 区块 ---------- */
.cta-band {
  background: linear-gradient(120deg, var(--blue-deep) 0%, var(--blue) 105%);
  border-radius: var(--radius-lg); padding: 58px 56px; color: #fff;
  display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: 29px; margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, .74); font-size: 15.5px; }
.cta-band .btn-ghost { background: #fff; border-color: #fff; color: var(--blue-deep); }
.cta-band .btn-ghost:hover { background: rgba(255, 255, 255, .9); color: var(--blue-deep); }

/* ---------- 页脚 ---------- */
.site-footer { background: var(--blue-deep); color: rgba(255, 255, 255, .68); padding: 62px 0 0; margin-top: 0; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.4fr; gap: 44px; padding-bottom: 48px; }
.site-footer .brand-name, .site-footer .brand-sub { color: #fff; }
/* 页脚是深蓝底，深色 LOGO 会糊在里面 → 给一块白色托底，深浅两种 LOGO 都读得出来。
   （box-sizing 是 border-box，所以 42px 的盒子里面剩 32px 是图） */
.site-footer .brand-logo {
  height: 42px; max-width: 220px; padding: 5px 9px;
  background: #fff; border-radius: 9px;
}
.site-footer .brand-sub { color: rgba(255, 255, 255, .42); }
.footer-intro { margin-top: 20px; font-size: 13.5px; line-height: 1.9; color: rgba(255, 255, 255, .58); max-width: 320px; }
.footer-col h4 { color: #fff; font-size: 14px; margin-bottom: 18px; letter-spacing: .04em; }
.footer-col li { margin-bottom: 11px; font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-contact li { display: flex; gap: 9px; font-size: 13.5px; line-height: 1.7; }
.footer-contact svg { width: 15px; height: 15px; flex-shrink: 0; margin-top: 4px; opacity: .55; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1); padding: 22px 0;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 12.5px; color: rgba(255, 255, 255, .45);
}

/* ---------- 提示条 ---------- */
.toast-wrap { position: fixed; top: 88px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  min-width: 220px; max-width: 380px; padding: 13px 17px; border-radius: 9px;
  background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-lg);
  font-size: 14px; color: var(--ink); animation: toastIn .22s ease;
}
.toast.ok { border-left: 3px solid #2E9E6B; }
.toast.err { border-left: 3px solid #D9534F; }
@keyframes toastIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }

/* ---------- 管理后台 ---------- */
.admin-layout { display: grid; grid-template-columns: 236px 1fr; min-height: calc(100vh - var(--header-h)); }
.admin-side { background: #fff; border-right: 1px solid var(--line); padding: 28px 16px; }
.admin-side .group-title { font-size: 11.5px; color: var(--muted-2); letter-spacing: .1em; padding: 0 12px; margin-bottom: 10px; }
.admin-side a {
  display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 8px;
  font-size: 14.5px; color: var(--ink-2); margin-bottom: 3px; cursor: pointer;
}
.admin-side a:hover { background: var(--blue-50); color: var(--blue); }
.admin-side a.on { background: var(--blue); color: #fff; }
.admin-side a svg { width: 17px; height: 17px; }

.admin-main { padding: 34px 38px 70px; background: #F7F9FC; }
.admin-head { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.admin-head h1 { font-size: 25px; }
.admin-head .desc { color: var(--muted); font-size: 14px; margin-top: 5px; }
.admin-head .head-actions { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.panel-head > .muted { font-size: 12.5px; line-height: 1.6; max-width: 62%; text-align: right; font-weight: 400; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 24px; }
.panel-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.panel-head h3 { font-size: 16px; }
.panel-body { padding: 24px 22px; }

.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th {
  text-align: left; font-weight: 600; color: var(--muted); font-size: 12.5px;
  letter-spacing: .04em; padding: 12px 14px; background: #FAFBFD; border-bottom: 1px solid var(--line);
}
.table td { padding: 14px; border-bottom: 1px solid var(--line-soft); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr:hover td { background: #FCFDFF; }
.table .name { font-weight: 600; color: var(--ink); }
.table .muted { color: var(--muted-2); font-size: 13px; }
.row-actions { display: flex; gap: 8px; }

/* 产品列表的「分类内上下挪位置」控件 */
.pos-move { display: flex; align-items: center; gap: 5px; }
.pos-num { min-width: 22px; text-align: center; color: var(--muted-2); font-size: 12.5px; }
.pos-btn {
  width: 24px; height: 24px; padding: 0; border: 1px solid var(--line); border-radius: 6px;
  background: #fff; color: var(--muted); font-size: 10px; line-height: 1; cursor: pointer;
  transition: all .15s ease;
}
.pos-btn:hover { border-color: var(--blue); color: var(--blue); background: var(--blue-50); }
.pos-btn:active { transform: scale(.94); }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 24px; }
.stat-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 22px; }
.stat-card .k { font-size: 12.5px; color: var(--muted); margin-bottom: 8px; }
.stat-card .v { font-size: 27px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; }
.stat-card .v.blue { color: var(--blue); }

.badge { font-size: 12px; padding: 3px 9px; border-radius: 5px; background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100); }
.badge.gray { background: #F5F7FA; color: var(--muted); border-color: var(--line); }
.badge.green { background: #F0F9F4; color: #2E9E6B; border-color: #CDEBDA; }

.tab-pane { display: none; }
.tab-pane.on { display: block; }

/* 上传控件 */
.upload-box {
  border: 1.5px dashed var(--line); border-radius: var(--radius); padding: 24px;
  text-align: center; color: var(--muted); font-size: 13.5px; cursor: pointer;
  transition: all .18s; background: #FCFDFF;
}
.upload-box:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue); }
.upload-preview { margin-top: 12px; display: none; align-items: center; gap: 12px; }
.upload-preview.on { display: flex; }
.upload-preview img { width: 76px; height: 76px; object-fit: cover; border-radius: 8px; border: 1px solid var(--line); }

/* 留言详情 */
.msg-item { border-bottom: 1px solid var(--line); padding: 18px 22px; }
.msg-item:last-child { border-bottom: 0; }
.msg-item .top { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; flex-wrap: wrap; }
.msg-item .who { font-weight: 600; color: var(--ink); }
.msg-item .meta { font-size: 13px; color: var(--muted-2); }
.msg-item .body { font-size: 14px; color: var(--muted); line-height: 1.8; white-space: pre-wrap; }
.msg-item.unread { background: #FCFDFF; border-left: 3px solid var(--blue); }

/* 模态框 */
.modal-mask {
  position: fixed; inset: 0; background: rgba(11, 27, 51, .45); z-index: 300;
  display: none; align-items: flex-start; justify-content: center; padding: 60px 20px; overflow-y: auto;
  backdrop-filter: blur(2px);
}
.modal-mask.on { display: flex; }
.modal { background: #fff; border-radius: var(--radius-lg); width: 100%; max-width: 620px; box-shadow: var(--shadow-lg); }
.modal-head { padding: 20px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.modal-head h3 { font-size: 17px; }
.modal-head .x { border: 0; background: transparent; font-size: 22px; line-height: 1; cursor: pointer; color: var(--muted-2); }
.modal-body { padding: 24px; max-height: 62vh; overflow-y: auto; }
.modal-foot { padding: 18px 24px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; gap: 10px; }

/* ---------- 首页轮播 ---------- */
.hero-slider {
  position: relative; overflow: hidden;
  background: linear-gradient(135deg, var(--blue-deep) 0%, var(--blue-dark) 55%, var(--blue) 100%);
}
.slides { position: relative; }
.slide {
  position: absolute; inset: 0; opacity: 0; visibility: hidden;
  transition: opacity .6s ease; padding: 108px 0 96px;
  background-size: cover; background-position: center;
}
.slide.on { position: relative; opacity: 1; visibility: visible; }
/*
 * 配了图的轮播：把 --slide-bg 真正铺上。
 * ⚠️ 以前这里只写了 background-size/position，**漏了 background-image**，
 *    所以后台「轮播图管理」传了图也不显示（一直没图，所以没暴露）。
 */
.slide[style*="--slide-bg"] { background-image: var(--slide-bg); }
.slide::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,31,82,.92) 0%, rgba(18,58,166,.86) 55%, rgba(26,79,214,.78) 100%);
}
/* 有配图时换成横向压暗：左侧压得深（放文字），右侧留亮（露画面） */
.slide[style*="--slide-bg"]::before {
  background: linear-gradient(
    100deg,
    rgba(8, 24, 66, .95) 0%,
    rgba(10, 32, 88, .9) 34%,
    rgba(16, 50, 140, .62) 62%,
    rgba(22, 68, 190, .34) 100%
  );
}
.slide-inner { position: relative; z-index: 1; max-width: 780px; }
.slide .eyebrow { color: rgba(255,255,255,.85); background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.2); }
.slide h1 { color: #fff; font-size: 46px; line-height: 1.2; letter-spacing: -.02em; margin: 20px 0 18px; }
.slide p { color: rgba(255,255,255,.84); font-size: 17px; line-height: 1.85; max-width: 640px; }
.slide .hero-actions { margin-top: 36px; }
.slide .btn-primary { background: #fff; color: var(--blue); box-shadow: 0 6px 18px rgba(0,0,0,.18); }
.slide .btn-primary:hover { background: #F2F6FF; color: var(--blue-dark); }
.slide .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.45); }
.slide .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: rgba(255,255,255,.75); }

.slider-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 44px; height: 44px; border-radius: 50%; cursor: pointer;
  background: rgba(255,255,255,.16); border: 1px solid rgba(255,255,255,.3); color: #fff;
  font-size: 22px; line-height: 1; display: grid; place-items: center; transition: background .2s;
}
.slider-arrow:hover { background: rgba(255,255,255,.32); }
.slider-arrow.prev { left: 26px; }
.slider-arrow.next { right: 26px; }
.slider-dots { position: absolute; left: 0; right: 0; bottom: 30px; z-index: 3; display: flex; justify-content: center; gap: 10px; }
.slider-dots .dot {
  width: 30px; height: 4px; border-radius: 2px; border: 0; cursor: pointer;
  background: rgba(255,255,255,.34); transition: background .2s, width .2s;
}
.slider-dots .dot.on { background: #fff; width: 46px; }

/* ---------- 数据背书条 ---------- */
.stats-band { background: #fff; border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding: 40px 0; }
.stat-item { text-align: center; border-right: 1px solid var(--line); padding: 6px 10px; }
.stat-item:last-child { border-right: 0; }
.stat-item b { display: block; font-size: 36px; font-weight: 700; color: var(--ink); letter-spacing: -.02em; line-height: 1.1; }
.stat-item b em { font-style: normal; font-size: 17px; color: var(--blue); margin-left: 3px; }
.stat-item span { font-size: 13.5px; color: var(--muted); }

/* ---------- 系列卡片 ---------- */
.series-card {
  display: flex; flex-direction: column; gap: 14px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 30px 28px 28px; transition: border-color .2s, box-shadow .2s, transform .2s;
}
.series-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.series-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.series-top h3 { font-size: 21px; color: var(--ink); }
.series-count {
  font-size: 13px; color: var(--blue); background: var(--blue-50);
  border: 1px solid var(--blue-100); border-radius: 20px; padding: 3px 12px; white-space: nowrap;
}
.series-card p { color: var(--muted); font-size: 14.5px; line-height: 1.8; flex: 1; }
.series-groups { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { font-size: 12.5px; color: var(--ink-2); background: var(--blue-50); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }
.series-more { display: inline-flex; align-items: center; gap: 6px; color: var(--blue); font-size: 14px; font-weight: 500; }

/* ---------- 解决方案卡片（首页三张：生产 / 商贸 / 定制） ---------- */
.solution-card {
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  transition: border-color .2s, box-shadow .2s, transform .2s;
}
.solution-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); transform: translateY(-3px); }
.solution-media {
  position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--blue-50);
}
.solution-media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .5s ease; }
.solution-card:hover .solution-media img { transform: scale(1.04); }
.solution-media .ph {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, var(--blue-100), var(--blue-50));
}
.solution-body { display: flex; flex-direction: column; gap: 12px; padding: 24px 26px 26px; flex: 1; }
.solution-body h3 { font-size: 20px; color: var(--ink); }
.solution-body p { color: var(--muted); font-size: 14.5px; line-height: 1.85; flex: 1; }
.solution-card .series-more { margin-top: 2px; }

/* 产品页「按解决方案筛选」的提示条 */
.sol-notice {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: var(--blue-50); border: 1px solid var(--blue-100); border-radius: var(--radius);
  padding: 14px 18px; margin-bottom: 26px;
}
.sol-badge {
  font-size: 13.5px; font-weight: 600; color: #fff; background: var(--blue);
  border-radius: 20px; padding: 4px 14px;
}
.sol-count { font-size: 14px; color: var(--ink-2); }
.sol-count b { color: var(--blue); font-size: 16px; }
.sol-notice a { margin-left: auto; font-size: 14px; color: var(--blue); }

/* ---------- 产品列表：系列 / 分组 ---------- */
.series-block { margin-bottom: 64px; scroll-margin-top: 100px; }
.series-block:last-child { margin-bottom: 0; }
.series-block-head { margin-bottom: 32px; padding-bottom: 18px; border-bottom: 2px solid var(--blue-100); }
.series-block-head h2 { font-size: 27px; color: var(--ink); margin-bottom: 8px; }
.series-block-head p { color: var(--muted); font-size: 15px; max-width: 720px; }
.group-block { margin-bottom: 40px; }
.group-block:last-child { margin-bottom: 0; }
.group-title { display: flex; align-items: center; gap: 10px; font-size: 17px; color: var(--ink-2); margin-bottom: 20px; }
.group-title .bar { width: 4px; height: 17px; border-radius: 2px; background: var(--blue); }

/* ---------- 产品卡内的特点列表 ---------- */
.feat-list { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.feat-list li { display: flex; gap: 8px; align-items: flex-start; font-size: 13.5px; color: var(--muted); }
.feat-list li svg { width: 14px; height: 14px; color: var(--blue); flex-shrink: 0; margin-top: 4px; }
.tag-series { background: var(--blue-100); color: var(--blue-dark); border-color: var(--blue-200); }
.product-cover { display: block; }

/* ---------- 产品详情 ---------- */
.detail-hero { padding: 34px 0 66px; background: linear-gradient(180deg, var(--blue-50) 0%, rgba(245,248,254,0) 100%); }
.detail-grid { display: grid; grid-template-columns: 440px 1fr; gap: 54px; align-items: center; margin-top: 22px; }
.detail-media {
  aspect-ratio: 4 / 3; border-radius: var(--radius-lg); overflow: hidden;
  background: linear-gradient(135deg, var(--blue-50), var(--blue-100));
  border: 1px solid var(--line); display: grid; place-items: center;
}
.detail-media img { width: 100%; height: 100%; object-fit: cover; }
.detail-media .ph { font-size: 64px; font-weight: 700; color: var(--blue); opacity: .25; letter-spacing: .04em; }
.detail-info h1 { font-size: 36px; letter-spacing: -.02em; margin: 16px 0 18px; }
.detail-summary { color: var(--muted); font-size: 16.5px; line-height: 1.85; max-width: 620px; }
.detail-meta {
  display: flex; gap: 44px; margin: 26px 0 30px; padding: 18px 0;
  border-top: 1px solid var(--line); border-bottom: 1px solid var(--line);
}
.detail-meta .k { display: block; font-size: 12.5px; color: var(--muted-2); margin-bottom: 4px; }
.detail-meta .v { font-size: 15px; color: var(--ink); font-weight: 500; }

.detail-body-grid { display: grid; grid-template-columns: 1fr 340px; gap: 56px; align-items: start; }
.detail-main { min-width: 0; }
.detail-h2 { font-size: 22px; color: var(--ink); margin-bottom: 18px; padding-left: 14px; border-left: 4px solid var(--blue); line-height: 1.2; }
.detail-main p { color: var(--muted); font-size: 15.5px; line-height: 1.95; margin-bottom: 14px; }
.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.feature-grid li {
  display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--ink-2);
  background: var(--blue-50); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px;
}
.feature-grid li svg { width: 16px; height: 16px; color: var(--blue); flex-shrink: 0; margin-top: 3px; }
.detail-note {
  margin-top: 40px; padding: 18px 20px; border-radius: var(--radius);
  background: var(--blue-50); border: 1px dashed var(--blue-200);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  font-size: 14.5px; color: var(--ink-2);
}
.detail-note a { color: var(--blue); font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }

.detail-aside { display: flex; flex-direction: column; gap: 22px; position: sticky; top: 92px; }
.aside-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; }
.aside-card h3 { font-size: 16px; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.aside-list { display: flex; flex-direction: column; gap: 4px; }
.aside-list li a { display: flex; flex-direction: column; gap: 3px; padding: 11px 12px; border-radius: 8px; transition: background .18s; }
.aside-list li a:hover { background: var(--blue-50); }
.aside-list .an { font-size: 14px; color: var(--ink-2); }
.aside-list .ag { font-size: 12px; color: var(--muted-2); }
.contact-card { background: linear-gradient(160deg, var(--blue-50), #fff); }
.contact-card p { color: var(--muted); font-size: 13.8px; line-height: 1.8; margin-bottom: 16px; }
.aside-phone { display: flex; align-items: center; gap: 9px; margin-top: 16px; font-size: 15px; color: var(--ink); font-weight: 600; }
.aside-phone svg { width: 17px; height: 17px; color: var(--blue); }
.aside-hours { margin-top: 8px; font-size: 12.5px; color: var(--muted-2); }

/* ==========================================================================
   顶部导航「产品系列」大菜单（金蝶式：鼠标悬停展开，一列一个产品分组）
   ========================================================================== */
.nav-item { display: inline-flex; align-items: center; }
.nav-item .nav-link { display: inline-flex; align-items: center; gap: 5px; }
.nav-item .caret { display: inline-flex; opacity: .5; transition: transform .2s ease, opacity .2s; }
.nav-item .caret svg { width: 13px; height: 13px; }
.nav-item:hover .caret { transform: rotate(180deg); opacity: 1; }

/* 定位锚在 .site-header（sticky 属于定位元素），所以面板是相对页头居中，
   而不是相对那一个小导航项 —— 否则 1180px 的面板会顶到屏幕外面去。 */
.mega {
  position: absolute; top: 100%; left: 50%;
  width: min(1180px, calc(100vw - 32px));
  transform: translate(-50%, -10px);
  opacity: 0; visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
  z-index: 60;
}
.nav-item:hover .mega,
.nav-item:focus-within .mega,
.nav-item.open .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
/* 面板与页头之间补一块透明区，鼠标斜着移过去不会中途"掉出"hover */
.mega::before { content: ''; position: absolute; left: 0; right: 0; top: -12px; height: 12px; }

.mega-wrap {
  background: #fff;
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  box-shadow: 0 22px 52px rgba(11, 27, 51, .14);
  overflow: hidden;
  padding-top: 15px;
}

.mega-tabs {
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
  margin: 0 24px; padding-bottom: 13px;
  border-bottom: 1px solid var(--line-soft);
}
.mega-tabs .mtab {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 13px; border-radius: 20px; font-size: 13px; color: var(--muted);
  transition: background .16s, color .16s;
}
.mega-tabs .mtab i { width: 6px; height: 6px; border-radius: 50%; }
.mega-tabs .mtab:hover { background: var(--blue-50); color: var(--blue); }
.mega-tabs .mtab.on { background: var(--blue-100); color: var(--blue-dark); font-weight: 600; }

.mega-cols {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 4px 18px;
  padding: 14px 24px 16px;
  /* 用"屏幕剩余高度"而不是固定百分比：常见 700~1080 高的桌面屏
     都能一次性把 9 个分组排完，不会把某一行从中间截断；
     只有屏幕确实很矮时才出现滚动，且滚动条在面板内部。 */
  max-height: calc(100vh - 175px);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
}
.mega-col { min-width: 0; }

.mc-head {
  display: flex; align-items: center; gap: 7px;
  padding: 6px 8px 7px; font-size: 13.5px; font-weight: 600; color: var(--ink);
}
.mc-head:hover { color: var(--blue); }
.mc-head .mc-dot { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.mc-head .mc-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-head .mc-num {
  margin-left: auto; flex-shrink: 0;
  font-style: normal; font-size: 11.5px; font-weight: 500; color: var(--muted-2);
  background: var(--line-soft); border-radius: 9px; padding: 1px 7px;
}

.mc-item { display: flex; align-items: center; gap: 9px; padding: 5px 8px; border-radius: 8px; transition: background .16s; }
.mc-item:hover { background: var(--blue-50); }
.mc-ico { width: 34px; height: 34px; border-radius: 8px; flex-shrink: 0; display: grid; place-items: center; }
.mc-ico svg { width: 15px; height: 15px; }
/* 产品封面缩略图：有封面的产品走这里，没封面才回退到上一种 SVG 图标。
   两类图标同宽同高，保证各列的品名左边缘对齐。 */
.mc-ico-img { overflow: hidden; background: var(--blue-50); border: 1px solid var(--line); }
.mc-ico-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.mc-txt { min-width: 0; display: flex; flex-direction: column; line-height: 1.35; }
.mc-txt b { font-size: 13.3px; font-weight: 500; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-txt i { font-style: normal; font-size: 11.6px; color: var(--muted-2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-more { display: inline-flex; align-items: center; gap: 3px; padding: 5px 8px; font-size: 12px; color: var(--blue); }
.mc-more svg { width: 13px; height: 13px; }

/* 单列超过 6 款的：裁到 6 行，由 site.js 逐行平移做列内轮播（悬停暂停）。
   calc 里的 44px 是「一行」的实测高度，脚本量到真实值后会回写 max-height。 */
.mc-list[data-rot] { overflow: hidden; max-height: calc(44px * 6); }
.mc-list[data-rot] .mc-track { will-change: transform; }

.mega-foot {
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  padding: 12px 24px; border-top: 1px solid var(--line-soft); background: #FAFBFE;
  font-size: 12.6px; color: var(--muted-2);
}
.mega-foot b { color: var(--blue); }
.mega-all { display: inline-flex; align-items: center; gap: 4px; color: var(--blue); font-weight: 500; font-size: 13px; }
.mega-all svg { width: 14px; height: 14px; }

/* ==========================================================================
   管理后台 · 首页数据背书条的实时预览
   ========================================================================== */
.stat-preview {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px;
  padding: 16px 10px; border: 1px dashed var(--line); border-radius: 10px; background: #FAFBFE;
}
.stat-preview .stat-item { border-right: 1px solid var(--line); padding: 2px 6px; }
.stat-preview .stat-item:last-child { border-right: 0; }
.stat-preview .stat-item b { font-size: 24px; }
.stat-preview .stat-item b em { font-size: 14px; }
.stat-preview .stat-item span { font-size: 12.5px; }
.stat-preview-empty { grid-column: 1 / -1; color: var(--muted-2); font-size: 13px; }

/* ==========================================================================
   管理后台 · 「页面文案」里的通用图片上传
   ========================================================================== */
.upload-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.upload-row input[type="file"] { flex: 1 1 280px; font-size: 13.5px; color: var(--muted); }
.upload-row #blockUploadState { font-size: 12.5px; }
.upload-preview { display: flex; align-items: center; gap: 14px; margin-top: 14px; }
.upload-preview:empty { display: none; }
.upload-preview img {
  width: 168px; height: 105px; object-fit: cover;
  border: 1px solid var(--line); border-radius: 10px; background: #FAFBFE;
}
.upload-preview span { font-size: 12.5px; color: var(--muted-2); word-break: break-all; }

/* ==========================================================================
   管理后台 · 「内容装修」（首页图片 + 文案集中一页）
   ========================================================================== */
.deco-body { display: flex; flex-direction: column; gap: 16px; }

/* 一行 = 左边缩略图 + 右边字段 */
.deco-row {
  display: grid;
  grid-template-columns: 208px minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FCFDFF;
}
/* 状态是「草稿」的行给一条醒目提示 —— 前台只显示「已发布」，
   不提醒的话用户会以为"传了图怎么前台没有"（2026-10-07 踩过）。 */
.row-warn {
  margin-top: 12px; padding: 9px 12px;
  font-size: 12.8px; line-height: 1.7;
  color: #A8420B; background: #FFF6ED;
  border: 1px solid #FFD9B5; border-radius: 8px;
}
.deco-thumb {
  position: relative;
  /* ⚠️ 必须 start：.deco-row 是 grid，默认 align-self:stretch 会把缩略图拉满整行高度，
     aspect-ratio 就失效了（图被拉得又高又长）。 */
  align-self: start;
  aspect-ratio: 16 / 10;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #EEF3FF, #F8FAFE);
  display: flex;
  align-items: center;
  justify-content: center;
}
.deco-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.deco-thumb .ph { font-size: 13px; color: var(--muted-2); letter-spacing: .06em; }
.deco-thumb.sm { aspect-ratio: 1 / 1; }
/* LOGO 预览：必须用 contain 别裁切（LOGO 往往又宽又扁），白底才看得出透明底/深色图 */
.deco-thumb.logo { aspect-ratio: 1 / 1; background: #fff; }
.deco-thumb.logo img { object-fit: contain; padding: 9px; }
.deco-thumb.logo .ph { font-size: 22px; font-weight: 700; color: var(--blue); letter-spacing: 0; }

.deco-fields { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.deco-fields .field { margin: 0; }
.deco-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.deco-grow { flex: 1 1 auto; }

/* 「换图」按钮：label 包着一个隐藏的 file input，省掉原生 file 控件的丑样式 */
.deco-pick { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; position: relative; }
.deco-pick input[type="file"] { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.deco-pick.busy { opacity: .55; pointer-events: none; }
.deco-pick svg { width: 15px; height: 15px; }
.deco-pick:hover { border-color: var(--blue); color: var(--blue); }

/* 产品封面图网格 */
.deco-prod-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(166px, 1fr));
  gap: 14px;
}
.deco-prod {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #FCFDFF;
}
.deco-prod-info .name { font-size: 13.5px; font-weight: 600; color: var(--ink); line-height: 1.45; }
.deco-prod-info .muted { font-size: 12px; margin-top: 2px; }
.deco-prod-info .warn { color: #B4770A; }
.deco-prod .deco-pick { align-self: flex-start; }

/* ==========================================================================
   改版新增组件：在线试用按钮 / 方案卡 / 优势卡 / 荣誉证书 /
   关于我们核心能力 / 在线试用页 / 右下角客服助手
   ========================================================================== */

/* ---------- 「在线试用」按钮：亮底蓝字，深浅背景上都醒目 ---------- */
.btn-trial {
  background: #fff; color: var(--blue); border-color: var(--blue);
  font-weight: 600;
  box-shadow: 0 0 0 3px rgba(26, 79, 214, .10), 0 2px 10px rgba(26, 79, 214, .16);
}
.btn-trial:hover {
  background: var(--blue); color: #fff; border-color: var(--blue);
  transform: translateY(-1px); box-shadow: 0 8px 20px rgba(26, 79, 214, .3);
}
.btn-lg { height: 50px; padding: 0 30px; font-size: 16px; border-radius: 10px; }

/* ---------- 首页方案卡：2×2 ---------- */
.grid-sol { gap: 26px; }

/* ---------- 首页「五大优势」：一行放得下 5 张短卡 ---------- */
.grid-adv { gap: 18px; grid-template-columns: repeat(5, 1fr); }
.grid-adv .card { padding: 28px 20px 24px; }
.grid-adv .card h3 { font-size: 16.5px; margin-bottom: 8px; }
.grid-adv .card p { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.grid-adv .icon-box { margin-bottom: 14px; }

/* ---------- 荣誉证书（首页资质条 + 关于我们证书墙，2026-10-07 起两处同一套跑马灯） ----------
   ⚠️ 历史坑：这两块以前是 grid（首页 .honor-strip / 关于 .honor-grid），踩过两次：
     ① 只能用 `auto-fill` 不能用 `auto-fit` —— auto-fit 会把**空轨道收掉**，只剩 1 张证书时
        该卡被拉到满宽，再叠上 4/3 的 aspect-ratio 就成了一个占满整屏的巨块；
     ② 首页取前 6 条在 1124px 下排成 5 列 → 变成 5+1 两行，很难看。
   现在统一走 .honor-marquee（结构/调速见 public/js/site.js 的 marquees.forEach）。 */

/* ---------- 证书墙：一行 N 张，其余缓慢左移（自驱动跑马灯） ----------
   结构：.honor-marquee > .honor-track > .honor-set（真卡）+ JS 克隆的第二份 .honor-set
   卡宽用 --mq-card-w（JS 按"当前宽度该放几张"算），一行放几张由 JS 的 visibleFor() 决定。

   ⚠️⚠️ 位移**故意不用 CSS 动画**（2026-10-08 改，踩过）。@keyframes 有三个"静默失效"开关，
   而且页面上**没有任何提示**，用户只会看到"这块不动了"：
     · @media (prefers-reduced-motion: reduce) —— 系统/浏览器关了动画效果就直接归零
     · 页面不可见（切标签页、窗口被遮住）—— 动画停在原地，animation-play-state 仍显示 running
     · :hover / :focus-within —— 鼠标恰好停在上面就定住
   现在改由 public/js/site.js 用 requestAnimationFrame 自己推 transform：
   状态全在手里，可暂停/继续、可拖拽滑动，且不受上面三个开关影响。 */
.honor-marquee {
  --mq-gap: 20px;
  position: relative;
  overflow: hidden;
  /* 两端渐隐，避免卡片硬切在容器边缘（用 mask 而不是遮挡层，跟随不同底色都不会露馅） */
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  mask-image: linear-gradient(90deg, transparent, #000 36px, #000 calc(100% - 36px), transparent);
  /* 横向拖拽自己处理（桌面拖 / 手机滑都走同一套指针事件），纵向仍交给页面滚动 */
  touch-action: pan-y;
  -webkit-user-select: none;
  user-select: none;
}
/* 只有"真的会动"（证书多到一行放不下）时才给抓手光标，避免看着能动其实动不了 */
.honor-marquee.can-drag { cursor: grab; }
.honor-marquee.is-dragging { cursor: grabbing; }
.honor-marquee .honor-track,
.honor-marquee .honor-set { display: flex; gap: var(--mq-gap); }
.honor-marquee .honor-track { will-change: transform; }
.honor-marquee .honor-set { flex: 0 0 auto; }
/* 证书不够铺满一行 → 整行居中静止。
   ⚠️ 必须加在 .honor-track 上：.honor-set 是 flex:0 0 auto，宽度就是内容宽，
   给它加 justify-content 等于没加（旧版就是这么写的，那一行其实是靠左的）。 */
.honor-marquee.is-center .honor-track { justify-content: center; }
.honor-marquee .honor-card { flex: 0 0 auto; width: var(--mq-card-w, 172px); }

.honor-card {
  margin: 0; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.honor-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--blue-200); }
/* 2026-10-07 用户定稿：证书卡**只留图、不要名字**（figcaption 已从模板删掉）。
   图片一律 `object-fit: contain` **整张完整显示**，不裁切。
   版面盒为什么取 3:4（竖版）：后台实际传的 11 张证书**全是 3:4 竖版** —— 3 张 PNG 是 1029×1367，
   8 张 JPEG 磁盘头写着 5712×4284，但**带 EXIF 旋转标记**，浏览器校正后按 4284×5712 显示。
   取 3:4 时 contain 正好零留白铺满；用 4:3 的话竖版只剩 56% 宽（照片被裁成中间一条）。
   ⚠️ 别改回 `cover`：cover 会把竖版证书裁掉上下（用户明确要求"图片尽量全部显示"）。
   ⚠️ 判断图片真实比例要**在浏览器里读 naturalWidth/naturalHeight**，直接解析 JPEG 文件头会被 EXIF 骗。 */
.honor-card > img,
.honor-card .honor-media {
  display: block; width: 100%; aspect-ratio: 3 / 4; object-fit: contain; background: var(--blue-50);
}
/* 关于我们把图包在 <a class="honor-media"> 里，必须显式约束里面的 <img>，
   否则竖版扫描件按原始尺寸撑破卡片（只给容器 aspect-ratio 挡不住）。 */
.honor-card .honor-media img { display: block; width: 100%; height: 100%; object-fit: contain; }
/* 证书还没传图时别留一个纯白空框（用户会以为"又没显示"），直接写字说明 */
.honor-card .honor-media .ph {
  display: grid; place-items: center;
  width: 100%; height: 100%;
  font-size: 13px; color: var(--muted-2); letter-spacing: .04em;
}
.honor-more {
  margin-top: 34px; text-align: center;
  display: flex; align-items: center; justify-content: center; gap: 18px; flex-wrap: wrap;
}
/* ⚠️ 这里原本有个「暂停滚动」文字按钮，2026-10-08 按用户要求去掉了。
   无障碍（WCAG 2.2.2）改用**鼠标悬停即暂停**来满足 —— 见 site.js 的 pointerenter/leave。
   别再把这个按钮加回来：用户明确说过不要它。 */

/* ---------- 关于我们：核心能力卡片墙（页头下方的定位句 2026-10-07 已按用户要求去掉） ---------- */
/* .section-lead 现在只服务「公司简介写成散文」时的兜底正文，所以留白收紧一档 */
.section-lead { padding: 74px 0 10px; }
/* 万一后台把公司简介改成没有「一、二、三…」的散文，正文走这里兜底 */
.about-prose { max-width: 900px; margin-top: 26px; }
.about-prose p { color: var(--muted); font-size: 15.5px; line-height: 1.95; margin-bottom: 16px; }
.about-prose p:last-child { margin-bottom: 0; }
.about-prose:first-child { margin-top: 0; }
.core-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.core-card {
  display: flex; gap: 18px; padding: 26px 26px 22px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-sm); transition: border-color .2s ease, box-shadow .2s ease;
}
.core-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow); }
.core-idx {
  flex: 0 0 auto; width: 40px; height: 40px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue);
  border: 1px solid var(--blue-100); font-weight: 700; font-size: 15px;
}
.core-body h3 { font-size: 17.5px; margin-bottom: 8px; }
.core-body p { font-size: 14.5px; color: var(--muted); line-height: 1.85; }
.core-body p + p { margin-top: 8px; }

/* ---------- 产品页：分类圆点与数量 ---------- */
.cat-dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 9px; vertical-align: middle; }
.cat-num { font-size: 13px; font-weight: 400; color: var(--muted-2); margin-left: 10px; }

/* ---------- 在线试用页 ---------- */
.trial-grid { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); gap: 34px; align-items: start; }
.trial-panel { padding: 34px 34px 30px; }
.trial-panel h3 { font-size: 21px; margin-bottom: 6px; }
.trial-panel .hint { font-size: 14px; color: var(--muted); line-height: 1.8; margin-bottom: 22px; }
.opt-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); gap: 10px; }
.opt {
  display: flex; align-items: center; gap: 8px; cursor: pointer;
  padding: 11px 14px; border: 1px solid var(--line); border-radius: 9px;
  background: #FCFDFF; font-size: 14px; transition: all .16s ease;
}
.opt:hover { border-color: var(--blue-200); background: var(--blue-50); }
.opt input { width: 15px; height: 15px; margin: 0; accent-color: var(--blue); }
.opt:has(input:checked) { border-color: var(--blue); background: var(--blue-50); color: var(--blue); font-weight: 500; }
.trial-note { margin-top: 15px; font-size: 13px; color: var(--muted); line-height: 1.8; }
.trial-aside { display: flex; flex-direction: column; gap: 20px; }
.trial-qr, .trial-phone, .trial-steps {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.trial-qr { padding: 22px; text-align: center; }
.trial-qr img { width: 190px; height: 190px; object-fit: contain; margin: 0 auto 10px; border-radius: 8px; }
.trial-qr span { font-size: 13px; color: var(--muted); }
.trial-phone { display: flex; align-items: center; gap: 14px; padding: 18px 22px; }
.trial-phone svg { width: 26px; height: 26px; color: var(--blue); flex: 0 0 auto; }
.trial-phone b { display: block; font-size: 20px; color: var(--ink); letter-spacing: .02em; }
.trial-phone i { font-style: normal; font-size: 12.5px; color: var(--muted-2); }
.trial-steps { padding: 22px 24px 20px; counter-reset: ts; }
.trial-steps li { position: relative; padding-left: 40px; }
.trial-steps li + li { margin-top: 16px; }
.trial-steps li::before {
  counter-increment: ts; content: counter(ts);
  position: absolute; left: 0; top: 2px;
  width: 26px; height: 26px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100);
  font-size: 13px; font-weight: 700;
}
.trial-steps li b { display: block; font-size: 15px; color: var(--ink); }
.trial-steps li span { font-size: 13.5px; color: var(--muted); line-height: 1.7; }
.trial-ok { text-align: center; padding: 30px 10px 10px; }
.trial-ok-ico {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: #EAF7EF; color: #1E9E5A; border: 1px solid #CDEBD9;
}
.trial-ok-ico svg { width: 30px; height: 30px; }
.trial-ok h3 { font-size: 22px; margin-bottom: 10px; }
.trial-ok p { font-size: 14.5px; color: var(--muted); line-height: 1.85; margin-bottom: 22px; }

/* ---------- 右下角客服助手（全站跟随） ---------- */
.site-bot { position: fixed; right: 22px; bottom: 22px; z-index: 60; }
.bot-fab {
  display: inline-flex; align-items: center; gap: 8px;
  height: 48px; padding: 0 20px 0 16px; border: 0; border-radius: 24px;
  background: linear-gradient(135deg, var(--blue) 0%, #3A6BE8 100%);
  color: #fff; font-size: 14.5px; font-weight: 500; cursor: pointer;
  box-shadow: 0 10px 26px rgba(26, 79, 214, .32); transition: all .18s ease;
}
.bot-fab:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(26, 79, 214, .4); }
.bot-fab-ico svg { display: block; width: 20px; height: 20px; }
.bot-panel {
  position: absolute; right: 0; bottom: 62px; width: 322px;
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); overflow: hidden;
  animation: botIn .2s ease;
}
@keyframes botIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.bot-head {
  display: flex; align-items: flex-start; gap: 10px; padding: 16px 18px;
  background: linear-gradient(135deg, var(--blue-deep), var(--blue)); color: #fff;
}
.bot-head-txt b { display: block; font-size: 15.5px; }
.bot-head-txt i { font-style: normal; font-size: 12.5px; opacity: .82; }
.bot-close {
  margin-left: auto; width: 24px; height: 24px; border: 0; border-radius: 6px;
  background: rgba(255, 255, 255, .14); color: #fff;
  font-size: 17px; line-height: 1; cursor: pointer;
}
.bot-close:hover { background: rgba(255, 255, 255, .26); }
.bot-body { padding: 16px 18px 18px; }
.bot-tips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.bot-tip {
  display: inline-block; padding: 6px 12px; border-radius: 16px; font-size: 12.5px;
  background: var(--blue-50); color: var(--blue); border: 1px solid var(--blue-100);
}
.bot-tip:hover { background: var(--blue-100); }
.bot-acts { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bot-act {
  display: flex; flex-direction: column; gap: 2px; padding: 13px 14px;
  border: 1px solid var(--line); border-radius: 10px; background: #FCFDFF; transition: all .16s ease;
}
.bot-act:hover { border-color: var(--blue-200); background: var(--blue-50); }
.bot-act svg { width: 17px; height: 17px; color: var(--blue); }
.bot-act b { font-size: 14px; font-weight: 600; color: var(--ink); }
.bot-act i { font-style: normal; font-size: 12px; color: var(--muted-2); }
.bot-qr { margin-top: 14px; padding-top: 14px; border-top: 1px dashed var(--line); text-align: center; }
.bot-qr img { width: 148px; height: 148px; object-fit: contain; margin: 0 auto 8px; border-radius: 8px; }
.bot-qr span { font-size: 12.5px; color: var(--muted); }
.bot-note { margin-top: 12px; font-size: 12px; color: var(--muted-2); line-height: 1.7; }

/* ---------- 改版新增组件的响应式（放在文件末尾，覆盖上面的基础规则） ---------- */
@media (max-width: 1024px) {
  .grid-adv { grid-template-columns: repeat(3, 1fr); }
  .trial-grid { grid-template-columns: 1fr; gap: 26px; }
}
@media (max-width: 900px) {
  .core-grid { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  .grid-sol, .grid-adv { grid-template-columns: 1fr; }
  .trial-panel { padding: 24px 20px; }
  .opt-grid { grid-template-columns: 1fr 1fr; }
  .about-prose { font-size: 15.5px; }
  /* 窄屏证书墙把卡与卡之间的缝收窄一点（每行张数由 JS 的 data-visible 决定） */
  .honor-marquee { --mq-gap: 14px; }
  .site-bot { right: 14px; bottom: 14px; }
  .bot-fab { width: 52px; height: 52px; padding: 0; justify-content: center; border-radius: 50%; }
  .bot-fab-txt { display: none; }
  .bot-panel { width: calc(100vw - 28px); bottom: 64px; }
}

@media (max-width: 900px) {
  .deco-row { grid-template-columns: 1fr; }
  .deco-thumb { max-width: 320px; }
}

/* ==========================================================================
   管理后台 · 系统维护
   ========================================================================== */
.rt-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.rt-item { background: #FAFBFE; border: 1px solid var(--line); border-radius: 10px; padding: 14px 16px; }
.rt-item .k { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 7px; }
.rt-item .v { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.45; word-break: break-all; }
.rt-item .v.sm { font-size: 13.5px; font-weight: 500; }
.rt-item .v.blue { color: var(--blue); }
.rt-item .v.warn { color: #C77700; }
.rt-item .v.ok { color: #2E9E6B; }
.rt-item .v.bad { color: #C0392B; }

.rt-access { margin-top: 22px; }
.rt-access-title { font-size: 13px; font-weight: 500; color: var(--muted); margin-bottom: 11px; }
.addr-list { display: flex; flex-wrap: wrap; gap: 10px; }
.addr-chip {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 14px; border-radius: 8px; border: 1px solid var(--line); background: #fff;
  font-size: 13.5px; color: var(--ink-2); cursor: pointer; transition: all .16s ease;
}
.addr-chip:hover { border-color: var(--blue-200); background: var(--blue-50); color: var(--blue); }
.addr-chip .lb { font-size: 11.5px; color: var(--muted-2); background: var(--line-soft); padding: 2px 7px; border-radius: 5px; }
.addr-chip:hover .lb { background: #fff; color: var(--blue); }

.db-group { display: none; }
.db-group.on { display: block; }
.db-group-title {
  font-size: 13.5px; font-weight: 600; color: var(--ink);
  padding: 8px 0 15px; margin-top: 4px;
}

.panel-tip {
  font-size: 12.6px; line-height: 1.85; color: var(--muted-2);
  background: #FAFBFE; border: 1px solid var(--line); border-left: 3px solid var(--blue-200);
  border-radius: 8px; padding: 12px 15px; margin-top: 15px;
}
.panel-tip b { color: var(--ink-2); font-weight: 600; }
.panel-tip code { background: var(--line-soft); padding: 1px 5px; border-radius: 4px; font-size: 12.2px; }

/* 重启等待遮罩 */
.restart-mask {
  position: fixed; inset: 0; z-index: 300; display: none;
  align-items: center; justify-content: center;
  background: rgba(250, 251, 254, .97);
  backdrop-filter: blur(3px);
}
.restart-mask.on { display: flex; }
.restart-box { width: 100%; max-width: 540px; padding: 0 26px; text-align: center; }
.restart-box .ic { width: 54px; height: 54px; margin: 0 auto 20px; border-radius: 50%; background: var(--blue-50); color: var(--blue); display: grid; place-items: center; }
.restart-box .ic svg { width: 26px; height: 26px; animation: spin 1.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.restart-box h2 { font-size: 22px; margin-bottom: 11px; }
.restart-box .sub { color: var(--muted); font-size: 14.5px; line-height: 1.8; margin-bottom: 22px; }
.restart-bar { height: 4px; border-radius: 2px; background: var(--blue-100); overflow: hidden; margin-bottom: 20px; }
.restart-bar i { display: block; height: 100%; width: 32%; border-radius: 2px; background: var(--blue); animation: rbar 1.25s ease-in-out infinite; }
@keyframes rbar { 0% { transform: translateX(-110%); } 100% { transform: translateX(330%); } }
.restart-log {
  text-align: left; font-family: ui-monospace, Consolas, "Courier New", monospace;
  font-size: 12.5px; line-height: 1.75; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 8px;
  padding: 12px 15px; max-height: 168px; overflow-y: auto; white-space: pre-wrap;
}

.last-restart {
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px;
  font-size: 13px; color: var(--muted);
  background: #fff; border: 1px solid var(--line); border-radius: 8px; padding: 11px 15px;
}
.last-restart b { font-size: 12.5px; font-weight: 600; padding: 2px 9px; border-radius: 5px; }
.last-restart.ok b { color: #2E9E6B; background: #F0F9F4; }
.last-restart.bad b { color: #C0392B; background: #FDF3F2; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  /* 平板及以下不放大菜单：横向空间不够，一列分组会被挤成豆腐块，
     直接退化成「产品系列」普通链接，点进去看列表页反而清楚。 */
  .mega { display: none; }
  .nav-item .caret { display: none; }
  .rt-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero h1 { font-size: 42px; }
  .slide h1 { font-size: 34px; }
  .detail-grid { grid-template-columns: 1fr; gap: 30px; }
  .detail-body-grid { grid-template-columns: 1fr; gap: 36px; }
  .detail-aside { position: static; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 22px 0; }
  .stat-item:nth-child(2) { border-right: 0; }
  .grid-4, .stat-cards { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); gap: 28px; }
  .steps .step::after { display: none; }
  .intro-grid, .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 34px; }
  .auth-wrap { grid-template-columns: 1fr; }
  .auth-brand { display: none; }
  .admin-layout { grid-template-columns: 1fr; }
  .admin-side { border-right: 0; border-bottom: 1px solid var(--line); display: flex; gap: 8px; overflow-x: auto; padding: 14px 18px; }
  .admin-side .group-title { display: none; }
  .admin-side a { white-space: nowrap; margin-bottom: 0; }
  .admin-main { padding: 24px 18px 60px; }
}
@media (max-width: 720px) {
  .container { padding: 0 18px; }
  .section { padding: 62px 0; }
  .slide { padding: 68px 0 62px; }
  .slide h1 { font-size: 26px; }
  .slide p { font-size: 15px; }
  .slider-arrow { display: none; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item b { font-size: 26px; }
  .stat-item:nth-child(2) { border-right: 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .detail-info h1 { font-size: 26px; }
  .detail-meta { gap: 24px; }
  .series-block { margin-bottom: 44px; }
  .series-block-head h2 { font-size: 22px; }
  .hero { padding: 64px 0 58px; }
  .hero h1 { font-size: 31px; }
  .hero-lead { font-size: 15.5px; }
  .hero-stats { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .hero-stats .stat { border-right: 0; padding-right: 0; }
  .grid-2, .grid-3, .grid-4, .stat-cards { grid-template-columns: 1fr; }
  .section-head h2 { font-size: 26px; }
  .page-head { padding: 42px 0 36px; }
  .page-head h1 { font-size: 28px; }
  .cta-band { padding: 38px 28px; }
  .cta-band h2 { font-size: 23px; }
  .value-item { grid-template-columns: 1fr; gap: 10px; }
  .field-row { grid-template-columns: 1fr; }

  /* ---------- 页头：窄屏自适应 ----------
     原来这里是 `.nav { display: none }` —— 导航直接整块丢掉，手机上根本没法切页面；
     而且「品牌 + 三个按钮」最少要 464px，390px 屏被撑出横向滚动条（整页左右能拖）。
     现在：导航改成汉堡按钮展开的竖排面板；同时收紧间距、按钮尺寸，并允许品牌区收缩
     （.brand 原来是 flex-shrink:0，这就是撑宽的根因）。 */
  .site-header .container { gap: 12px; }
  .site-header .brand { min-width: 0; flex-shrink: 1; }
  .brand-text { min-width: 0; }
  .brand-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .brand-logo { max-width: 120px; }
  .header-actions { gap: 6px; }
  .header-actions .btn-sm { height: 32px; padding: 0 10px; font-size: 12.5px; }
  .nav-burger { display: flex; }

  .nav {
    display: none;
    position: absolute; left: 0; right: 0; top: var(--header-h);
    flex-direction: column; align-items: stretch; gap: 2px;
    margin-left: 0; padding: 8px 18px 16px;
    background: #fff; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
    max-height: calc(100vh - var(--header-h)); overflow-y: auto;
    z-index: 60;
  }
  body.nav-open .nav { display: flex; }
  .nav a { padding: 12px 14px; border-radius: 8px; font-size: 15px; }
  .rt-grid { grid-template-columns: 1fr; }
  .stat-preview { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .form-panel { padding: 24px 20px; }
  .table { font-size: 13px; }
  .table th, .table td { padding: 10px 8px; }
}
@media (max-width: 420px) {
  /* 极窄屏（iPhone SE 一类 320~390px）：收掉品牌副标（英文名），把空间让给主按钮。
     算过账：360px 下 品牌 109 + 间距 12 + 三个按钮 182 = 303 < 可用 324，不会再撑宽。 */
  .brand-sub { display: none; }
  .header-actions .btn-sm { padding: 0 8px; font-size: 12px; }
}
