@charset "UTF-8";
/* Shared presentation only. Visual references: 21st.dev Spotlight, Bento Grid,
   Border Beam. Original CSS/SVG; no component runtime or external assets. */
:root {
  --bg: #f3f6fa;
  --surface: #fff;
  --ink: #142d47;
  --muted: #536c83;
  --line: #dbe5ef;
  --brand: #07578c;
  --brand-dark: #071f38;
  --brand-soft: #e9f4fc;
  --blue: #07578c;
  --light: #8fdbff;
  --night: #071b31;
  --cyan: #8fdbff;
  --shadow: 0 8px 28px #173b6308;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  color: var(--ink);
  background: var(--bg);
}
body { background: var(--bg); }
::selection { background: #b9e5ff; color: #082c4d; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid #2298dc;
  outline-offset: 3px;
}
input, select, textarea { border-color: #cbdbe8; border-radius: 9px; }
input:not([type="checkbox"]):focus, select:focus, textarea:focus {
  border-color: #3297ce;
  box-shadow: 0 0 0 3px #249de510;
}
input::placeholder, textarea::placeholder { color: #60778c; }
.brand-mark, .sidebar .brand-mark, .auth-brand .brand-mark {
  color: #eefaff;
  background: linear-gradient(145deg, #1476ac, #06436d);
  border: 1px solid #7bcff65c;
  border-radius: 12px;
  box-shadow: inset 0 1px 0 #c0efff35, 0 4px 18px #04172c15;
  font-family: "Segoe UI", sans-serif;
  font-weight: 650;
}
.btn, .primary-button, .copy-prompt { border-radius: 8px; }
.btn-primary, .primary-button {
  color: #fff;
  background: linear-gradient(115deg, #07598c, #086ba2);
  border-color: #09699c;
  box-shadow: inset 0 1px 0 #ffffff26, 0 3px 8px #07598c16;
}
.btn-primary:hover:not(:disabled), .primary-button:hover:not(:disabled) {
  background: linear-gradient(115deg, #064a75, #087db6);
  box-shadow: 0 4px 14px #086ba32b;
}
.btn-secondary:hover:not(:disabled), .copy-prompt:hover { background: #edf7ff; border-color: #9ac8e5; }
.btn-danger { background: #ab403f; }
.btn-danger:hover { background: #8f3030; }

/* Public library: a quiet grid, one illuminated hero, two compact columns. */
.site-header {
  height: 80px;
  padding-inline: max(calc((100vw - 1128px) / 2), 28px);
  background: var(--night);
  border-bottom: 1px solid #7bbddd25;
  color: #f0f7fd;
}
.site-brand { gap: 12px; font-size: 15px; }
.site-brand strong { color: #a5c6dd; letter-spacing: 1px; font-size: 12px; }
.site-header nav { gap: 8px; color: #b7cbdf; }
.site-header nav a { padding: 9px 16px; border: 1px solid transparent; border-radius: 8px; }
.site-header nav a:hover { color: #fff; background: #ffffff0a; }
.site-header nav a[aria-current] { background: #174061; color: #c9efff; border-color: #86c7ee36; }
.site-header nav .account-entry { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-width: 86px; max-width: 220px; color: #e6f7ff; background: #17496a; border-color: #79c9f45c; }
.site-header nav .account-entry:hover { background: #206086; border-color: #a3e2ff; }
.account-entry svg { width: 17px; height: 17px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.account-entry [data-account-label] { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hero {
  max-width: 1128px;
  margin: 28px auto 0;
  border: 1px solid #2c6386;
  border-radius: 18px;
  background: radial-gradient(ellipse at 85% 45%, #0754836b, transparent 60%), linear-gradient(120deg, #091e35, #093353);
  isolation: isolate;
  box-shadow: 0 16px 38px #05233e14, inset 0 1px 0 #c7eeff1a;
}
.hero::before, .detail-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(#94d7ff0a 1px, transparent 1px), linear-gradient(90deg, #94d7ff0a 1px, transparent 1px);
  background-size: 40px 40px;
  mask-image: linear-gradient(90deg, transparent, #000);
  pointer-events: none;
  z-index: -1;
}
.hero::after {
  inset: -55px -30px -55px auto;
  width: 580px;
  background: url('/static/research-network.svg') center / contain no-repeat;
  opacity: .95;
  z-index: -1;
}
.hero-inner { padding: 30px 42px; min-height: 280px; }
.hero h1 { font-size: clamp(30px, 3vw, 42px); line-height: 1.32; letter-spacing: -.8px; max-width: 590px; font-weight: 650; }
.hero h1 em { display: block; color: #a4e3ff; }
.hero p { max-width: 520px; font-size: 13px; color: #bbd1e2; margin: 12px 0 18px; }
.hero-guide {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 16px;
  margin: 0;
  color: #dff6ff;
  background: #103e60;
  border: 1px solid #81cef664;
  border-radius: 8px;
  font-size: 12px;
  vertical-align: middle;
}
.hero-guide:hover { background: #1b567b; border-color: #9fe5ff; }
.hero-stats {
  position: static;
  display: inline-flex;
  vertical-align: middle;
  gap: 12px;
  margin: 0 0 0 25px;
  padding-left: 25px;
  border-color: #6e9ab24d;
}
.hero-stats strong { font-size: 38px; letter-spacing: -1.5px; font-weight: 400; color: #e0f6ff; }
.hero-stats > span { font-size: 11px; line-height: 1.7; color: #b5cee0; }
.library { padding-top: 32px; }
.library-heading { margin-bottom: 20px; }
.library-heading h2 { font-size: 24px; letter-spacing: -.5px; }
.library-heading p { color: #536c83; }
.filters { gap: 14px; padding: 16px 18px; background: #eaf0f6; border: 1px solid #dce5ef; border-radius: 12px; margin-bottom: 20px; }
.filters label > span { color: #506b82; font-size: 11px; }
.filters input, .filters select { border-color: #cadbe7; border-radius: 8px; height: 42px; font-size: 13px; }
.filters > span { color: #536c83; font-variant-numeric: tabular-nums; }
.skill-list { gap: 16px; }
.skill-card {
  padding: 23px 24px 18px;
  border: 1px solid #d4e1ed;
  border-radius: 12px;
  box-shadow: 0 4px 14px #173b6304;
  position: relative;
  overflow: hidden;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.skill-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 22px;
  right: 22px;
  height: 1px;
  background: linear-gradient(90deg, transparent, #35a7da, transparent);
  opacity: 0;
  transition: opacity .18s ease;
  pointer-events: none;
}
.skill-card:hover, .skill-card:focus-within { border-color: #79b6da; box-shadow: 0 8px 26px #0a4e7d0d; }
.skill-card:hover::before, .skill-card:focus-within::before { opacity: 1; }
.skill-card:has(.platform) { background: linear-gradient(135deg, #f3faff, #fff 65%); }
.skill-card .item-tags { min-height: 24px; }
.skill-category { border: 1px solid #cde3f0; background: #edf7fd; color: #22658b; border-radius: 5px; }
.platform { color: #526c83; }
.skill-card h3 { margin: 11px 0 4px; font-size: 19px; color: #133c5b; font-weight: 650; }
.skill-card h3 a { text-decoration: none; }
.skill-card h3 a > span { display: inline-block; color: #437da2; transition: transform .18s ease; }
.skill-card h3 a:hover > span { transform: translate(2px, -2px); }
.skill-english { font-family: Consolas, "SFMono-Regular", monospace; color: #536f86; font-size: 12px; letter-spacing: .1px; }
.skill-description { font-size: 13px; line-height: 1.85; color: #50687d; margin-top: 13px; }
.case-line { padding-top: 12px; border-top: 1px solid #e8eef5; margin: 14px 0 0; line-height: 1.8; color: #48687f; }
.case-line > span { color: #60788c; }
.library + .contact-team { background: linear-gradient(110deg, #e5eff8, #eff7fc); border: 1px solid #caddeb; border-radius: 12px; }
.contact-team h2 { font-size: 21px; color: #173e5b; }
footer { color: #526e85; border-color: #d4e1ec; }
footer a:hover { color: #075f93; }

/* Detail pages share the library surface without changing their anchors. */
.back-link { color: #466e8a; margin-bottom: 22px; }
.detail-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 32px 36px;
  border: 1px solid #2e6385;
  border-radius: 16px;
  color: #eff9ff;
  background: radial-gradient(ellipse at right top, #146a923d, transparent 60%), #0a2945;
}
.detail-hero::after { content: ""; position: absolute; width: 240px; height: 240px; right: -90px; top: -100px; border: 1px solid #7dd9ff36; border-radius: 50%; box-shadow: 0 0 0 30px #80d5ff08, 0 0 0 60px #80d5ff04; pointer-events: none; z-index: -1; }
.detail-hero h1 { font-size: 34px; margin: 18px 0 8px; letter-spacing: -.5px; }
.detail-hero > p { color: #c1d5e5; font-size: 14px; }
.detail-hero > .skill-english { font-size: 12px; color: #98c9e8; }
.detail-hero .skill-category { background: #174568; border-color: #659dc84d; color: #cceeff; }
.detail-hero .platform { color: #b3d3e9; }
.detail-hero .version { color: #e8d09e; }
.detail-hero-actions > span { color: #b4cbdf; }
.detail-hero-actions > a:last-child { color: #b1e3ff; }
.detail-hero .primary-button { background: #d6f0ff; color: #103c5b; border-color: #d6f0ff; }
.detail-hero .primary-button:hover { background: #fff; }
.detail-layout { gap: 28px; }
.detail-section { border: 1px solid var(--line); border-radius: 12px; background: #fff; padding: 26px; margin-bottom: 20px; }
.detail-section h2 { font-size: 22px; color: #173c58; margin: 0 0 22px; display: flex; align-items: center; gap: 10px; }
.detail-section h2::before { content: ""; width: 3px; height: 18px; border-radius: 3px; background: linear-gradient(#0b6da7, #7bd3f9); }
.detail-features { color: #3d5d75; line-height: 1.85; }
.case-box { background: #f4f8fc; border-color: #e0e9f1; border-radius: 9px; padding: 20px; }
.case-box > span, .sample-note, .section-intro { color: #5d7287; }
.case-box p, .capability-card p { color: #506b81; }
.capability-card { background: #f8fbfe; border-color: #dbe7f1; border-radius: 8px; padding: 16px; }
.capability-card h3 { font-size: 14px; }
.capability-card code { color: #4a6b84; font-size: 11px; }
.getting-started { background: #eaf2f9; border-color: #cfdfed; border-radius: 12px; padding: 24px; }
.getting-started h2 { font-size: 20px; color: #173e5b; }
.getting-started li > p, .requirements p { color: #4e6b82; }
.getting-started li > span { color: #075f93; font-variant-numeric: tabular-nums; }
.prompt-card { border-color: #d5e3ee; border-radius: 9px; }
.prompt-card > div { background: #f4f8fc; }
.prompt-card pre { color: #365873; }
.result-preview { border-radius: 9px; }
.preview-heading { background: #eaf3fa; color: #254e6c; }
.sample-tag { color: #526c80; }

/* Workspace: stable layouts and readable tables, with shared blue accents. */
.sidebar { background: radial-gradient(ellipse at 0 0, #15436788, transparent 48%), linear-gradient(180deg, #0a233e, #071b31); border-right-color: #163d5b; }
.sidebar .brand-title { color: #eff8ff; }
.sidebar .brand-product { color: #b7d7ed; font-size: 13px; font-weight: 450; letter-spacing: .6px; margin-top: 4px; }
.workspace-label { color: #9cb9d1; }
.nav-btn { border-radius: 9px; color: #b6cde1; }
.nav-btn.active { color: #f2fbff; background: linear-gradient(90deg, #1d4e70, #123651); border-color: #6ab9e54a; box-shadow: inset 0 1px 0 #c6eaff10; }
.nav-btn.active::before { display: none; }
.nav-btn.active::after { content: ""; width: 4px; height: 4px; border-radius: 50%; background: #9ce6ff; box-shadow: 0 0 7px #7bd7ff88; margin-left: auto; flex: none; }
.nav-btn .icon { color: #84b8dc; }
.nav-btn.active .icon { color: #b6eaff; }
.sidebar-note { background: #ffffff04; border-color: #a5d8ff1c; border-radius: 10px; }
.sidebar-note p { color: #afc7db; }
.sidebar-profile { border-color: #a6cbe31f; }
.topbar { height: 68px; background: #fafdff; border-color: #dbe6ef; }
.topbar::after { width: 100%; height: 1px; background: linear-gradient(90deg, #55acd8, #dbe6ef 40%, transparent); }
.content-shell { background: radial-gradient(ellipse at 95% 0, #dcecf955, transparent 45%), var(--bg); }
.page-header h1 { color: #143754; font-size: 28px; letter-spacing: -.5px; }
.page-header .subtitle { color: #567086; }
.panel, .metric { border-color: #d8e4ef; border-radius: 12px; box-shadow: var(--shadow); }
.metric::before { height: 2px; width: 30px; background: linear-gradient(90deg, #158ec7, #8ddcfa); }
.metric.featured { background: radial-gradient(ellipse at top right, #1e779d55, transparent 75%), #0b3352; border-color: #275b7a; }
.metric-top > .icon { border-radius: 8px; background: #edf6fc; color: #2478a7; border-color: #dcebf5; }
.metric-value { font-variant-numeric: tabular-nums; letter-spacing: -1px; color: #153f60; }
.panel-head { border-color: #e1eaf3; }
.panel-head h2 { color: #1c4562; }
.toolbar { background: #f7fafd; border-color: #e1eaf3; }
.search input, .toolbar select { background: #fff; border-color: #cddce8; border-radius: 8px; }
thead th { background: #f0f5fa; color: #526e85; border-color: #e0e9f1; }
tbody td { border-color: #e7eef5; }
tbody tr:hover { background: #f4f9fd; }
.badge { border-radius: 5px; }
.badge.good { background: #e5f3fc; color: #08628f; }
.badge.bad { background: #fff0ed; color: #a23d3c; }
.badge.warning { background: #fff4df; color: #805c20; }
.key-box { border-color: #bad9ec; border-radius: 10px; background: linear-gradient(115deg, #f1f8fd, #f8fbfe); }
.key-value { color: #194764; }
.key-actions { gap: 10px; }
.database-permission { border-color: #d8e4ee; border-radius: 8px; background: #fbfdff; }
.database-permission:has(input:checked) { border-color: #7bb8db; background: #eff8ff; }
.database-permission:focus-within { outline: 2px solid #2b96ce; outline-offset: 2px; }
.critical-service-card { border-top: 2px solid #73b6dc; }
.critical-service-card.service-has-failure { border-color: #e6b9b3; border-top-color: #b55d50; }
.service-icon { border-radius: 8px; background: #edf6fc; color: #217dab; }
dialog { border: 1px solid #c8ddeb; border-radius: 14px; box-shadow: 0 28px 95px #061d4250; }
dialog::backdrop { background: #061b386b; backdrop-filter: blur(3px); }
.modal-head { background: #f7fbff; border-color: #dce8f2; }
.modal-head h2 { color: #163f5e; }
.modal-footer { background: #f4f8fc; }
.toast { background: #0b3655; border: 1px solid #6badcf55; box-shadow: 0 10px 35px #062f4d24; }
.toast.error { background: #913f39; border-color: #bb6d65; }

/* Login uses the same illustration; it never intercepts input or focus. */
.auth-brand { background: radial-gradient(ellipse at 70% 80%, #0c527766, transparent 70%), #091f37; }
.auth-brand::before { background-size: 42px 42px; opacity: .55; }
.auth-brand::after { width: 580px; height: 480px; right: -185px; bottom: -45px; background: url('/static/research-network.svg') center / contain no-repeat; border: 0; border-radius: 0; box-shadow: none; transform: none; opacity: .7; }
.auth-copy { margin-top: 64px; margin-bottom: 120px; }
.auth-copy h1 { font-weight: 600; color: #f0faff; line-height: 1.5; }
.auth-copy > p { color: #b9d1e4; }
.auth-features { border-color: #b4dfff25; color: #bed8e9; }
.auth-foot { position: relative; color: #aac9dd; }
.auth-panel { background: radial-gradient(ellipse at 100% 0, #d7edfc88, transparent 65%), #f3f6fa; }
.auth-form { padding: 38px 36px 32px; border: 1px solid #cbdfea; border-radius: 16px; box-shadow: 0 22px 70px #123c5c0d; }
.auth-form::before { left: 36px; right: 36px; width: auto; height: 2px; background: linear-gradient(90deg, #0a6197, #81d4f6, transparent); }
.auth-form h1 { color: #143b59; }
.auth-form .btn-primary { min-height: 46px; }
.auth-form input { background: #fafdff; }
.auth-guide a { color: #1b6e9b; }
.auth-guide a, .public-service-guide a { text-decoration: none; }

@media (min-width: 761px) and (max-width: 1199px) {
  .hero { margin-inline: 36px; }
  .hero::after { right: -120px; opacity: .6; }
  .hero-inner { padding: 32px; min-height: 300px; }
  .hero p { max-width: 430px; }
  .library + .contact-team { margin-inline: 36px; }
  .detail-layout { grid-template-columns: minmax(0, 1fr) 270px; gap: 20px; }
  .detail-section { padding: 22px; }
  .detail-section .capability-grid { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .site-header { height: auto; min-height: 76px; padding: 18px 22px; gap: 18px; flex-wrap: wrap; }
  .site-header nav { gap: 4px; font-size: 12px; }
  .site-header nav a { padding: 8px 11px; }
  .hero { margin: 20px 20px 0; border-radius: 14px; }
  .hero-inner { padding: 28px; min-height: 290px; }
  .hero::after { right: -160px; width: 440px; opacity: .3; }
  .hero p { max-width: 440px; }
  .hero-stats { margin: 0 0 0 16px; padding-left: 16px; border-left: 1px solid #6e9ab24d; }
  .hero-stats strong { font-size: 32px; }
  .hero-stats > span { font-size: 10px; }
  .library { padding: 28px 20px; }
  .library-heading h2 { font-size: 23px; }
  .skill-card { padding: 22px; }
  .detail-main { padding: 24px 20px 40px; }
  .detail-hero { padding: 26px; }
  .detail-hero h1 { font-size: 28px; }
  .detail-layout { grid-template-columns: 1fr; gap: 20px; }
  .detail-section { padding: 22px; }
  .detail-section h2 { font-size: 21px; }
  .detail-section .capability-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .topbar { height: 63px; }
  .page-header h1 { font-size: 25px; }
  .metric, .panel { border-radius: 10px; }
  .auth-brand { min-height: 230px; }
  .auth-brand::after { width: 340px; height: 280px; right: -100px; bottom: -65px; opacity: .4; }
  .auth-copy { margin: 30px 0 0; }
  .auth-copy h1 { font-size: 25px; }
  .auth-panel { padding: 26px 20px 40px; }
  .auth-form { padding: 28px 24px; }
  .auth-form::before { left: 24px; right: 24px; }
}
@media (max-width: 540px) {
  .site-header { padding: 18px 20px 12px; gap: 15px; }
  .site-header nav { width: 100%; }
  .site-header nav a { flex: 1; text-align: center; }
  .site-header nav .account-entry { min-width: 0; flex: 1.2; }
  .hero { margin: 16px 16px 0; }
  .hero-inner { padding: 26px 23px; min-height: 0; }
  .hero h1 { font-size: 30px; line-height: 1.4; }
  .hero p { max-width: 270px; font-size: 12px; line-height: 1.85; margin-bottom: 20px; }
  .hero-stats { display: flex; margin: 23px 0 0; padding: 16px 0 0; border-left: 0; border-top: 1px solid #78b5dc33; width: fit-content; }
  .hero-stats strong { font-size: 29px; }
  .hero::after { right: -180px; top: -30px; bottom: -30px; opacity: .35; }
  .library { padding: 24px 16px; }
  .library-heading { gap: 10px; }
  .library-heading h2 { font-size: 21px; }
  .library-heading p { font-size: 11px; max-width: 125px; }
  .filters { padding: 14px; gap: 12px; }
  .search-label { max-width: none; }
  .skill-card { padding: 20px; }
  .skill-card h3 { font-size: 18px; }
  .skill-english { font-size: 11px; }
  .skill-description { font-size: 13px; }
  .case-line { font-size: 12px; }
  .case-line > span { display: inline; font-size: 11px; margin-right: 8px; }
  .library + .contact-team { margin: 0 16px 28px; padding: 23px; }
  .detail-main { padding: 20px 16px 32px; }
  .detail-hero { padding: 24px 21px; }
  .detail-hero h1 { font-size: 26px; }
  .detail-hero-actions { gap: 14px; }
  .detail-hero-actions > span { font-size: 11px; }
  .detail-section { padding: 20px 16px; }
  .detail-section .capability-grid { grid-template-columns: 1fr; }
  .getting-started { padding: 23px; }
  .detail-features { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .skill-card, .skill-card::before, .skill-card h3 a > span, .btn, .nav-btn, .sidebar { transition: none; }
  .skill-card h3 a:hover > span { transform: none; }
}
@media (forced-colors: active) {
  .hero, .detail-hero, .sidebar, .auth-brand { border: 1px solid CanvasText; }
  .hero::before, .hero::after, .detail-hero::before, .detail-hero::after, .auth-brand::before, .auth-brand::after { display: none; }
  .nav-btn.active, .site-header nav a[aria-current], .database-permission:has(input:checked) { outline: 2px solid Highlight; }
}
