:root.xh-home-midnight-active,
:root.xh-home-midnight-active body {
  margin: 0 !important;
  min-height: 100% !important;
  background: #040a14 !important;
  color-scheme: dark;
}

:root.xh-home-midnight-active { scrollbar-width: none; }
:root.xh-home-midnight-active::-webkit-scrollbar,
:root.xh-home-midnight-active body::-webkit-scrollbar { width: 0; height: 0; }

:root.xh-home-midnight-active body > #root {
  display: none !important;
}

/* Legacy homepage entry scripts mount this fixed nav directly under body. */
:root.xh-home-midnight-active #xh-feature-entry-links,
:root.xh-home-midnight-active #xh-collaboration-entry {
  display: none !important;
}

.xh-home-v6,
.xh-home-v6 * { box-sizing: border-box; }
.xh-home-v6 {
  --ink: #050b15;
  --navy: #071322;
  --panel: rgba(10, 24, 40, .74);
  --line: rgba(177, 211, 240, .16);
  --line-strong: rgba(197, 224, 246, .28);
  --ivory: #f3ead9;
  --muted: #93a5b8;
  --ice: #a8dfff;
  --ice-strong: #d1efff;
  --gold: #d9b76e;
  --gold-soft: #f0d89d;
  position: relative;
  min-height: 100vh;
  overflow: visible;
  background: var(--ink);
  color: var(--ivory);
  font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  letter-spacing: .01em;
  line-height: 1.2;
}

.xh-home-v6 a { color: inherit; text-decoration: none; }
.xh-home-v6 button, .xh-home-v6 input, .xh-home-v6 textarea { font: inherit; }
.xh-home-v6 svg { width: 22px; height: 22px; display: block; }
.xh-visually-hidden { position:absolute!important; width:1px!important; height:1px!important; padding:0!important; margin:-1px!important; overflow:hidden!important; clip:rect(0,0,0,0)!important; white-space:nowrap!important; border:0!important; }

.xh-bg {
  position: absolute;
  inset: 0 0 auto 0;
  height: 800px;
  min-height: 0;
  background-image:
    linear-gradient(90deg, rgba(4,10,20,.74) 0%, rgba(4,10,20,.43) 38%, rgba(4,10,20,.08) 66%, rgba(4,10,20,.36) 100%),
    linear-gradient(180deg, rgba(4,10,20,.18) 0%, rgba(4,10,20,.12) 60%, #050c17 100%),
    url('/haisen-home-assets/xinghe-home-hero-midnight-v1-h2.webp');
  background-size: 100% 100%, 100% 100%, min(93.12vw, 1672px) min(52.50vw, 941px);
  background-position: center, center, max(-5.49vw, -99px) max(-9.84vw, -177px);
  background-repeat: no-repeat;
  filter: saturate(.88) contrast(1.03);
  pointer-events: none;
}

.xh-bg::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 68% 56%, rgba(140,200,240,.12), transparent 24%);
  mix-blend-mode: screen;
}

