:root {
  --shell-surface:#101210;
  --shell-on-gold:#1B150E;
  --shell-gold-light:#E8C79B;
  --shell-gold-bottom:#C08A5A;
  --shell-gold-line:rgba(217,177,131,.55);
  --shell-gold-muted:rgba(217,177,131,.7);
  --shell-shine:rgba(255,255,255,.6);
  --shell-shadow:rgba(217,177,131,.55);
}
.gd-header {
  --ink:#F4F1EA;
  --ink-2:rgba(244,241,234,.68);
  --ink-3:rgba(244,241,234,.48);
  --gold:#D9B183;
  --gold-light:rgba(217,177,131,.12);
  --line:rgba(244,241,234,.10);
  --line-2:rgba(244,241,234,.16);
  --surface-solid:#101210;
  --surface:rgba(13,15,13,.7);
  --shadow:rgba(0,0,0,.8);
  --sans:"PingFang SC","HarmonyOS Sans SC","Hiragino Sans GB","Microsoft YaHei","Noto Sans CJK SC",-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  --serif:"Instrument Serif","Noto Serif CJK SC","Noto Serif SC","Songti SC","Source Han Serif SC",SimSun,serif;
  position:relative;
  z-index:20;
  display:flex;
  align-items:center;
  gap:24px;
  flex:none;
  width:100%;
  height:76px;
  padding:0 40px;
  border-bottom:1px solid var(--line);
  background:#0A0C0B;
  font-family:var(--sans);
}
.gd-brand { display:flex; align-items:center; gap:11px; flex:none; color:var(--ink); text-decoration:none; }
.gd-mark { width:30px; height:30px; display:grid; place-items:center; border:1px solid var(--shell-gold-line); border-radius:7px; transform:rotate(30deg); }
.gd-mark span { transform:rotate(-30deg); font:15px/1 var(--serif); color:var(--gold); }
.gd-brand-name { font-size:15px; font-weight:600; letter-spacing:.16em; white-space:nowrap; }
.gd-menu { display:flex; align-items:center; justify-content:center; gap:4px; margin:0 auto; }
.gd-menu a { padding:8px 10px; color:var(--ink-2); font:13px var(--sans); text-decoration:none; white-space:nowrap; }
.gd-menu a:hover,.gd-menu a[aria-current="page"] { color:var(--ink); }
.gd-menu a[aria-current="page"] { text-decoration:underline; text-decoration-color:var(--gold); text-underline-offset:9px; }
.gd-account,.gd-guest { display:flex; align-items:center; gap:18px; flex:none; }
.gd-account { margin-left:auto; }
.gd-login { color:var(--ink-2); font:13px var(--sans); text-decoration:none; white-space:nowrap; }
.gd-login:hover { color:var(--ink); }
.gd-register { display:inline-flex; align-items:center; justify-content:center; height:36px; padding:0 20px; border:0; border-radius:18px; background:linear-gradient(180deg,var(--shell-gold-light),var(--gold) 42%,var(--shell-gold-bottom)); color:var(--shell-on-gold); font:600 13px var(--sans); letter-spacing:.06em; text-decoration:none; box-shadow:inset 0 1px 0 var(--shell-shine),0 8px 26px -8px var(--shell-shadow); }
.gd-avatar { display:grid; place-items:center; width:32px; height:32px; border:1px solid var(--shell-gold-line); border-radius:50%; background:var(--shell-surface); color:var(--gold); font:13px var(--sans); text-decoration:none; }
.gd-balance { color:var(--gold); font:12px var(--sans); white-space:nowrap; max-width:110px; overflow:hidden; text-overflow:ellipsis; }
.gd-avatar { position:relative; overflow:hidden; }
.gd-avatar img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.gd-account [hidden] { display:none; }
.gd-toggle { display:none; align-items:center; justify-content:center; flex:none; width:36px; height:36px; padding:8px; border:1px solid var(--line-2); border-radius:18px; background:none; color:var(--ink-2); cursor:pointer; }
.gd-toggle svg { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.5; }
.gd-header :focus-visible { outline:2px solid var(--gold); outline-offset:4px; }
.gd-dropdown { position:relative; flex:none; }
.gd-dropdown summary { list-style:none; cursor:pointer; }
.gd-dropdown summary::-webkit-details-marker { display:none; }
.gd-nav-trigger { padding:8px 10px; color:var(--ink-2); font:13px var(--sans); white-space:nowrap; }
.gd-nav-trigger::after { content:none; }
.gd-dropdown[open] > .gd-nav-trigger { color:var(--gold); background:var(--gd-nav-soft); border-radius:6px; }
.gd-dropdown-menu { position:absolute; top:100%; left:0; z-index:30; min-width:180px; padding:8px; border:1px solid var(--gd-nav-line); border-radius:12px; background:rgba(16,18,16,.96); backdrop-filter:blur(16px); box-shadow:0 16px 40px rgba(0,0,0,.35); }
.gd-dropdown-menu a { display:block; width:100%; padding:10px 14px; border-radius:6px; color:var(--ink-2); text-align:left; font:13px/1.5 var(--sans); white-space:nowrap; }
.gd-dropdown-menu a:hover { background:var(--gd-nav-soft); color:var(--gold); }
.gd-user .gd-dropdown-menu { left:auto; right:0; }
.gd-bell { display:grid; place-items:center; position:relative; width:32px; height:32px; border:1px solid var(--shell-gold-line); border-radius:50%; background:var(--shell-surface); color:var(--ink-2); cursor:pointer; list-style:none; }
.gd-bell::-webkit-details-marker { display:none; }
.gd-bell:hover { color:var(--gold); }
.gd-badge { position:absolute; top:-3px; right:-3px; min-width:16px; height:16px; padding:0 4px; border-radius:8px; background:#e5484d; color:#fff; font:600 10px/16px var(--sans); text-align:center; }
.gd-dropdown-menu.gd-notify-menu { left:auto; right:0; width:340px; max-width:calc(100vw - 32px); padding:0; }
.gd-notify-head { display:flex; align-items:center; justify-content:space-between; gap:12px; padding:12px 16px; border-bottom:1px solid var(--line); color:var(--ink); font:600 13px var(--sans); white-space:nowrap; }
.gd-notify-all { border:0; background:none; color:var(--gold); font:12px var(--sans); cursor:pointer; padding:0; }
.gd-notify-list { max-height:360px; overflow-y:auto; padding:8px; }
.gd-notify-item { display:block; padding:12px; border-radius:8px; text-decoration:none; }
.gd-notify-item:hover { background:var(--gd-nav-soft); }
.gd-notify-item.is-unread { background:var(--gold-light); }
.gd-notify-title { color:var(--ink); font:600 13px var(--sans); }
.gd-notify-item.is-unread .gd-notify-title::before { content:''; display:inline-block; width:6px; height:6px; margin-right:6px; border-radius:50%; background:var(--gold); vertical-align:1px; }
.gd-notify-content { margin-top:4px; color:var(--ink-2); font:12px/1.6 var(--sans); }
.gd-notify-time { margin-top:6px; color:var(--ink-3); font:11px var(--sans); }
.gd-dropdown-menu button { display:block; width:100%; padding:10px 14px; border:0; border-radius:6px; background:none; color:var(--ink-2); text-align:left; font:13px/1.5 var(--sans); white-space:nowrap; cursor:pointer; }
.gd-dropdown-menu button:hover { background:var(--gd-nav-soft); color:var(--gold); }
.gd-dropdown-menu .gd-logout { border-top:1px solid var(--line); border-radius:0; margin-top:4px; }
.gd-footer { width:100%; flex:none; padding:24px 40px; border-top:1px solid var(--line); }
.gd-footer-line { display:flex; align-items:center; justify-content:space-between; gap:16px; color:var(--ink-3); font:12px/1.7 var(--sans); letter-spacing:.04em; }
.gd-footer-line .en { color:var(--shell-gold-muted); font-family:var(--serif); font-style:italic; }
body[data-site-page="home"] .gd-header { padding-left:40px; background:transparent; border-bottom-color:transparent; }
body[data-site-page="canvas"] .gd-footer { padding:12px 18px; }
body[data-site-page="forgot"] { align-items:stretch; justify-content:flex-start; overflow-y:auto; }
body[data-site-page="forgot"] > .card { flex:none; margin:48px auto; }
body[data-site-page="forgot"] > .gd-footer { margin-top:auto; }
@media (max-width:1200px) {
  .gd-header { gap:16px; padding:0 24px; }
  .gd-menu { gap:0; }
  .gd-menu a { padding:8px; }
}
@media (min-width:1101px) and (max-width:1320px) {
  .gd-header { gap:12px; padding:0 24px; }
  .gd-menu a,.gd-nav-trigger { padding:8px 6px; }
  .gd-account { gap:10px; }
  .gd-brand-name { font-size:13px; letter-spacing:.08em; }
}
@media (max-width:1100px) {
  .gd-toggle { display:flex; }
  .gd-menu { display:none; position:absolute; top:76px; left:0; right:0; padding:16px 24px; background:var(--shell-surface); border-bottom:1px solid var(--line); grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; }
  .gd-menu.is-open { display:flex; align-items:stretch; flex-direction:column; max-height:calc(100dvh - 76px); overflow-y:auto; }
  .gd-menu > a,.gd-nav-trigger { text-align:left; padding:12px; }
  .gd-menu .gd-dropdown-menu { position:static; min-width:0; box-shadow:none; margin:0 8px 8px; }
  .gd-menu .gd-dropdown-menu a { text-align:left; }
  .gd-user .gd-dropdown-menu { max-height:calc(100dvh - 100px); overflow-y:auto; }
}
@media (max-width:600px) {
  .gd-balance { max-width:72px; font-size:11px; }
  .gd-header,body[data-site-page="home"] .gd-header { padding:0 16px; gap:10px; }
  .gd-brand { gap:9px; }
  .gd-brand-name { font-size:12px; letter-spacing:.08em; }
  .gd-mark { width:26px; height:26px; }
  .gd-account,.gd-guest { gap:10px; }
  .gd-account { gap:8px; }
  .gd-register { padding:0 14px; }
  .gd-menu { padding:16px; grid-template-columns:repeat(2,minmax(0,1fr)); }
  .gd-footer { padding:24px 16px; }
  .gd-footer-line { align-items:flex-start; flex-direction:column; gap:8px; }
  .topbar,.top { overflow-x:auto; flex-shrink:0; }
  .topbar .crumb,.top .crumb,.top-actions { flex:none; white-space:nowrap; }
}

:root {
  --gd-sidebar-width:64px;
  --gd-nav-soft:rgba(217,177,131,.10);
  --gd-nav-line:rgba(217,177,131,.4);
}
.gd-cascade-item { position:relative; }
.gd-cascade-trigger { list-style:none; cursor:pointer; }
.gd-cascade-trigger::-webkit-details-marker { display:none; }
.gd-dropdown-menu .gd-cascade-trigger { display:block; padding:10px 14px; border-radius:6px; color:var(--ink-2); font:13px/1.5 var(--sans); white-space:nowrap; }
.gd-cascade-trigger::after { content:none; }
.gd-cascade-trigger:hover,.gd-cascade-item[open] > .gd-cascade-trigger { background:var(--gd-nav-soft); color:var(--gold); }
.gd-cascade-panel { position:absolute; top:0; left:calc(100% + 12px); z-index:31; width:max-content; min-width:200px; max-width:280px; padding:8px; border:1px solid var(--gd-nav-line); border-radius:12px; background:var(--shell-surface); box-shadow:0 16px 40px rgba(0,0,0,.35); }
.gd-dropdown-menu .gd-cascade-panel a { white-space:normal; }
.gd-dropdown-menu .gd-cascade-more { margin-top:6px; border-top:1px solid var(--line); border-radius:0; color:var(--gold); }
.gd-nav-status { display:block; padding:10px 14px; color:var(--ink-3); font:13px/1.5 var(--sans); }
.gd-workspace-nav { position:fixed; top:76px; bottom:0; left:0; z-index:19; display:flex; flex-direction:column; align-items:center; gap:4px; width:var(--gd-sidebar-width); padding:12px 6px; overflow-y:auto; scrollbar-width:none; border-right:1px solid var(--line); background:var(--shell-surface); font-family:var(--sans); }
.gd-workspace-nav::-webkit-scrollbar { display:none; }
.gd-workspace-link { display:flex; flex:none; flex-direction:column; align-items:center; justify-content:center; gap:4px; width:100%; min-height:46px; padding:6px 0; border-radius:10px; color:var(--ink-3); text-decoration:none; font:10px/1.3 var(--sans); }
.gd-workspace-link:hover,.gd-workspace-link:focus-visible,.gd-workspace-link[aria-current="page"] { color:var(--gold); background:var(--gd-nav-soft); }
.gd-workspace-link:focus-visible { outline:1px solid var(--gold); outline-offset:-1px; }
.gd-workspace-icon { width:18px; height:18px; fill:none; stroke:currentColor; stroke-width:1.4; stroke-linecap:round; stroke-linejoin:round; }
.gd-workspace-number { color:var(--gold); font:italic 17px/18px var(--serif); }
.gd-workspace-divider { flex:none; width:24px; height:1px; margin:5px 0; background:var(--line); }
.gd-workspace-tip { position:fixed; top:var(--gd-tip-top,90px); left:calc(var(--gd-sidebar-width) + 8px); z-index:40; visibility:hidden; transform:translateY(-50%); width:max-content; max-width:220px; padding:8px 12px; border:1px solid var(--gd-nav-line); border-radius:8px; background:var(--shell-surface); color:var(--ink); font:12px/1.5 var(--sans); pointer-events:none; }
.gd-workspace-link:hover .gd-workspace-tip,.gd-workspace-link:focus-visible .gd-workspace-tip { visibility:visible; }
.gd-workspace-link[data-workspace-action="skills"][aria-expanded="true"] { color:var(--gold); background:var(--gd-nav-soft); }
.gd-workspace-link[data-workspace-action="skills"] .gd-workspace-tip { display:none; }
.gd-skill-menu { position:fixed; left:6px; z-index:32; width:calc(var(--gd-sidebar-width) - 12px); font-family:var(--sans); }
.gd-skill-menu[hidden] { display:none; }
.gd-skill-panel { display:flex; flex-direction:column; gap:16px; width:min(680px,calc(100vw - var(--gd-sidebar-width) - 24px)); min-width:0; max-width:none; height:min(620px,calc(100dvh - 24px)); box-sizing:border-box; padding:20px; border-radius:14px; color:var(--ink); box-shadow:0 16px 40px var(--bg); }
.gd-skill-selector { flex:none; padding-bottom:16px; border-bottom:1px solid var(--line); }
.gd-skill-heading { flex:none; margin:0; color:var(--ink); font:600 13px/1.5 var(--sans); }
.gd-skill-professions { display:grid; grid-template-columns:repeat(4,minmax(0,1fr)); gap:8px; margin-top:12px; }
.gd-skill-profession { min-height:40px; padding:8px 12px; border:1px solid var(--line-2); border-radius:20px; background:var(--shell-surface); color:var(--ink-2); font:13px/1.5 var(--sans); cursor:pointer; }
.gd-skill-profession:hover { border-color:var(--gd-nav-line); color:var(--gold); }
.gd-skill-profession[aria-pressed="true"] { border-color:var(--gold); background:var(--gold); color:var(--shell-on-gold); font-weight:600; }
.gd-skill-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); align-content:start; gap:12px; min-height:0; overflow-y:auto; overscroll-behavior:contain; scrollbar-color:var(--gd-nav-line) var(--shell-surface); scrollbar-width:thin; }
.gd-skill-card { display:flex; flex-direction:column; gap:10px; min-width:0; padding:10px; border:1px solid var(--line); border-radius:14px; background:var(--shell-surface); color:var(--ink-2); text-decoration:none; }
.gd-skill-card:hover { border-color:var(--gd-nav-line); color:var(--ink); }
.gd-skill-thumb { display:block; width:100%; aspect-ratio:16/9; flex:none; border-radius:12px; object-fit:cover; background:var(--gd-nav-soft); }
.gd-skill-thumb-fallback { position:relative; }
.gd-skill-thumb-fallback::after { content:attr(alt); position:absolute; inset:0; display:grid; place-items:center; color:var(--gold); font:500 20px/1 var(--sans); }
.gd-skill-name { color:inherit; overflow-wrap:anywhere; font:13px/1.5 var(--sans); }
.gd-skill-profession:focus-visible,.gd-skill-card:focus-visible,.gd-skill-grid > button:focus-visible { outline:2px solid var(--gold); outline-offset:-2px; }
.gd-skill-grid > .gd-nav-status { grid-column:1 / -1; padding:8px 0; }
.gd-skill-grid > button { justify-self:start; min-height:40px; padding:8px 16px; border:1px solid var(--line-2); border-radius:20px; background:var(--shell-surface); color:var(--ink-2); font:13px/1.5 var(--sans); cursor:pointer; }
@media (min-width:1101px) {
  body.gd-has-workspace-nav { padding-left:var(--gd-sidebar-width); }
  body.gd-has-workspace-nav .gd-header,body.gd-has-workspace-nav > .site-header { margin-left:calc(-1 * var(--gd-sidebar-width)); width:calc(100% + var(--gd-sidebar-width)); }
}
@media (max-width:1100px) {
  .gd-workspace-nav,.gd-skill-menu { display:none; }
  .gd-menu .gd-cascade-panel { position:static; width:auto; min-width:0; max-width:none; margin:4px 0 8px 14px; border:0; border-left:1px solid var(--gd-nav-line); border-radius:0; background:none; box-shadow:none; }
}
