/* ============================================================
   清华苑智检 · 全站公共主题 v2
   设计令牌: 强调色 #38BDF8 · 深色页头页脚 · 浅色内容区
   所有旧类名均保留，无需改动任何业务模板
   ============================================================ */

/* ── 1. 设计令牌 ───────────────────────────────────────────── */
:root {
  --accent:   #38BDF8;
  --accent-d: #0EA5E9;
  --navy:     #0D1520;
  --bg:       #F4F7FA;
  --card:     #FFFFFF;
  --border:   #E1EBF5;
  --ink:      #1F2937;
  --muted:    #64748B;
  --ok:       #16A34A;
  --warn:     #D97706;
  --danger:   #DC2626;
  --radius:   6px;
  --shadow:   0 1px 3px rgba(0,0,0,.05), 0 4px 14px rgba(0,0,0,.05);
  /* ── 旧变量别名（向后兼容，无需改模板） */
  --primary:      var(--accent);
  --primary-dark: var(--accent-d);
  --qhy-blue:     var(--accent);
  --qhy-deep:     var(--accent-d);
  --qhy-title:    var(--ink);
  --qhy-line:     var(--border);
  --qhy-gray:     var(--bg);
  --qhy-sky:      #EFF8FF;
  --brand:        var(--accent);
  --teal:         var(--accent);
  --cyan:         var(--accent);
  --ink-2:        #40566C;
  --ink-3:        #75869A;
}

/* ── 2. 基础重置 ───────────────────────────────────────────── */
* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: 'Inter', 'PingFang SC', 'Source Han Sans SC',
               'Noto Sans SC', 'Microsoft YaHei', system-ui, sans-serif;
  font-size: 15px;
  line-height: 1.65;
  background: var(--bg);
  color: var(--ink);
}
body.qhy-skin { background: var(--bg); color: var(--ink); }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-d); }
img { max-width: 100%; }

/* ── 3. 顶部细条 ───────────────────────────────────────────── */
.qhy-topline {
  height: 30px;
  background: #060D14;
  border-bottom: 1px solid rgba(56,189,248,.06);
  color: #2A3D52;
  font-size: 11px;
  font-family: 'Inter', system-ui, sans-serif;
}
.qhy-topline-inner {
  max-width: 1320px;
  margin: 0 auto;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 24px;
}
.qhy-toplinks { letter-spacing: .10em; color: #1E2E3D; }

/* ── 4. 页头（双行结构：主行56px + 工具行40px）──────────── */
.qhy-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #0D1520;
  box-shadow: 0 1px 20px rgba(0,0,0,.30);
  color: #E2E8F0;
}

/* 行1: 主行 */
.qhy-main-row { background: #0D1520; border-bottom: 1px solid rgba(56,189,248,.08); }
.qhy-main-row-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 56px;
  display: flex;
  align-items: center;
  gap: 0;
}