/* Wide screens use a dedicated outpaint so the hero continues across the full canvas. */
@media (min-width: 1900px) {
  .xh-bg {
    background-image:
      linear-gradient(90deg, rgba(4,10,20,.76) 0%, rgba(4,10,20,.42) 35%, rgba(4,10,20,.08) 66%, rgba(4,10,20,.26) 100%),
      linear-gradient(180deg, rgba(4,10,20,.16) 0%, rgba(4,10,20,.10) 62%, #050c17 100%),
      url('/haisen-home-assets/xinghe-home-hero-midnight-wide-v2-h2.webp');
    background-size: 100% 100%, 100% 100%, 100vw auto;
    background-position: center, center, 17vw -10.5vw;
  }
}

.xh-rail {
  position: fixed;
  z-index: 20;
  inset: 0 auto 0 0;
  width: 110px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  border-right: 1px solid rgba(177,211,240,.11);
  background: rgba(3,9,17,.78);
  backdrop-filter: blur(20px);
}

.xh-orbit { position: relative; height: 102px; display: grid; place-items: center; }
.xh-orbit i { position:absolute; width:40px; height:18px; border:1.8px solid var(--gold); border-radius:50%; transform:rotate(-18deg); }
.xh-orbit i:nth-child(2) { width:23px; height:40px; transform:rotate(53deg); opacity:.65; }
.xh-orbit b { width:7px; height:7px; border-radius:50%; background:var(--ice-strong); box-shadow:0 0 16px rgba(168,223,255,.85); transform:translate(17px,-8px); }
.xh-rail nav { flex: 0 0 auto; padding-top: 0; }
.xh-rail nav a, .xh-profile {
  position: relative;
  height: 88px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: #8291a1;
  font-size: 12px;
  transition: color .2s, background .2s;
}
.xh-rail nav a:hover, .xh-profile:hover { color: var(--ivory); background: rgba(255,255,255,.035); }
.xh-rail nav a svg, .xh-profile svg { width:20px; height:20px; }
.xh-rail nav a.is-active { color: var(--gold-soft); background: linear-gradient(90deg, rgba(217,183,110,.16), transparent); }
.xh-rail nav a.is-active::before { content:""; position:absolute; left:0; top:14px; bottom:14px; width:2px; background:var(--gold-soft); box-shadow:0 0 12px rgba(217,183,110,.6); }
.xh-profile { margin-bottom: 0; }

.xh-page { position: relative; z-index: 2; margin-left: 110px; }
.xh-header {
  height: 102px;
  padding: 0 38px 0 42px;
  display: flex;
  align-items: center;
  gap: 28px;
  border-bottom: 1px solid rgba(177,211,240,.08);
  background: linear-gradient(180deg, rgba(3,9,17,.60), rgba(3,9,17,.08));
}
.xh-brand { display:flex; flex-direction:column; min-width: 158px; }
.xh-brand strong { color:var(--gold-soft); font-family:"Songti SC","STSong",serif; font-size:29px; line-height:1.08; letter-spacing:.1em; font-weight:700; text-shadow:0 0 28px rgba(217,183,110,.15); }
.xh-brand small { display:none; margin-top:2px; font-size:8px; line-height:1.2; letter-spacing:.24em; color:#8392a5; }
.xh-topnav { display:flex; gap:30px; font-size:14px; color:#b4c0cc; }
.xh-topnav a { position:relative; padding:12px 0; }
.xh-topnav a::after { content:""; position:absolute; left:0; right:100%; bottom:3px; height:1px; background:var(--gold); transition:right .2s; }
.xh-topnav a:hover::after { right:0; }
.xh-account { margin-left:auto; display:flex; align-items:center; gap:12px; }
.xh-online, .xh-login { height:36px; border:1px solid var(--line); border-radius:999px; display:inline-flex; align-items:center; padding:0 16px; font-size:13px; background:rgba(6,15,26,.55); backdrop-filter:blur(14px); }
.xh-online { gap:8px; color:#c8d4df; }
.xh-online i { width:7px; height:7px; border-radius:50%; background:#a477e8; box-shadow:0 0 12px #a477e8; }
.xh-login:hover { border-color:var(--gold); color:var(--gold-soft); }
.xh-account-action-group { display:flex; align-items:center; gap:8px; }
.xh-account-pill { height:36px; display:inline-flex; align-items:center; gap:7px; padding:0 11px; border:1px solid rgba(168,223,255,.22); border-radius:999px; color:#d9e5ee; background:rgba(6,16,29,.74); box-shadow:0 8px 20px rgba(0,0,0,.16); font-size:12px; white-space:nowrap; transition:color .18s,border-color .18s,background .18s; }
.xh-account-pill:hover,.xh-account-pill:focus-visible { color:#fff; border-color:rgba(229,196,122,.68); background:rgba(15,31,48,.94); outline:none; }
.xh-account-icon { display:grid; place-items:center; width:21px; height:21px; border-radius:50%; color:#071321; background:var(--ice); font-size:13px; font-weight:700; }
.xh-account-customer .xh-account-icon { background:#18c8bf; }
.xh-account-invite .xh-account-icon { background:#9870f0; }
.xh-account-points .xh-account-icon { background:#e5b84e; }
.xh-account-recharge .xh-account-icon { background:#f58a28; }
.xh-account-agent .xh-account-icon { background:#5fd8d0; }
.xh-account-popover-wrap { position:relative; }
.xh-account-avatar { height:36px; display:inline-flex; align-items:center; gap:4px; padding:0 2px 0 0; border:0; color:#a9bac8; background:transparent; cursor:pointer; }
.xh-account-avatar > img,.xh-account-avatar > span:first-child { width:34px; height:34px; display:grid; place-items:center; overflow:hidden; border:1px solid rgba(229,196,122,.48); border-radius:50%; color:#f7e4ac; background:linear-gradient(135deg,#6377ee,#4336a4); object-fit:cover; font-size:13px; font-weight:700; }
.xh-account-avatar > img { display:block; }
.xh-account-chevron { color:#91a6b7; font-size:12px; }
.xh-account-popover,.xh-profile-popover { position:absolute; z-index:100; top:calc(100% + 10px); right:0; border:1px solid var(--line-strong); border-radius:14px; color:#e8eff5; background:rgba(7,19,33,.98); box-shadow:0 28px 80px rgba(0,0,0,.52); backdrop-filter:blur(20px); }
.xh-account-popover[hidden],.xh-profile-popover[hidden],.xh-agent-mode-menu[hidden],.xh-agent-skills-menu[hidden] { display:none !important; }
.xh-points-popover { width:250px; padding:16px; }
.xh-points-popover strong { display:block; color:#9fb4c5; font-size:12px; font-weight:500; }
.xh-points-popover b { display:block; margin-top:7px; color:var(--gold-soft); font-size:25px; line-height:1; }
.xh-points-popover small { display:block; margin-top:9px; color:#74899d; font-size:11px; }
.xh-account-popover-divider { height:1px; margin:14px 0 8px; background:var(--line); }
.xh-points-popover a { display:flex; align-items:center; justify-content:space-between; min-height:34px; padding:0 8px; border-radius:8px; color:#dce7ef; font-size:12px; }
.xh-points-popover a:hover { background:rgba(168,223,255,.07); color:#fff; }
.xh-profile-popover { box-sizing:border-box; width:min(340px,calc(100vw - 32px)); max-height:min(640px,calc(100vh - 90px)); overflow-y:auto; scrollbar-width:thin; scrollbar-color:rgba(168,223,255,.58) rgba(8,29,47,.78); padding:16px; }
.xh-profile-popover::-webkit-scrollbar { width:9px; }
.xh-profile-popover::-webkit-scrollbar-track { background:rgba(8,29,47,.78); border-radius:999px; }
.xh-profile-popover::-webkit-scrollbar-thumb { background:rgba(168,223,255,.58); border:2px solid rgba(8,29,47,.78); border-radius:999px; }
.xh-profile-summary { display:flex; align-items:center; gap:11px; padding:12px; border-radius:11px; background:rgba(255,255,255,.055); }
.xh-profile-avatar > img,.xh-profile-avatar > span:first-child { width:42px; height:42px; display:grid; place-items:center; overflow:hidden; border-radius:50%; color:#f7e4ac; background:linear-gradient(135deg,#6377ee,#4336a4); object-fit:cover; font-size:14px; font-weight:700; }
.xh-profile-avatar > img { display:block; }
.xh-profile-summary strong { display:block; color:#f5f8fb; font-size:16px; line-height:1.35; }
.xh-profile-summary small { display:block; margin-top:6px; color:#91a6b7; font-size:13px; line-height:1.4; }
.xh-profile-account-summary { display:grid; grid-template-columns:1fr auto; gap:4px 10px; margin-top:8px; padding:10px 12px; border:1px solid rgba(168,223,255,.12); border-radius:10px; background:rgba(8,29,47,.82); }
.xh-profile-account-summary span { color:#91a6b7; font-size:12px; line-height:1.4; }
.xh-profile-account-summary strong { color:var(--gold-soft); font-size:17px; line-height:1.25; }
.xh-profile-account-summary small { grid-column:1/-1; color:#74899d; font-size:11px; line-height:1.4; }
.xh-profile-meta { padding:12px 12px 9px; color:#74899d; font-size:12px; line-height:1.4; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xh-profile-popover nav { display:grid; gap:4px; }
.xh-profile-popover nav a,.xh-profile-logout { display:flex; align-items:center; gap:11px; width:100%; min-height:44px; padding:8px 11px; border:0; border-radius:8px; color:#dce7ef; background:transparent; font-size:14px; line-height:1.4; text-align:left; }
.xh-profile-popover nav a:hover,.xh-profile-logout:hover { color:#fff; background:rgba(168,223,255,.07); }
.xh-profile-popover nav svg { width:15px; height:15px; color:var(--gold-soft); }
.xh-profile-theme { display:flex; align-items:center; justify-content:space-between; width:100%; min-height:44px; margin-top:5px; padding:8px 11px; border:0; border-radius:8px; color:#dce7ef; background:transparent; font-size:14px; line-height:1.4; text-align:left; cursor:pointer; }
.xh-profile-theme:hover { color:#fff; background:rgba(168,223,255,.07); }
.xh-profile-theme > span { display:inline-flex; align-items:center; gap:10px; }
.xh-profile-theme svg { width:15px; height:15px; color:var(--gold-soft); }
.xh-profile-theme strong { color:#91a6b7; font-size:12px; font-weight:500; }
.xh-profile-logout { margin-top:9px; border-top:1px solid var(--line); border-radius:0; color:#c9a75e; }
.xh-customer-modal { position:fixed; z-index:300; inset:0; display:grid; place-items:center; padding:20px; background:rgba(2,7,14,.72); backdrop-filter:blur(7px); }
.xh-customer-dialog { width:min(420px,100%); overflow:hidden; border:1px solid var(--line-strong); border-radius:18px; color:#e8eff5; background:#071321; box-shadow:0 28px 90px rgba(0,0,0,.58); }
.xh-customer-head,.xh-customer-foot { display:flex; align-items:center; justify-content:space-between; padding:15px 18px; border-bottom:1px solid var(--line); }
.xh-customer-head h2 { margin:0; font-size:16px; }
.xh-customer-head button { width:28px; height:28px; border:0; border-radius:8px; color:#91a6b7; background:transparent; font-size:22px; line-height:1; cursor:pointer; }
.xh-customer-head button:hover { color:#fff; background:rgba(255,255,255,.07); }
.xh-customer-body { display:flex; flex-direction:column; align-items:center; padding:24px; }
.xh-customer-body a { padding:10px; border:1px solid rgba(168,223,255,.20); border-radius:12px; background:#fff; }
.xh-customer-body img { display:block; width:220px; height:220px; object-fit:contain; }
.xh-customer-body p { margin:15px 0 0; color:#8ca0b4; font-size:12px; }
.xh-customer-foot { justify-content:flex-end; border-top:1px solid var(--line); border-bottom:0; }
.xh-customer-foot button { height:34px; padding:0 16px; border:1px solid var(--line-strong); border-radius:8px; color:#e8eff5; background:#0e2437; cursor:pointer; }
.xh-customer-foot button:hover { border-color:var(--gold); color:var(--gold-soft); }

.xh-hero { position:relative; min-height: 630px; padding: 56px 56px 24px 84px; }
.xh-hero-copy { max-width:670px; }
.xh-kicker { display:none; color:var(--gold); font-size:11px; letter-spacing:.2em; margin-bottom:22px; }
.xh-hero h1 { margin:0; color:var(--ivory); font-family:"Songti SC","STSong",serif; font-size:clamp(58px,4.2vw,70px); line-height:1; letter-spacing:.04em; font-weight:700; text-shadow:0 6px 32px rgba(0,0,0,.48); white-space:nowrap; }
.xh-hero h1 br { display:none; }
.xh-hero h1 em { color:var(--gold-soft); font-style:normal; }
.xh-hero-copy p { margin:18px 0 0; color:#aebdcb; font-size:18px; letter-spacing:.16em; }

.xh-agent-stage {
  position:absolute;
  z-index:30;
  left:calc(50% - 68px);
  right:auto;
  bottom:20px;
  width:min(1168px, calc(100% - 160px));
  transform:translateX(-50%);
}
.xh-agent-stage > h2 { margin:0 0 20px; text-align:center; color:#eef1f4; font-size:27px; line-height:1.12; letter-spacing:.01em; font-weight:700; text-shadow:0 5px 24px rgba(0,0,0,.46); }
.xh-agent-stage > h2 em { color:#20d3df; font-style:normal; }
.xh-agent {
  position:relative;
  z-index:31;
  width:100%;
  height:178px;
  overflow:visible;
  border:1px solid rgba(190,210,230,.12);
  border-radius:26px;
  background:linear-gradient(145deg,rgba(27,30,38,.96),rgba(20,24,32,.94));
  box-shadow:0 28px 68px rgba(0,0,0,.36), inset 0 1px 0 rgba(255,255,255,.025), 0 0 45px rgba(58,139,182,.05);
  backdrop-filter:blur(22px);
}
.xh-agent-add { position:absolute; left:24px; top:25px; width:52px; height:65px; display:grid; place-items:center; border:1px solid rgba(190,210,230,.07); border-radius:3px; color:#626b78; background:#292d37; transform:rotate(-8deg); cursor:pointer; transition:color .2s,border-color .2s,background .2s; }
.xh-agent-add span { font-size:26px; line-height:1; transform:rotate(8deg); }
.xh-agent-add:hover { color:#a9bac8; border-color:rgba(32,211,223,.32); background:#303642; }
.xh-agent-add.has-file { color:#20d3df; border-color:rgba(32,211,223,.30); background:#25343d; }
.xh-agent textarea { position:absolute; left:94px; right:28px; top:18px; width:calc(100% - 122px); height:92px; resize:none; overflow:auto; border:0; outline:0; padding:0; color:#e7edf2; background:transparent; font-size:14px; line-height:1.7; }
.xh-agent textarea::placeholder { color:#69717e; opacity:1; }
.xh-agent-mic { position:absolute; right:64px; bottom:20px; width:32px; height:32px; display:grid; place-items:center; padding:0; border:1px solid transparent; border-radius:50%; color:#96a4b1; background:transparent; cursor:pointer; transition:color .18s,border-color .18s,background .18s; }
.xh-agent-mic svg { width:17px; height:17px; }
.xh-agent-mic:hover,.xh-agent-mic:focus-visible { color:#e5f5ff; border-color:rgba(32,211,223,.25); background:rgba(32,211,223,.08); outline:none; }
.xh-agent-mic.is-listening { color:#20d3df; border-color:rgba(32,211,223,.38); background:rgba(32,211,223,.13); animation:xh-mic-pulse 1.4s ease-in-out infinite; }
.xh-agent-mic:disabled { color:#4c5662; cursor:not-allowed; opacity:.7; }
.xh-agent-status { position:absolute; right:103px; bottom:28px; max-width:190px; overflow:hidden; color:#8ca8bb; font-size:10px; text-overflow:ellipsis; white-space:nowrap; pointer-events:none; }
@keyframes xh-mic-pulse { 50% { box-shadow:0 0 0 5px rgba(32,211,223,.08); } }
.xh-agent-toolbar { position:absolute; left:18px; bottom:18px; display:flex; align-items:center; gap:5px; }
.xh-agent-chip { box-sizing:border-box; height:36px; display:inline-flex; align-items:center; gap:7px; padding:0 13px; border:1px solid rgba(190,210,230,.10); border-radius:8px; color:#d7dce1; background:rgba(18,21,28,.86); font-size:13px; cursor:pointer; transition:color .2s,border-color .2s,background .2s; }
.xh-agent-chip svg { width:16px; height:16px; }
.xh-agent-chip:hover { color:#fff; border-color:rgba(190,210,230,.24); background:rgba(30,35,44,.96); }
.xh-agent-chip.is-active { color:#20d3df; border-color:rgba(32,211,223,.20); }
.xh-agent-select { position:relative; padding-right:10px; cursor:pointer; }
.xh-agent-select::after { content:"⌄"; margin-left:1px; color:#8f98a4; font-size:12px; pointer-events:none; }
.xh-agent-select select { max-width:178px; appearance:none; -webkit-appearance:none; border:0; outline:0; padding:0; color:inherit; background:transparent; font:inherit; cursor:pointer; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xh-agent-select select option { color:#e4e8ec; background:#171b23; }
.xh-agent-mode-toggle { flex:0 0 136px; width:136px; min-width:136px; overflow:hidden; }
.xh-agent-mode-toggle > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xh-agent-auto-select { flex:0 0 144px; width:144px; min-width:144px; }
.xh-agent-auto-select select { width:87px; min-width:0; max-width:none; }
.xh-agent-skills-toggle { flex:0 0 154px; width:154px; min-width:154px; max-width:154px; overflow:hidden; color:#edf6fb; border-color:rgba(168,223,255,.28); background:rgba(22,34,47,.94); font-weight:600; text-shadow:0 1px 10px rgba(168,223,255,.18); }
.xh-agent-skills-toggle > span { min-width:0; overflow:hidden; text-overflow:ellipsis; white-space:nowrap; color:#edf6fb; }
.xh-agent-skills-toggle[aria-expanded="true"] { color:#20d3df; border-color:rgba(32,211,223,.58); background:rgba(13,42,55,.96); }
.xh-agent-skills-toggle[aria-expanded="true"] > span { color:#b9f8fb; }
.xh-agent-skills-toggle b { color:#b8c8d5; font-size:12px; font-weight:500; }
.xh-agent-mode-menu,.xh-agent-skills-menu { position:absolute; z-index:1000; left:18px; bottom:61px; width:min(390px,calc(100% - 36px)); max-height:min(360px,calc(100vh - 126px)); overflow-y:auto; padding:14px; border:1px solid rgba(168,223,255,.24); border-radius:13px; background:rgba(7,19,33,.98); box-shadow:0 22px 60px rgba(0,0,0,.48); backdrop-filter:blur(20px); }
.xh-agent-menu-title { display:flex; align-items:center; justify-content:space-between; gap:12px; margin-bottom:10px; color:#e8eff5; font-size:12px; font-weight:600; }
.xh-agent-menu-title small { color:#778da0; font-size:10px; font-weight:400; }
.xh-agent-mode-menu { display:grid; grid-template-columns:1fr 1fr; gap:9px; }
.xh-agent-mode-menu .xh-agent-menu-title { grid-column:1/-1; }
.xh-agent-mode-menu label { display:grid; gap:5px; color:#879bad; font-size:10px; }
.xh-agent-mode-menu select { width:100%; height:34px; border:1px solid rgba(168,223,255,.19); border-radius:8px; padding:0 8px; color:#e8eff5; background:#0d2336; font-size:11px; outline:0; }
.xh-agent-mode-menu select:focus { border-color:var(--ice); }
.xh-agent-skills-menu { width:min(430px,calc(100% - 36px)); overscroll-behavior:contain; }
.xh-agent-skill-search { display:flex; align-items:center; gap:7px; height:32px; margin-bottom:9px; padding:0 9px; border:1px solid rgba(168,223,255,.16); border-radius:8px; color:#71879b; background:#0b2133; }
.xh-agent-skill-search svg { width:14px; height:14px; flex:0 0 auto; }
.xh-agent-skill-search input { min-width:0; flex:1; border:0; outline:0; color:#e8eff5; background:transparent; font:inherit; font-size:11px; }
.xh-agent-skill-search input::placeholder { color:#71879b; }
.xh-agent-skill-list { display:grid; grid-template-columns:1fr 1fr; gap:6px; max-height:232px; overflow-y:auto; padding-right:2px; }
.xh-agent-skill-item { display:grid; gap:3px; min-width:0; padding:9px 10px; border:1px solid rgba(168,223,255,.13); border-radius:9px; color:inherit; background:rgba(255,255,255,.025); text-align:left; cursor:pointer; }
.xh-agent-skill-item:hover,.xh-agent-skill-item:focus-visible { border-color:rgba(229,196,122,.50); background:rgba(229,196,122,.07); outline:0; }
.xh-agent-skill-item[aria-pressed="true"] { border-color:rgba(32,211,223,.62); background:rgba(32,211,223,.11); box-shadow:inset 0 0 0 1px rgba(32,211,223,.16); }
.xh-agent-skill-item strong,.xh-agent-skill-item small { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.xh-agent-skill-item strong { color:#f0f7fb; font-size:12px; }
.xh-agent-skill-item small { color:#9bb0c1; font-size:10px; }
.xh-agent-skill-empty { grid-column:1/-1; margin:5px 2px; color:#8398aa; font-size:11px; line-height:1.6; }
.xh-agent-skill-empty.is-error { color:#d5a972; }
.xh-agent-direction { display:grid; gap:5px; margin-top:10px; color:#879bad; font-size:10px; }
.xh-agent-direction select { width:100%; height:32px; border:1px solid rgba(168,223,255,.19); border-radius:8px; padding:0 8px; color:#e8eff5; background:#0d2336; font-size:11px; outline:0; }
.xh-agent-direction select:focus { border-color:var(--ice); }
.xh-agent-submit { position:absolute; right:18px; bottom:18px; width:38px; height:38px; min-width:0; padding:0; border:0; border-radius:50%; display:grid; place-items:center; color:#69717e; background:#3a404b; cursor:pointer; box-shadow:none; transition:transform .2s,color .2s,background .2s; }
.xh-agent-submit svg { width:20px; height:20px; }
.xh-agent-submit:hover { transform:translateY(-1px); color:#e2f6ff; background:#47505d; }

.xh-capabilities { position:relative; padding: 12px 52px 0 35px; background:linear-gradient(180deg,rgba(5,12,23,.96) 0%,#06101d 60%,#071321 100%); }
.xh-section-title { display:flex; align-items:center; gap:14px; margin-bottom:5px; padding-left:9px; }
.xh-section-title > span { position:relative; width:14px; height:18px; background:none; flex:0 0 14px; }
.xh-section-title > span::before { content:"✦"; position:absolute; left:0; top:-2px; color:var(--gold-soft); font-size:15px; text-shadow:0 0 12px rgba(217,183,110,.4); }
.xh-section-title h2 { margin:0; font-family:"Songti SC","STSong",serif; font-size:25px; line-height:1.15; letter-spacing:.08em; color:var(--ivory); }
.xh-section-title p { margin:2px 0 0; color:#718397; font-size:12px; }
.xh-section-title > a { margin-left:auto; display:flex; align-items:center; gap:6px; color:#94a7b8; font-size:13px; }
.xh-section-title > a svg { width:16px; }

.xh-feature-grid { display:grid; grid-template-columns:1.1fr .89fr 1.01fr; gap:16px; }
.xh-feature {
  position:relative;
  min-height:267px;
  overflow:hidden;
  border:1px solid var(--line);
  border-radius:14px;
  background:linear-gradient(145deg,rgba(14,31,50,.9),rgba(6,16,29,.94));
  box-shadow:0 16px 40px rgba(0,0,0,.16);
  transition:transform .22s,border-color .22s,box-shadow .22s;
}
.xh-feature:hover { transform:translateY(-4px); border-color:rgba(217,183,110,.42); box-shadow:0 24px 56px rgba(0,0,0,.26); }
.xh-feature-copy { position:relative; z-index:3; padding:23px 24px; }
.xh-feature-copy > span { display:none; color:#678098; font-size:9px; letter-spacing:.16em; }
.xh-feature h3 { margin:0 0 6px; font-family:"Songti SC","STSong",serif; font-size:28px; line-height:1.15; letter-spacing:.05em; }
.xh-feature p { margin:0; color:#8fa0b2; font-size:12px; }
.xh-enter { position:absolute; z-index:4; right:18px; bottom:16px; display:none; align-items:center; gap:6px; color:#b7c5d2; font-size:12px; font-weight:500; }
.xh-enter svg { width:15px; }

.xh-restyle-preview { position:absolute; inset:0; }
.xh-restyle-before,.xh-restyle-after { position:absolute; inset:0; background-size:cover; background-position:center; }
.xh-restyle-before { clip-path:polygon(0 0,52% 0,52% 100%,0 100%);  filter:saturate(.58) brightness(.70) contrast(1.03); }
.xh-restyle-after { clip-path:polygon(52% 0,100% 0,100% 100%,52% 100%);  filter:saturate(.95) brightness(.82) contrast(1.02); }
.xh-restyle-preview::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,rgba(4,10,18,.15) 0%,transparent 48%,rgba(3,9,17,.30) 100%); }
.xh-restyle-preview > i { position:absolute; z-index:2; top:0; bottom:0; left:52%; width:1px; background:rgba(218,237,249,.68); }
.xh-restyle-preview > i b { position:absolute; top:76%; left:50%; width:28px; height:28px; border:1px solid rgba(255,255,255,.82); border-radius:50%; background:rgba(5,12,22,.64); transform:translate(-50%,-50%); box-shadow:0 0 12px rgba(168,223,255,.18); }
.xh-restyle-preview small { position:absolute; z-index:2; bottom:18px; color:#a6b4c1; font-size:8px; letter-spacing:.12em; }
.xh-restyle-preview small:nth-of-type(1) { left:22px; }
.xh-restyle-preview small:nth-of-type(2) { right:22px; }

.xh-node-map { position:absolute; inset:92px 18px 23px; }
.xh-flow-lines { position:absolute; inset:0; width:100%!important; height:100%!important; overflow:visible; }
.xh-flow-lines path { fill:none; stroke:rgba(218,177,77,.88); stroke-width:1.25; vector-effect:non-scaling-stroke; }
.xh-flow-node { position:absolute; min-height:48px; display:flex; flex-direction:column; justify-content:center; gap:4px; padding:7px 9px; border:1px solid rgba(168,223,255,.20); border-radius:5px; background:linear-gradient(145deg,rgba(11,30,48,.92),rgba(7,18,31,.96)); box-shadow:0 8px 20px rgba(0,0,0,.14); }
.xh-flow-node::after { content:""; position:absolute; right:-14px; top:50%; width:4px; height:4px; margin-top:-2px; border-radius:50%; background:var(--gold); box-shadow:0 0 8px var(--gold); }
.xh-flow-node strong { color:#c3ced8; font-size:10px; font-weight:500; line-height:1; white-space:nowrap; }
.xh-flow-node small { color:#73869a; font-size:8px; white-space:nowrap; }
.xh-flow-script { left:0; top:18px; width:98px; }
.xh-flow-assets { left:0; bottom:1px; width:98px; }
.xh-flow-storyboard { left:36%; top:54px; width:96px; }
.xh-flow-image { right:5px; top:0; width:105px; }
.xh-flow-image::after,.xh-flow-export::after { display:none; }
.xh-flow-thumb { position:absolute; right:57px; top:58px; width:67px; height:49px; border:1px solid rgba(168,223,255,.22); border-radius:5px; background:linear-gradient(180deg,rgba(3,9,17,.05),rgba(3,9,17,.18)),var(--hs-deferred-image, none) center/cover; box-shadow:0 5px 16px rgba(0,0,0,.22); }
.xh-flow-export { right:0; bottom:0; width:98px; }

.xh-score { position:absolute; top:16px; right:24px; width:54px; height:54px; border:2px solid var(--gold); border-left-color:rgba(217,183,110,.2); border-radius:50%; display:grid; place-items:center; }
.xh-score strong { font-size:19px; }.xh-score small { position:absolute; top:57px; width:70px; text-align:center; color:#6f8295; font-size:8px; }
.xh-review-preview { position:absolute; left:0; right:0; top:109px; bottom:0; overflow:hidden; }
.xh-review-markers { height:35px; display:grid; grid-template-columns:repeat(3,1fr); padding:0 34px 0 40px; align-items:start; color:#8192a4; font-size:8px; }
.xh-review-markers span { position:relative; text-align:center; white-space:nowrap; }
.xh-review-markers span::after { content:""; position:absolute; top:18px; left:50%; width:1px; height:17px; background:rgba(168,223,255,.30); }
.xh-review-markers i { display:inline-block; width:7px; height:7px; margin-right:6px; border-radius:2px; background:#9ed9fa; box-shadow:0 0 7px rgba(158,217,250,.4); }
.xh-review-markers span:nth-child(2) i { background:#e4ad55; }.xh-review-markers span:nth-child(3) i { background:#d58b43; }
.xh-review-film { height:62px;  background-size:cover; background-position:center 42%; border-top:1px solid rgba(168,223,255,.12); border-bottom:1px solid rgba(168,223,255,.12); filter:saturate(.78) brightness(.78); }
.xh-review-wave { height:22px; opacity:.55; background:repeating-linear-gradient(90deg,transparent 0 2px,rgba(134,169,197,.62) 2px 3px,transparent 3px 5px),linear-gradient(180deg,transparent 48%,rgba(143,181,211,.38) 49%,rgba(143,181,211,.38) 51%,transparent 52%); clip-path:polygon(0 45%,2% 27%,4% 55%,6% 17%,8% 74%,10% 35%,12% 62%,14% 18%,16% 68%,18% 35%,20% 52%,22% 22%,24% 73%,26% 34%,28% 58%,30% 16%,32% 68%,34% 31%,36% 56%,38% 25%,40% 73%,42% 32%,44% 55%,46% 19%,48% 71%,50% 33%,52% 60%,54% 20%,56% 68%,58% 30%,60% 56%,62% 18%,64% 72%,66% 33%,68% 58%,70% 24%,72% 67%,74% 35%,76% 55%,78% 18%,80% 70%,82% 32%,84% 57%,86% 22%,88% 71%,90% 34%,92% 58%,94% 18%,96% 69%,98% 32%,100% 48%,100% 100%,0 100%); }
.xh-review-preview > small { position:absolute; bottom:7px; color:#65788c; font-size:8px; }.xh-time-start{left:14px}.xh-time-end{right:14px}

.xh-tool-strip { margin-top:14px; min-height:84px; display:grid; grid-template-columns:repeat(6,1fr); border:1px solid var(--line); border-radius:14px; background:rgba(7,19,33,.72); }
.xh-tool-strip a { display:flex; align-items:center; justify-content:center; gap:14px; padding:16px; position:relative; transition:background .2s; }
.xh-tool-strip a + a::before { content:""; position:absolute; left:0; top:22px; bottom:22px; width:1px; background:var(--line); }
.xh-tool-strip a:hover { background:rgba(168,223,255,.04); }
.xh-tool-strip svg { width:26px; height:26px; flex:0 0 26px; color:var(--gold-soft); }
.xh-tool-strip span { display:flex; flex-direction:column; gap:4px; }
.xh-tool-strip strong { font-size:14px; font-weight:600; color:#dfe8ef; white-space:nowrap; }
.xh-tool-strip small { color:#718397; font-size:10px; }
.xh-tool-strip a:nth-child(7)::before { display:none; }

.xh-inspiration { padding:18px 52px 70px 35px; background:#071321; }
.xh-inspiration .xh-section-title { margin-bottom:8px; }
.xh-inspiration .xh-section-title > span { display:none; }
.xh-inspiration .xh-section-title p,.xh-inspiration .xh-section-title > a { display:none; }
.xh-inspiration .xh-section-title h2 { font-size:22px; }
.xh-projects { display:grid; grid-template-columns:276fr 274fr 249fr 227fr 281fr; gap:8px; }
.xh-project { position:relative; min-height:230px; overflow:hidden; border:1px solid var(--line); border-radius:10px; background-size:cover; background-position:center; transition:transform .22s,border-color .22s; }
.xh-project::after { content:""; position:absolute; inset:0; background:linear-gradient(180deg,transparent 25%,rgba(4,10,18,.88)); }
.xh-project:hover { border-color:rgba(217,183,110,.34); }
.xh-project > div { position:absolute; z-index:2; left:18px; right:18px; bottom:17px; }
.xh-project span { color:var(--gold-soft); font-size:8px; letter-spacing:.1em; }.xh-project h3{margin:5px 0 0;font-family:"Songti SC","STSong",serif;font-size:20px}.xh-project p{margin:7px 0 0;color:#a3b1be;font-size:11px}
.xh-project > b { position:absolute; z-index:3; right:14px; bottom:14px; width:34px; height:34px; display:grid; place-items:center; border:1px solid rgba(255,255,255,.3); border-radius:50%; background:rgba(5,12,22,.45); backdrop-filter:blur(8px); }
.xh-project-harbor{background-position:center 53%}
.xh-project-mountain{background-position:center 52%}
.xh-project-waterfall{background-position:center 48%}
.xh-project-woman{background-position:center 42%}
.xh-project-city{background-position:center 42%}

.xh-home-v6 footer { height:86px; display:flex; align-items:center; gap:22px; padding:0 35px; border-top:1px solid var(--line); background:#050c17; color:#6f8295; }
.xh-home-v6 footer strong { color:var(--gold-soft); letter-spacing:.12em; }.xh-home-v6 footer span{font-size:12px}.xh-home-v6 footer small{margin-left:auto;font-size:9px;letter-spacing:.16em}

@media (min-width: 2200px) {
  .xh-tool-strip{grid-template-columns:repeat(11,1fr)}
  .xh-tool-strip a:nth-child(7)::before{display:block}
}

@media (max-width: 1500px) {
  .xh-tool-strip{grid-template-columns:repeat(4,1fr)}
  .xh-tool-strip a:nth-child(5)::before,.xh-tool-strip a:nth-child(9)::before{display:none}
  .xh-tool-strip a:nth-child(7)::before{display:block}
}

@media (max-width: 1050px) {
  .xh-rail { width:76px; }.xh-page{margin-left:76px}.xh-header{padding-left:28px}.xh-brand small{display:none}.xh-topnav{display:none}
  .xh-account-action-group { gap:5px; }.xh-account-pill { padding:0 8px; font-size:11px; }.xh-account-pill .xh-account-icon { width:19px; height:19px; font-size:11px; }
  .xh-hero{min-height:620px;padding-left:40px}.xh-agent-stage{left:40px;right:40px;width:auto;transform:none}.xh-capabilities,.xh-inspiration{padding-left:40px;padding-right:40px}
  .xh-feature-grid{grid-template-columns:1fr 1fr}.xh-feature-review{grid-column:1/-1;min-height:238px}.xh-tool-strip{grid-template-columns:repeat(3,1fr)}.xh-tool-strip a:nth-child(4)::before,.xh-tool-strip a:nth-child(7)::before,.xh-tool-strip a:nth-child(10)::before{display:none}.xh-tool-strip a:nth-child(5)::before,.xh-tool-strip a:nth-child(9)::before{display:block}.xh-projects{grid-template-columns:repeat(3,1fr)}.xh-project-woman,.xh-project-city{display:none}
}

@media (max-width: 900px) {
  .xh-agent{height:224px}
  .xh-agent-toolbar{left:16px;right:66px;bottom:16px;flex-wrap:wrap}
  .xh-agent-chip{height:32px;padding:0 9px;font-size:11px}
  .xh-agent-select select{max-width:142px}
  .xh-agent-submit{right:16px;bottom:16px}
  .xh-agent-mode-menu,.xh-agent-skills-menu { bottom:57px; }
}

@media (max-width: 720px) {
  .xh-rail{position:fixed;z-index:40;left:0;right:0;top:auto;bottom:0;width:auto;height:66px;flex-direction:row;border-right:0;border-top:1px solid var(--line)}
  .xh-orbit,.xh-profile{display:none}.xh-rail nav{display:grid;grid-template-columns:repeat(5,1fr);width:100%;padding:0}.xh-rail nav a{height:66px;font-size:10px}.xh-rail nav a:nth-child(6){display:none}.xh-rail nav a.is-active::before{left:18px;right:18px;top:0;bottom:auto;width:auto;height:2px}
  .xh-page{margin-left:0;padding-bottom:66px}.xh-header{height:68px;padding:0 18px;gap:10px}.xh-brand{min-width:0}.xh-brand strong{font-size:22px}.xh-brand small{display:none}.xh-account{gap:6px}.xh-online{display:none}.xh-login{height:32px;padding:0 13px}.xh-account-action-group{gap:3px}.xh-account-pill{width:32px;height:32px;padding:0;justify-content:center}.xh-account-pill>span:not(.xh-account-icon){display:none}.xh-account-icon{width:20px!important;height:20px!important}.xh-account-avatar{height:32px}.xh-account-avatar>img,.xh-account-avatar>span:first-child{width:30px;height:30px}.xh-account-chevron{display:none}.xh-points-popover,.xh-profile-popover{right:-5px}.xh-profile-popover{width:min(310px,calc(100vw - 32px))}
  .xh-bg{height:800px;min-height:800px;background-size:100% 100%,100% 100%,auto 640px;background-position:center,center,62% top}.xh-hero{min-height:740px;padding:74px 20px 24px}.xh-kicker{display:block;font-size:9px}.xh-hero h1{font-size:56px;white-space:normal}.xh-hero h1 br{display:block}.xh-hero-copy p{font-size:14px;letter-spacing:.08em}
  .xh-agent-stage{left:18px;right:18px;bottom:26px;width:auto;transform:none}.xh-agent-stage>h2{margin-bottom:14px;font-size:20px}.xh-agent{height:268px;border-radius:22px}.xh-agent-add{left:20px;top:22px}.xh-agent textarea{left:88px;right:18px;width:calc(100% - 106px);height:100px}.xh-agent-toolbar{left:14px;right:14px;bottom:62px;flex-wrap:wrap}.xh-agent-chip{height:32px;padding:0 9px;font-size:11px}.xh-agent-select select{max-width:136px}.xh-agent-submit{right:16px;bottom:16px;width:38px}.xh-agent-submit:hover{transform:none}.xh-agent-mode-menu,.xh-agent-skills-menu{left:14px;width:calc(100% - 28px);bottom:56px}.xh-agent-mode-menu{grid-template-columns:1fr}.xh-agent-mode-menu .xh-agent-menu-title{grid-column:auto}.xh-agent-skill-list{grid-template-columns:1fr 1fr}
  .xh-capabilities,.xh-inspiration{padding-left:16px;padding-right:16px}.xh-capabilities{padding-top:30px}.xh-section-title p{display:none}.xh-feature-grid{grid-template-columns:1fr}.xh-feature-review{grid-column:auto}.xh-feature{min-height:250px}.xh-tool-strip{grid-template-columns:1fr 1fr}.xh-tool-strip a{justify-content:flex-start}.xh-tool-strip a:nth-child(even)::before{display:block}.xh-tool-strip a:nth-child(odd)::before{display:none}.xh-projects{grid-template-columns:1fr}.xh-project-mountain,.xh-project-waterfall,.xh-project-woman,.xh-project-city{display:none}.xh-home-v6 footer{padding:0 20px}.xh-home-v6 footer span{display:none}
}

@media (prefers-reduced-motion: reduce) {
  .xh-home-v6 *, .xh-home-v6 *::before, .xh-home-v6 *::after { scroll-behavior:auto!important; transition:none!important; }
}

/* Keep desktop rendering on the approved 2549px artboard and scale it as one unit. */
@media (min-width: 1501px) {
  .xh-home-v6.xh-desktop-reference {
    width: 2549px;
    max-width: none;
    zoom: var(--xh-reference-scale, 1);
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
  }
  .xh-home-v6.xh-desktop-reference .xh-bg {
    height: 878px;
    background-image:
      linear-gradient(90deg, rgba(4,10,20,.76) 0%, rgba(4,10,20,.42) 35%, rgba(4,10,20,.08) 66%, rgba(4,10,20,.26) 100%),
      linear-gradient(180deg, rgba(4,10,20,.16) 0%, rgba(4,10,20,.10) 62%, #050c17 100%),
      url('/haisen-home-assets/xinghe-home-hero-midnight-wide-v2-h2.webp');
    background-size: 100% 100%, 100% 100%, 2549px auto;
    background-position: center, center, 433px -268px;
  }
  .xh-home-v6.xh-desktop-reference .xh-bg::before {
    content: "";
    position: absolute;
    left: 110px;
    top: 0;
    width: 323px;
    height: 878px;
    background-image:
      linear-gradient(180deg, rgba(4,10,20,.12) 0%, rgba(4,10,20,.08) 62%, #050c17 100%),
      url('/haisen-home-assets/xinghe-home-hero-midnight-wide-v2-h2.webp');
    background-size: 100% 100%, 2549px auto;
    background-position: center, left -268px;
    background-repeat: no-repeat;
    opacity: .82;
    transform: scaleX(-1);
    transform-origin: center;
  }
  .xh-home-v6.xh-desktop-reference .xh-bg::after { z-index: 1; }
  .xh-home-v6.xh-desktop-reference .xh-hero { min-height: 658px; }
  .xh-home-v6.xh-desktop-reference .xh-tool-strip {
    grid-template-columns: repeat(11, 1fr);
    min-height: 118px;
  }
  .xh-home-v6.xh-desktop-reference .xh-tool-strip a + a::before {
    display: block;
  }

  /* Compensate for the scaled 2549px artboard so desktop copy stays crisp. */
  .xh-home-v6.xh-desktop-reference .xh-rail nav a,
  .xh-home-v6.xh-desktop-reference .xh-profile {
    color: #aebcca;
    font-size: 16px;
    font-weight: 500;
  }
  .xh-home-v6.xh-desktop-reference .xh-rail nav a svg,
  .xh-home-v6.xh-desktop-reference .xh-profile svg { width: 22px; height: 22px; }
  .xh-home-v6.xh-desktop-reference .xh-topnav {
    color: #c5d0da;
    font-size: 17px;
    font-weight: 500;
  }
  .xh-home-v6.xh-desktop-reference .xh-online,
  .xh-home-v6.xh-desktop-reference .xh-login { font-size: 17px; font-weight: 500; }
  .xh-home-v6.xh-desktop-reference .xh-account-action-group { gap: 10px; }
  .xh-home-v6.xh-desktop-reference .xh-account-pill {
    height: 42px;
    padding: 0 14px;
    font-size: 18px;
    font-weight: 500;
  }
  .xh-home-v6.xh-desktop-reference .xh-account-icon { width: 25px; height: 25px; font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-account-avatar { height: 42px; }
  .xh-home-v6.xh-desktop-reference .xh-account-avatar > img,
  .xh-home-v6.xh-desktop-reference .xh-account-avatar > span:first-child { width: 40px; height: 40px; font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-account-chevron { font-size: 14px; }
  .xh-home-v6.xh-desktop-reference .xh-points-popover strong { font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-points-popover small { color: #93a6b8; font-size: 14px; }
  .xh-home-v6.xh-desktop-reference .xh-points-popover a { font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-profile-summary strong { font-size: 18px; }
  .xh-home-v6.xh-desktop-reference .xh-profile-summary small { color: #a5b6c4; font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-profile-account-summary span,
  .xh-home-v6.xh-desktop-reference .xh-profile-meta { color: #94a8b9; font-size: 14px; }
  .xh-home-v6.xh-desktop-reference .xh-profile-account-summary strong { font-size: 19px; }
  .xh-home-v6.xh-desktop-reference .xh-profile-account-summary small { color: #8fa4b6; font-size: 13px; }
  .xh-home-v6.xh-desktop-reference .xh-profile-popover nav a,
  .xh-home-v6.xh-desktop-reference .xh-profile-logout,
  .xh-home-v6.xh-desktop-reference .xh-profile-theme { font-size: 16px; }
  .xh-home-v6.xh-desktop-reference .xh-profile-theme strong { font-size: 14px; }
  .xh-home-v6.xh-desktop-reference .xh-hero-copy p { color: #c5d2dd; font-size: 19px; }
  .xh-home-v6.xh-desktop-reference .xh-agent textarea { font-size: 17px; }
  .xh-home-v6.xh-desktop-reference .xh-agent textarea::placeholder { color: #9aa9b6; }
  .xh-home-v6.xh-desktop-reference .xh-agent-chip { height: 40px; font-size: 16px; font-weight: 500; }
  .xh-home-v6.xh-desktop-reference .xh-agent-status { color: #9bb0bf; font-size: 13px; }
  .xh-home-v6.xh-desktop-reference .xh-agent-menu-title { font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-agent-menu-title small,
  .xh-home-v6.xh-desktop-reference .xh-agent-mode-menu label,
  .xh-home-v6.xh-desktop-reference .xh-agent-direction { color: #9bafbf; font-size: 13px; }
  .xh-home-v6.xh-desktop-reference .xh-agent-mode-menu select,
  .xh-home-v6.xh-desktop-reference .xh-agent-direction select,
  .xh-home-v6.xh-desktop-reference .xh-agent-skill-search input { font-size: 14px; }
  .xh-home-v6.xh-desktop-reference .xh-agent-skill-item strong { font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-agent-skill-item small { color: #afbfcc; font-size: 13px; }
  .xh-home-v6.xh-desktop-reference .xh-section-title p { color: #9fb0c0; font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-feature p { color: #adbbc7; font-size: 15px; }
  .xh-home-v6.xh-desktop-reference .xh-restyle-preview small { font-size: 12px; }
  .xh-home-v6.xh-desktop-reference .xh-flow-node strong { color: #d5dfe7; font-size: 14px; }
  .xh-home-v6.xh-desktop-reference .xh-flow-node small { color: #92a6b7; font-size: 12px; }
  .xh-home-v6.xh-desktop-reference .xh-score small,
  .xh-home-v6.xh-desktop-reference .xh-review-markers,
  .xh-home-v6.xh-desktop-reference .xh-review-preview > small { color: #91a4b5; font-size: 12px; }
  .xh-home-v6.xh-desktop-reference .xh-tool-strip svg { width: 28px; height: 28px; flex-basis: 28px; }
  .xh-home-v6.xh-desktop-reference .xh-tool-strip strong { font-size: 17px; }
  .xh-home-v6.xh-desktop-reference .xh-tool-strip small {
    color: #a8bac9;
    font-size: 16px !important;
    line-height: 1.35 !important;
  }
  .xh-home-v6.xh-desktop-reference .xh-project span { font-size: 12px; }
  .xh-home-v6.xh-desktop-reference .xh-project p { color: #b4c1cb; font-size: 14px; }
  .xh-home-v6.xh-desktop-reference footer span { font-size: 15px; }
  .xh-home-v6.xh-desktop-reference footer small { font-size: 12px; }
}

html[data-xh-theme="midnight"] {
  color-scheme: dark;
  --xh-ink: #040a14;
  --xh-navy: #071321;
  --xh-panel: #0a1a2a;
  --xh-control: #0e2437;
  --xh-line: rgba(177, 211, 240, .17);
  --xh-line-strong: rgba(197, 224, 246, .30);
  --xh-ivory: #f3ead9;
  --xh-text: #e8eff5;
  --xh-muted: #8ca0b4;
  --xh-gold: #e5c47a;
  --xh-ice: #9fdcff;
  --mh-night-bg: var(--xh-ink);
  --mh-night-surface: var(--xh-panel);
  --mh-night-control: var(--xh-control);
  --mh-night-border: var(--xh-line);
  --mh-night-text: var(--xh-text);
  --mh-night-muted: var(--xh-muted);
}

html[data-xh-theme="midnight"] body,
html[data-xh-theme="midnight"] #root,
html[data-xh-theme="midnight"] .xh-themed-page,
html[data-xh-theme="midnight"] .mh-workbench-shell,
html[data-xh-theme="midnight"] .mh-workbench-content {
  background-color: var(--xh-ink) !important;
  color: var(--xh-text);
}

html[data-xh-theme="midnight"] body {
  background-image:
    radial-gradient(circle at 72% -10%, rgba(70, 130, 175, .13), transparent 34%),
    linear-gradient(180deg, #040a14, #071321 62%, #050c17) !important;
  background-attachment: fixed !important;
}

html[data-xh-theme="midnight"] .mh-workbench-shell > header,
html[data-xh-theme="midnight"] .xh-script-page > header,
html[data-xh-theme="midnight"] header[class*="fixed"][class*="top-0"] {
  border-color: var(--xh-line) !important;
  background: rgba(4, 10, 20, .90) !important;
  box-shadow: 0 12px 36px rgba(0, 0, 0, .20) !important;
  backdrop-filter: blur(18px) !important;
}

html[data-xh-theme="midnight"] .mh-workbench-shell aside,
html[data-xh-theme="midnight"] .xh-script-page aside {
  border-color: var(--xh-line) !important;
  background: rgba(5, 13, 23, .92) !important;
}

html[data-xh-theme="midnight"] .mh-card,
html[data-xh-theme="midnight"] .mh-user-center-hero,
html[data-xh-theme="midnight"] .mh-user-center-hero-fill,
html[data-xh-theme="midnight"] .mh-points-page section {
  border-color: var(--xh-line) !important;
  background-color: rgba(9, 24, 40, .80) !important;
  box-shadow: 0 18px 46px rgba(0, 0, 0, .20) !important;
}

html[data-xh-route="tasks"] .mh-workbench-content > div,
html[data-xh-route="asset"] .mh-workbench-content > div,
html[data-xh-route="user"] .mh-workbench-content > div,
html[data-xh-route="workflow"] .mh-workbench-content > div,
html[data-xh-route="app"] .mh-workbench-content > div {
  background-color: transparent !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="tasks"] .mh-workbench-content [class~="bg-white"],
html[data-xh-route="tasks"] .mh-workbench-content [class~="bg-slate-50"],
html[data-xh-route="tasks"] .mh-workbench-content [class~="bg-[#f7f9fc]"],
html[data-xh-route="tasks"] .mh-workbench-content [class~="bg-[#1f1f1f]"],
html[data-xh-route="asset"] .mh-workbench-content [class~="bg-white"],
html[data-xh-route="asset"] .mh-workbench-content [class~="bg-[#f8fafc]"],
html[data-xh-route="user"] .mh-workbench-content [class~="bg-white"],
html[data-xh-route="user"] .mh-workbench-content [class~="bg-gray-50"],
html[data-xh-route="user"] .mh-workbench-content [class~="bg-[#edf3f8]"] {
  background-color: rgba(9, 24, 40, .84) !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="tasks"] .mh-workbench-content [class~="border-slate-100"],
html[data-xh-route="tasks"] .mh-workbench-content [class~="border-slate-200"],
html[data-xh-route="tasks"] .mh-workbench-content [class~="border-[#383838]"],
html[data-xh-route="asset"] .mh-workbench-content [class~="border-slate-100"],
html[data-xh-route="asset"] .mh-workbench-content [class~="border-slate-200"],
html[data-xh-route="user"] .mh-workbench-content [class~="border-gray-100"],
html[data-xh-route="user"] .mh-workbench-content [class~="border-gray-200"],
html[data-xh-route="user"] .mh-workbench-content [class~="border-gray-300"] {
  border-color: var(--xh-line) !important;
}

html[data-xh-route="tasks"] .mh-workbench-content [class~="text-slate-900"],
html[data-xh-route="asset"] .mh-workbench-content [class~="text-slate-900"],
html[data-xh-route="user"] .mh-workbench-content [class~="text-[#0f172a]"],
html[data-xh-route="user"] .mh-workbench-content [class~="text-[#1f2937]"],
html[data-xh-route="user"] .mh-workbench-content [class~="text-[#101a33]"] {
  color: var(--xh-text) !important;
}

html[data-xh-route="tasks"] .mh-workbench-content [class~="text-[#7890b3]"],
html[data-xh-route="asset"] .mh-workbench-content [class~="text-[#607089]"],
html[data-xh-route="user"] .mh-workbench-content [class~="text-[#4b5d7b]"] {
  color: var(--xh-muted) !important;
}

html[data-xh-route="user"] .mh-user-center-page,
html[data-xh-route="user"] .mh-points-page,
html[data-xh-route="user"] .mh-invite-page,
html[data-xh-route="user"] .mh-recharge-page {
  background-color: transparent !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="user"] .mh-points-page [class~="bg-white"],
html[data-xh-route="user"] .mh-points-page [class~="bg-slate-50"],
html[data-xh-route="user"] .mh-invite-page [class~="bg-[#eef1f5]"],
html[data-xh-route="user"] .mh-invite-page [class~="bg-[#f8f1dc]"],
html[data-xh-route="user"] .mh-invite-page [class~="bg-[#fffbed]"],
html[data-xh-route="user"] .mh-recharge-page [class~="bg-white"],
html[data-xh-route="user"] .mh-recharge-page [class~="bg-slate-50"],
html[data-xh-route="user"] .mh-recharge-modal-panel {
  background-color: rgba(9, 24, 40, .92) !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="user"] .mh-points-page [class~="border-slate-100"],
html[data-xh-route="user"] .mh-points-page [class~="border-slate-200"],
html[data-xh-route="user"] .mh-invite-page [class~="border-[#e0e5ed]"],
html[data-xh-route="user"] .mh-invite-page [class~="border-[#edf0f4]"],
html[data-xh-route="user"] .mh-invite-page [class~="border-[#dfe4ec]"],
html[data-xh-route="user"] .mh-recharge-page [class~="border-slate-100"],
html[data-xh-route="user"] .mh-recharge-page [class~="border-slate-200"],
html[data-xh-route="user"] .mh-recharge-modal-panel {
  border-color: var(--xh-line) !important;
}

html[data-xh-route="image"] .xh-themed-page,
html[data-xh-route="video"] .xh-themed-page {
  background-color: transparent !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="image"] [class~="bg-[#fafbfc]"],
html[data-xh-route="image"] [class~="bg-[#eef1f5]"],
html[data-xh-route="image"] [class~="bg-[#eef3ff]"],
html[data-xh-route="image"] [class~="bg-[#f1f4f8]"],
html[data-xh-route="image"] [class~="bg-[#f4f7fb]"],
html[data-xh-route="image"] [class~="bg-[#eff3ff]"],
html[data-xh-route="image"] [class~="bg-[#e8ddff]"],
html[data-xh-route="video"] [class~="bg-[#fafbfc]"],
html[data-xh-route="video"] [class~="bg-[#eef1f5]"],
html[data-xh-route="video"] [class~="bg-[#eef3ff]"],
html[data-xh-route="video"] [class~="bg-[#f1f4f8]"],
html[data-xh-route="video"] [class~="bg-[#f4f7fb]"],
html[data-xh-route="video"] [class~="bg-[#eff3ff]"],
html[data-xh-route="video"] [class~="bg-[#e8ddff]"] {
  background-color: rgba(9, 24, 40, .88) !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="image"] [class~="border-[#d7dee9]"],
html[data-xh-route="image"] [class~="border-[#e2e6ee]"],
html[data-xh-route="image"] [class~="border-[#cfd7e4]"],
html[data-xh-route="image"] [class~="border-[#dfe5ee]"],
html[data-xh-route="video"] [class~="border-[#d7dee9]"],
html[data-xh-route="video"] [class~="border-[#e2e6ee]"],
html[data-xh-route="video"] [class~="border-[#cfd7e4]"],
html[data-xh-route="video"] [class~="border-[#dfe5ee]"] {
  border-color: var(--xh-line) !important;
}

html[data-xh-route="image"] [class~="text-[#1d2838]"],
html[data-xh-route="image"] [class~="text-[#1f2a3b]"],
html[data-xh-route="image"] [class~="text-[#0f172a]"],
html[data-xh-route="video"] [class~="text-[#1d2838]"],
html[data-xh-route="video"] [class~="text-[#1f2a3b]"],
html[data-xh-route="video"] [class~="text-[#0f172a]"] {
  color: var(--xh-text) !important;
}

html[data-xh-theme="midnight"]:not([data-xh-route="canvas"]) input:is(:not([type]),[type="text"],[type="password"],[type="email"],[type="tel"],[type="search"],[type="url"],[type="number"],[type="date"],[type="datetime-local"],[type="time"]),
html[data-xh-theme="midnight"]:not([data-xh-route="canvas"]) textarea,
html[data-xh-theme="midnight"]:not([data-xh-route="canvas"]) select {
  border-color: var(--xh-line) !important;
  background-color: rgba(8, 23, 38, .88) !important;
  color: var(--xh-text) !important;
}

html[data-xh-theme="midnight"]:not([data-xh-route="canvas"]) input:is(:not([type]),[type="text"],[type="password"],[type="email"],[type="tel"],[type="search"],[type="url"],[type="number"])::placeholder,
html[data-xh-theme="midnight"]:not([data-xh-route="canvas"]) textarea::placeholder { color: #72879b !important; }

html[data-xh-theme="midnight"]:not([data-xh-route="canvas"]) input:is(:not([type]),[type="text"],[type="password"],[type="email"],[type="tel"],[type="search"],[type="url"],[type="number"],[type="date"],[type="datetime-local"],[type="time"]):focus,
html[data-xh-theme="midnight"]:not([data-xh-route="canvas"]) textarea:focus,
html[data-xh-theme="midnight"]:not([data-xh-route="canvas"]) select:focus {
  border-color: rgba(159, 220, 255, .62) !important;
  box-shadow: 0 0 0 3px rgba(112, 192, 238, .10) !important;
  outline: none !important;
}

html[data-xh-theme="midnight"] a:focus-visible,
html[data-xh-theme="midnight"] button:focus-visible {
  outline: 2px solid var(--xh-ice) !important;
  outline-offset: 2px;
}

html[data-xh-route="login"] .xh-login-page {
  background:
    linear-gradient(90deg, rgba(4, 10, 20, .22), rgba(4, 10, 20, .84)),
    radial-gradient(circle at 25% 35%, rgba(58, 121, 164, .20), transparent 36%),
    var(--xh-ink) !important;
}

html[data-xh-route="login"] .xh-login-card {
  border: 1px solid var(--xh-line) !important;
  border-radius: 24px !important;
  background: rgba(8, 22, 37, .88) !important;
  color: var(--xh-text) !important;
  box-shadow: 0 30px 90px rgba(0, 0, 0, .42) !important;
  backdrop-filter: blur(24px);
}

html[data-xh-route="login"] .xh-login-card :is(h1, h2, h3, strong) {
  color: var(--xh-text) !important;
}

html[data-xh-route="login"] .xh-login-card div[class~="bg-white"] {
  border-color: var(--xh-line) !important;
  background: rgba(6, 18, 31, .94) !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="login"] .xh-login-card button[class~="bg-white"] {
  border-color: rgba(210, 230, 244, .38) !important;
  background: linear-gradient(135deg, var(--xh-gold), var(--xh-ice)) !important;
  color: #06111d !important;
  box-shadow: 0 8px 24px rgba(91, 182, 224, .16) !important;
}

html[data-xh-route="login"] .xh-login-page [class~="bg-[#f7f8fa]"],
html[data-xh-route="login"] .xh-login-page [class~="bg-[#eef0f3]"],
html[data-xh-route="login"] .xh-login-page [class~="bg-[#1b202a]"] {
  border-color: var(--xh-line) !important;
  background-color: rgba(8, 22, 37, .90) !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="login"] .xh-login-page [class~="text-[#12151d]"],
html[data-xh-route="login"] .xh-login-page [class~="text-[#202124]"] {
  color: var(--xh-text) !important;
}

html[data-xh-route="login"] .xh-login-page [class~="border-[#e1e5eb]"],
html[data-xh-route="login"] .xh-login-page [class~="border-[#d8dde5]"],
html[data-xh-route="login"] .xh-login-page [class~="border-[#edf0f4]"] {
  border-color: var(--xh-line) !important;
}

html[data-xh-route="script"] .xh-script-page {
  background-color: transparent !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="script"] .xh-script-page [class~="bg-white/95"],
html[data-xh-route="script"] .xh-script-page [class~="bg-white/94"],
html[data-xh-route="script"] .xh-script-page [class~="bg-white"],
html[data-xh-route="script"] .xh-script-page [class~="bg-[#f7f9fc]/96"],
html[data-xh-route="script"] .xh-script-page [class~="bg-[#f7f9fc]"] {
  background-color: rgba(7, 19, 33, .94) !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="script"] .xh-script-page [class~="bg-[#eef1f7]"],
html[data-xh-route="script"] .xh-script-page [class~="bg-[#eef1f6]"],
html[data-xh-route="script"] .xh-script-page [class~="bg-[#f0f3f7]"],
html[data-xh-route="script"] .xh-script-page [class~="bg-[#f3f5f8]"] {
  background-color: rgba(15, 39, 58, .92) !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="script"] .xh-script-page [class~="border-[#edf1f6]"],
html[data-xh-route="script"] .xh-script-page [class~="border-[#e3e8ef]"],
html[data-xh-route="script"] .xh-script-page [class~="border-[#e3e8f0]"],
html[data-xh-route="script"] .xh-script-page [class~="border-[#e4e9f0]"],
html[data-xh-route="script"] .xh-script-page [class~="border-[#dfe5ed]"] {
  border-color: var(--xh-line) !important;
}

html[data-xh-route="script"] .xh-script-page [class~="text-[#111827]"],
html[data-xh-route="script"] .xh-script-page [class~="text-[#172033]"],
html[data-xh-route="script"] .xh-script-page [class~="text-[#344054]"] {
  color: var(--xh-text) !important;
}

html[data-xh-route="user"] .mh-user-center-hero,
html[data-xh-route="user"] .mh-user-center-hero-fill {
  background-image: linear-gradient(135deg, rgba(12, 39, 61, .94), rgba(7, 20, 35, .94)) !important;
}

html[data-xh-route="canvas"] .mh-infinite-canvas-ui,
html[data-xh-route="canvas"] .mh-canvas-no-native-selection {
  --background: var(--xh-ink);
  --foreground: var(--xh-text);
  --border: var(--xh-line);
}

/* Canvas chrome: keep the navy shell and graphite work area in one continuous surface. */
html[data-xh-route="canvas"],
html[data-xh-route="canvas"] body,
html[data-xh-route="canvas"] #root {
  background-color: #151a20 !important;
}

html[data-xh-route="canvas"] body {
  background-image: linear-gradient(180deg, #071321 0, #0c1825 88px, #121a21 190px, #151a20 320px) !important;
  background-attachment: fixed !important;
}

html[data-xh-route="canvas"] .mh-infinite-canvas-ui,
html[data-xh-route="canvas"] .mh-canvas-no-native-selection {
  background-color: #151a20 !important;
  background-image: linear-gradient(180deg, rgba(7, 19, 33, .64) 0, rgba(18, 26, 33, .24) 150px, rgba(21, 26, 32, 0) 300px) !important;
}

html[data-xh-route="canvas"] [data-top-shell] {
  min-height: 76px;
  border-bottom-color: rgba(177, 211, 240, .20) !important;
  background: linear-gradient(180deg, rgba(7, 19, 33, .98) 0%, rgba(10, 24, 38, .96) 62%, rgba(18, 29, 38, .90) 100%) !important;
  box-shadow: 0 14px 36px rgba(4, 10, 20, .22) !important;
}

html[data-xh-route="canvas"] [data-top-shell] > div:first-child {
  background: transparent !important;
}

html[data-xh-route="canvas"] [data-bottom-shell] {
  background: rgba(17, 25, 33, .94) !important;
}

html[data-xh-route="canvas"] [data-top-shell],
html[data-xh-route="canvas"] [data-bottom-shell],
html[data-xh-route="canvas"] [data-canvas-sidebar],
html[data-xh-route="canvas"] [data-asset-panel],
html[data-xh-route="canvas"] [data-workflow-panel],
html[data-xh-route="canvas"] [data-history-panel],
html[data-xh-route="canvas"] [data-menu-panel],
html[data-xh-route="canvas"] [data-mini-map-panel],
html[data-xh-route="canvas"] [data-selection-toolbar],
html[data-xh-route="canvas"] [data-shortcut-panel],
html[data-xh-route="canvas"] [data-canvas-context-menu],
html[data-xh-route="canvas"] [data-prompt-model-menu],
html[data-xh-route="canvas"] [data-video-story-panel] {
  border-color: var(--xh-line) !important;
  background-color: rgba(7, 19, 33, .94) !important;
  color: var(--xh-text) !important;
}

html[data-xh-route="canvas"] :is([data-top-shell], [data-bottom-shell]) [class~="bg-white"],
html[data-xh-route="canvas"] :is([data-top-shell], [data-bottom-shell]) [class~="bg-[#34363a]"],
html[data-xh-route="canvas"] :is([data-top-shell], [data-bottom-shell]) [class~="bg-[#2f3033]"],
html[data-xh-route="canvas"] :is([data-top-shell], [data-bottom-shell]) [class~="bg-[#242426]/95"] {
  border-color: var(--xh-line) !important;
  background: rgba(7, 19, 33, .96) !important;
  color: var(--xh-text) !important;
  box-shadow: 0 14px 38px rgba(0, 0, 0, .30) !important;
}

html[data-xh-route="canvas"] :is([data-top-shell], [data-bottom-shell]) :is([class~="text-white"], [class~="text-[#202124]"], [class~="text-[#3c4043]"]) {
  color: var(--xh-text) !important;
}

html[data-xh-route="canvas"] [data-top-shell] #xh-global-brand {
  position: static;
  z-index: auto;
  flex: none;
  height: 40px;
  padding: 0 12px;
}

html[data-xh-theme="midnight"] .payment-qr,
html[data-xh-theme="midnight"] .mh-qr-surface { background: #fff !important; }

html[data-xh-theme="midnight"] .xh-account-panel,
html[data-xh-theme="midnight"] .xh-dialog-panel,
html[data-xh-theme="midnight"] .xh-announcement-dialog,
html[data-xh-theme="midnight"] .xh-points-panel {
  border-color: var(--xh-line) !important;
  background: rgba(7, 19, 33, .97) !important;
  color: var(--xh-text) !important;
  box-shadow: 0 28px 90px rgba(0, 0, 0, .52) !important;
}

html[data-xh-theme="midnight"] .xh-account-panel > div,
html[data-xh-theme="midnight"] .xh-dialog-panel > header,
html[data-xh-theme="midnight"] .xh-dialog-panel > footer,
html[data-xh-theme="midnight"] .xh-dialog-panel > aside,
html[data-xh-theme="midnight"] .xh-dialog-panel > main,
html[data-xh-theme="midnight"] .xh-announcement-dialog > header,
html[data-xh-theme="midnight"] .xh-announcement-dialog > footer,
html[data-xh-theme="midnight"] .xh-points-panel > div {
  border-color: var(--xh-line) !important;
  background-color: rgba(10, 27, 44, .86) !important;
  color: var(--xh-text) !important;
}

html[data-xh-theme="midnight"] .xh-account-panel [class~="text-[#7a8495]"],
html[data-xh-theme="midnight"] .xh-account-panel [class~="text-content-tertiary"],
html[data-xh-theme="midnight"] .xh-dialog-panel [class~="text-[#7b8492]"],
html[data-xh-theme="midnight"] .xh-announcement-dialog [class~="text-slate-400"] {
  color: var(--xh-muted) !important;
}

html[data-xh-theme="midnight"] .xh-customer-dialog [aria-label*="二维码"],
html[data-xh-theme="midnight"] .xh-customer-dialog [aria-label*="二维码"] img {
  background: #fff !important;
  color-scheme: normal;
}

html[data-xh-theme="midnight"] .payment-qr,
html[data-xh-theme="midnight"] .mh-qr-surface,
html[data-xh-theme="midnight"] canvas,
html[data-xh-theme="midnight"] video,
html[data-xh-theme="midnight"] img { color-scheme: normal; }

#xh-global-brand {
  position: fixed;
  z-index: 72;
  left: 20px;
  top: 16px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 15px;
  border: 1px solid rgba(229, 196, 122, .28);
  border-radius: 999px;
  color: var(--xh-gold, #e5c47a);
  background: rgba(4, 10, 20, .82);
  box-shadow: 0 12px 34px rgba(0, 0, 0, .24);
  backdrop-filter: blur(18px);
  text-decoration: none;
  pointer-events: none;
  user-select: none;
}

#xh-global-brand i {
  width: 23px;
  height: 11px;
  border: 1.5px solid currentColor;
  border-radius: 50%;
  transform: rotate(-18deg);
}

#xh-global-brand strong {
  font-family: "Songti SC", "STSong", serif;
  font-size: 18px;
  letter-spacing: .12em;
}

@media (max-width: 720px) {
  #xh-global-brand { left: 12px; top: 10px; height: 34px; padding: 0 11px; }
  #xh-global-brand strong { font-size: 15px; }
}

/*
 * 星晗文化统一设计系统 v2
 * 两套字体、五级文字层级、固定色板、8px 间距网格与统一组件。
 * 该文件只改变视觉，不改 DOM、事件、路由和业务状态。
 */
:root {
  color-scheme: dark;

  /* Typography: the entire product uses only these two stacks. */
  --xh-font-title: "Songti SC", serif;
  --xh-font-body: "Microsoft YaHei", sans-serif;
  --xh-type-display: 68px;
  --xh-type-page: 40px;
  --xh-type-section: 24px;
  --xh-type-card: 18px;
  --xh-type-body: 14px;
  --xh-type-caption: 12px;
  --xh-leading-tight: 1.2;
  --xh-leading-title: 1.35;
  --xh-leading-body: 1.65;
  --xh-leading-caption: 1.5;

  /* Brand and semantic colors. */
  --xh-color-brand: #e4c478;
  --xh-color-brand-hover: #f0d793;
  --xh-color-accent: #9edcff;
  --xh-color-accent-soft: #17334a;
  --xh-color-text: #edf3f7;
  --xh-color-text-2: #9aabba;
  --xh-color-text-3: #6f8294;
  --xh-color-disabled: #4c6072;
  --xh-color-success: #67d3aa;
  --xh-color-warning: #e5b65e;
  --xh-color-danger: #ef7b86;
  --xh-color-info: #8bd6ff;
  --xh-color-bg: #050b14;
  --xh-color-bg-2: #07121f;
  --xh-color-surface: #0a1928;
  --xh-color-surface-2: #0d2133;
  --xh-color-control: #0b1c2b;
  --xh-color-border: rgba(174, 207, 232, .16);
  --xh-color-border-strong: rgba(183, 219, 244, .30);
  --xh-color-overlay: rgba(1, 5, 11, .82);

  /* 8px spacing grid. */
  --xh-space-1: 4px;
  --xh-space-2: 8px;
  --xh-space-3: 12px;
  --xh-space-4: 16px;
  --xh-space-5: 24px;
  --xh-space-6: 32px;
  --xh-space-7: 48px;
  --xh-space-8: 64px;

  /* Components. */
  --xh-radius-control: 10px;
  --xh-radius-card: 16px;
  --xh-radius-panel: 20px;
  --xh-control-height: 40px;
  --xh-input-height: 44px;
  --xh-card-padding: 24px;
  --xh-shadow-card: 0 16px 42px rgba(0, 0, 0, .22);
  --xh-shadow-panel: 0 28px 72px rgba(0, 0, 0, .38);
  --xh-focus-ring: 0 0 0 3px rgba(158, 220, 255, .14);

  /* Compatibility aliases used by existing applications. */
  --xh-ink: var(--xh-color-bg);
  --xh-navy: var(--xh-color-bg-2);
  --xh-panel: var(--xh-color-surface);
  --xh-control: var(--xh-color-control);
  --xh-line: var(--xh-color-border);
  --xh-line-strong: var(--xh-color-border-strong);
  --xh-ivory: var(--xh-color-text);
  --xh-text: var(--xh-color-text);
  --xh-muted: var(--xh-color-text-2);
  --xh-gold: var(--xh-color-brand);
  --xh-ice: var(--xh-color-accent);
}

:root,
[data-theme="dark"] {
  --bg-base: var(--xh-color-bg);
  --bg-surface: var(--xh-color-surface);
  --bg-subtle: var(--xh-color-bg-2);
  --bg-elevated: var(--xh-color-surface-2);
  --border-default: var(--xh-color-border);
  --border-strong: var(--xh-color-border-strong);
  --border-subtle: rgba(174, 207, 232, .10);
  --text-primary: var(--xh-color-text);
  --text-secondary: var(--xh-color-text-2);
  --text-tertiary: var(--xh-color-text-3);
  --text-disabled: var(--xh-color-disabled);
  --brand-default: var(--xh-color-accent);
  --brand-hover: #c5eaff;
  --brand-active: #78c7f3;
  --brand-subtle: var(--xh-color-accent-soft);
  --brand-border: var(--xh-color-border-strong);
  --brand-on: #06111d;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .30);
  --shadow-md: var(--xh-shadow-card);
  --shadow-lg: var(--xh-shadow-panel);
  --focus-ring: var(--xh-focus-ring);
  --overlay-bg: var(--xh-color-overlay);
}

html:not([data-xh-route="canvas"]) body,
html:not([data-xh-route="canvas"]) button,
html:not([data-xh-route="canvas"]) input,
html:not([data-xh-route="canvas"]) textarea,
html:not([data-xh-route="canvas"]) select,
html:not([data-xh-route="canvas"]) table,
html:not([data-xh-route="canvas"]) label,
html:not([data-xh-route="canvas"]) .xh-home-v6 {
  font-family: var(--xh-font-body) !important;
}

/* Enforce the two-font rule without touching icon-font carriers. */
html:not([data-xh-route="canvas"]) :where(
  p, a, span, strong, em, small, label, li, dt, dd, th, td, caption,
  button, input, textarea, select, code, pre
):where(:not([class*="icon"])):where(:not([class^="fa-"])):where(:not([class*="material-symbol"])) {
  font-family: var(--xh-font-body) !important;
}

html[data-xh-route="canvas"] :is(
  [data-top-shell], [data-bottom-shell], [data-canvas-sidebar], [data-asset-panel],
  [data-workflow-panel], [data-history-panel], [data-menu-panel], [data-mini-map-panel],
  [data-selection-toolbar], [data-shortcut-panel], [data-canvas-context-menu],
  [data-prompt-model-menu], [data-video-story-panel]
),
html[data-xh-route="canvas"] :is(
  [data-top-shell], [data-bottom-shell], [data-canvas-sidebar], [data-asset-panel],
  [data-workflow-panel], [data-history-panel], [data-menu-panel], [data-mini-map-panel]
) :is(button, input, textarea, select) {
  font-family: var(--xh-font-body) !important;
}

html:not([data-xh-route="canvas"]) :is(h1, h2, h3, h4, h5, h6),
.xh-home-v6 :is(h1, h2, h3),
.xh-brand strong,
.top-brand,
.brand,
#xh-global-brand strong {
  font-family: var(--xh-font-title) !important;
  color: var(--xh-color-text);
}

html:not([data-xh-route="canvas"]) :is(h1, h2, h3, h4, h5, h6) :is(span, strong, em),
.brand > span,
.top-brand > span,
#xh-global-brand strong {
  font-family: var(--xh-font-title) !important;
}

html:not([data-xh-route="canvas"]) h1 {
  margin-block: 0 var(--xh-space-5);
  font-size: var(--xh-type-page) !important;
  font-weight: 700 !important;
  line-height: var(--xh-leading-tight) !important;
  letter-spacing: .02em !important;
}

html:not([data-xh-route="canvas"]) h2 {
  margin-block: 0 var(--xh-space-4);
  font-size: var(--xh-type-section) !important;
  font-weight: 700 !important;
  line-height: var(--xh-leading-title) !important;
  letter-spacing: .03em !important;
}

html:not([data-xh-route="canvas"]) :is(h3, h4, h5, h6) {
  margin-block: 0 var(--xh-space-3);
  font-size: var(--xh-type-card) !important;
  font-weight: 600 !important;
  line-height: var(--xh-leading-title) !important;
  letter-spacing: .01em !important;
}

html:not([data-xh-route="canvas"]) :is(p, li, td, th, label),
html:not([data-xh-route="canvas"]) :is(button, input, textarea, select) {
  font-size: var(--xh-type-body);
  line-height: var(--xh-leading-body);
}

html:not([data-xh-route="canvas"]) :is(small, .meta, .caption, .helper, .hint, .eyebrow, .step-label) {
  font-size: var(--xh-type-caption) !important;
  line-height: var(--xh-leading-caption) !important;
  color: var(--xh-color-text-2);
}

html:not([data-xh-route="canvas"]) :is(
  input:not([type]),
  input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
  input[type="search"], input[type="url"], input[type="number"], input[type="date"],
  input[type="datetime-local"], input[type="time"], textarea, select,
  .form-input, .form-control, .input, .select, .ui-input, .search-box
) {
  border: 1px solid var(--xh-color-border) !important;
  border-radius: var(--xh-radius-control) !important;
  background: var(--xh-color-control) !important;
  color: var(--xh-color-text) !important;
  box-shadow: none !important;
}

html:not([data-xh-route="canvas"]) :is(
  input:not([type]),
  input[type="text"], input[type="password"], input[type="email"], input[type="tel"],
  input[type="search"], input[type="url"], input[type="number"], input[type="date"],
  input[type="datetime-local"], input[type="time"], select,
  .form-input, .form-control, .input, .select, .ui-input, .search-box
) {
  min-height: var(--xh-input-height);
  padding-inline: var(--xh-space-4);
}

html:not([data-xh-route="canvas"]) textarea { padding: var(--xh-space-3) var(--xh-space-4); }

html:not([data-xh-route="canvas"]) :is(
  input:not([type]), input[type="text"], input[type="password"], input[type="email"],
  input[type="tel"], input[type="search"], input[type="url"], input[type="number"],
  input[type="date"], input[type="datetime-local"], input[type="time"], textarea, select,
  .form-input, .form-control, .input, .select, .ui-input, .search-box
):focus,
html:not([data-xh-route="canvas"]) .search-box:focus-within {
  border-color: var(--xh-color-accent) !important;
  outline: none !important;
  box-shadow: var(--xh-focus-ring) !important;
}

html:not([data-xh-route="canvas"]) :is(
  input:not([type]), input[type="text"], input[type="password"], input[type="email"],
  input[type="tel"], input[type="search"], input[type="url"], input[type="number"], textarea
)::placeholder {
  color: var(--xh-color-text-3) !important;
  opacity: 1;
}

html:not([data-xh-route="canvas"]) :is(
  button, .btn, .button, .primary-button, .secondary-file-button,
  .export-button, .action-btn, .ui-btn-primary, .ui-btn-ghost
) {
  border-radius: var(--xh-radius-control) !important;
  font-weight: 500 !important;
  letter-spacing: 0 !important;
  transition: color .18s ease, background-color .18s ease, border-color .18s ease, transform .18s ease !important;
}

html:not([data-xh-route="canvas"]) :is(.btn-primary, .button.primary, .btn.primary, .btn.gold, .primary-button, .enter-btn, .action-btn.primary, .ui-btn-primary) {
  min-height: var(--xh-control-height);
  color: #06111d !important;
  background: linear-gradient(135deg, var(--xh-color-brand-hover), #cda651) !important;
  border: 1px solid rgba(245, 220, 158, .56) !important;
  box-shadow: 0 8px 22px rgba(184, 143, 55, .16) !important;
}

html:not([data-xh-route="canvas"]) :is(.btn-primary, .button.primary, .btn.primary, .btn.gold, .primary-button, .enter-btn, .action-btn.primary, .ui-btn-primary):hover {
  transform: translateY(-1px);
  filter: brightness(1.04);
}

html:not([data-xh-route="canvas"]) :is(.btn-outline, .button.secondary, .secondary-file-button, .export-button, .text-button, .action-btn, .ui-btn-ghost) {
  min-height: var(--xh-control-height);
  color: var(--xh-color-text) !important;
  background: var(--xh-color-control) !important;
  border: 1px solid var(--xh-color-border) !important;
  box-shadow: none !important;
}

html:not([data-xh-route="canvas"]) :is(button, a):focus-visible {
  outline: 2px solid var(--xh-color-accent) !important;
  outline-offset: 2px;
}

/* One card treatment shared across the main SPA and all independent apps. */
html:not([data-xh-route="canvas"]) :is(
  .mh-card, .xh-login-card, .xh-account-panel, .xh-dialog-panel, .xh-announcement-dialog, .xh-points-panel,
  .project-card, .profile-card, .detail-card, .billing-card, .redeem-card, .vcoin-card, .vcoin-records-shell,
  .upload-card, .pipeline-card, .model-picker, .result-panel, .standard-grid article, .tech-note,
  .metric-card, .toolbar, .character-card, .detail-panel, .modal, .login-notice, .asset-item, .empty-state,
  .panel, .metric, .order, .analysis div, .script, .ui-floating-panel
) {
  border: 1px solid var(--xh-color-border) !important;
  border-radius: var(--xh-radius-card) !important;
  background: var(--xh-color-surface) !important;
  color: var(--xh-color-text) !important;
  box-shadow: var(--xh-shadow-card) !important;
}

html:not([data-xh-route="canvas"]) :is(.mh-card, .upload-card, .pipeline-card, .model-picker, .metric-card, .detail-panel, .analysis div, .script, .tech-note) {
  padding: var(--xh-card-padding) !important;
}

html:not([data-xh-route="canvas"]) :is(.xh-account-panel, .xh-dialog-panel, .xh-announcement-dialog, .xh-points-panel, .modal, .notice-dialog) {
  border-radius: var(--xh-radius-panel) !important;
  background: var(--xh-color-surface) !important;
  box-shadow: var(--xh-shadow-panel) !important;
}

html:not([data-xh-route="canvas"]) :is(.project-card, .character-card, .asset-item, .order):hover {
  border-color: var(--xh-color-border-strong) !important;
  box-shadow: 0 20px 48px rgba(0, 0, 0, .30) !important;
}

html:not([data-xh-route="canvas"]) :is(.badge, .status, .status-pill, .tag, .demo-badge, .card-project, .project-tag, .episode-tag, .size-tag) {
  border: 1px solid rgba(158, 220, 255, .22) !important;
  border-radius: 999px !important;
  background: var(--xh-color-accent-soft) !important;
  color: #c7eaff !important;
  font-size: var(--xh-type-caption) !important;
  line-height: var(--xh-leading-caption) !important;
}

html:not([data-xh-route="canvas"]) :is(.top-account-bar, .topbar, .head, #root > header, .mh-workbench-shell > header) {
  border-color: var(--xh-color-border) !important;
  background: rgba(5, 11, 20, .92) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .20) !important;
  backdrop-filter: blur(18px) !important;
}

html:not([data-xh-route="canvas"]) :is(.sidebar, .mh-workbench-shell > aside) {
  border-color: var(--xh-color-border) !important;
  background: rgba(5, 11, 20, .94) !important;
}

:is(.top-brand, .brand, #xh-global-brand strong) {
  color: var(--xh-color-brand) !important;
  text-shadow: none !important;
}

:is(.page-header, .page-intro h1, .hero h1, .section-heading h2, .section-caption strong, .card-title-row h2, .detail-head h2) {
  color: var(--xh-color-text) !important;
}

:is(.muted, .secondary, .helper, .meta, .notice, .hero > p, .pipeline-item small, .finding p, .architecture-copy p) {
  color: var(--xh-color-text-2) !important;
}

/* Remove the competing grid decorations; keep one restrained cinematic glow. */
html:not([data-xh-route="canvas"])[data-xh-theme="midnight"] body,
html:not([data-xh-route="canvas"]) body:has(.top-account-bar),
html:not([data-xh-route="canvas"]) body:has(.topbar),
html:not([data-xh-route="canvas"]) body:has(.head) {
  background-color: var(--xh-color-bg) !important;
  background-image: radial-gradient(circle at 70% -12%, rgba(44, 99, 139, .18), transparent 38%) !important;
  background-size: auto !important;
  background-attachment: fixed !important;
}

/* Review Studio: replace inherited light-paper controls with the shared dark system. */
html:not([data-xh-route="canvas"]) body:has(.topbar) :is(.hero, .workspace, .report-section, .architecture) {
  width: min(calc(100% - 48px), 1320px);
  max-width: 1320px;
  margin-inline: auto;
  box-sizing: border-box;
}

html:not([data-xh-route="canvas"]) body:has(.topbar) :is(.back-home-link, .avatar, .model-picker button, .filters button) {
  color: var(--xh-color-text) !important;
  background: var(--xh-color-control) !important;
  border: 1px solid var(--xh-color-border) !important;
  box-shadow: none !important;
}

html:not([data-xh-route="canvas"]) body:has(.topbar) :is(.model-picker button.active, .filters button.active) {
  color: #06111d !important;
  background: linear-gradient(135deg, var(--xh-color-brand-hover), #cda651) !important;
  border-color: rgba(245, 220, 158, .56) !important;
}

html:not([data-xh-route="canvas"]) body:has(.topbar) .model-picker button small {
  color: var(--xh-color-text-2) !important;
}

html:not([data-xh-route="canvas"]) body:has(.topbar) .model-picker button.active small {
  color: #243746 !important;
}

html:not([data-xh-route="canvas"]) body:has(.topbar) :is(.score-row, .flow-step) {
  color: var(--xh-color-text) !important;
  background: var(--xh-color-surface) !important;
  border-color: var(--xh-color-border) !important;
}

html:not([data-xh-route="canvas"]) body:has(.topbar) .score-ring::before {
  background: var(--xh-color-surface) !important;
}

html:not([data-xh-route="canvas"]) body:has(.topbar) :is(.eyebrow span, .flow-step i) {
  color: #06111d !important;
  background: var(--xh-color-brand) !important;
}

/* Homepage typography and restrained card treatment. */
.xh-home-v6 {
  --ink: var(--xh-color-bg);
  --navy: var(--xh-color-bg-2);
  --panel: rgba(10, 25, 40, .88);
  --line: var(--xh-color-border);
  --line-strong: var(--xh-color-border-strong);
  --ivory: var(--xh-color-text);
  --muted: var(--xh-color-text-2);
  --ice: var(--xh-color-accent);
  --ice-strong: #d3efff;
  --gold: var(--xh-color-brand);
  --gold-soft: #f0d999;
}

.xh-home-v6 .xh-hero h1 {
  margin: 0;
  font-size: var(--xh-type-display) !important;
  font-weight: 700 !important;
  line-height: 1.06 !important;
  letter-spacing: .04em !important;
}

.xh-home-v6 .xh-hero-copy p {
  margin-top: var(--xh-space-4);
  font-size: 18px;
  line-height: 1.55;
  color: var(--xh-color-text-2);
}

.xh-home-v6 .xh-section-title {
  gap: var(--xh-space-3);
  margin-bottom: var(--xh-space-3);
}

.xh-home-v6 .xh-section-title h2 {
  margin: 0;
  font-size: var(--xh-type-section) !important;
  line-height: var(--xh-leading-title) !important;
}

.xh-home-v6 :is(.xh-feature, .xh-tool-strip, .xh-project) {
  border-color: var(--xh-color-border);
  border-radius: var(--xh-radius-card);
  box-shadow: none;
}

.xh-home-v6 .xh-feature h3 {
  font-size: var(--xh-type-card) !important;
  line-height: var(--xh-leading-title) !important;
}

.xh-home-v6 .xh-tool-strip strong { font-size: 14px; line-height: 1.4; }
.xh-home-v6 .xh-tool-strip small { font-size: 11px !important; line-height: 1.4 !important; }

/* New role-positioning module. */
.xh-positioning {
  padding: var(--xh-space-7) 52px var(--xh-space-7) 35px;
  background: var(--xh-color-bg-2);
}

.xh-positioning-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 760px);
  align-items: end;
  gap: var(--xh-space-7);
  margin: 0 0 var(--xh-space-5) 9px;
}

.xh-positioning-head > div { display: flex; align-items: center; gap: var(--xh-space-3); }
.xh-positioning-mark { color: var(--xh-color-brand); font-size: 16px; line-height: 1; }
.xh-positioning-head h2 { margin: 0; font-size: var(--xh-type-section) !important; }
.xh-positioning-head p {
  margin: 0;
  color: var(--xh-color-text-2);
  font-size: var(--xh-type-body);
  line-height: var(--xh-leading-body);
  text-align: right;
}

.xh-positioning-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--xh-space-4);
}

.xh-positioning-card {
  min-height: 168px;
  padding: var(--xh-card-padding);
  border: 1px solid var(--xh-color-border);
  border-radius: var(--xh-radius-card);
  background: var(--xh-color-surface);
  box-shadow: none;
}

.xh-positioning-card > span {
  display: block;
  margin-bottom: var(--xh-space-4);
  color: var(--xh-color-brand);
  font-size: var(--xh-type-caption);
  line-height: var(--xh-leading-caption);
  letter-spacing: .14em;
}

.xh-positioning-card h3 {
  margin: 0 0 var(--xh-space-3);
  color: var(--xh-color-text);
  font-size: var(--xh-type-card) !important;
}

.xh-positioning-card p {
  max-width: 46em;
  margin: 0;
  color: var(--xh-color-text-2);
  font-size: var(--xh-type-body);
  line-height: var(--xh-leading-body);
}

/* Status colors remain semantic and consistent. */
html:not([data-xh-route="canvas"]) :is(.success, .pass, [data-status="success"]) { color: var(--xh-color-success) !important; }
html:not([data-xh-route="canvas"]) :is(.warning, .warn, [data-status="warning"]) { color: var(--xh-color-warning) !important; }
html:not([data-xh-route="canvas"]) :is(.danger, .error, .must, [data-status="error"]) { color: var(--xh-color-danger) !important; }
html:not([data-xh-route="canvas"]) :is(:disabled, [aria-disabled="true"], .disabled) { opacity: .52; cursor: not-allowed; }

@media (max-width: 900px) {
  :root {
    --xh-type-display: 52px;
    --xh-type-page: 32px;
    --xh-type-section: 22px;
    --xh-card-padding: 20px;
  }
  .xh-positioning { padding: var(--xh-space-6) 40px; }
  .xh-positioning-head { grid-template-columns: 1fr; gap: var(--xh-space-3); }
  .xh-positioning-head p { text-align: left; }
  .xh-positioning-grid { grid-template-columns: 1fr; }
}

@media (max-width: 720px) {
  :root {
    --xh-type-display: 46px;
    --xh-type-page: 28px;
    --xh-type-section: 20px;
    --xh-type-card: 17px;
    --xh-card-padding: 16px;
  }
  .xh-positioning { padding: var(--xh-space-6) 16px; }
  .xh-positioning-head { margin-left: 0; }
  .xh-home-v6 .xh-agent-toolbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 6px;
  }
  .xh-home-v6 .xh-agent-chip {
    width: 100%;
    min-width: 0;
    justify-content: flex-start;
  }
  .xh-home-v6 .xh-agent-select select {
    width: 100%;
    min-width: 0;
    max-width: none;
    text-overflow: ellipsis;
  }
}

.xh-topnav{align-items:center;gap:22px}
.xh-topnav>a[href^="/infinite-canvas-v2"]{color:var(--gold-soft);font-weight:700}
.hs-more-menu{position:relative;z-index:40}
.hs-more-menu summary{list-style:none;cursor:pointer;padding:12px 0;white-space:nowrap;color:inherit;font:inherit}
.hs-more-menu summary::-webkit-details-marker{display:none}
.hs-more-menu summary::after{content:'⌄';margin-left:6px;color:var(--gold)}
.hs-more-menu summary:focus-visible,.hs-more-panel a:focus-visible{outline:2px solid var(--ice);outline-offset:3px;border-radius:4px}
.hs-more-panel{position:fixed;left:140px;right:36px;top:88px;max-width:1180px;max-height:calc(100dvh - 110px);overflow:auto;overscroll-behavior:contain;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:18px;padding:24px;background:#091524;border:1px solid var(--line-strong);border-radius:14px;box-shadow:0 20px 65px #0009;color:var(--ivory);font:14px/1.5 "Microsoft YaHei",sans-serif}
.hs-more-menu:not([open]) .hs-more-panel{display:none}
.hs-more-panel section{min-width:0}
.hs-more-panel section>small{display:block;color:var(--gold-soft);padding:0 10px 12px;letter-spacing:.1em}
.hs-more-panel a{display:flex!important;flex-direction:column;gap:4px;padding:9px 10px!important;border-radius:8px;white-space:normal}
.hs-more-panel a:hover{background:#15273b}
.hs-more-panel a::after{display:none!important}
.hs-more-panel a b{font-size:14px;line-height:1.5;color:#e1e9ef}
.hs-more-panel a span{font-size:11px;line-height:1.6;color:#90a5b9}
@media(max-width:1200px){.hs-more-panel{grid-template-columns:repeat(3,minmax(0,1fr))}}
@media(max-width:1100px){.xh-topnav{display:flex!important;gap:18px}.xh-topnav>a:not([href^="/infinite-canvas-v2"]){display:none}.hs-more-panel{left:95px;right:18px;top:85px}}
@media(max-width:680px){.xh-header{padding:12px!important;gap:8px!important;height:auto!important;min-height:68px;flex-wrap:wrap}.xh-brand strong{font-size:19px!important}.xh-topnav{order:3;width:100%;justify-content:center;gap:24px;font-size:13px}.xh-topnav>a{white-space:nowrap}.xh-topnav>a[href^="/infinite-canvas-v2"]{padding:8px 0}.hs-more-menu summary{padding:8px 0}.hs-more-panel{left:12px;right:12px;top:105px;max-height:calc(100dvh - 122px);grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;padding:16px}.xh-account{margin-left:auto!important}.xh-account .xh-login{padding:0 9px}.hs-more-panel a span{font-size:11px}}
@media(max-width:360px){.xh-header{gap:7px!important}.xh-brand strong{font-size:17px!important}.xh-topnav{gap:8px;font-size:11px}}

[data-hs-media-ready] .xh-restyle-before{background-image:linear-gradient(180deg,rgba(4,10,18,.12),rgba(3,9,17,.40)),url('/haisen-home-assets/xh-restyle-harbor-castle-v2-h2.webp');}
[data-hs-media-ready] .xh-restyle-after{background-image:linear-gradient(180deg,rgba(6,13,24,.04),rgba(3,9,17,.28)),url('/haisen-home-assets/xh-restyle-harbor-castle-v2-h2.webp');}
[data-hs-media-ready] .xh-flow-thumb{--hs-deferred-image:url('/haisen-home-assets/xh-inspiration-mountain-v2-h2.webp');}
[data-hs-media-ready] .xh-review-film{background-image:url('/haisen-home-assets/xh-review-storyboard-v2-h2.webp');}
[data-hs-media-ready] .xh-project-harbor{background-image:url('/haisen-home-assets/xh-inspiration-harbor-v2-h2.webp');}
[data-hs-media-ready] .xh-project-mountain{background-image:url('/haisen-home-assets/xh-inspiration-mountain-v2-h2.webp');}
[data-hs-media-ready] .xh-project-waterfall{background-image:url('/haisen-home-assets/xh-inspiration-waterfall-v2-h2.webp');}
[data-hs-media-ready] .xh-project-woman{background-image:url('/haisen-home-assets/xh-inspiration-woman-v2-h2.webp');}
[data-hs-media-ready] .xh-project-city{background-image:url('/haisen-home-assets/xh-inspiration-city-v2-h2.webp');}
img[src*="xinghe-logo"],img[alt="星晗文化"]{content:url('/haisen-home-assets/haisen-logo-20261011h3.webp')!important;object-fit:contain}
.xh-orbit i,.xh-orbit b{display:none!important}
.xh-orbit::before{content:"";width:58px;height:58px;border-radius:10px;background:url('/haisen-home-assets/haisen-logo-20261011h3.webp') left center / 174px 58px no-repeat}

.hs-home-brand-logo{width:156px;height:52px;object-fit:contain;border-radius:8px}@media(max-width:680px){.hs-home-brand-logo{width:111px;height:37px}}