/* ============================================================
   广州早尚科技有限公司官网 — 全局样式
   风格：简约大气 · 深蓝 + 法老金 主题
   ============================================================ */

:root {
  --navy: #14233f;
  --navy-2: #1d3157;
  --navy-soft: #2c4a7e;
  --gold: #c9a227;
  --gold-soft: #e3c766;
  --ink: #1f2733;
  --muted: #6b7686;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --line: #e7ebf1;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow: 0 10px 30px rgba(20, 35, 63, 0.08);
  --shadow-lg: 0 20px 50px rgba(20, 35, 63, 0.14);
  --maxw: 1180px;
  --header-h: 68px;
}

* { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  /* 第二十八轮：关闭移动端浏览器字体自动放大（iOS Safari / 部分安卓 WebView 会偷偷放大导航文字，
     导致原本单行的三项被撑成两行） */
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3, h4 { color: var(--navy); line-height: 1.25; margin: 0 0 .5em; font-weight: 700; }
p { margin: 0 0 1em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ----------------------- 顶部导航 ----------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  height: var(--header-h);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: saturate(180%) blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 12px; font-weight: 800; }
.brand .logo { width: 34px; height: 34px; border-radius: 50%; object-fit: cover; }
.brand .name { font-size: 17px; color: var(--navy); letter-spacing: 4px; }
.brand .name small { display: block; font-size: 11px; color: var(--muted); font-weight: 600; letter-spacing: .5px; }
/* 电脑端「早尚科技」拉宽字距对齐 EN：CN 4字×17=68px，EN 可见宽 95.28px → (95.28-68)/3 ≈ 9.1px；负边距抵消末字尾部空隙 */
.brand .name > span { letter-spacing: 9.1px; margin-right: -9.1px; }
.nav-links { display: flex; gap: 26px; margin-left: 0; }
/* 手机端专用头像按钮：桌面端隐藏（第二十一轮，替代原 nav-login-m 文字链接） */
.nav-avatar-wrap { display: none; position: relative; }
.nav-avatar-tip { display: none; }
.nav-links a { color: var(--ink); font-weight: 600; font-size: 17px; padding: 6px 0; position: relative; }
.nav-links a::after {
  content: ""; position: absolute; left: 0; bottom: -2px; height: 2px; width: 0;
  background: var(--gold); transition: width .2s ease;
}
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: var(--navy); }
.nav-actions { margin-left: auto; display: flex; align-items: center; gap: 12px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px; font-weight: 700; font-size: 14px;
  cursor: pointer; border: 1px solid transparent; transition: all .18s ease; white-space: nowrap;
}
.btn-primary { background: var(--gold); color: #2a2206; box-shadow: 0 6px 16px rgba(201,162,39,.25); }
.btn-primary:hover { background: var(--gold-soft); transform: translateY(-1px); }
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-2); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--navy); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--navy); }
.btn-lg { padding: 14px 30px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .6; cursor: not-allowed; transform: none; }

.nav-user { display: none; align-items: center; gap: 12px; }
.nav-user.show { display: flex; }
.avatar {
  width: 34px; height: 34px; border-radius: 50%; background: var(--navy); color: #fff;
  display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px;
}

