:root {
  --canvas: #f3f5f7;
  --surface: #ffffff;
  --surface-soft: #f8f9fb;
  --ink: #17191d;
  --muted: #6d737d;
  --faint: #9aa0aa;
  --line: #e2e5e9;
  --blue: #2459d3;
  --blue-dark: #1c48ad;
  --green: #2f9369;
  --shadow-sm: 0 1px 2px rgba(18, 24, 33, .04), 0 8px 24px rgba(18, 24, 33, .04);
  --shadow-lg: 0 28px 80px rgba(31, 39, 54, .11), 0 6px 20px rgba(31, 39, 54, .05);
  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; background: var(--canvas); color: var(--ink); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
.skip-link { position: fixed; z-index: 100; left: 18px; top: -100px; width: max-content; white-space: nowrap; padding: 10px 14px; border-radius: 8px; background: var(--ink); color: white; transition: top .2s; }
.skip-link:focus { top: 12px; }
.page-shell { width: min(1440px, calc(100% - 48px)); margin: 24px auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); overflow: hidden; }

.site-header { position: sticky; top: 12px; z-index: 20; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; min-height: 78px; padding: 0 42px; border-bottom: 1px solid var(--line); background: rgba(255,255,255,.88); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 11px; width: max-content; font-weight: 760; letter-spacing: -.02em; font-size: 19px; }
.brand-mark { display: grid; grid-template-columns: repeat(2, 7px); gap: 3px; padding: 7px; border-radius: 9px; background: var(--ink); }
.brand-mark span { width: 7px; height: 7px; border: 1.5px solid white; border-radius: 2px; }
.brand-mark span:first-child { background: white; }
.brand-mark.small { grid-template-columns: repeat(2, 5px); gap: 2px; padding: 6px; border-radius: 7px; }
.brand-mark.small span { width: 5px; height: 5px; }
.main-nav { display: flex; align-items: center; gap: 34px; color: var(--muted); font-size: 13px; }
.main-nav a { position: relative; padding: 30px 0; transition: color .2s; }
.main-nav a:hover, .main-nav a.active { color: var(--ink); }
.main-nav a.active::after { content: ""; position: absolute; height: 2px; left: 0; right: 0; bottom: -1px; background: var(--ink); }
.header-actions { justify-self: end; display: flex; align-items: center; gap: 22px; }
.system-status { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.system-status i, .metric-live i, .tool-status i { width: 6px; height: 6px; display: inline-block; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(47,147,105,.11); }
.button { display: inline-flex; align-items: center; justify-content: center; gap: 16px; border-radius: 10px; font-size: 13px; font-weight: 650; transition: transform .2s, background .2s, box-shadow .2s; }
.button:hover { transform: translateY(-1px); }
.button-small { padding: 11px 14px; border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(0,0,0,.03); }
.button-small:hover { background: var(--surface-soft); }
.button-primary { padding: 14px 18px; color: white; background: var(--ink); box-shadow: 0 8px 18px rgba(23,25,29,.16); }
.button-primary:hover { background: #2a2d33; }

.hero { min-height: 645px; display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(420px, .92fr); align-items: center; gap: 80px; padding: 78px 7.4% 90px; border-bottom: 1px solid var(--line); background: radial-gradient(circle at 90% 5%, rgba(36,89,211,.055), transparent 28%), var(--surface); }
.hero-copy { max-width: 650px; }
.eyebrow { display: flex; align-items: center; gap: 12px; margin-bottom: 30px; color: var(--faint); font-size: 10px; font-weight: 700; letter-spacing: .16em; }
.eyebrow i { width: 28px; height: 1px; background: var(--line); }
h1 { margin: 0; font-size: clamp(48px, 5.2vw, 76px); line-height: 1.08; letter-spacing: -.06em; font-weight: 740; }
h1 em { color: var(--blue); font-style: normal; }
.hero-description { max-width: 555px; margin: 30px 0 34px; color: var(--muted); line-height: 1.85; font-size: 15px; }

.workspace-card { position: relative; padding: 28px; border: 1px solid #dfe3e8; border-radius: 22px; background: linear-gradient(145deg, rgba(255,255,255,.98), rgba(248,250,252,.98)); box-shadow: var(--shadow-lg); }
.workspace-card::before { content: ""; position: absolute; inset: -18px 28px auto; height: 18px; border: 1px solid var(--line); border-bottom: 0; border-radius: 16px 16px 0 0; background: rgba(250,251,252,.65); z-index: -1; }
.workspace-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 26px; }
.workspace-head > div { display: flex; flex-direction: column; gap: 7px; }
.micro-label { color: var(--faint); font-size: 9px; font-weight: 750; letter-spacing: .17em; }
.workspace-head strong { font-size: 17px; }
.workspace-icon { display: grid; place-items: center; width: 38px; height: 38px; border: 1px solid var(--line); border-radius: 11px; background: white; color: var(--muted); }
.search-box, .catalog-search { display: flex; align-items: center; gap: 11px; border: 1px solid var(--line); background: white; transition: border-color .2s, box-shadow .2s; }
.search-box { padding: 0 14px; height: 52px; border-radius: 12px; box-shadow: 0 4px 14px rgba(20,28,40,.04); }
.search-box:focus-within, .catalog-search:focus-within { border-color: rgba(36,89,211,.55); box-shadow: 0 0 0 4px rgba(36,89,211,.08); }
.search-box svg, .catalog-search svg { width: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; color: var(--faint); }
.search-box input, .catalog-search input { width: 100%; border: 0; outline: 0; background: transparent; color: var(--ink); }
.search-box input::placeholder, .catalog-search input::placeholder { color: #a7acb4; }
kbd { min-width: 23px; padding: 3px 6px; border: 1px solid var(--line); border-bottom-color: #c9cdd2; border-radius: 5px; color: var(--faint); background: var(--surface-soft); font-family: inherit; font-size: 10px; text-align: center; }
.workspace-metrics { display: grid; grid-template-columns: 1fr 1fr; margin-top: 18px; border: 1px solid var(--line); border-radius: 13px; overflow: hidden; }
.workspace-metrics > div { display: grid; padding: 20px; min-height: 120px; }
.workspace-metrics > div + div { border-left: 1px solid var(--line); }
.workspace-metrics span { color: var(--muted); font-size: 11px; }
.workspace-metrics strong { align-self: end; font-size: 28px; line-height: 1; letter-spacing: -.04em; }
.workspace-metrics small { align-self: end; color: var(--faint); font-size: 10px; }
.workspace-metrics .metric-live { display: flex; align-items: center; gap: 9px; color: var(--green); font-size: 13px; letter-spacing: .08em; }
.workspace-foot { display: flex; justify-content: space-between; margin-top: 18px; padding: 2px 3px 0; color: var(--faint); font-size: 10px; }

.tools-section { padding: 94px 7.4% 110px; background: var(--surface-soft); border-bottom: 1px solid var(--line); scroll-margin-top: 90px; }
.section-heading { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 34px; }
.section-heading > div { position: relative; padding-left: 46px; }
.section-index { position: absolute; left: 0; top: 7px; color: var(--blue); font-size: 10px; font-weight: 750; }
h2 { margin: 0; font-size: clamp(30px, 3vw, 42px); letter-spacing: -.045em; line-height: 1.15; }
.section-heading p { margin: 12px 0 0; color: var(--muted); font-size: 13px; }
.catalog-search { width: 255px; height: 43px; padding: 0 13px; border-radius: 10px; }
.catalog-meta { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; color: var(--faint); font-size: 10px; letter-spacing: .06em; }
.catalog-meta b { color: var(--ink); }
.catalog-line { width: 24px; height: 1px; background: var(--line); }
.search-feedback { min-height: 44px; }
.search-feedback button { min-height: 44px; margin-left: auto; padding: 0 13px; border: 1px solid var(--line); border-radius: 9px; color: var(--muted); background: var(--surface); cursor: pointer; transition: color .2s, border-color .2s, background .2s; }
.search-feedback button:hover { color: var(--ink); border-color: #cbd0d7; background: #fff; }
.tool-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); background: var(--line); gap: 1px; }
.tool-card { position: relative; min-height: 310px; display: flex; flex-direction: column; padding: 27px; background: var(--surface); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; transition: background .25s, transform .25s, box-shadow .25s; }
.tool-card::after { content: ""; position: absolute; left: 0; top: 0; width: 3px; height: 0; background: var(--blue); transition: height .3s; }
.tool-card:hover { z-index: 1; background: #fcfdff; box-shadow: 0 18px 50px rgba(31,39,54,.08); transform: translateY(-2px); }
.tool-card:hover::after { height: 100%; }
.tool-card-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 32px; }
.tool-icon { display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid var(--line); border-radius: 13px; color: var(--blue); background: #f6f8fd; }
.tool-icon svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.tool-number { color: #b2b7bf; font-size: 10px; letter-spacing: .08em; }
.tool-category { color: var(--faint); font-size: 9px; font-weight: 700; letter-spacing: .1em; }
.tool-card h3 { margin: 9px 0 10px; font-size: 21px; letter-spacing: -.03em; }
.tool-card p { margin: 0; max-width: 280px; color: var(--muted); font-size: 12px; line-height: 1.75; }
.tool-card-footer { display: flex; justify-content: space-between; align-items: center; margin-top: auto; padding-top: 28px; }
.tool-status { display: inline-flex; align-items: center; gap: 8px; color: var(--faint); font-size: 10px; }
.tool-status i { background: #b5bac1; box-shadow: 0 0 0 4px rgba(181,186,193,.12); }
.tool-status.available { color: var(--green); }
.tool-status.available i { background: var(--green); box-shadow: 0 0 0 4px rgba(47,147,105,.11); }
.tool-arrow { color: var(--faint); font-size: 15px; letter-spacing: .1em; }
.empty-state { padding: 70px 20px; text-align: center; border: 1px solid var(--line); background: white; }
.empty-state > span { color: var(--blue); font-size: 30px; }
.empty-state h3 { margin: 15px 0 7px; }
.empty-state p { margin: 0 0 20px; color: var(--muted); font-size: 13px; }
.empty-state button { padding: 10px 14px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface-soft); cursor: pointer; }

.about-section { display: grid; grid-template-columns: 70px 1fr 1fr; gap: 55px; padding: 96px 7.4%; scroll-margin-top: 90px; }
.about-index { padding-top: 7px; color: var(--blue); font-size: 10px; font-weight: 750; }
.about-copy h2 { margin-top: 17px; }
.about-detail { padding-top: 22px; max-width: 500px; }
.about-detail p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.9; }
.about-detail .about-note { margin-top: 23px; padding-top: 23px; border-top: 1px solid var(--line); color: var(--faint); font-size: 11px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; padding: 35px 7.4%; border-top: 1px solid var(--line); background: var(--ink); color: white; }
.footer-brand { display: flex; align-items: center; gap: 12px; }
.footer-brand > div { display: flex; flex-direction: column; gap: 4px; }
.footer-brand strong { font-size: 15px; }
.footer-brand small { color: #777e89; font-size: 8px; letter-spacing: .13em; }
.footer-meta { display: flex; align-items: center; gap: 24px; color: #8e949d; font-size: 10px; }
.footer-meta a { color: #c7cbd1; transition: color .2s; }
.footer-meta a:hover { color: white; text-decoration: underline; }

:focus-visible { outline: 3px solid rgba(36,89,211,.35); outline-offset: 3px; }
[hidden] { display: none !important; }

@media (max-width: 1080px) {
  .page-shell { width: calc(100% - 30px); margin: 15px auto; }
  .site-header { padding: 0 28px; }
  .main-nav { gap: 22px; }
  .system-status { display: none; }
  .hero { grid-template-columns: 1fr 420px; gap: 45px; padding-left: 5%; padding-right: 5%; }
  .tools-section, .about-section { padding-left: 5%; padding-right: 5%; }
  .tool-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 820px) {
  .site-header { grid-template-columns: 1fr auto; }
  .main-nav { display: none; }
  .hero { min-height: auto; grid-template-columns: 1fr; padding-top: 72px; }
  .hero-copy { max-width: 680px; }
  .workspace-card { max-width: 600px; }
  .about-section { grid-template-columns: 45px 1fr; }
  .about-detail { grid-column: 2; }
}

@media (max-width: 760px) {
  .page-shell { width: 100%; margin: 0; border: 0; border-radius: 0; }
  .site-header { top: 0; min-height: 66px; padding: 0 20px; }
  .button-small { padding: 9px 11px; }
  .hero { padding: 48px 20px 64px; gap: 46px; }
  h1 { font-size: clamp(42px, 12vw, 58px); }
  .hero-description { font-size: 14px; }
  .workspace-card { padding: 19px; border-radius: 17px; }
  .workspace-metrics { grid-template-columns: 1fr; }
  .workspace-metrics > div + div { border-left: 0; border-top: 1px solid var(--line); }
  .tools-section { padding: 72px 20px 78px; }
  .section-heading { display: block; }
  .section-heading > div { padding-left: 34px; }
  .catalog-search { width: 100%; min-height: 48px; margin-top: 24px; }
  .button, .empty-state button { min-height: 44px; }
  .search-feedback { flex-wrap: wrap; row-gap: 4px; margin-bottom: 14px; }
  .search-feedback button { margin-left: auto; }
  .tool-grid { grid-template-columns: 1fr; }
  .tool-card { min-height: 285px; }
  .about-section { grid-template-columns: 1fr; gap: 20px; padding: 72px 20px; }
  .about-detail { grid-column: 1; }
  .site-footer { align-items: flex-start; flex-direction: column; gap: 28px; padding: 34px 20px; }
  .footer-meta { flex-direction: column; align-items: flex-start; gap: 10px; }
}

@media (hover: none) and (pointer: coarse) {
  .tool-card:hover { transform: none; box-shadow: none; }
  .tool-card:active { background: #f7f9fd; transform: scale(.995); }
  .button:hover { transform: none; }
  .button:active, .search-feedback button:active { transform: scale(.98); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
