:root {
  --tc-ink: #1d2d3d;
  --tc-muted: #637487;
  --tc-line: #d7e1eb;
  --tc-bg: #f5f8fc;
  --tc-surface: #fff;
  --tc-accent: #1f5f9f;
  --tc-accent-dark: #164b7f;
  --tc-accent-soft: #eaf2fb;
  --tc-sidebar: 240px;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; margin: 0; }
body { overflow-x: hidden; color: var(--tc-ink); background: var(--tc-bg); font-family: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
.tools-center-layout { display: block; min-height: 100vh; }
.tools-center-layout:has(.tools-sidebar:hover) { grid-template-columns: var(--tc-sidebar) minmax(0, 1fr); }
.tools-sidebar { position: sticky; top: 0; height: 100vh; min-width: 0; padding: 18px 12px; display: flex; flex-direction: column; gap: 20px; background: #173f6b; color: #dfeafb; overflow: hidden; box-shadow: 4px 0 20px rgba(22,75,127,.14); }
.sidebar-top { display: flex; align-items: center; justify-content: flex-start; gap: 8px; }
.sidebar-brand { height: 42px; padding: 0 10px; display: inline-flex; align-items: center; gap: 10px; min-width: 0; color: #fff; font-size: 14px; font-weight: 700; white-space: nowrap; }
.sidebar-brand-mark { position: relative; width: 30px; height: 27px; display: inline-block; flex: 0 0 30px; }
.sidebar-brand-mark i { position: absolute; display: block; border-radius: 4px; }
.sidebar-brand-mark i:nth-child(1) { left: 0; top: 5px; width: 17px; height: 17px; background: #35a879; }
.sidebar-brand-mark i:nth-child(2) { right: 0; top: 0; width: 8px; height: 8px; background: #4c83bd; }
.sidebar-brand-mark i:nth-child(3) { right: 0; bottom: 0; width: 7px; height: 7px; background: #e2a948; }
.sidebar-caption { padding: 0 10px; color: #a9c3df; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; white-space: nowrap; }
.tool-nav { min-width: 0; display: flex; flex: 1; flex-direction: column; gap: 4px; overflow: auto; scrollbar-width: none; }
.tool-nav::-webkit-scrollbar { width: 0; height: 0; }
.nav-group { min-width: 0; }
.nav-item { width: 100%; min-height: 40px; padding: 0 10px; display: flex; align-items: center; gap: 10px; color: #e8f1fb; border-left: 2px solid transparent; border-radius: 0; font-size: 13px; white-space: nowrap; transition: background .16s, border-color .16s; }
.nav-item:hover { background: rgba(255,255,255,.11); }
.nav-item.is-active { background: rgba(226,239,253,.16); border-left-color: #8fc4f6; color: #fff; }
.nav-admin-divider { height: 1px; margin: 12px 10px 6px; background: rgba(219,234,248,.2); }
.admin-nav-link { position: relative; }
.admin-nav-link small { display: none; margin-left: auto; color: #b9d8f5; font-size: 10px; }
.tools-center-layout:has(.tools-sidebar:hover) .admin-nav-link small { display: block; }
.nav-icon { width: 20px; flex: 0 0 20px; color: #9ec6ec; text-align: center; font-size: 14px; }
.sidebar-bottom { display: grid; gap: 6px; border-top: 1px solid rgba(223,234,251,.2); padding-top: 14px; }
.sidebar-user { display: grid; gap: 3px; padding: 0 10px 10px; color: #fff; border-bottom: 1px solid rgba(223,234,251,.2); }
.sidebar-user-name { font-size: 13px; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-user-account { color: #b9d8f5; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sidebar-bottom #api-settings-link, .sidebar-bottom #account-management-link { display: none !important; }
.admin-nav-link, .sidebar-home { min-height: 40px; padding: 0 10px; display: flex; align-items: center; gap: 11px; color: #dfeafb; font-size: 12px; white-space: nowrap; }
.admin-nav-link:hover, .sidebar-home:hover { background: rgba(255,255,255,.11); }
.tools-center-main { min-width: 0; padding: 30px clamp(24px, 4vw, 64px) 72px; }
.tools-center-brandbar { min-height: 46px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.tools-center-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--tc-ink); font-size: 17px; font-weight: 700; }
.brand-mark { position: relative; width: 30px; height: 27px; display: inline-block; flex: 0 0 30px; }
.brand-mark i { position: absolute; display: block; border-radius: 4px; }
.brand-mark i:nth-child(1) { left: 0; top: 5px; width: 17px; height: 17px; background: var(--tc-accent); }
.brand-mark i:nth-child(2) { right: 0; top: 0; width: 8px; height: 8px; background: #4c83bd; }
.brand-mark i:nth-child(3) { right: 0; bottom: 0; width: 7px; height: 7px; background: #e2a948; }
.tools-center-back { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; color: var(--tc-accent); border: 1px solid var(--tc-line); border-radius: 5px; background: #fff; font-size: 12px; font-weight: 650; transition: background .16s, border-color .16s, transform .16s; }
.tools-center-back:hover { border-color: #a9c6e2; background: var(--tc-accent-soft); transform: translateY(-1px); }
.tools-center-hero { max-width: 1500px; margin: 28px 0 26px; display: block; }
.eyebrow { margin: 0 0 9px; color: var(--tc-accent); font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.tools-center-hero h1 { margin: 0; color: var(--tc-ink); font-size: clamp(28px, 3vw, 44px); letter-spacing: 0; line-height: 1.15; font-weight: 700; }
.hero-copy { max-width: 620px; margin: 13px 0 0; color: var(--tc-muted); font-size: 14px; line-height: 1.7; }
.hero-note { min-width: 230px; padding: 16px 18px; background: var(--tc-surface); border: 1px solid var(--tc-line); border-left: 3px solid var(--tc-accent); }
.hero-note-kicker { display: block; color: var(--tc-muted); font-size: 10px; }
.hero-note strong { display: block; margin: 6px 0 3px; font-size: 17px; }
.hero-note small { color: var(--tc-muted); font-size: 11px; }
.tool-overview { max-width: none; margin: 0; }
.tool-access-groups { display:grid; gap:28px; }
.tool-access-group { min-width:0; }
.tool-access-heading { display:flex; align-items:end; justify-content:space-between; gap:24px; margin:0 0 12px; padding-bottom:10px; border-bottom:1px solid var(--tc-line); }
.tool-access-heading .eyebrow { margin:0 0 4px; }
.tool-access-heading h2 { margin:0; font-size:20px; line-height:1.3; }
.tool-access-heading p { margin:0; max-width:520px; color:var(--tc-muted); font-size:12px; line-height:1.5; text-align:right; }
.tools-status-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tool-status-card { position: relative; min-width: 0; min-height: 168px; padding: 18px 18px 16px; display: flex; flex-direction: column; background: var(--tc-surface); border: 1px solid var(--tc-line); border-radius: 7px; box-shadow: 0 5px 14px rgba(34, 74, 113, .05); transition: border-color .18s, box-shadow .18s, transform .18s; }
.tool-status-card:hover { border-color: #8eb5d9; box-shadow: 0 10px 22px rgba(31, 95, 159, .12); transform: translateY(-2px); }
.tool-status-card.requires-login { border-color:#d7e1eb; }
.tool-status-card.requires-admin { border-color:#e5d8b9; }
.tool-status-card.access-granted { border-color:#b9dec9; }
.tool-card-top { display: flex; align-items: center; gap: 8px; margin-bottom: 16px; }
.tool-card-index { color: #91a2b4; font-size: 11px; font-variant-numeric: tabular-nums; }
.tool-card-icon { width: 24px; height: 24px; display: grid; place-items: center; color: var(--tc-accent); background: var(--tc-accent-soft); border-radius: 5px; font-size: 14px; }
.tool-status { margin-left: auto; padding: 3px 7px; color: #216f49; background: #e7f5ed; border-radius: 3px; font-size: 10px; font-weight: 700; white-space:nowrap; }
.requires-login .tool-status { color:#53697b; background:#eef3f7; }
.requires-admin .tool-status { color:#8a661d; background:#fff4d9; }
.tool-status-card > strong { display: block; padding-right: 20px; color: var(--tc-ink); font-size: 15px; line-height: 1.35; }
.tool-status-card > p { min-height: 36px; margin: 7px 0 15px; color: var(--tc-muted); font-size: 12px; line-height: 1.5; }
.tool-card-meta { margin-top: auto; display: flex; align-items: center; gap: 6px; color: #8798aa; font-size: 10px; }
.tool-card-meta b { color: var(--tc-accent); font-weight: 650; }
.tool-card-arrow { position: absolute; right: 16px; bottom: 14px; color: var(--tc-accent); font-size: 17px; opacity: .65; }
.tools-center-layout:not(:has(.tools-sidebar:hover)) .sidebar-brand-name, .tools-center-layout:not(:has(.tools-sidebar:hover)) .nav-group-title, .tools-center-layout:not(:has(.tools-sidebar:hover)) .nav-item span:not(.nav-icon), .tools-center-layout:not(:has(.tools-sidebar:hover)) .admin-nav-link span:not(.nav-icon), .tools-center-layout:not(:has(.tools-sidebar:hover)) .sidebar-home span:not(.nav-icon) { display: none; }
.tools-center-layout:not(:has(.tools-sidebar:hover)) .sidebar-user { display: none; }
.tools-center-layout:not(:has(.tools-sidebar:hover)) .sidebar-top { justify-content: center; }
.tools-center-layout:not(:has(.tools-sidebar:hover)) .nav-item, .tools-center-layout:not(:has(.tools-sidebar:hover)) .admin-nav-link, .tools-center-layout:not(:has(.tools-sidebar:hover)) .sidebar-home { justify-content: center; padding-left: 0; padding-right: 0; }
.tools-center-layout:not(:has(.tools-sidebar:hover)) .nav-icon { margin: 0; }
@media (max-width: 1180px) and (min-width: 761px) { .tools-status-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1500px) { .tools-status-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap:16px; } .tool-status-card { min-height:154px; } }
@media (max-width: 760px) {
  .tools-center-layout, .tools-center-layout[data-collapsed="true"] { display: block; }
  .tools-sidebar { position: sticky; top: 0; z-index: 40; width: 100%; height: auto; min-height: 0; padding: 8px 12px; }
  .sidebar-top { display: none; }
  .tool-nav { display: flex; flex-direction: row; gap: 6px; overflow: auto; }
  .nav-group { display: flex; align-items: center; gap: 4px; }
  .nav-item { min-height: 38px; width: auto; padding: 0 10px; border-left: 0; }
  .nav-item.is-active { border-bottom: 2px solid #8fc4f6; }
  .sidebar-bottom { display: none; }
  .tools-center-main { padding: 22px 16px 48px; }
  .tools-center-brandbar { min-height: 40px; }
  .tools-center-hero { display: block; margin-top: 24px; }
  .hero-note { margin-top: 18px; }
  .tools-status-grid { grid-template-columns: 1fr; gap: 10px; }
  .tool-status-card { min-height: 150px; }
  .tool-access-heading { display:block; }
  .tool-access-heading p { margin-top:6px; text-align:left; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; } }
.nav-icon svg,.tool-card-icon svg { display:block; width:19px; height:19px; fill:none; stroke:currentColor; stroke-width:1.7; stroke-linecap:round; stroke-linejoin:round; }