/* ----------------------- 通用区块 ----------------------- */
.section { padding: 84px 0; }
.section-soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.section-head .eyebrow {
  display: inline-block; color: var(--gold); font-weight: 700; letter-spacing: 3px;
  font-size: 13px; margin-bottom: 12px;
}
.section-head h2 { font-size: 32px; }
.section-head p { color: var(--muted); font-size: 16px; }
.section-head .section-sub { margin-top: 12px; line-height: 1.9; letter-spacing: .5px; }
.section-scene { background: #e8eaed; }
.section-scene .section-head { margin-bottom: 24px; }
.section-scene .section-sub .s1 { color: #c9a227; font-weight: 600; }
.section-scene .section-sub .s2 { color: #2f6fd0; font-weight: 600; }
.section-scene .section-sub .s3 { color: #2f9e6e; font-weight: 600; }

/* ----------------------- 首页 Hero ----------------------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(1200px 600px at 80% -10%, rgba(201,162,39,.18), transparent 60%),
              linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #fff;
}
.hero::before {
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 26px 26px; opacity: .5;
}
.hero .container { position: relative; padding: 56px 24px 104px; }
.hero-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 56px; align-items: center; }
.hero h1 { color: #fff; font-size: 38px; line-height: 1.8; letter-spacing: .5px; max-width: 820px; }
.hero h1 .accent { color: var(--gold-soft); }
.hero h1 .w-tech { color: var(--gold-soft); }
.hero h1 .w-ai { color: #6fb1ff; }
.hero .lead { color: #c7d2e3; font-size: 17px; letter-spacing: 1.5px; line-height: 2; max-width: 660px; margin-top: 18px; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ----------------------- 法老在线 入口卡 ----------------------- */
.lawbotter-band {
  margin-top: 56px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch;
}
.lb-card {
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14);
  border-radius: var(--radius-lg); padding: 30px; backdrop-filter: blur(4px);
}
.lb-card h3 { color: #fff; font-size: 22px; display: flex; align-items: center; gap: 10px; }
.lb-card .lb-badge {
  background: var(--gold); color: #2a2206; font-size: 12px; font-weight: 800;
  padding: 3px 10px; border-radius: 999px; letter-spacing: 1px;
}
.lb-card p { color: #c7d2e3; }
.lb-features { list-style: none; padding: 0; margin: 16px 0 22px; display: grid; gap: 10px; }
.lb-features li { display: flex; gap: 10px; color: #e7edf6; font-size: 14.5px; }
.lb-features li::before { content: "◆"; color: var(--gold); }
.lb-login {
  background: linear-gradient(135deg, #fff, #fbf6e6);
  border-radius: var(--radius-lg); padding: 30px; text-align: center;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
}
.lb-login .lb-logo { width: 76px; height: 76px; }
.lb-login h3 { color: var(--navy); font-size: 20px; margin: 0; }
.lb-login p { color: var(--muted); margin: 0; font-size: 14px; }
.lb-login .btn { width: 100%; }

/* Hero 内的登录卡：深色玻璃风格，与 Hero 背景协调 */
.lb-login.hero-login {
  padding: 42px 36px; box-shadow: var(--shadow-lg); gap: 16px;
  background: linear-gradient(160deg, rgba(255,255,255,.12), rgba(255,255,255,.04));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(6px);
}
.lb-login.hero-login h3 { color: #fff; }
.lb-login.hero-login p { color: #c7d2e3; }
.lb-login.hero-login .btn { width: auto; padding-left: 48px; padding-right: 48px; }
.lb-login.hero-login .lb-logo {
  width: 104px; height: 104px; border-radius: 50%;
  background: #fff; object-fit: cover; border: 3px solid rgba(201,162,39,.35);
}
.lb-feats { line-height: 2; }
.lb-feats .c-gold   { color: var(--gold-soft); font-weight: 600; }
.lb-feats .c-blue   { color: #7fb3ff; font-weight: 600; }
.lb-feats .c-green  { color: #5fd0a0; font-weight: 600; }
.lb-feats .c-orange { color: #ffab6b; font-weight: 600; }
.lb-feats .c-pink   { color: #ff9ec7; font-weight: 600; }

/* ----------------------- 卡片网格 ----------------------- */
.grid { display: grid; gap: 24px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: all .2s ease; height: 100%;
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.card .ic {
  width: 52px; height: 52px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 16px;
}
.card .ic img { width: 100%; height: 100%; display: block; border-radius: 14px; box-shadow: 0 4px 10px rgba(20,40,80,.14); }
.card h3 { font-size: 18px; }
.card p { color: var(--muted); font-size: 14.5px; margin: 0; }
.card .more { margin-top: 14px; color: var(--navy); font-weight: 700; font-size: 14px; }

/* ----------------------- 应用场景 ----------------------- */
.scene-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.scene {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; position: relative; overflow: hidden;
}
.scene .tag {
  position: absolute; top: 18px; right: 18px; font-size: 12px; color: var(--gold);
  border: 1px solid var(--gold); padding: 2px 10px; border-radius: 999px;
}
.scene h3 { font-size: 17px; }
.scene p { color: var(--muted); font-size: 14px; margin: 0; }

/* ----------------------- 关于我们 ----------------------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.about-text h2 { font-size: 30px; }
.about-text p { color: var(--muted); }
.biz-list { list-style: none; padding: 0; margin: 20px 0 0; columns: 2; gap: 24px; }
.biz-list li { break-inside: avoid; padding: 8px 0 8px 26px; position: relative; color: var(--ink); font-size: 14.5px; }
.biz-list li::before {
  content: ""; position: absolute; left: 0; top: 16px; width: 10px; height: 10px;
  border-radius: 3px; background: var(--gold);
}
.about-visual {
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  border-radius: var(--radius-lg); padding: 40px; color: #fff; min-height: 320px;
  display: flex; flex-direction: column; justify-content: center; gap: 18px;
}
.about-visual .v-item { display: flex; gap: 14px; align-items: flex-start; }
.about-visual .v-item .v-num { color: var(--gold-soft); font-size: 24px; font-weight: 800; min-width: 46px; }
.about-visual .v-item h4 { color: #fff; margin: 0 0 4px; font-size: 16px; }
.about-visual .v-item p { color: #b9c4d6; margin: 0; font-size: 14px; }

/* ----------------------- 产品服务 ----------------------- */
.service-block { margin-bottom: 56px; }
.service-block:last-child { margin-bottom: 0; }
.service-head { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.service-head .idx {
  width: 40px; height: 40px; border-radius: 10px; background: var(--navy); color: var(--gold-soft);
  font-weight: 800; display: flex; align-items: center; justify-content: center;
}
.service-head h3 { font-size: 22px; margin: 0; }
.service-head .sub { color: var(--muted); font-size: 14px; }

/* ----------------------- 联系我们 ----------------------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 44px; align-items: start; }
.contact-info h2 { font-size: 30px; }
.contact-info p { color: var(--muted); }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row .ic { width: 38px; height: 38px; border-radius: 10px; background: rgba(201,162,39,.12); color: var(--gold); display: flex; align-items: center; justify-content: center; flex: 0 0 auto; }
.info-row .k { color: var(--muted); font-size: 13px; }
.info-row .v { color: var(--ink); font-weight: 600; }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 34px; box-shadow: var(--shadow); }
.form-card h3 { font-size: 20px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.field input, .field textarea, .field select {
  width: 100%; padding: 11px 14px; border: 1px solid var(--line); border-radius: 10px;
  font-size: 14.5px; font-family: inherit; color: var(--ink); background: #fff; transition: border-color .15s;
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--gold); }
.field textarea { resize: vertical; min-height: 110px; }
.form-msg { font-size: 13.5px; padding: 10px 14px; border-radius: 10px; margin-bottom: 14px; display: none; }
.form-msg.ok { display: block; background: #eaf7ee; color: #1c7a3e; border: 1px solid #c6ead2; }
.form-msg.err { display: block; background: #fdecec; color: #b42323; border: 1px solid #f5c9c9; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }

/* ----------------------- 认证页 ----------------------- */
.auth-wrap { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; justify-content: center; padding: 60px 20px; background: var(--bg-soft); }
.auth-card { width: 100%; max-width: 420px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 38px; box-shadow: var(--shadow-lg); }
.auth-card .brand { justify-content: center; margin-bottom: 6px; }
.auth-tabs { display: flex; gap: 8px; background: var(--bg-soft); padding: 5px; border-radius: 999px; margin: 18px 0 22px; }
.auth-tabs button { flex: 1; border: none; background: transparent; padding: 10px; border-radius: 999px; font-weight: 700; color: var(--muted); cursor: pointer; font-size: 14px; }
.auth-tabs button.active { background: #fff; color: var(--navy); box-shadow: var(--shadow); }
.auth-form { display: none; }
.auth-form.active { display: block; }
.auth-switch { text-align: center; margin-top: 16px; font-size: 13.5px; color: var(--muted); }
.auth-switch a { color: var(--navy); font-weight: 700; }

/* ----------------------- 用户中心 ----------------------- */
.profile-wrap { max-width: 760px; margin: 0 auto; }
.profile-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px; box-shadow: var(--shadow); }
.profile-top { display: flex; align-items: center; gap: 18px; margin-bottom: 24px; }
.profile-top .avatar { width: 64px; height: 64px; font-size: 24px; }
.profile-top h2 { margin: 0; font-size: 22px; }
.profile-top p { margin: 0; color: var(--muted); font-size: 14px; }
.kv { display: grid; grid-template-columns: 120px 1fr; gap: 10px 16px; padding: 16px 0; border-top: 1px solid var(--line); }
.kv .k { color: var(--muted); font-size: 14px; }
.kv .v { color: var(--ink); font-weight: 600; font-size: 14px; }

/* ----------------------- 页脚 ----------------------- */
.site-footer { background: var(--navy); color: #c7d2e3; padding: 56px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; }
.footer-grid h4 { color: #fff; font-size: 15px; margin-bottom: 16px; }
.footer-grid a, .footer-grid p { color: #aeb9cc; font-size: 14px; display: block; margin: 0 0 10px; }
.footer-grid a:hover { color: var(--gold-soft); }
.footer-brand .name { color: #fff; font-weight: 800; font-size: 18px; }
.footer-brand p { margin-top: 12px; max-width: 320px; }
.footer-bottom { margin-top: 40px; padding-top: 20px; border-top: 1px solid rgba(255,255,255,.1); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; font-size: 13px; color: #8d99ad; }

/* 备案信息栏（极简页脚） */
.site-footer-min { background: var(--navy); color: #aeb9cc; padding: 22px 0; font-size: 14px; }

/* 备案栏布局：版权居左 / ICP备案号居中（三列网格） */
.site-footer-min .footer-min-grid { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; }
.site-footer-min .footer-min-grid > .icp { grid-column: 2; color: inherit; text-decoration: none; white-space: nowrap; }
.site-footer-min .footer-min-grid > .icp:hover { color: #fff; text-decoration: underline; }
.footer-bottom .icp { color: inherit; text-decoration: none; }
.footer-bottom .icp:hover { color: #fff; text-decoration: underline; }
@media (max-width: 560px) {
  /* 手机端：上行版权（隐去 © 2026）、下行 ICP 备案号，均居中 */
  .site-footer-min .footer-min-grid { grid-template-columns: 1fr; justify-items: center; text-align: center; gap: 6px; }
  .site-footer-min .footer-min-grid > .icp { grid-column: auto; }
  .cpy-year { display: none; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }
}

/* ----------------------- 内容管理后台 ----------------------- */
.admin-main { background: var(--bg-soft); min-height: calc(100vh - var(--header-h)); padding: 36px 0 64px; }
.admin-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 18px; }
.admin-head h1 { font-size: 26px; }
.admin-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 22px 24px; margin-bottom: 18px; box-shadow: var(--shadow); }
.admin-card h3 { font-size: 17px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.admin-hint { color: var(--muted); font-size: 13px; margin-bottom: 14px; }
.admin-msg { font-size: 14px; min-height: 20px; margin: 8px 0; }
.f-label { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 12px 0 5px; }
.f-input { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 9px; font-size: 14px; font-family: inherit; box-sizing: border-box; }
.f-input:focus { outline: 2px solid rgba(201,162,39,.35); border-color: var(--gold); }
textarea.f-input { resize: vertical; }
.f-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px; }
.f-grid3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 0 16px; }
.scene-row { border: 1px dashed var(--line); border-radius: 10px; padding: 14px 16px; margin-bottom: 12px; background: var(--bg-soft); }
.scene-row-grid { display: grid; grid-template-columns: 140px 1fr; gap: 0 14px; }
.scene-row .r-del { margin-top: 10px; color: #d64545; border-color: #eecaca; }
.scene-row .r-del:hover { background: #fdf1f1; }

/* ----------------------- 提示条 ----------------------- */
.toast {
  position: fixed; left: 50%; bottom: 30px; transform: translateX(-50%) translateY(20px);
  background: var(--navy); color: #fff; padding: 12px 22px; border-radius: 999px; font-size: 14px;
  box-shadow: var(--shadow-lg); opacity: 0; transition: all .25s ease; z-index: 100; pointer-events: none;
}
.toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* ----------------------- 响应式 ----------------------- */
/* 手机端子页面返回键：桌面隐藏（第二十二轮）。注意必须放在媒体查询之前，
   否则后置的 display:none 会覆盖媒体查询内的 display:inline-flex */
.nav-back { display: none; }
@media (max-width: 920px) {
  .grid-3, .grid-4, .scene-list { grid-template-columns: repeat(2, 1fr); }
  .lawbotter-band, .about-grid, .contact-grid, .hero-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero .container { padding: 44px 24px 72px; }
  .hero-login { max-width: 440px; margin: 0 auto; width: 100%; }
  /* —— 手机端导航：品牌与单行链接同行（第十九轮）——
     4 链接一行右对齐；极窄屏（<360px）放不下时整行降级换行 */
  .site-header { height: auto; }
  /* 第二十八轮：强制三项永远同一行 —— nowrap 彻底禁止换行；nav-actions 未登录时 display:none
     （原先 width:100% 会作为满宽 item 独占一行，是掉行的隐性根因之一） */
  .nav { height: auto; display: flex; align-items: center; flex-wrap: nowrap; gap: 0 8px; padding: 8px 14px 8px 6px; } /* 左右内边距显式保留（本规则会覆盖 .container 的 padding）；左收窄至 6px 使品牌框更贴左（第二十二轮） */
  /* 品牌框：返回键移出导航后恢复较大尺寸（第二十四轮，v1025 曾因返回键占位压缩） */
  /* 提升选择器权重（.site-header .nav .brand），压过文件后部 L454 全局 7px 14px（第二十五轮：
     该全局规则在媒体查询之后，同权重后到者胜，曾致手机端品牌框左右内边距失效偏宽） */
  .site-header .nav .brand { display: inline-flex; gap: 5px; padding: 4px 8px; flex-shrink: 0; }
  .brand .logo { width: 24px; height: 24px; }
  .brand .name { font-size: 13px; letter-spacing: 0; line-height: 1.2; }
  .brand .name small { font-size: 8.5px; letter-spacing: .3px; }
  /* 「早尚科技」拉宽字距，使右缘与下方 ZAOSHANG TECH 对齐
     算法：字距 = (EN 可见宽 − CN 4×13) / 3；13px name + 8.5px small 实测校准值见部署记录 */
  .brand .name > span { letter-spacing: 7px; margin-right: -7px; } /* 负边距抵消末字尾部空隙 */
  /* —— 手机端子页面返回键（第二十二/二十三轮）——
     纯左箭头无底色，置于正文左上角（不在导航内） */
  .nav-back {
    display: inline-flex; align-items: center; justify-content: center;
    width: 28px; height: 28px; padding: 0; margin: -4px 0 0 -7px;
    background: none; border: none; color: var(--navy);
    cursor: pointer; flex-shrink: 0;
    transition: transform .18s ease;
  }
  .nav-back:active { transform: translateX(-2px); }
  .nav-back svg { width: 22px; height: 22px; }
  .back-row { line-height: 0; }
  .nav-links {
    display: flex;
    flex-wrap: nowrap;
    gap: 0 10px;
    margin: 0;
    position: relative; /* 第二十七轮：作为头像绝对定位的参照 */
    flex: 1; /* 撑满品牌框右侧剩余空间 */
    min-width: 0; /* 第二十八轮：允许在极窄屏收缩，配合 nowrap 保持单行 */
    overflow: hidden; /* 第二十八轮：登录态空间不足时裁剪链接，禁止文字压在用户框上 */
    /* 第二十九轮：上下留 2px 余量 —— 容器裁切 + 紧 line-height 会把中文字形切掉（"关"字顶部缺失） */
    padding: 2px 0;
    justify-content: center; /* 链接组在其中水平居中 */
  }
  .nav-links .m-hide { display: none; }
  /* 第二十九轮：链接不用黑体、不加粗、字号 17→16px；显式指定非 SimHei 字体栈（微软雅黑/苹方） */
  .nav-links a {
    font-size: 16px; letter-spacing: 0; line-height: 1.5; padding: 4px 0;
    white-space: nowrap; font-weight: 400;
    font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC", "Hiragino Sans GB", system-ui, sans-serif;
  }
  /* 第二十一轮：手机端「登录 / 注册」改为头像，点击弹出气泡提示
     第二十七轮：头像脱离流、绝对定位贴右缘（改回 margin-left:auto 会吃掉全部剩余空间，链接就无法居中） */
  .nav-avatar-wrap { display: inline-flex; position: absolute; right: 0; top: 50%; transform: translateY(-50%); align-items: center; flex-shrink: 0; }
  .nav-avatar-m {
    display: inline-flex; align-items: center; justify-content: center;
    width: 30px; height: 30px; border-radius: 50%; padding: 0;
    background: var(--navy); border: 1px solid rgba(255, 255, 255, .6);
    cursor: pointer; transition: background .18s ease, transform .18s ease;
  }
  .nav-avatar-m:active { transform: scale(.94); background: var(--navy-2); }
  .nav-avatar-m svg { width: 17px; height: 17px; fill: #fff; }
  .nav-links .nav-avatar-wrap .nav-avatar-tip { /* 高权重，压过 .nav-links a 的字号 */
    display: block;
    position: absolute; top: calc(100% + 8px); right: 0;
    background: var(--navy); color: #fff; font-size: 12px; font-weight: 700;
    letter-spacing: .5px; padding: 7px 12px; border-radius: 8px; white-space: nowrap;
    box-shadow: 0 8px 18px rgba(20, 35, 63, .22); z-index: 60;
    opacity: 0; visibility: hidden; transform: translateY(-4px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
  }
  .nav-links .nav-avatar-wrap .nav-avatar-tip::after { display: none; } /* 取消通用下划线 */
  .nav-avatar-wrap.open .nav-avatar-tip { opacity: 1; visibility: visible; transform: none; }
  .nav-links a::after { bottom: 1px; }
  /* 第二十八轮：未登录态三项（品牌 / 链接 / 头像）严格同行 —— .nav 默认 nowrap；
     登录态元素多（用户名 + 用户中心 + 管理 + 退出），强行同行必然裁字，
     故仅在登录态恢复 wrap 让用户信息落到第二行，避免重叠/半字。 */
  .nav-actions { margin-left: 0; min-width: 0; justify-content: flex-end; }
  .nav-actions:not(:has(.nav-user.show)) { display: none; } /* 未登录时彻底移出流，消除满宽换行因子 */
  .nav-actions > #nav-login { display: none; } /* 手机端用 nav-avatar-m，桌面登录按钮隐藏 */
  .nav:has(.nav-user.show) { flex-wrap: wrap; row-gap: 6px; }
  .nav:has(.nav-user.show) .nav-actions { width: 100%; }
  .nav-user.show { margin-top: 0; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }
  .nav:has(.nav-user.show) .nav-user.show .avatar { width: 28px; height: 28px; font-size: 13px; }
  .nav:has(.nav-user.show) .nav-user.show .btn { padding: 6px 12px; font-size: 12px; }
}
@media (max-width: 560px) {
  .grid-2, .grid-3, .grid-4, .scene-list, .footer-grid, .biz-list, .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .section { padding: 56px 0; }
}
/* 极窄屏（≤360px）：导航单行放不下时降级字号与头像（第二十四轮建，第二十九轮 15→14px） */
@media (max-width: 360px) {
  .nav-links a { font-size: 14px; }
  /* 第二十七轮：320px 下居中的链接会压到右侧头像，给头像预留 26px + 10px 间隙 */
  .nav-links { padding-right: 36px; }
  .nav-avatar-m { width: 26px; height: 26px; }
  .nav-avatar-m svg { width: 15px; height: 15px; }
}

/* ----------------------- 页面区块头（第十二轮） ----------------------- */
.section-hero { padding-top: 56px; }
.section-head-hero .eyebrow,
.section-head-lg .eyebrow {
  font-size: 24px;
  font-weight: 800;
  letter-spacing: 6px;
  margin-bottom: 10px;
}
.section-head-hero .hero-sub {
  font-family: SimHei, "黑体", "Heiti SC", "Microsoft YaHei", sans-serif;
  font-size: 20px;
  color: #2f6fd0;
  margin: 0;
  letter-spacing: .5px;
}
.section-head .head-sub-blue {
  color: #2f6fd0;
  font-weight: 700;
}
@media (max-width: 560px) {
  .section-head-hero .eyebrow, .section-head-lg .eyebrow { font-size: 19px; }
  .section-head-hero .hero-sub { font-size: 16px; }
}

/* ----------------------- 导航品牌区与联系页导语（第十四轮） ----------------------- */
.site-header .brand {
  background: var(--navy);
  padding: 7px 14px;
  border-radius: 8px;
}
.site-header .brand .name { color: #6ea8ff; }
.site-header .brand .name small { color: #9cc3ff; }
.contact-lead { color: #2f6fd0; font-weight: 600; margin: 0 0 18px; }
/* 联系页标题：不加粗、非黑体（第十五轮） */
.head-title-regular { font-weight: 400; font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", sans-serif; }

/* ----------------------- 手机端适配（第十六轮） ----------------------- */
.brand .name { white-space: nowrap; }
@media (max-width: 920px) {
  /* 法老在线入口卡在手机端排到 Hero 文案上方 */
  .hero-grid .lb-login.hero-login { order: -1; }
  /* Hero 标题（第十九轮）：560~920 区间（微信 XWeb 视口）沿用桌面大字号 + br-m 会产生「受到」孤行，
     统一压缩；行1「灵感与创新，让企业和个人」11字 / 行2「享受到专业、高效的AI服务」12字 均可容纳 */
  .hero h1 { font-size: clamp(20px, 7vw, 28px); line-height: 1.6; letter-spacing: 0; }
}
@media (max-width: 560px) {
  /* 品牌区/导航规则已统一上移至 920px 断点（第十八轮），此处不再重复 */
  /* Hero 文案（第十九轮）：br-m 已移至「让企业和个人」后作固定断行，两断点均保留显示，不再隐藏 */
  .hero h1 { font-size: 22px; line-height: 1.6; letter-spacing: 0; }
  .hero .lead { font-size: 14px; line-height: 1.9; letter-spacing: .5px; margin-top: 12px; }
  .hero-cta { margin-top: 22px; }
  /* 法老在线卡片字号 */
  .hero-login h3 { font-size: 18px; }
  .lb-login .lb-feats { font-size: 13px; }
}
