:root {
  color-scheme: light;
  --ink: #141e2e;
  --muted: #536176;
  --line: #e0e6ed;
  --paper: #f5f7fa;
  --blue: #1d4ed8;
  --navy: #10223e;
  --font: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: var(--font); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
a { color: inherit; text-decoration: none; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #739bf1; outline-offset: 2px; }
.site-header {
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  position: sticky; top: 0; z-index: 5; height: 4.25rem; padding: 0 clamp(1rem, 2.4vw, 2.25rem);
  border-bottom: 1px solid var(--line); background: #fff;
}
.header-start, .brand { display: flex; align-items: center; }
.header-start { gap: 1.125rem; }
.brand { gap: .65rem; font-size: 1.05rem; font-weight: 720; white-space: nowrap; }
.brand-mark {
  display: inline-flex; justify-content: center; align-items: end; gap: 2px;
  flex: none; width: 2rem; height: 2rem; padding: 0 0 .49rem;
  border-radius: .58rem; background: #17666b; color: #fff;
}
.brand-mark i { width: .22rem; border-radius: 3px; height: .40rem; background: currentColor; transform: skewY(-17deg); }
.brand-mark i:nth-child(2) { height: .66rem; opacity: .8; }
.brand-mark i:nth-child(3) { height: .94rem; background: #a2f0d1; }
.icon-button, .subtle-button {
  display: inline-flex; align-items: center; justify-content: center; min-height: 2.4rem;
  border: 1px solid var(--line); border-radius: .55rem; background: #fff; color: #33435a;
}
.icon-button { width: 2.45rem; padding: 0; }
.subtle-button { padding: .45rem .8rem; font-size: .88rem; font-weight: 620; white-space: nowrap; }
.icon-button:hover, .subtle-button:hover { background: #edf3fb; border-color: #c8d5e6; }
.sidebar-icon { width: 16px; height: 14px; border: 1.65px solid currentColor; border-radius: 3px; background: linear-gradient(90deg, transparent 5px, currentColor 5px 6px, transparent 6px); }
.shell { display: flex; min-height: calc(100vh - 4.25rem); }
.sidebar {
  position: sticky; top: 4.25rem; height: calc(100dvh - 4.25rem); width: 13.8rem; flex: none;
  overflow-y: auto; padding: 1.65rem .9rem 1.1rem; border-right: 1px solid var(--line); background: #fff;
}
.sidebar-top { display: flex; align-items: center; justify-content: space-between; margin: 0 .65rem .8rem; }
.sidebar-top h2 { margin: 0; font-size: .9rem; color: #43536a; }
.sidebar-top span { font-size: .76rem; color: var(--muted); }
.industry-row { display: flex; align-items: center; border-radius: .45rem; }
.industry-link, .category-link {
  display: flex; align-items: center; justify-content: space-between; width: 100%;
  min-height: 2.43rem; margin: .12rem 0; padding: .35rem .7rem; border: 0; border-radius: .45rem;
  background: none; color: #40516a; text-align: left; font-size: .9rem;
}
.industry-row .industry-link { flex: 1; min-width: 0; margin: .05rem 0; }
.all-cases-link { margin-bottom: .55rem; }
.industry-link:hover, .category-link:hover, .industry-disclosure:hover { background: #f0f4f8; }
.industry-link[aria-pressed="true"], .category-link[aria-pressed="true"] { background: #e8f2fc; color: #18478b; font-weight: 700; }
.industry-row.has-selection { background: #f3f7fc; }
.industry-number { min-width: 1.5rem; color: #637288; text-align: center; font-size: .78rem; font-variant-numeric: tabular-nums; }
.industry-link[aria-pressed="true"] .industry-number, .category-link[aria-pressed="true"] .industry-number { color: #23569c; }
.industry-disclosure {
  display: grid; place-items: center; flex: none; width: 2.08rem; min-height: 2.43rem;
  border: 0; border-radius: .35rem; color: #485e76; background: none;
}
.industry-disclosure::before {
  content: ""; width: .43rem; height: .43rem; border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor; transform: rotate(-45deg);
}
.industry-disclosure[aria-expanded="true"]::before { transform: translateY(-.12rem) rotate(45deg); }
.industry-children { list-style: none; margin: .25rem .15rem .55rem .82rem; padding: 0 0 0 .42rem; border-left: 1px solid var(--line); }
.category-link { gap: .35rem; min-height: 2.12rem; padding: .26rem .38rem; font-size: .82rem; line-height: 1.4; }
.main-content { flex: 1; min-width: 0; padding: 1.9rem clamp(1.15rem, 2.7vw, 2.8rem) 3.5rem; }
.content-wrap { max-width: 87rem; margin: 0 auto; }
.hero {
  position: relative; isolation: isolate; overflow: hidden; display: flex; align-items: center; min-height: 16.25rem;
  padding: 2.2rem clamp(1.5rem, 4.4vw, 4.65rem); border-radius: 1rem;
  background: radial-gradient(ellipse at 92% 78%, #226a70 0, transparent 54%), linear-gradient(112deg, #101f3a 22%, #17304f 65%, #154956); color: #fff;
}
.hero-copy { position: relative; z-index: 2; max-width: 56%; }
.hero-overline { margin: 0 0 .7rem; font-size: .86rem; color: #a7ead7; font-weight: 650; letter-spacing: .12em; }
.hero h1 { margin: 0; font-size: clamp(2.2rem, 4vw, 3.7rem); letter-spacing: -.055em; line-height: 1.12; }
.hero-description { margin: 1rem 0 0; color: #e3ebf5; font-size: clamp(.95rem, 1.3vw, 1.05rem); line-height: 1.75; text-wrap: pretty; }
.hero-art { position: absolute; z-index: 1; inset: 0 0 0 53%; pointer-events: none; }
.hero-decoration {
  position: absolute; inset: 0;
  background-image: linear-gradient(#a3e2df14 1px, transparent 1px), linear-gradient(90deg, #a3e2df14 1px, transparent 1px);
  background-size: 25px 25px; mask-image: linear-gradient(90deg, transparent, black 25%);
}
.hero-window {
  position: absolute; top: 2.25rem; left: 4%; width: 94%; max-width: 34rem; overflow: hidden;
  transform: rotate(-7deg) translateX(2%); transform-origin: left top;
  border: 1px solid #d6e9ed54; border-radius: .7rem; background: #e5ebf1;
  box-shadow: 0 15px 58px #060f2770; opacity: .95;
}
.window-bar { display: flex; align-items: center; gap: .29rem; height: 1.25rem; padding-left: .65rem; background: #e7edf2; border-bottom: 1px solid #cbd6e2; }
.window-bar i { width: .27rem; height: .27rem; border-radius: 50%; background: #8ca1b7; }
.hero-window img { display: block; width: 100%; height: auto; }
.cases-section { margin-top: 2rem; }
.cases-header { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.05rem; }
.heading-cluster { display: flex; align-items: center; gap: .7rem; }
.cases-header h2 { margin: 0; font-size: clamp(1.3rem, 2vw, 1.65rem); letter-spacing: -.035em; overflow-wrap: anywhere; }
.case-count { color: #505f72; background: #e8edf4; border-radius: .35rem; padding: .22rem .44rem; font-size: .76rem; white-space: nowrap; }
.search-box {
  display: flex; align-items: center; gap: .55rem; width: min(100%, 17.25rem);
  padding: 0 .72rem; height: 2.55rem; border: 1px solid #d7e0ea; border-radius: .58rem; background: #fff;
}
.search-box:focus-within { outline: 2px solid #739bf1; outline-offset: 1px; }
.search-icon { position: relative; width: .79rem; height: .79rem; flex: none; border: 1.55px solid #596a7e; border-radius: 50%; }
.search-icon::after { content: ""; position: absolute; width: .32rem; height: 1.5px; right: -.22rem; bottom: -.10rem; background: #596a7e; transform: rotate(48deg); }
.search-box input { width: 100%; border: 0; background: transparent; min-width: 0; font-size: .9rem; }
.search-box input:focus-visible { outline: none; }
.search-box input::placeholder { color: #5b697c; opacity: 1; }
.category-links { display: flex; flex-wrap: wrap; gap: .42rem; margin-bottom: 1.1rem; }
.category-shortcut {
  min-height: 2.2rem; padding: .3rem .65rem; border: 1px solid #d7e0ea;
  border-radius: .48rem; background: #fff; color: #40516a; font-size: .87rem;
}
.category-shortcut:hover { background: #edf3fb; border-color: #c8d5e6; }
.category-shortcut[aria-pressed="true"] { background: #e8f2fc; border-color: #9fbee9; color: #18478b; font-weight: 700; }
.case-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.case-card {
  display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--line);
  border-radius: .8rem; background: #fff; box-shadow: 0 2px 4px #17294408;
}
.cover { padding: .78rem .8rem 0; overflow: hidden; background: #e8eef6; aspect-ratio: 1.76; }
.case-card:nth-child(3n + 2) .cover { background: #e2eeeb; }
.case-card:nth-child(3n + 3) .cover { background: #ebe9f3; }
.cover img {
  display: block; width: 100%; height: 100%; object-fit: cover; object-position: center top;
  border: 1px solid #26335324; border-bottom: 0; border-radius: .44rem .44rem 0 0; box-shadow: 0 4px 18px #14244518;
}
.card-content { flex: 1; display: flex; flex-direction: column; padding: 1rem 1rem 1.05rem; }
.card-meta { display: flex; align-items: center; gap: .6rem; margin-bottom: .57rem; }
.case-industry { color: #135c60; background: #e5f3ef; border-radius: .28rem; padding: .18rem .43rem; font-size: .78rem; font-weight: 680; }
.case-source { color: var(--muted); font-size: .76rem; }
.case-card h3 { margin: 0; font-size: clamp(1.02rem, 1.39vw, 1.27rem); line-height: 1.35; letter-spacing: -.025em; }
.case-description { color: var(--muted); margin: .55rem 0 .7rem; font-size: .91rem; line-height: 1.65; }
.case-highlights { margin: 0 0 .9rem; padding: 0; list-style: none; display: flex; flex-wrap: wrap; gap: .28rem .45rem; }
.case-highlights li { border-radius: .28rem; background: #f0f3f7; color: #415169; padding: .16rem .38rem; font-size: .74rem; white-space: nowrap; }
.case-link {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; margin-top: auto;
  min-height: 2.42rem; align-self: flex-start; padding: .45rem .66rem; border: 1px solid #baceee;
  border-radius: .48rem; color: #17458b; background: #f7faff; font-size: .86rem; font-weight: 680;
}
.case-link:hover { color: #fff; background: #214f95; border-color: #214f95; }
.window-icon { width: .74rem; height: .65rem; border: 1.4px solid currentColor; border-radius: 2px; position: relative; }
.window-icon::before { content: ""; position: absolute; width: .73rem; height: .64rem; top: -.25rem; right: -.24rem; border: 1.4px solid currentColor; border-left: 0; border-bottom: 0; border-radius: 0 2px 0 0; }
.sidebar-backdrop { position: fixed; z-index: 3; inset: 4.25rem 0 0; width: 100%; border: 0; background: #17283a65; }
.viewer-page { display: flex; flex-direction: column; height: 100dvh; background: #fff; }
.viewer-header {
  min-height: 3.75rem; display: flex; align-items: center; justify-content: space-between; gap: .85rem;
  padding: .55rem clamp(.8rem, 2vw, 1.65rem); border-bottom: 1px solid var(--line); background: #fff;
}
.viewer-header h1 { margin: 0; font-size: 1.03rem; text-align: center; }
.viewer-theme { display: flex; align-items: center; gap: .48rem; flex: none; font-size: .85rem; font-weight: 620; }
.viewer-theme select { padding: .35rem .45rem; border: 1px solid #cbd6e4; border-radius: .45rem; background: #f7faff; }
#prototype-frame { width: 100%; flex: 1; min-height: 0; border: 0; }
.login-page { display: grid; min-height: 100dvh; place-items: center; padding: 1.3rem; background: #edf1f6; }
.login-shell {
  width: min(100%, 62rem); min-height: 33rem; display: grid; grid-template-columns: 1.08fr 1fr;
  border-radius: 1.35rem; overflow: hidden; background: #fff; box-shadow: 0 20px 70px #12223c1a;
}
.login-brand { position: relative; overflow: hidden; isolation: isolate; color: #fff; background: linear-gradient(153deg, #11233e 37%, #17575d 100%); padding: clamp(1.5rem, 4vw, 3.5rem); }
.login-brand .brand { color: #fff; }
.login-intro { position: relative; z-index: 1; margin-top: clamp(3.2rem, 9vw, 7rem); }
.login-intro h1 { margin: .65rem 0 .95rem; font-size: clamp(2.15rem, 4.8vw, 3.75rem); line-height: 1.1; letter-spacing: -.055em; }
.login-intro p { margin: 0; color: #e2eff7; line-height: 1.65; }
.login-intro p:first-child { color: #a5ebd9; font-size: .92rem; letter-spacing: .14em; }
.login-art { position: absolute; inset: auto -10% -42% 22%; aspect-ratio: 1; }
.login-art i { position: absolute; inset: 0; border-radius: 50%; border: 1px solid #a9ead45e; }
.login-art i:nth-child(2) { inset: 8%; }
.login-art i:nth-child(3) { inset: 16%; }
.login-art i:nth-child(4) { inset: 24%; box-shadow: 0 0 52px #a0f7cf27 inset; }
.login-panel { display: grid; place-items: center; padding: clamp(1.45rem, 4.5vw, 4.4rem); }
.login-content { width: 100%; max-width: 22rem; }
.login-content h2 { margin: 0; font-size: 1.7rem; letter-spacing: -.03em; }
.login-content > p { color: var(--muted); margin: .55rem 0 1.8rem; font-size: .95rem; }
.login-content form { display: flex; flex-direction: column; gap: .62rem; }
.login-content label { font-size: .94rem; font-weight: 625; }
.login-content input:not([type="hidden"]) { width: 100%; min-height: 2.9rem; border: 1px solid #cbd6e3; border-radius: .5rem; padding: .6rem .7rem; background: #fbfcfe; margin-bottom: .48rem; }
.primary { min-height: 2.8rem; border: 0; border-radius: .52rem; background: #17666b; color: #fff; font-weight: 680; }
.primary:hover { background: #115158; }
.login-content .primary { margin-top: .5rem; }
.login-error { margin: .1rem 0 0; color: #a32633; font-size: .9rem; }
@media (max-width: 1160px) { .case-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .site-header { height: 3.7rem; }
  .header-start { gap: .55rem; }
  .sidebar-backdrop { top: 3.7rem; }
  .sidebar { position: fixed; z-index: 4; top: 3.7rem; left: 0; height: calc(100dvh - 3.7rem); box-shadow: 10px 0 28px #17283a18; }
  .shell { min-height: calc(100dvh - 3.7rem); }
  .main-content { padding-top: 1rem; }
  .hero { min-height: 13.5rem; }
  .hero-copy { max-width: 73%; }
  .hero-art { left: 62%; opacity: .38; }
  .hero-window { width: 150%; top: 3.15rem; }
  .cases-section { margin-top: 1.5rem; }
}
@media (max-width: 540px) {
  .cases-header { align-items: stretch; flex-direction: column; gap: .72rem; }
  .search-box { width: 100%; }
  .case-grid { grid-template-columns: 1fr; }
  .hero { padding: 1.45rem; min-height: 12.5rem; }
  .hero-copy { max-width: 100%; }
  .hero-description { max-width: 17rem; }
  .hero-art { opacity: .19; }
  .login-shell { grid-template-columns: 1fr; min-height: 0; }
  .login-intro { margin-top: 2.15rem; }
  .login-panel { padding: 1.65rem 1.45rem 2rem; }
  .viewer-header { flex-wrap: wrap; row-gap: .5rem; }
  .viewer-header .brand { font-size: .92rem; }
  .viewer-header h1 { order: 3; width: 100%; text-align: left; font-size: .96rem; }
}