/* 行2: 工具行 */
.qhy-tool-row { background: #091424; border-bottom: 1px solid rgba(56,189,248,.10); }
.qhy-tool-row-inner {
  max-width: 1320px;
  margin: 0 auto;
  padding: 0 24px;
  height: 40px;
  display: flex;
  align-items: center;
}

/* 品牌区 */
.qhy-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: #E2E8F0;
  text-decoration: none;
  flex: 0 0 auto;
  min-width: 210px;
  white-space: nowrap;
}
.qhy-brand:hover { color: #E2E8F0; }
/* 向后兼容别名 */
.brand { display: flex; align-items: center; gap: 11px; color: #E2E8F0; text-decoration: none; flex: 0 0 auto; white-space: nowrap; }
.brand:hover { color: #E2E8F0; }

.qhy-logo-mark, .logo {
  width: 36px; height: 36px;
  border-radius: 4px;
  background: #38BDF8;
  color: #020D18;
  font-family: Georgia, serif;
  font-size: 20px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.qhy-brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.qhy-brand-text b { font-size: 16px; letter-spacing: .03em; color: #E2E8F0; font-weight: 700; }
.qhy-brand-text em { font-style: normal; font-size: 9px; letter-spacing: .10em; color: #2A3D52; margin-top: 3px; }

/* 主导航 */
.qhy-main-nav {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  overflow-x: auto;
  scrollbar-width: none;
  margin: 0 8px;
}
.qhy-main-nav::-webkit-scrollbar { display: none; }
.qhy-main-nav a {
  color: #5E7A93;
  padding: 0 10px;
  font-size: 13.5px;
  white-space: nowrap;
  height: 56px;
  line-height: 56px;
  display: block;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .14s, border-color .14s;
}
.qhy-main-nav a:hover,
.qhy-main-nav a.active {
  color: #38BDF8;
  border-bottom-color: #38BDF8;
}

/* 工具导航 */
.qhy-tool-nav {
  display: flex;
  align-items: center;
  overflow-x: auto;
  scrollbar-width: none;
  gap: 0;
}
.qhy-tool-nav::-webkit-scrollbar { display: none; }
.qhy-tool-nav a {
  color: #3A5468;
  padding: 0 11px;
  font-size: 12.5px;
  white-space: nowrap;
  height: 40px;
  line-height: 40px;
  display: block;
  flex-shrink: 0;
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color .14s, border-color .14s;
}
.qhy-tool-nav a:hover,
.qhy-tool-nav a.active { color: #38BDF8; border-bottom-color: #38BDF8; }

/* 用户区 */
.qhy-userbox, .userbox {
  flex: 0 0 auto;
  color: #5E7A93;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  margin-left: 8px;
}
.qhy-userbox a, .userbox a { color: #5E7A93; }
.qhy-userbox a:hover, .userbox a:hover { color: #38BDF8; }
.qhy-username { color: #5E7A93; }
.qhy-admin-link { color: #38BDF8 !important; font-size: 12px; }
/* ghost 按钮深色适配 */
.qhy-header .btn-ghost {
  color: #64748B;
  border-color: rgba(255,255,255,.14);
  background: transparent;
}
.qhy-header .btn-ghost:hover {
  color: #CBD5E1;
  border-color: rgba(255,255,255,.28);
  background: rgba(255,255,255,.06);
}
/* 登录链接 */
.qhy-login-link { font-weight: 700; color: #38BDF8; }
.qhy-login-link:hover { color: #0EA5E9; }

/* ── 5. 内容区版心 ──────────────────────────────────────────── */
.container { max-width: 1280px; margin: 24px auto; padding: 0 24px; }
.qhy-main { max-width: 1320px; }

/* ── 6. 栅格 ────────────────────────────────────────────────── */
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
.grid-5 { grid-template-columns: repeat(5, 1fr); gap: 18px; }
.cards-5 { grid-template-columns: repeat(5, minmax(0,1fr)); gap: 16px; }
.cards-3 { grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.cards-2 { grid-template-columns: repeat(2, minmax(0,1fr)); gap: 18px; }

/* ── 7. 卡片 ────────────────────────────────────────────────── */
.card, .panel {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px;
  margin-bottom: 20px;
  min-width: 0; /* grid/flex items default to min-width:auto, which refuses to shrink below content's
                   intrinsic width (e.g. a wide table) — this is the standard fix so narrow viewports
                   don't force the whole row wider than its container. */
}
.card h2, .card h3 { margin-top: 0; color: var(--ink); }

/* ── 8. 按钮 ────────────────────────────────────────────────── */
.btn {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 4px;
  border: 1px solid transparent;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  text-decoration: none;
  line-height: 1.4;
  text-align: center;
  transition: background .14s, color .14s, border-color .14s;
  white-space: nowrap;
}
.btn-primary {
  background: #38BDF8;
  color: #020D18;
  border-color: #38BDF8;
}
.btn-primary:hover {
  background: #0EA5E9;
  border-color: #0EA5E9;
  color: #020D18;
}
.btn-ghost {
  background: transparent;
  color: #38BDF8;
  border-color: #38BDF8;
}
.btn-ghost:hover {
  background: rgba(56,189,248,.08);
  color: #0EA5E9;
  border-color: #0EA5E9;
}
/* btn-blue 与 btn-primary 统一为同一强调色 */
.btn-blue {
  background: #38BDF8;
  color: #020D18;
  border-color: #38BDF8;
}
.btn-blue:hover {
  background: #0EA5E9;
  border-color: #0EA5E9;
  color: #020D18;
}
.btn-sm { padding: 5px 14px; font-size: 12.5px; }
.btn-danger { background: #DC2626; color: #fff; border-color: #DC2626; }
.btn-danger:hover { background: #B91C1C; }
/* 确保 <a class="btn"> 不被全局 a 颜色覆盖 */
a.btn-primary, a.btn-primary:hover { color: #020D18; }
a.btn-ghost { color: #38BDF8; }
a.btn-ghost:hover { color: #0EA5E9; }
a.btn-blue, a.btn-blue:hover { color: #020D18; }

/* ── 9. 表单（全局，body.qhy-skin 范围内） ─────────────────── */
body.qhy-skin input:not([type=checkbox]):not([type=radio])
                :not([type=file]):not([type=range])
                :not([type=submit]):not([type=button]):not([type=reset]),
body.qhy-skin select,
body.qhy-skin textarea {
  width: 100%;
  padding: 8px 11px;
  border: 1px solid #CDDAEC;
  border-radius: 4px;
  font-size: 14px;
  font-family: inherit;
  background: #fff;
  color: var(--ink);
  transition: border-color .14s, box-shadow .14s;
}
body.qhy-skin input:focus:not([type=checkbox]):not([type=radio])
                         :not([type=file]):not([type=range])
                         :not([type=submit]):not([type=button]):not([type=reset]),
body.qhy-skin select:focus,
body.qhy-skin textarea:focus {
  outline: none;
  border-color: #38BDF8;
  box-shadow: 0 0 0 3px rgba(56,189,248,.12);
}
body.qhy-skin label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #4A5568;
  margin-bottom: 5px;
}
/* 旧 .form 类包装器（向后兼容） */
.form label { display:block; font-size:13px; color:var(--muted); margin:12px 0 4px; }
.form-row { margin-bottom: 14px; min-width: 0; }
.form-row label { display:block; font-size:13px; font-weight:600; color:var(--ink-2); margin-bottom:6px; }
.form-row.checkbox label { display:flex; align-items:center; gap:8px; font-weight:500; }
/* 表单控件默认填满容器宽度 — 此前无此规则，多列网格中的 input/select/textarea
   会按浏览器默认内容宽度(~170px)渲染，导致窄屏(手机)下网格被撑破溢出。 */
input:not([type="checkbox"]):not([type="radio"]):not([type="submit"]):not([type="button"]),
select, textarea, .form-control {
  width: 100%;
  min-width: 0;
}
.inline-inputs { display:flex; gap:10px; }
.inline-inputs input { flex:1; min-width:0; }

/* ── 10. 表格 ───────────────────────────────────────────────── */
table.tbl, table.table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.tbl th, .table th {
  background: #EBF5FD;
  color: var(--ink);
  font-weight: 600;
  text-align: left;
  padding: 10px 14px;
  border-bottom: 2px solid #38BDF8;
  font-size: 13px;
  letter-spacing: .02em;
}
.tbl td, .table td {
  padding: 10px 14px;
  border-bottom: 1px solid #EAF0F8;
  color: #374151;
  vertical-align: middle;
}
.tbl tr:hover td, .table tr:hover td { background: #F5FAFF; }
.table-sm th, .table-sm td { padding: 7px 10px; font-size: 13px; }

/* ── 11. 状态徽章 ───────────────────────────────────────────── */
.badge {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 600;
}
.b-ok     { background: #DCFCE7; color: #15803D; }
.b-warn   { background: #FEF3C7; color: #92400E; }
.b-danger { background: #FEE2E2; color: #991B1B; }
.b-blue   { background: #E0F4FE; color: #0369A1; }
.b-teal   { background: #CCFBF1; color: #0F766E; }
.b-gray   { background: #F1F5F9; color: #475569; }
/* digital twin 页自定义徽章（保留原类名） */
.badge-normal, .badge-info { background: #DCFCE7; color: #15803D; }
.badge-watch   { background: #FEF3C7; color: #92400E; }
.badge-warning { background: #FFEDD5; color: #9A3412; }
.badge-danger  { background: #FEE2E2; color: #991B1B; }

/* ── 12. 消息 / 警告框 ─────────────────────────────────────── */
.msg { padding:10px 16px; border-radius:var(--radius); margin-bottom:14px; font-size:14px; }
.msg-success { background:#F0FDF4; color:#166534; border:1px solid #BBF7D0; }
.msg-error   { background:#FFF1F2; color:#9F1239; border:1px solid #FECDD3; }
.msg-info    { background:#F0F9FF; color:#075985; border:1px solid #BAE6FD; }
.msg-warn, .msg-warning { background:#FFFBEB; color:#92400E; border:1px solid #FDE68A; }
.warnbox { border-left:4px solid var(--warn); background:#FFFBEB; padding:10px 14px; border-radius:4px; margin-bottom:8px; font-size:13.5px; color:#92400E; }
.alert { padding:10px 14px; border-radius:var(--radius); font-size:13px; margin:10px 0; }
.alert-warn { background:#FEF3C7; border:1px solid #FDE68A; color:#92400E; }
.text-danger { color: var(--danger); }

/* ── 13. 进度条 / 鉴定等级 ─────────────────────────────────── */
.progress { height:7px; background:#E2E8F0; border-radius:999px; overflow:hidden; }
.progress > i { display:block; height:100%; background:linear-gradient(90deg,#38BDF8,#0EA5E9); }
.grade { display:inline-flex; align-items:center; justify-content:center; width:40px; height:40px; border-radius:8px; font-weight:800; font-size:17px; color:#fff; }
.g-A { background:#16A34A; } .g-B { background:#65A30D; }
.g-C { background:#D97706; } .g-D { background:#DC2626; }

/* ── 14. KPI 数字卡 ─────────────────────────────────────────── */
.stats { display:grid; grid-template-columns:repeat(auto-fit,minmax(200px,1fr)); gap:18px; margin-top:36px; }
.stat { background:rgba(255,255,255,.10); backdrop-filter:blur(4px); border:1px solid rgba(255,255,255,.18); border-radius:8px; padding:18px 22px; }
.stat b { font-size:30px; display:block; color:#fff; }
.stat span { color:rgba(255,255,255,.65); font-size:13px; }
.kpi { border-left:4px solid #38BDF8; padding:14px 18px; border-radius:4px; background:#fff; }
.kpi b, .kpi-num { display:block; font-size:26px; font-weight:700; color:var(--navy); }
.kpi span, .kpi-label { font-size:12.5px; color:var(--muted); display:block; margin-top:2px; }
.kpi.warn   { border-left-color:var(--warn); }
.kpi.danger { border-left-color:var(--danger); }
.kpi-row { display:flex; gap:14px; flex-wrap:wrap; margin:10px 0 14px; }
.kpi-row .kpi { flex:1; min-width:120px; text-align:center; }
/* 驾驶舱 KPI 格 */
.qhy-kpi-grid .kpi { background:linear-gradient(180deg,#fff,#F2F9FF); border-top:3px solid #38BDF8; border-left:1px solid var(--border); }
.qhy-kpi-grid .kpi b { display:block; font-size:28px; color:var(--navy); margin-top:4px; }
.qhy-kpi-grid .kpi span { font-size:13px; color:var(--muted); }

/* ── 15. 页面标题 / Section 标头 ────────────────────────────── */
.page-head { display:flex; justify-content:space-between; align-items:flex-end; gap:16px; margin:24px 0 16px; flex-wrap:wrap; }
.page-head h1 { margin:0 0 2px; font-size:24px; color:var(--ink); font-weight:700; }
.qhy-page-title { background:#fff; border-top:3px solid #38BDF8; border-bottom:1px solid var(--border); box-shadow:0 2px 8px rgba(0,0,0,.04); padding:20px 28px; margin:0 0 20px; }
.qhy-page-title h1 { font-size:22px; margin:0 0 4px; color:var(--ink); }
.qhy-page-title p { margin:0; color:var(--muted); font-size:14px; }
.qhy-section-head { text-align:center; margin:24px auto 18px; max-width:820px; }
.qhy-section-head small { color:#38BDF8; letter-spacing:.22em; font-size:11px; font-weight:800; }
.qhy-section-head h2, .qhy-section-head h3 { color:var(--ink); margin:6px 0 8px; letter-spacing:.02em; }
.qhy-section-head h2::after, .qhy-section-head h3::after { content:''; display:block; width:44px; height:2px; background:#38BDF8; margin:8px auto 0; }
.qhy-section-head.left { text-align:left; margin:0 0 12px; }
.qhy-section-head.left h2::after, .qhy-section-head.left h3::after { margin-left:0; }
.qhy-section-head p { color:var(--muted); }
.qhy-card-title { color:var(--ink); margin-top:0; }
.qhy-card-title::after { content:''; display:block; width:44px; height:2px; background:#38BDF8; margin:8px 0 0; }

/* ── 16. 标签切换 ───────────────────────────────────────────── */
.tabbar { display:flex; gap:6px; margin-bottom:16px; flex-wrap:wrap; }
.tab { border:1px solid var(--border); background:#fff; padding:8px 18px; border-radius:4px; cursor:pointer; font-size:13.5px; color:var(--ink); transition:.14s; font-family:inherit; }
.tab:hover { border-color:#38BDF8; color:#38BDF8; background:#F0F9FF; }
.tab.active { background:#38BDF8; border-color:#38BDF8; color:#020D18; font-weight:600; }
.tab-pane { display:none; }
.tab-pane.active { display:block; }

/* ── 17. 功能列表 / 特性卡 ─────────────────────────────────── */
.feature { display:flex; gap:14px; align-items:flex-start; }
.feature .ico { width:44px; height:44px; flex:none; border-radius:6px; color:#020D18; font-size:14px; font-weight:800; background:#38BDF8; display:flex; align-items:center; justify-content:center; }
.feature h4 { margin:2px 0 6px; color:var(--ink); font-size:15px; }
.feature p { margin:0; color:var(--muted); font-size:13.5px; }
.feature-card { transition:.16s; position:relative; overflow:hidden; }
.feature-card::before { content:''; position:absolute; left:0; right:0; top:0; height:2px; background:#38BDF8; }
.feature-card:hover { transform:translateY(-2px); box-shadow:0 8px 24px rgba(56,189,248,.12); }
.feature-list { list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.feature-list li { border-left:4px solid #38BDF8; padding:8px 12px; background:rgba(56,189,248,.04); border-radius:4px; }
.feature-list b { display:block; color:var(--ink); }
.feature-list span { color:var(--muted); }

/* ── 18. AI 大模型聊天框 ────────────────────────────────────── */
.chatbox { padding:0; overflow:hidden; }
.chatbox .chat-msg { padding:16px 20px; border-bottom:1px solid var(--border); }
.chatbox .chat-msg.user { background:#F8FAFC; }
.chatbox .chat-msg.assistant { background:#fff; }
.chatbox .chat-msg b { color:var(--navy); }
.chatbox pre { white-space:pre-wrap; word-break:break-word; font-family:inherit; margin:8px 0 0; font-size:14px; line-height:1.7; }
.chatbox details { margin-top:8px; color:var(--muted); font-size:13px; }
.chatbox form { padding:16px 20px; background:#F8FAFC; border-top:1px solid var(--border); }

/* ── 19. 代码 / 计算结果 ────────────────────────────────────── */
pre.code { background:var(--navy); color:#BAE6FD; padding:14px; border-radius:var(--radius); font-size:12.5px; overflow:auto; }
.result-box { min-height:200px; background:#F8FAFC; border:1px solid var(--border); border-radius:var(--radius); padding:14px; font-size:13px; overflow:auto; }
.result-box pre { margin:0; white-space:pre-wrap; word-break:break-all; font-size:12px; line-height:1.55; }
.code-chip { font-family:ui-monospace,Consolas,monospace; background:#F1F5F9; border:1px solid var(--border); border-radius:4px; padding:2px 8px; font-size:12px; word-break:break-all; }

/* ── 20. 图片缩略 / 报告查验 ────────────────────────────────── */
.thumb-grid { display:grid; grid-template-columns:repeat(auto-fill,minmax(220px,1fr)); gap:16px; }
.thumb-card { border:1px solid var(--border); border-radius:var(--radius); overflow:hidden; background:#fff; }
.thumb-card img { width:100%; height:160px; object-fit:cover; display:block; background:#EEF2F6; }
.thumb-card .meta { padding:10px 12px; font-size:12.5px; color:var(--muted); }
.verify-ok  { border-left:4px solid var(--ok);     background:#F0FDF4; padding:16px; border-radius:var(--radius); }
.verify-bad { border-left:4px solid var(--danger);  background:#FFF1F2; padding:16px; border-radius:var(--radius); }

/* ── 21. 深圳专项 ───────────────────────────────────────────── */
.qhy-clean-list { list-style:none; margin:0; padding:0; }
.qhy-clean-list li { padding:10px 0 10px 18px; border-bottom:1px solid var(--border); position:relative; }
.qhy-clean-list li::before { content:''; position:absolute; left:0; top:18px; width:6px; height:6px; border-radius:50%; background:#38BDF8; }
.qhy-local-title { background:linear-gradient(90deg,#fff,#F0F9FF); }
.qhy-local-kpis .card { border-top:3px solid #38BDF8; background:linear-gradient(180deg,#fff,#F7FBFF); }
.qhy-local-kpis small { letter-spacing:.12em; font-size:11px; color:var(--muted); font-weight:700; }
.qhy-mini-list { display:flex; gap:8px; flex-wrap:wrap; margin-top:15px; }
.qhy-mini-list span { border:1px solid #C7DFF5; background:#F0F9FF; color:#075985; border-radius:999px; padding:5px 11px; font-size:12px; font-weight:700; }

/* ── 22. 登录页 ─────────────────────────────────────────────── */
.qhy-login-wrap { min-height:520px; display:grid; grid-template-columns:1fr 400px; gap:28px; align-items:center; }
.qhy-login-intro { padding:48px; border-radius:var(--radius); background:linear-gradient(135deg,#0D1520,#0D2540); border:1px solid rgba(56,189,248,.15); color:#fff; min-height:320px; display:flex; flex-direction:column; justify-content:center; box-shadow:0 20px 45px rgba(0,0,0,.25); }
.qhy-login-intro small { letter-spacing:.22em; color:#38BDF8; font-weight:700; font-size:10px; }
.qhy-login-intro h1 { font-size:32px; line-height:1.3; color:#E2E8F0; margin:10px 0; }
.qhy-login-intro p { color:#64748B; line-height:1.75; }
.qhy-login-card { margin:0; }

/* ── 23. 数字孪生专属组件 ───────────────────────────────────── */
.twin-hero { display:grid; grid-template-columns:1.4fr .8fr; gap:28px; align-items:center; overflow:hidden; }
.twin-panel { min-height:230px; border-radius:16px; background:radial-gradient(circle at 30% 20%,rgba(56,189,248,.20),transparent 35%),linear-gradient(135deg,#0B2340,#0B5A7A); display:flex; flex-direction:column; align-items:center; justify-content:center; color:#fff; box-shadow:0 20px 50px rgba(0,0,0,.25); }
.model-cube { width:170px; height:130px; position:relative; border:2px solid rgba(255,255,255,.7); transform:skewY(-10deg); display:grid; place-items:center; background:rgba(255,255,255,.08); }
.model-cube::before,.model-cube::after { content:''; position:absolute; border:2px solid rgba(255,255,255,.35); inset:16px; transform:translate(18px,-18px); }
.model-cube::after { inset:32px; transform:translate(34px,-34px); }
.model-cube span { display:inline-block; margin:4px 6px; padding:4px 8px; border-radius:999px; background:rgba(255,255,255,.18); font-weight:700; letter-spacing:.08em; }
.twin-status { margin-top:28px; padding:8px 18px; border-radius:999px; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.25); font-size:13px; }
.twin-workbench { display:grid; grid-template-columns:1.4fr .6fr; gap:18px; }
.twin-summary { margin-bottom:20px; }
.viewer-panel { border:1px solid var(--border); border-radius:12px; overflow:hidden; background:#F6FBFD; }
.viewer-toolbar { height:42px; display:flex; align-items:center; padding:0 16px; background:var(--navy); color:#fff; font-weight:700; font-size:14px; }
.viewer-placeholder { height:360px; display:flex; flex-direction:column; align-items:center; justify-content:center; background:linear-gradient(145deg,#EDF6F9,#D9EEF4); color:#426271; text-align:center; }
.building-wireframe { position:relative; width:260px; height:180px; border:2px solid #38BDF8; transform:skewY(-8deg); background:rgba(56,189,248,.06); box-shadow:25px -20px 0 rgba(56,189,248,.12); }
.building-wireframe i { position:absolute; background:#38BDF8; opacity:.55; }
.building-wireframe i:nth-child(1){left:25%;top:0;bottom:0;width:2px}
.building-wireframe i:nth-child(2){left:50%;top:0;bottom:0;width:2px}
.building-wireframe i:nth-child(3){left:75%;top:0;bottom:0;width:2px}
.building-wireframe i:nth-child(4){top:33%;left:0;right:0;height:2px}
.building-wireframe i:nth-child(5){top:66%;left:0;right:0;height:2px}
.building-wireframe i:nth-child(6){left:35%;top:45%;width:40px;height:40px;border-radius:50%;background:#F59E0B;opacity:.9}
.stat-card span { color:#72808C; }
.stat-card b { display:block; font-size:32px; color:#0E537A; margin:8px 0; }
.stat-card em { font-style:normal; color:#64748B; }
.side-panel { border:1px dashed var(--border); border-radius:12px; padding:20px; background:#fff; }
.timeline { counter-reset:tl; list-style:none; margin:0; padding:0; display:grid; gap:14px; }
.timeline li { position:relative; padding-left:36px; color:#365466; }
.timeline li::before { counter-increment:tl; content:counter(tl); position:absolute; left:0; top:-2px; width:24px; height:24px; border-radius:50%; background:#38BDF8; color:#020D18; display:grid; place-items:center; font-size:12px; font-weight:700; }

/* ── 24. 旧首页遗留类（home.html 已换为 .hm-*，保留安全兜底）*/
.hero, .qhy-home-hero {
  background: linear-gradient(110deg,#080C10 0%,#0D1520 100%);
  color:#fff; padding:72px 20px 54px; position:relative; overflow:hidden;
}
.hero::after, .qhy-home-hero::after { content:''; position:absolute; inset:0; background-image:linear-gradient(rgba(56,189,248,.04) 1px,transparent 1px),linear-gradient(90deg,rgba(56,189,248,.04) 1px,transparent 1px); background-size:56px 56px; pointer-events:none; }
.hero .inner, .qhy-home-hero .inner { max-width:1280px; margin:0 auto; position:relative; z-index:1; }
.hero .eyebrow { color:#38BDF8; letter-spacing:4px; font-size:12px; font-weight:700; }
.hero h1 { font-size:42px; margin:10px 0 14px; }
.hero p.sub { color:#8BA3BC; font-size:17px; max-width:760px; }
.hero .cta { margin-top:26px; display:flex; gap:14px; flex-wrap:wrap; }
.qhy-hero-grid { display:grid; grid-template-columns:1.08fr .72fr; gap:32px; align-items:center; }
.qhy-home-hero h1 { font-size:46px; line-height:1.22; }
.qhy-home-hero .sub { font-size:16.5px; max-width:820px; }
.qhy-stats { grid-column:1/-1; margin-top:14px; }
.qhy-building-card { height:300px; border:1px solid rgba(56,189,248,.25); border-radius:6px; background:rgba(56,189,248,.04); display:flex; flex-direction:column; align-items:center; justify-content:center; }
.qhy-line-title { letter-spacing:.2em; font-weight:700; color:#BAE6FD; margin-bottom:24px; }
.qhy-wire-building { position:relative; width:240px; height:155px; border:2px solid rgba(56,189,248,.6); transform:skewY(-8deg); background:rgba(56,189,248,.05); box-shadow:22px -16px 0 rgba(56,189,248,.10); }
.qhy-wire-building i { position:absolute; background:rgba(56,189,248,.7); }
.qhy-wire-building i:nth-child(1){left:20%;top:0;bottom:0;width:2px}.qhy-wire-building i:nth-child(2){left:40%;top:0;bottom:0;width:2px}.qhy-wire-building i:nth-child(3){left:60%;top:0;bottom:0;width:2px}.qhy-wire-building i:nth-child(4){left:80%;top:0;bottom:0;width:2px}.qhy-wire-building i:nth-child(5){left:0;right:0;top:33%;height:2px}.qhy-wire-building i:nth-child(6){left:0;right:0;top:66%;height:2px}
.qhy-hero-tags { margin-top:24px; display:flex; gap:10px; flex-wrap:wrap; justify-content:center; }
.qhy-hero-tags span { padding:5px 12px; border-radius:999px; background:rgba(56,189,248,.14); border:1px solid rgba(56,189,248,.28); font-weight:700; color:#BAE6FD; }
.qhy-profile-card { background:linear-gradient(180deg,#fff,#F7FBFF); }

/* ── 25. 页脚 ───────────────────────────────────────────────── */
.footer, .qhy-footer {
  background: linear-gradient(90deg, #0D1520, #0A1929);
  border-top: 1px solid rgba(56,189,248,.08);
  color: #375168;
  margin-top: 56px;
  padding: 36px 20px;
  font-size: 13px;
}
.footer .inner, .qhy-footer .inner {
  max-width: 1320px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.footer b, .qhy-footer b { color: #5E7A93; }

/* ── 26. Django admin 顶栏适配 ──────────────────────────────── */
#user-tools, #user-tools a, #user-tools a:link, #user-tools a:visited { color:#000; }
#user-tools a:hover { color:#38BDF8; }

/* ── 27. 响应式 ─────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .qhy-main-row-inner { padding: 0 16px; }
  .qhy-tool-row-inner { padding: 0 16px; }
}
@media (max-width: 1024px) {
  /* 导航由 nav-enhance.css 的汉堡逻辑接管 */
  .qhy-brand { min-width: auto; }
  .twin-hero, .twin-workbench { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .cards-3, .cards-5 { grid-template-columns: 1fr; }
  .qhy-login-wrap { grid-template-columns: 1fr; }
  .qhy-topline { display: none; }
}
@media (max-width: 760px) {
  .hero h1, .qhy-home-hero h1 { font-size: 28px; }
  .qhy-login-intro { padding: 28px; }
  .qhy-login-intro h1 { font-size: 26px; }
  .qhy-page-title { padding: 18px; }
  .qhy-brand-text em { display: none; }
  .viewer-placeholder { height: 240px; }
  .cards-2, .grid-2 { grid-template-columns: 1fr; }
}
