:root {
  --canvas: #f3f7f6;
  --surface: #fffdf8;
  --surface-soft: #e4f0ef;
  --ink: #10242a;
  --body: #263d43;
  --muted: #5e7277;
  --line: #c9d9d8;
  --line-strong: #96b8bd;
  --coral: #b86150;
  --hit-blue: #26718e;
  --amber: #a87935;
  --green: #26718e;
  --dark: #102b33;
  --dark-panel: #173942;
  --dark-text: #f3f8f7;
  --radius: 8px;
  --max: 1180px;
  --font-sans: "Inter", "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  --font-serif: "Source Han Serif SC", "Noto Serif SC", "Songti SC", SimSun, serif;
  --font-mono: "Cascadia Code", "Consolas", "SFMono-Regular", monospace;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--canvas);
  color: var(--body);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    repeating-linear-gradient(0deg, transparent 0, transparent 39px, rgba(38, 113, 142, 0.055) 40px),
    repeating-linear-gradient(90deg, transparent 0, transparent 39px, rgba(38, 113, 142, 0.055) 40px);
  z-index: -1;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
}

button,
input,
textarea,
select {
  font: inherit;
}

:focus-visible {
  outline: 3px solid rgba(38, 113, 142, 0.44);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 200;
  transform: translateY(-160%);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--dark-text);
  padding: 10px 14px;
  font-weight: 700;
  transition: transform 180ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.site-shell {
  width: min(100% - 48px, var(--max));
  margin: 0 auto;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(201, 217, 216, 0.9);
  background: rgba(243, 247, 246, 0.95);
  backdrop-filter: blur(16px);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 76px;
  padding: 10px 0;
}

.brand-area {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.logo-line {
  display: flex;
  align-items: center;
  gap: 14px;
  flex: 0 0 auto;
}

.logo-line img {
  object-fit: contain;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.logo-hit,
.logo-hss {
  width: 66px;
  height: 66px;
}

.logo-siac {
  width: 116px;
  height: 55px;
}

.brand-text {
  min-width: 0;
}

.brand-text strong {
  display: block;
  color: var(--ink);
  font-weight: 780;
  line-height: 1.25;
}

.brand-text span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}

.site-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex: 0 0 auto;
}

.site-nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  border-radius: var(--radius);
  color: var(--body);
  font-size: 14px;
  font-weight: 680;
  white-space: nowrap;
  padding: 10px 12px;
  transition: background 180ms ease, color 180ms ease;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  background: var(--surface-soft);
  color: var(--ink);
}

.home-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(360px, 0.96fr);
  gap: 56px;
  align-items: center;
  padding: 64px 0 54px;
}

.eyebrow,
.card-kicker,
.page-kicker {
  color: var(--hit-blue);
  font-size: 13px;
  font-weight: 780;
  line-height: 1.4;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
}

.eyebrow::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--hit-blue);
}

h1,
h2,
h3,
p {
  margin: 0;
}

h1,
h2 {
  color: var(--ink);
  font-family: var(--font-serif);
  font-weight: 620;
  line-height: 1.18;
}

h1 {
  max-width: 760px;
  font-size: 52px;
}

h2 {
  font-size: 34px;
}

h3 {
  color: var(--ink);
  font-size: 20px;
  line-height: 1.35;
}

.hero-lead {
  max-width: 680px;
  margin-top: 22px;
  color: var(--body);
  font-size: 19px;
  line-height: 1.82;
}

.lab-intro {
  max-width: 720px;
  color: #25434a;
  font-size: 18px;
  line-height: 1.9;
}

.hero-actions,
.page-actions,
.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hero-actions {
  margin-top: 30px;
}

.hero-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.hero-proof span {
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.66);
  color: var(--body);
  font-size: 13px;
  font-weight: 720;
  padding: 7px 10px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
  font-weight: 760;
  line-height: 1.2;
  padding: 11px 16px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: var(--ink);
}

.button.primary {
  border-color: var(--hit-blue);
  background: var(--hit-blue);
  color: #f7fbfb;
}

.button.dark {
  border-color: rgba(246, 239, 228, 0.2);
  background: var(--dark);
  color: var(--dark-text);
}

.button svg,
.text-link svg,
.card-open svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.portal-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--dark-text);
  overflow: hidden;
}

.portal-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid rgba(246, 239, 228, 0.12);
  padding: 16px 18px;
  font-family: var(--font-mono);
  font-size: 12px;
}

.portal-panel-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.route-row {
  display: grid;
  grid-template-columns: 108px minmax(0, 1fr) 88px;
  gap: 10px;
  align-items: center;
  border: 1px solid rgba(246, 239, 228, 0.12);
  border-radius: var(--radius);
  background: var(--dark-panel);
  padding: 12px;
}

.route-row span {
  color: rgba(246, 239, 228, 0.7);
  font-family: var(--font-mono);
  font-size: 12px;
}

.route-row strong {
  color: var(--dark-text);
  font-size: 15px;
}

.route-row small {
  color: rgba(246, 239, 228, 0.68);
  font-size: 12px;
  text-align: right;
}

.systems-map {
  border: 1px solid rgba(246, 239, 228, 0.16);
  border-radius: var(--radius);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0)),
    var(--dark);
  color: var(--dark-text);
  overflow: hidden;
  box-shadow: 0 26px 80px rgba(16, 43, 51, 0.18);
}

.systems-map-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid rgba(246, 239, 228, 0.12);
  padding: 18px;
}

.systems-map-head strong {
  display: block;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.02em;
}

.systems-map-head span,
.systems-map-head small {
  color: rgba(243, 248, 247, 0.68);
  font-family: var(--font-mono);
  font-size: 11px;
}

.systems-map-body {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.system-node {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 10px 12px;
  align-items: start;
  position: relative;
  border: 1px solid rgba(246, 239, 228, 0.13);
  border-radius: var(--radius);
  background: var(--dark-panel);
  padding: 14px;
  transition: border-color 180ms ease, transform 180ms ease, background 180ms ease;
}

.system-node:hover {
  transform: translateY(-2px);
  border-color: rgba(243, 248, 247, 0.42);
  background: #1b4651;
}

.system-node span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(243, 248, 247, 0.28);
  border-radius: 50%;
  color: rgba(243, 248, 247, 0.86);
  font-family: var(--font-mono);
  font-size: 12px;
}

.system-node strong {
  color: var(--dark-text);
  font-size: 16px;
  line-height: 1.35;
}

.system-node small {
  grid-column: 2;
  color: rgba(243, 248, 247, 0.68);
  font-size: 12px;
}

.mechanism-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid rgba(246, 239, 228, 0.12);
  background: rgba(246, 239, 228, 0.1);
}

.mechanism-strip span {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(23, 57, 66, 0.92);
  color: rgba(243, 248, 247, 0.82);
  font-size: 12px;
  font-weight: 720;
  text-align: center;
  padding: 8px;
}

.research-position {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(320px, 0.42fr);
  gap: 54px;
  align-items: end;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 34px 0;
}

.research-position p {
  color: var(--body);
  font-size: 17px;
  line-height: 1.82;
}

.section {
  padding: 58px 0 76px;
}

.section-head {
  display: grid;
  grid-template-columns: minmax(0, 0.7fr) minmax(320px, 0.3fr);
  gap: 48px;
  align-items: end;
  margin-bottom: 28px;
}

.section-head p {
  color: var(--muted);
  font-size: 16px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.project-card {
  display: flex;
  flex-direction: column;
  min-height: 390px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  color: var(--body);
  padding: 22px;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease;
}

.research-grid {
  align-items: stretch;
}

.research-card {
  min-height: 520px;
  background: rgba(255, 253, 248, 0.92);
}

.project-card:hover {
  transform: translateY(-3px);
  border-color: var(--ink);
  background: var(--surface);
}

.project-card h3 {
  margin-top: 10px;
}

.project-card p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

.card-meta {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.card-meta li {
  border-top: 1px solid var(--line);
  color: var(--body);
  font-size: 13px;
  padding-top: 8px;
}

.card-field {
  border-top: 1px solid var(--line);
  margin-top: 16px;
  padding-top: 12px;
}

.card-field strong {
  display: block;
  color: var(--ink);
  font-size: 13px;
  margin-bottom: 4px;
}

.card-field span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.62;
}

.evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 16px;
}

.evidence-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface-soft);
  color: var(--body);
  font-size: 12px;
  font-weight: 680;
  line-height: 1.2;
  padding: 6px 8px;
}

.card-open {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  color: var(--ink);
  font-weight: 780;
}

.site-note {
  margin-top: 26px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
  padding-top: 18px;
}

.mainline-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.mainline-card {
  min-height: 260px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.9);
  padding: 22px;
}

.mainline-card span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--hit-blue);
  color: #f7fbfb;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
}

.mainline-card h3 {
  margin-top: 18px;
}

.mainline-card p {
  margin-top: 12px;
  color: var(--muted);
}

.mainline-card strong {
  display: block;
  border-top: 1px solid var(--line);
  margin-top: 18px;
  color: var(--ink);
  font-size: 13px;
  padding-top: 12px;
}

.page-main {
  padding: 48px 0 76px;
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  color: var(--muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.breadcrumb a:hover {
  color: var(--ink);
}

.page-hero {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  margin-bottom: 40px;
}

.page-hero h1 {
  font-size: 46px;
}

.page-hero p {
  margin-top: 18px;
  color: var(--body);
  font-size: 18px;
  line-height: 1.8;
}

.page-actions {
  margin-top: 28px;
}

.fact-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  border-top: 1px solid var(--line-strong);
  padding-top: 18px;
}

.fact-list div {
  display: grid;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.7);
  padding: 14px;
}

.fact-list div:first-child {
  border-color: var(--line-strong);
  background: var(--surface-soft);
}

.fact-list span {
  color: var(--muted);
  font-size: 13px;
}

.fact-list strong {
  color: var(--ink);
  font-size: 15px;
}

.content-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  align-items: start;
}

.project-sections {
  margin-top: 24px;
}

.project-summary {
  position: static;
}

.panel,
.detail-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 253, 248, 0.88);
  padding: 22px;
}

.panel h2,
.detail-panel h2 {
  margin-bottom: 14px;
  font-size: 26px;
}

.panel p,
.detail-panel p {
  color: var(--muted);
}

.stack {
  display: grid;
  gap: 16px;
}

.list-clean {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.list-clean li {
  border-top: 1px solid var(--line);
  padding-top: 12px;
}

.list-clean strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.list-clean span {
  color: var(--muted);
  font-size: 14px;
}

.section-label {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--hit-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 780;
  margin-bottom: 14px;
  padding: 4px 9px;
}

.evidence-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.evidence-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.evidence-card span {
  display: block;
  color: var(--hit-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 8px;
}

.evidence-card strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.evidence-card p {
  color: var(--muted);
  font-size: 14px;
}

.instrument-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.instrument {
  min-height: 138px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 16px;
}

.instrument span {
  display: block;
  color: var(--hit-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  margin-bottom: 8px;
}

.instrument strong {
  display: block;
  color: var(--ink);
  margin-bottom: 6px;
}

.instrument p {
  color: var(--muted);
  font-size: 14px;
}

.demo-frame {
  border: 1px solid rgba(246, 239, 228, 0.14);
  border-radius: var(--radius);
  background: var(--dark);
  overflow: hidden;
}

.demo-frame-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 56px;
  border-bottom: 1px solid rgba(246, 239, 228, 0.12);
  color: var(--dark-text);
  padding: 12px 16px;
}

.demo-frame-head strong {
  font-family: var(--font-mono);
  font-size: 13px;
}

.demo-frame iframe {
  display: block;
  width: 100%;
  height: 660px;
  border: 0;
  background: #fffdf8;
}

.patent-layout {
  display: grid;
  grid-template-columns: 0.38fr 0.62fr;
  gap: 24px;
  align-items: start;
}

.demo-page-main {
  width: min(100% - 48px, 1360px);
}

.demo-hero {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 32px;
  margin-bottom: 24px;
}

.demo-hero h1 {
  margin-bottom: 10px;
}

.demo-hero p {
  max-width: 760px;
  color: var(--muted);
  font-size: 18px;
  margin: 0;
}

.exclude-note {
  border-left: 4px solid var(--hit-blue);
  background: #dcecee;
  color: var(--body);
  padding: 12px 14px;
  margin-bottom: 16px;
  font-size: 14px;
}

.flow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.wireframe-grid {
  display: grid;
  grid-template-columns: 0.85fr 1.2fr 0.85fr;
  gap: 12px;
}

.wire-pane {
  min-height: 260px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: rgba(228, 240, 239, 0.54);
  padding: 16px;
}

.wire-pane strong {
  display: block;
  color: var(--ink);
  margin-bottom: 8px;
}

.wire-card {
  height: 54px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 12px;
}

.mock-shell {
  display: grid;
  grid-template-columns: 0.9fr 1.2fr;
  gap: 14px;
}

.metric-row {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
  margin-top: 10px;
}

.meter {
  height: 9px;
  border-radius: 999px;
  background: #d8e7e7;
  overflow: hidden;
}

.meter i {
  display: block;
  height: 100%;
  background: var(--green);
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.tag {
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--body);
  font-size: 12px;
  padding: 5px 9px;
}

.patent-interface-section {
  margin-bottom: 28px;
  overflow: hidden;
}

.patent-interface-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 20px;
}

.patent-interface-head p {
  max-width: 720px;
  color: var(--muted);
  margin: 10px 0 0;
}

.patent-status {
  min-width: 190px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  padding: 14px;
}

.patent-status span,
.console-section-title span,
.console-topbar span,
.agent-trace span,
.algorithm-card span,
.console-footer span {
  color: var(--hit-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
}

.patent-status strong,
.console-section-title strong {
  display: block;
  color: var(--ink);
  margin-top: 4px;
}

.tourism-console {
  border: 1px solid rgba(246, 239, 228, 0.16);
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--dark-text);
  padding: 16px;
  box-shadow: 0 20px 54px rgba(16, 43, 51, 0.18);
}

.console-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid rgba(246, 239, 228, 0.14);
  padding-bottom: 14px;
}

.console-topbar span {
  color: #a9cdd2;
}

.console-topbar strong {
  display: block;
  margin-top: 3px;
}

.console-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.console-tabs span {
  min-height: 34px;
  border: 1px solid rgba(246, 239, 228, 0.18);
  border-radius: 999px;
  color: #dcecec;
  padding: 6px 10px;
}

.console-tabs .active {
  background: #f7fbfb;
  color: var(--dark);
}

.console-grid {
  display: grid;
  grid-template-columns: minmax(210px, 0.88fr) minmax(320px, 1.35fr) minmax(230px, 0.96fr);
  gap: 14px;
  margin-top: 14px;
}

.traveler-panel,
.recommendation-feed,
.agent-trace-panel {
  min-width: 0;
  border: 1px solid rgba(201, 217, 216, 0.8);
  border-radius: var(--radius);
  background: #f7fbfb;
  color: var(--body);
  padding: 16px;
}

.profile-chip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 14px;
  padding: 12px;
}

.profile-chip span,
.context-list span,
.rank-line span,
.compact-rec-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.profile-chip strong,
.rank-line strong,
.compact-rec-list strong {
  color: var(--ink);
}

.mood-matrix {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.mood-matrix div {
  position: relative;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 8px;
  align-items: center;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  overflow: hidden;
  padding: 8px 10px;
}

.mood-matrix div span,
.mood-matrix div strong {
  position: relative;
  z-index: 1;
}

.mood-matrix div strong {
  text-align: right;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mood-matrix div i {
  position: absolute;
  inset: auto auto 0 0;
  display: block;
  height: 4px;
  background: var(--hit-blue);
}

.context-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.context-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.context-list strong {
  color: var(--ink);
  font-size: 13px;
  text-align: right;
}

.recommendation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 14px;
  padding: 14px;
}

.recommendation-card.featured {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 14px;
}

.route-visual {
  position: relative;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dcecee;
  overflow: hidden;
}

.route-visual::before,
.route-visual::after,
.route-visual span,
.route-visual i {
  content: "";
  position: absolute;
  display: block;
  border-radius: 999px;
}

.route-visual::before {
  width: 68px;
  height: 68px;
  left: 12px;
  top: 16px;
  background: #f7fbfb;
}

.route-visual::after {
  width: 44px;
  height: 44px;
  right: 14px;
  bottom: 14px;
  background: #b6d2d5;
}

.route-visual span {
  width: 66px;
  height: 8px;
  left: 28px;
  bottom: 35px;
  background: var(--hit-blue);
}

.route-visual i {
  width: 12px;
  height: 12px;
  right: 38px;
  top: 32px;
  background: var(--coral);
}

.recommendation-copy p,
.compact-rec-list p,
.algorithm-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 8px 0 0;
}

.compact-rec-list {
  display: grid;
  gap: 10px;
  margin-top: 10px;
}

.compact-rec-list article {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.agent-trace {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 14px 0 0;
  padding: 0;
}

.agent-trace li {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 10px;
}

.agent-trace strong {
  color: var(--ink);
  font-size: 13px;
}

.agent-trace em {
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.algorithm-card {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #e4f0ef;
  margin-top: 12px;
  padding: 12px;
}

.console-footer {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  border-top: 1px solid rgba(246, 239, 228, 0.14);
  margin-top: 14px;
  padding-top: 14px;
}

.console-footer div {
  border: 1px solid rgba(246, 239, 228, 0.16);
  border-radius: var(--radius);
  background: var(--dark-panel);
  padding: 12px;
}

.console-footer span {
  display: block;
  color: #a9cdd2;
}

.console-footer strong {
  display: block;
  color: var(--dark-text);
  font-family: var(--font-mono);
  font-size: 20px;
  margin-top: 4px;
}

.citymood-page {
  width: min(100% - 48px, 1440px);
}

.citymood-hero {
  border-color: var(--line-strong);
}

.citymood-console {
  border: 1px solid rgba(246, 239, 228, 0.16);
  border-radius: var(--radius);
  background: var(--dark);
  box-shadow: 0 24px 64px rgba(16, 43, 51, 0.2);
  color: var(--dark-text);
  padding: 16px;
}

.citymood-topbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 0.8fr);
  gap: 16px;
  align-items: center;
  border-bottom: 1px solid rgba(246, 239, 228, 0.14);
  padding-bottom: 14px;
}

.citymood-brand span,
.citymood-session span,
.citymood-status-row span,
.citymood-panel-head span,
.tour-title-line span,
.tour-meta span,
.agent-board span,
.cwpam-flow span,
.explanation-card > span,
.governance-grid span {
  color: #a9cdd2;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
}

.citymood-brand strong,
.citymood-session strong {
  display: block;
  color: var(--dark-text);
  font-size: 18px;
  margin-top: 2px;
}

.citymood-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.citymood-tabs button {
  min-height: 44px;
  border: 1px solid rgba(246, 239, 228, 0.18);
  border-radius: 999px;
  background: transparent;
  color: #dcecec;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  padding: 7px 12px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.citymood-tabs .active {
  background: #f7fbfb;
  color: var(--dark);
}

.citymood-tabs button:hover,
.citymood-tabs button:focus-visible {
  border-color: rgba(246, 239, 228, 0.5);
  background: rgba(247, 251, 251, 0.12);
}

.citymood-session {
  text-align: right;
}

.citymood-status-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.citymood-status-row div {
  border: 1px solid rgba(246, 239, 228, 0.15);
  border-radius: var(--radius);
  background: var(--dark-panel);
  padding: 12px;
}

.citymood-status-row strong {
  display: block;
  color: var(--dark-text);
  font-size: 14px;
  margin-top: 3px;
}

.citymood-grid {
  display: grid;
  grid-template-columns: minmax(250px, 0.9fr) minmax(430px, 1.42fr) minmax(300px, 1.05fr);
  gap: 14px;
  margin-top: 14px;
}

.citymood-panel {
  min-width: 0;
  border: 1px solid rgba(201, 217, 216, 0.86);
  border-radius: var(--radius);
  background: #f7fbfb;
  color: var(--body);
  padding: 16px;
  transition: border-color 180ms ease, box-shadow 180ms ease;
}

.citymood-panel.is-spotlit {
  border-color: var(--hit-blue);
  box-shadow: 0 0 0 3px rgba(38, 113, 142, 0.16);
}

.citymood-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.citymood-panel-head span,
.tour-title-line span,
.tour-meta span,
.agent-board span,
.cwpam-flow span,
.explanation-card > span,
.governance-grid span {
  color: var(--hit-blue);
}

.citymood-panel-head strong {
  color: var(--ink);
  font-size: 17px;
}

.user-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 14px;
}

.user-card span,
.signal-list span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.user-card strong,
.signal-list strong {
  color: var(--ink);
}

.user-card p {
  color: var(--muted);
  font-size: 14px;
  margin: 10px 0 0;
}

.emotion-scale {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.emotion-scale div {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 42px;
  gap: 10px;
  align-items: center;
}

.emotion-scale span {
  color: var(--body);
  font-size: 13px;
  font-weight: 720;
}

.emotion-scale i {
  display: block;
  height: 9px;
  border-radius: 999px;
  background: var(--hit-blue);
}

.emotion-scale div::before {
  content: "";
  grid-column: 2;
  grid-row: 1;
  height: 9px;
  border-radius: 999px;
  background: #d8e7e7;
}

.emotion-scale i {
  grid-column: 2;
  grid-row: 1;
  z-index: 1;
}

.emotion-scale strong {
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 12px;
  text-align: right;
}

.signal-list {
  display: grid;
  gap: 8px;
  margin-top: 16px;
}

.signal-list div {
  border-bottom: 1px solid var(--line);
  padding-bottom: 8px;
}

.boundary-note {
  border-left: 4px solid var(--hit-blue);
  background: #dcecee;
  color: var(--body);
  font-size: 13px;
  margin-top: 16px;
  padding: 10px 12px;
}

.recommendation-panel {
  display: grid;
  gap: 10px;
}

.tour-card {
  display: grid;
  grid-template-columns: 42px 86px minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  padding: 12px;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.tour-card:hover,
.tour-card:focus-visible {
  border-color: var(--hit-blue);
  transform: translateY(-1px);
}

.tour-card.is-active {
  border-color: var(--hit-blue);
  background: #f9fffe;
  box-shadow: inset 0 0 0 1px rgba(38, 113, 142, 0.22);
}

.tour-rank {
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--hit-blue);
  font-family: var(--font-mono);
  font-weight: 800;
}

.tour-thumb {
  position: relative;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dcecee;
  overflow: hidden;
}

.tour-thumb::before,
.tour-thumb::after {
  content: "";
  position: absolute;
  display: block;
  border-radius: 999px;
}

.tour-thumb::before {
  width: 48px;
  height: 48px;
  left: 10px;
  top: 12px;
  background: #f7fbfb;
}

.tour-thumb::after {
  width: 52px;
  height: 8px;
  right: 8px;
  bottom: 16px;
  background: var(--hit-blue);
}

.tour-thumb.craft {
  background: #ece7dc;
}

.tour-thumb.temple {
  background: #e7ece7;
}

.tour-thumb.lake {
  background: #dce9ec;
}

.tour-thumb.silk {
  background: #efe7e2;
}

.tour-title-line {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tour-title-line strong {
  color: var(--ink);
  font-size: 16px;
}

.tour-copy p {
  color: var(--muted);
  font-size: 14px;
  margin: 6px 0 0;
}

.tour-copy {
  min-width: 0;
}

.tour-meta,
.feedback-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 9px;
}

.feedback-strip {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #e4f0ef;
  margin-top: 2px;
  padding: 12px;
}

.feedback-strip > span {
  display: block;
  color: var(--hit-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
}

.feedback-strip > strong {
  display: block;
  color: var(--ink);
  margin-top: 2px;
}

.tour-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #eef6f5;
  padding: 4px 8px;
}

.feedback-actions button {
  min-height: 44px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--body);
  cursor: pointer;
  font-size: 13px;
  font-weight: 720;
  padding: 6px 10px;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.feedback-actions button:hover,
.feedback-actions button:focus-visible {
  border-color: var(--hit-blue);
  background: #e4f0ef;
  color: var(--ink);
}

.feedback-actions button.is-active,
.feedback-actions button[aria-pressed="true"] {
  border-color: var(--hit-blue);
  background: var(--hit-blue);
  color: #f7fbfb;
}

.agent-board {
  display: grid;
  gap: 8px;
}

.agent-board div {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  cursor: pointer;
  padding: 10px;
  transition: background 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.agent-board div:hover,
.agent-board div:focus-visible,
.agent-board div.is-active {
  border-color: var(--hit-blue);
  background: #e4f0ef;
}

.agent-board strong,
.cwpam-flow strong {
  color: var(--ink);
  font-size: 13px;
}

.agent-board em {
  grid-column: 2;
  color: var(--muted);
  font-size: 12px;
  font-style: normal;
}

.cwpam-flow {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.cwpam-flow div {
  border-left: 4px solid var(--hit-blue);
  border-radius: var(--radius);
  background: #e4f0ef;
  cursor: pointer;
  padding: 10px 12px;
  transition: background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.cwpam-flow div:hover,
.cwpam-flow div:focus-visible,
.cwpam-flow div.is-active {
  background: #f7fbfb;
  box-shadow: inset 0 0 0 1px var(--hit-blue);
}

.cwpam-flow p {
  color: var(--muted);
  font-size: 13px;
  margin: 4px 0 0;
}

.chain-inspector {
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #dcecee;
  margin-top: 14px;
  padding: 14px;
}

.chain-inspector span {
  display: block;
  color: var(--hit-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 760;
}

.chain-inspector strong {
  display: block;
  color: var(--ink);
  margin-top: 4px;
}

.chain-inspector p {
  color: var(--body);
  font-size: 14px;
  margin: 6px 0 0;
}

.explanation-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  margin-top: 14px;
  padding: 14px;
}

.explanation-card ul {
  display: grid;
  gap: 8px;
  list-style: none;
  margin: 10px 0 0;
  padding: 0;
}

.explanation-card li {
  color: var(--muted);
  font-size: 13px;
}

.explanation-card li strong {
  color: var(--ink);
  margin-right: 8px;
}

.citymood-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 14px;
  margin-top: 14px;
}

.resource-detail-grid {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: 16px;
}

.resource-map {
  position: relative;
  min-height: 180px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #dcecee;
  overflow: hidden;
}

.resource-map.craft {
  background: #ece7dc;
}

.resource-map.temple {
  background: #e7ece7;
}

.resource-map.lake {
  background: #dce9ec;
}

.resource-map.silk {
  background: #efe7e2;
}

.resource-map::before,
.resource-map::after,
.resource-map span,
.resource-map i {
  content: "";
  position: absolute;
  display: block;
}

.resource-map::before {
  inset: 22px 18px;
  border: 2px solid #f7fbfb;
  border-radius: 44% 56% 48% 52%;
}

.resource-map::after {
  width: 76%;
  height: 10px;
  left: 12%;
  top: 52%;
  border-radius: 999px;
  background: var(--hit-blue);
}

.resource-map span {
  width: 18px;
  height: 18px;
  left: 38%;
  top: 44%;
  border-radius: 999px;
  background: var(--coral);
}

.resource-map i {
  width: 54px;
  height: 54px;
  right: 18px;
  bottom: 18px;
  border-radius: 999px;
  background: #f7fbfb;
}

.resource-copy h2 {
  font-size: 24px;
  margin-bottom: 8px;
}

.resource-copy p {
  color: var(--muted);
  margin: 0;
}

.emotion-tags {
  display: grid;
  gap: 9px;
  margin-top: 16px;
}

.emotion-tags span {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
  overflow: hidden;
  padding: 7px 10px;
}

.emotion-tags span::before {
  content: "";
  position: absolute;
  inset: auto auto 0 0;
  width: var(--level);
  height: 4px;
  background: var(--hit-blue);
}

.governance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.governance-grid div {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 12px;
}

.governance-grid strong {
  display: block;
  color: var(--ink);
  font-family: var(--font-mono);
  font-size: 22px;
  margin-top: 4px;
}

.governance-note {
  border-left: 4px solid var(--hit-blue);
  background: #dcecee;
  color: var(--body);
  font-size: 14px;
  margin-top: 14px;
  padding: 12px 14px;
}

.site-footer {
  border-top: 1px solid var(--line);
  color: var(--muted);
  padding: 30px 0;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  font-size: 13px;
}

.beian-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin-top: 10px;
  color: color-mix(in srgb, var(--muted) 86%, var(--ink));
  font-size: 12px;
}

.beian-row a {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  transition: color 180ms ease;
}

.beian-row a:hover,
.beian-row a:focus-visible {
  color: var(--hit-blue);
}

@media (max-width: 1080px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .site-nav {
    justify-content: flex-start;
    overflow-x: auto;
    width: 100%;
  }

  .home-hero,
  .page-hero,
  .content-grid,
  .patent-layout,
  .research-position {
    grid-template-columns: 1fr;
  }

  .project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .section-head {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .portal-panel {
    max-width: 760px;
  }

  .project-summary {
    position: static;
  }

  .citymood-topbar,
  .citymood-grid,
  .citymood-lower-grid {
    grid-template-columns: 1fr;
  }

  .citymood-session {
    text-align: left;
  }

  .citymood-tabs {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .site-shell {
    width: min(100% - 32px, var(--max));
  }

  .brand-area {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
    width: 100%;
  }

  .brand-text {
    width: 100%;
  }

  .brand-text strong,
  .brand-text span {
    overflow-wrap: normal;
    white-space: nowrap;
    word-break: keep-all;
  }

  .site-nav {
    flex-wrap: wrap;
    overflow-x: visible;
  }

  .home-hero {
    padding: 48px 0 34px;
  }

  h1 {
    font-size: 36px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-lead,
  .page-hero p {
    font-size: 16px;
  }

  .lab-intro {
    line-height: 1.82;
  }

  .project-grid,
  .instrument-grid,
  .flow-grid,
  .wireframe-grid,
  .mock-shell,
  .console-grid,
  .mainline-grid,
  .evidence-grid {
    grid-template-columns: 1fr;
  }

  .citymood-page {
    width: min(100% - 32px, 1440px);
  }

  .citymood-status-row,
  .resource-detail-grid,
  .governance-grid {
    grid-template-columns: 1fr;
  }

  .tour-title-line {
    align-items: flex-start;
    flex-direction: column;
    gap: 4px;
  }

  .patent-interface-head,
  .console-topbar,
  .demo-hero {
    flex-direction: column;
  }

  .patent-status {
    width: 100%;
  }

  .recommendation-card.featured {
    grid-template-columns: 1fr;
  }

  .route-visual {
    min-height: 160px;
  }

  .console-footer {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .project-card {
    min-height: 0;
  }

  .route-row {
    grid-template-columns: 1fr;
  }

  .mechanism-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .route-row small {
    text-align: left;
  }

  .demo-frame iframe {
    height: 480px;
  }

  .footer-inner {
    flex-direction: column;
  }
}

@media (max-width: 430px) {
  body {
    font-size: 15px;
  }

  .logo-hit,
  .logo-hss {
    width: 59px;
    height: 59px;
  }

  .logo-siac {
    width: 104px;
    height: 49px;
  }

  .site-nav a {
    padding-left: 10px;
    padding-right: 10px;
  }

  .console-footer {
    grid-template-columns: 1fr;
  }

  .context-list div {
    align-items: flex-start;
    flex-direction: column;
    gap: 2px;
  }

  .context-list strong {
    text-align: left;
  }

  .console-tabs span {
    flex: 1 1 auto;
    text-align: center;
  }

  .citymood-console {
    padding: 12px;
  }

  .tour-card {
    grid-template-columns: 34px 68px minmax(0, 1fr);
    gap: 9px;
    padding: 10px;
  }

  .tour-thumb {
    min-height: 84px;
  }

  .tour-meta span,
  .feedback-actions button {
    font-size: 12px;
  }

  h1 {
    font-size: 31px;
  }

  .panel,
  .detail-panel,
  .project-card {
    padding: 18px;
  }

  .demo-frame iframe {
    height: 420px;
  }
}

.patent-prototype-page {
  --tourism-cream: #fffaf0;
  --tourism-paper: #fffdf8;
  --tourism-teal: #26718e;
  --tourism-deep: #173942;
  --tourism-mint: #dcefed;
  --tourism-warm: #d69c55;
  --tourism-coral: #b86150;
}

.patent-prototype-hero .page-actions {
  flex-wrap: wrap;
}

.prototype-source-note {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  margin: 22px 0 32px;
  border: 1px solid rgba(150, 184, 189, 0.58);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--surface) 92%, var(--surface-soft));
  padding: 22px;
}

.prototype-source-note span {
  color: var(--hit-blue);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.prototype-source-note p {
  color: var(--body);
  font-size: 15px;
}

.prototype-figures {
  display: grid;
  gap: 28px;
  padding-bottom: 54px;
}

.prototype-figure {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
  align-items: start;
  scroll-margin-top: 96px;
  border: 1px solid rgba(150, 184, 189, 0.55);
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.96), rgba(228, 240, 239, 0.62)),
    var(--surface);
  padding: 30px;
}

.figure-copy {
  max-width: 820px;
  align-self: start;
}

.figure-copy h2 {
  margin-top: 10px;
  font-size: 30px;
}

.figure-copy p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 15px;
}

.device-label-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.device-label-row span {
  border: 1px solid rgba(150, 184, 189, 0.72);
  border-radius: 999px;
  background: rgba(255, 253, 248, 0.78);
  color: #173942;
  font-size: 12px;
  font-weight: 900;
  padding: 4px 10px;
}

.dual-device-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, 378px);
  gap: 24px;
  align-items: center;
  width: 100%;
}

.web-mockup {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 760px;
  overflow: hidden;
  border: 1px solid rgba(150, 184, 189, 0.78);
  border-radius: 18px;
  background: #f6f8f5;
  box-shadow: 0 24px 52px rgba(16, 43, 51, 0.14);
}

.profile-web,
.detail-web {
  min-height: 875px;
}

.web-appbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(190px, 0.82fr) auto;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid rgba(201, 217, 216, 0.9);
  background: rgba(255, 253, 248, 0.96);
  padding: 14px 16px;
}

.web-appbar strong {
  display: block;
  color: #10242a;
  font-size: 20px;
  line-height: 1.2;
}

.web-appbar span {
  display: block;
  margin-top: 3px;
  color: #697d81;
  font-size: 12px;
  font-weight: 800;
}

.web-search {
  display: flex;
  align-items: center;
  min-width: 0;
  gap: 8px;
  border: 1px solid rgba(150, 184, 189, 0.72);
  border-radius: 999px;
  background: #ffffff;
  padding: 7px 11px;
}

.web-search span {
  margin: 0;
  color: #26718e;
  font-size: 11px;
  font-weight: 900;
}

.web-search input {
  width: 100%;
  min-width: 0;
  border: 0;
  background: transparent;
  color: #173942;
  font-size: 13px;
  font-weight: 800;
  outline: 0;
}

.web-user,
.web-update,
.web-top-actions button,
.web-primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  border: 1px solid rgba(150, 184, 189, 0.78);
  border-radius: 999px;
  background: #26718e;
  color: #ffffff;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
  padding: 0 14px;
}

.web-top-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
}

.web-app-body {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
}

.feed-web-layout {
  display: grid;
  grid-template-columns: minmax(132px, 0.72fr) minmax(260px, 1.52fr) minmax(142px, 0.82fr);
  gap: 12px;
}

.web-panel,
.web-resource-card,
.web-detail-hero {
  min-width: 0;
  border: 1px solid rgba(201, 217, 216, 0.9);
  border-radius: 12px;
  background: #fffdf8;
  box-shadow: 0 10px 22px rgba(16, 43, 51, 0.07);
}

.web-panel {
  padding: 13px;
}

.web-panel-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}

.web-panel-head span {
  color: #5e7277;
  font-size: 11px;
  font-weight: 900;
}

.web-panel-head strong {
  color: #26718e;
  font-size: 11px;
  font-weight: 900;
}

.web-meter {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
  margin-top: 11px;
  color: #173942;
  font-size: 11px;
  font-weight: 900;
}

.web-meter i {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efed;
}

.web-meter i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26718e, #d69c55, #b86150);
}

.web-meter b {
  color: #b86150;
  font-size: 11px;
}

.web-tag-set {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 18px;
}

.web-tag-set span,
.web-evidence-row span {
  border-radius: 999px;
  background: #e4f0ef;
  color: #173942;
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.web-feed-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.web-resource-card {
  display: grid;
  grid-template-columns: 110px minmax(0, 1fr);
  gap: 11px;
  padding: 10px;
}

.web-resource-card .resource-photo {
  min-height: 132px;
}

.web-resource-card p {
  color: #334b55;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

.web-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 9px;
}

.web-actions button {
  min-height: 28px;
  font-size: 10px;
}

.web-pipeline {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.web-pipeline li {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  border-radius: 10px;
  background: #f3f7f6;
  color: #486065;
  font-size: 11px;
  font-weight: 800;
  padding: 8px;
}

.web-pipeline b {
  color: #26718e;
  font-family: var(--font-mono);
  font-size: 12px;
}

.feedback-strip {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.feedback-strip span {
  color: #5e7277;
  font-size: 11px;
  font-weight: 900;
}

.feedback-strip button {
  min-height: 34px;
  border: 1px solid rgba(184, 97, 80, 0.28);
  border-radius: 999px;
  background: #fff7f2;
  color: #b86150;
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.profile-web-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.86fr) minmax(260px, 1.14fr);
  gap: 12px;
}

.web-radar-panel,
.web-line-panel {
  min-height: 320px;
}

.web-radar {
  height: 250px;
}

.web-line-chart {
  height: 210px;
}

.web-tags-panel {
  grid-column: 1 / -1;
}

.web-evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.detail-web-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.15fr) minmax(230px, 0.95fr);
  gap: 12px;
}

.web-detail-hero {
  padding: 12px;
}

.web-detail-hero .detail-hero-image {
  min-height: 230px;
  margin: 0;
}

.web-detail-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-top: 14px;
}

.web-detail-summary h3 {
  color: #10242a;
  font-size: 24px;
  line-height: 1.2;
}

.web-detail-summary p {
  margin-top: 5px;
  color: #5e7277;
  font-size: 13px;
}

.web-detail-summary strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: #e4f0ef;
  color: #26718e;
  font-size: 20px;
}

.web-facts {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 14px;
}

.web-emotion-panel,
.web-match-panel {
  align-self: stretch;
}

.web-emotion-panel .emotion-bar-row {
  grid-template-columns: 54px minmax(0, 1fr) 30px;
  margin-top: 8px;
}

.web-match-panel {
  display: flex;
  flex-direction: column;
  gap: 13px;
}

.web-comment-list {
  display: grid;
  gap: 8px;
}

.web-comment-list p {
  border-radius: 10px;
  background: #f3f7f6;
  color: #334b55;
  font-size: 12px;
  line-height: 1.45;
  padding: 8px 10px;
}

.web-primary-action {
  width: 100%;
  min-height: 44px;
  margin-top: auto;
  border: 0;
  border-radius: 12px;
  font-size: 14px;
}

.profile-web .web-appbar,
.detail-web .web-appbar {
  grid-template-columns: minmax(180px, 1fr) auto;
}

.phone-shell {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(100%, 378px);
  height: 760px;
  justify-self: center;
  overflow: hidden;
  border: 10px solid #122d35;
  border-radius: 34px;
  background: #f5f8f5;
  box-shadow: 0 24px 52px rgba(16, 43, 51, 0.18);
}

.phone-shell::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 50%;
  z-index: 3;
  width: 92px;
  height: 20px;
  transform: translateX(-50%);
  border-radius: 0 0 16px 16px;
  background: #122d35;
}

.phone-status {
  display: flex;
  justify-content: space-between;
  flex: 0 0 auto;
  color: #244149;
  font-size: 11px;
  font-weight: 800;
  padding: 14px 18px 8px;
}

.tourism-appbar,
.profile-appbar,
.detail-appbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex: 0 0 auto;
  gap: 12px;
  padding: 6px 18px 14px;
}

.tourism-appbar strong,
.profile-appbar strong,
.detail-appbar strong {
  display: block;
  color: #10242a;
  font-size: 20px;
  line-height: 1.2;
}

.tourism-appbar span {
  display: block;
  margin-top: 3px;
  color: #697d81;
  font-size: 12px;
}

.appbar-actions,
.detail-appbar div {
  display: flex;
  gap: 8px;
}

.tourism-appbar button,
.profile-appbar button,
.detail-appbar button,
.quick-actions button,
.fixed-booking button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  border: 1px solid rgba(150, 184, 189, 0.78);
  border-radius: 999px;
  background: #fffdf8;
  color: #173942;
  cursor: pointer;
  font-weight: 800;
}

.appbar-actions button,
.detail-appbar button {
  width: 36px;
  padding: 0;
}

.appbar-actions .avatar-button {
  background: #26718e;
  color: #ffffff;
}

.tourism-feed {
  display: grid;
  gap: 12px;
  flex: 1 1 auto;
  overflow: hidden;
  padding: 0 14px 76px;
}

.resource-feed-card {
  display: grid;
  grid-template-columns: 102px minmax(0, 1fr);
  gap: 10px;
  min-height: 184px;
  border: 1px solid rgba(201, 217, 216, 0.92);
  border-radius: 18px;
  background: rgba(255, 253, 248, 0.96);
  padding: 10px;
  box-shadow: 0 10px 22px rgba(16, 43, 51, 0.07);
}

.resource-feed-card.compact {
  min-height: 116px;
}

.resource-feed-card.compact .resource-photo {
  min-height: 96px;
}

.resource-photo,
.detail-hero-image {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 164px;
  overflow: hidden;
  border-radius: 14px;
  background: #dcefed;
  color: #ffffff;
  isolation: isolate;
  padding: 10px;
}

.resource-photo::before,
.detail-hero-image::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    linear-gradient(180deg, transparent 34%, rgba(16, 43, 51, 0.58)),
    var(--photo-bg);
  background-position: center;
  background-size: cover;
}

.resource-photo span,
.detail-hero-image span {
  font-size: 12px;
  font-weight: 900;
  text-shadow: 0 1px 6px rgba(16, 43, 51, 0.36);
}

.tea-photo {
  --photo-bg: url("tourism/longwu-tea-morning.jpg");
}

.craft-photo {
  --photo-bg: url("tourism/southern-song-craft-hall.jpg");
}

.temple-photo {
  --photo-bg: url("tourism/nanping-evening-drum-lane.jpg");
}

.lake-photo {
  --photo-bg:
    linear-gradient(135deg, #5e8ea0 0%, #d6c58f 54%, #426a76 100%);
}

.resource-card-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  gap: 6px;
}

.resource-card-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: flex-start;
}

.resource-card-head strong {
  display: block;
  color: #10242a;
  font-size: 15px;
  line-height: 1.25;
}

.resource-card-head span {
  display: inline-flex;
  margin-top: 4px;
  border-radius: 999px;
  background: #e4f0ef;
  color: #26718e;
  font-size: 11px;
  font-weight: 800;
  padding: 2px 7px;
}

.resource-card-head em {
  color: #b86150;
  font-style: normal;
  font-size: 13px;
  font-weight: 900;
}

.emotion-heat {
  display: grid;
  gap: 3px;
}

.emotion-heat i,
.match-progress i,
.emotion-bar-row i::before {
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #26718e, #d69c55, #b86150);
}

.emotion-heat i {
  height: 5px;
  border-radius: 999px;
  background: #e8efed;
}

.resource-card-body p {
  color: #334b55;
  font-size: 11.5px;
  line-height: 1.42;
}

.quick-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  margin-top: auto;
}

.quick-actions button {
  min-height: 24px;
  border-color: transparent;
  background: #edf5f4;
  color: #173942;
  font-size: 10px;
  line-height: 1;
  padding: 0 4px;
}

.bottom-nav {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 4px;
  border-top: 1px solid rgba(201, 217, 216, 0.88);
  background: rgba(255, 253, 248, 0.97);
  padding: 10px 12px 14px;
}

.bottom-nav a {
  display: grid;
  place-items: center;
  min-height: 38px;
  border-radius: 999px;
  color: #5e7277;
  font-size: 12px;
  font-weight: 900;
}

.bottom-nav a.active {
  background: #26718e;
  color: #ffffff;
}

.profile-phone,
.detail-phone {
  height: 875px;
  background: #f6f7f1;
  padding-bottom: 18px;
}

.profile-appbar button {
  min-height: 34px;
  border-color: transparent;
  background: #26718e;
  color: #ffffff;
  padding: 0 14px;
}

.radar-card,
.line-card,
.tag-cloud-panel,
.detail-info-card,
.emotion-bars-card,
.match-card,
.comment-card {
  border: 1px solid rgba(201, 217, 216, 0.9);
  border-radius: 18px;
  background: #fffdf8;
  box-shadow: 0 10px 22px rgba(16, 43, 51, 0.07);
}

.radar-card,
.line-card,
.tag-cloud-panel {
  margin: 0 16px 12px;
  padding: 14px;
}

.panel-mini-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  margin-bottom: 8px;
}

.panel-mini-head span,
.tag-cloud-panel > span,
.comment-card > span {
  color: #5e7277;
  font-size: 11px;
  font-weight: 900;
}

.panel-mini-head strong {
  color: #26718e;
  font-size: 11px;
}

.radar-chart {
  width: 100%;
  height: 230px;
}

.radar-chart line {
  stroke: rgba(150, 184, 189, 0.78);
  stroke-width: 1;
}

.radar-grid {
  fill: rgba(228, 240, 239, 0.55);
  stroke: rgba(150, 184, 189, 0.9);
  stroke-width: 1;
}

.radar-grid.inner {
  fill: rgba(255, 253, 248, 0.72);
}

.radar-fill {
  fill: rgba(38, 113, 142, 0.24);
}

.radar-line {
  fill: none;
  stroke: #26718e;
  stroke-linejoin: round;
  stroke-width: 3;
}

.radar-chart text,
.line-chart text {
  fill: #486065;
  font-size: 10px;
  font-weight: 800;
}

.line-chart {
  width: 100%;
  height: 130px;
}

.line-mine,
.line-peer {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 4;
}

.line-mine {
  stroke: #26718e;
}

.line-peer {
  stroke: #d69c55;
  stroke-dasharray: 6 6;
}

.chart-axis line {
  stroke: rgba(150, 184, 189, 0.8);
  stroke-width: 1;
}

.legend-row {
  display: flex;
  gap: 12px;
  color: #486065;
  font-size: 11px;
  font-weight: 800;
}

.legend-row span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.legend-row i {
  width: 16px;
  height: 4px;
  border-radius: 999px;
}

.legend-row .mine {
  background: #26718e;
}

.legend-row .peer {
  background: #d69c55;
}

.emotion-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.emotion-tags b {
  border-radius: 999px;
  background: #e4f0ef;
  color: #173942;
  font-size: 12px;
  padding: 7px 9px;
}

.profile-footnote {
  margin: 6px 18px 0;
  color: #6d7e82;
  font-size: 12px;
  text-align: center;
}

#figure-5-11 .dual-device-showcase {
  grid-template-columns: minmax(0, 1fr) minmax(324px, 352px);
  gap: 28px;
  align-items: center;
}

#figure-5-11 .profile-web {
  min-height: 780px;
  border-radius: 16px;
  background: linear-gradient(180deg, #f8faf7 0%, #edf6f4 100%);
  box-shadow: 0 18px 40px rgba(16, 43, 51, 0.12);
}

#figure-5-11 .profile-web .web-appbar {
  padding: 16px 18px;
}

#figure-5-11 .profile-web-layout {
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  grid-template-rows: 345px minmax(180px, 1fr);
  gap: 14px;
  align-content: stretch;
  padding: 16px;
}

#figure-5-11 .web-radar-panel,
#figure-5-11 .web-line-panel {
  min-height: 345px;
}

#figure-5-11 .web-radar {
  height: 286px;
}

#figure-5-11 .web-line-chart {
  height: 232px;
}

#figure-5-11 .web-tags-panel {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 180px;
}

#figure-5-11 .web-panel {
  border-color: rgba(150, 184, 189, 0.8);
  border-radius: 13px;
  box-shadow: 0 8px 18px rgba(16, 43, 51, 0.06);
}

#figure-5-11 .web-panel-head span,
#figure-5-11 .web-panel-head strong {
  font-size: 12px;
}

#figure-5-11 .legend-row,
#figure-5-11 .web-evidence-row span {
  font-size: 12px;
}

#figure-5-11 .profile-score-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}

#figure-5-11 .profile-score-strip div {
  min-width: 0;
  border: 1px solid rgba(201, 217, 216, 0.92);
  border-radius: 12px;
  background: #f6faf8;
  padding: 10px;
}

#figure-5-11 .profile-score-strip span,
#figure-5-11 .profile-score-strip strong {
  display: block;
  color: #173942;
  font-size: 12px;
  font-weight: 900;
}

#figure-5-11 .profile-score-strip strong {
  margin-top: 4px;
  color: #26718e;
  font-size: 18px;
}

#figure-5-11 .profile-score-strip i {
  display: block;
  height: 7px;
  margin-top: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e4f0ef;
}

#figure-5-11 .profile-score-strip i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: #26718e;
}

#figure-5-11 .profile-phone {
  width: min(100%, 352px);
  height: 800px;
  border-width: 8px;
  border-radius: 32px;
  box-shadow: 0 18px 40px rgba(16, 43, 51, 0.14);
}

#figure-5-11 .phone-shell::before {
  width: 82px;
  height: 18px;
}

#figure-5-11 .radar-card,
#figure-5-11 .line-card,
#figure-5-11 .tag-cloud-panel {
  margin-right: 14px;
  margin-left: 14px;
  border-radius: 15px;
  box-shadow: 0 8px 18px rgba(16, 43, 51, 0.06);
}

#figure-5-11 .profile-phone .radar-chart {
  height: 220px;
}

#figure-5-11 .profile-phone .line-chart {
  height: 122px;
}

#figure-5-11 .panel-mini-head span,
#figure-5-11 .panel-mini-head strong,
#figure-5-11 .tag-cloud-panel > span {
  font-size: 11.5px;
}

#figure-5-11 .radar-chart text,
#figure-5-11 .line-chart text {
  font-size: 11px;
}

#figure-5-11 .emotion-tags b {
  font-size: 12px;
  padding: 7px 10px;
}

.detail-appbar {
  align-items: center;
}

.detail-appbar strong {
  min-width: 0;
  overflow: hidden;
  font-size: 16px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.detail-hero-image {
  min-height: 148px;
  margin: 0 16px 8px;
  border-radius: 22px;
}

.detail-info-card,
.emotion-bars-card,
.match-card,
.comment-card {
  margin: 0 16px 8px;
  padding: 11px;
}

.detail-title-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.detail-title-row h3 {
  font-size: 16px;
}

.detail-title-row span {
  color: #657a7d;
  font-size: 12px;
}

.detail-title-row strong {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border-radius: 15px;
  background: #e4f0ef;
  color: #26718e;
  font-size: 18px;
}

.resource-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 8px 0 0;
}

.resource-facts div {
  border-radius: 12px;
  background: #f3f7f6;
  padding: 7px;
}

.resource-facts dt {
  color: #6b7c80;
  font-size: 11px;
  font-weight: 800;
}

.resource-facts dd {
  margin: 2px 0 0;
  color: #173942;
  font-size: 12px;
  font-weight: 900;
}

.emotion-bar-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 26px;
  gap: 8px;
  align-items: center;
  margin-top: 6px;
  color: #173942;
  font-size: 12px;
  font-weight: 900;
}

.emotion-bar-row i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efed;
}

.emotion-bar-row i::before {
  content: "";
}

.match-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  color: #173942;
  font-size: 13px;
  font-weight: 900;
}

.match-head strong {
  color: #b86150;
}

.match-progress {
  height: 10px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efed;
}

.comment-card {
  margin-bottom: 64px;
}

.comment-card p {
  margin-top: 5px;
  border-radius: 12px;
  background: #f3f7f6;
  color: #334b55;
  font-size: 11px;
  line-height: 1.35;
  padding: 5px 8px;
}

.fixed-booking {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  border-top: 1px solid rgba(201, 217, 216, 0.88);
  background: rgba(255, 253, 248, 0.98);
  padding: 12px 18px 16px;
}

.fixed-booking button {
  width: 100%;
  min-height: 46px;
  border: 0;
  border-radius: 16px;
  background: #26718e;
  color: #ffffff;
  font-size: 15px;
}

@media (max-width: 1120px) {
  .dual-device-showcase {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 980px) {
  .prototype-figure,
  .prototype-source-note {
    grid-template-columns: 1fr;
  }

  .figure-copy {
    padding-top: 0;
  }
}

@media (max-width: 760px) {
  .web-mockup,
  .profile-web,
  .detail-web {
    min-height: auto;
  }

  .web-appbar,
  .profile-web .web-appbar,
  .detail-web .web-appbar {
    grid-template-columns: 1fr;
  }

  .feed-web-layout,
  .profile-web-layout,
  .detail-web-layout {
    grid-template-columns: 1fr;
  }

  .web-tags-panel {
    grid-column: auto;
  }

  .web-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 520px) {
  .prototype-figure {
    padding: 18px;
  }

  .phone-shell {
    width: min(100%, 344px);
    height: 730px;
    border-width: 8px;
  }

  .resource-feed-card {
    grid-template-columns: 88px minmax(0, 1fr);
  }

  .resource-photo {
    min-height: 126px;
  }

  .figure-copy h2 {
    font-size: 25px;
  }
}

/* Interactive affective tourism demo */
.tourism-demo-page {
  --td-panel: #fffdf8;
  --td-soft: #edf5f4;
  --td-line: rgba(150, 184, 189, 0.68);
  --td-ink: #10242a;
  --td-muted: #5e7277;
  --td-teal: #26718e;
  --td-warm: #d69c55;
  --td-coral: #b86150;
}

.tourism-demo-hero h1 {
  max-width: 760px;
}

.tourism-demo-note {
  margin: 22px 0 30px;
}

.tourism-demo-shell {
  position: relative;
  overflow: hidden;
  scroll-margin-top: 108px;
  border: 1px solid var(--td-line);
  border-radius: 14px;
  background:
    linear-gradient(180deg, rgba(255, 253, 248, 0.94), rgba(228, 240, 239, 0.62)),
    var(--td-panel);
  box-shadow: 0 24px 70px rgba(16, 43, 51, 0.12);
  margin-bottom: 60px;
}

.td-appbar {
  display: grid;
  grid-template-columns: minmax(190px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  border-bottom: 1px solid rgba(201, 217, 216, 0.9);
  background: rgba(255, 253, 248, 0.96);
  padding: 18px;
}

.td-app-title span,
.td-resource-topline span,
.td-user-chip span,
.td-context-grid span,
.td-agent-card span,
.td-detail-title span,
.td-detail-reason span {
  color: var(--td-muted);
  font-size: 12px;
  font-weight: 900;
}

.td-app-title strong {
  display: block;
  color: var(--td-ink);
  font-size: 25px;
  line-height: 1.2;
}

.td-controls {
  display: grid;
  grid-template-columns: minmax(120px, 0.7fr) minmax(140px, 0.8fr) minmax(180px, 1.35fr) auto;
  gap: 10px;
  align-items: end;
}

.td-controls label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.td-controls label span {
  color: var(--td-muted);
  font-size: 11px;
  font-weight: 900;
}

.td-controls select,
.td-controls input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--td-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--td-ink);
  font-weight: 800;
  padding: 0 12px;
}

.td-icon-button,
.td-secondary-action,
.td-card-actions button,
.td-detail-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  border: 1px solid var(--td-line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--td-ink);
  cursor: pointer;
  font-weight: 900;
  padding: 0 14px;
  transition: transform 160ms ease, border-color 160ms ease, background 160ms ease, color 160ms ease;
}

.td-icon-button:hover,
.td-secondary-action:hover,
.td-card-actions button:hover,
.td-detail-actions button:hover {
  transform: translateY(-1px);
  border-color: var(--td-teal);
}

.td-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  border-bottom: 1px solid rgba(201, 217, 216, 0.86);
  background: rgba(243, 247, 246, 0.7);
  padding: 12px 18px;
}

.td-tabs button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: var(--td-muted);
  cursor: pointer;
  font-weight: 900;
  padding: 0 16px;
}

.td-tabs button.active,
.td-tabs button:hover {
  border-color: rgba(38, 113, 142, 0.25);
  background: #ffffff;
  color: var(--td-teal);
}

.td-layout {
  display: grid;
  grid-template-columns: minmax(178px, 0.62fr) minmax(400px, 1.32fr) minmax(300px, 0.92fr);
  gap: 16px;
  padding: 18px;
}

.td-profile-card,
.td-workspace,
.td-inspector,
.td-detail-panel,
.td-chain-panel,
.td-resource-card,
.td-context-grid article,
.td-agent-card,
.td-profile-detail,
.td-empty-state {
  min-width: 0;
  border: 1px solid rgba(201, 217, 216, 0.9);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.96);
  box-shadow: 0 10px 22px rgba(16, 43, 51, 0.06);
}

.td-profile-card {
  align-self: start;
  display: grid;
  gap: 14px;
  padding: 14px;
}

.td-user-chip {
  border-radius: 10px;
  background: var(--td-soft);
  padding: 12px;
}

.td-user-chip strong {
  display: block;
  color: var(--td-teal);
  font-family: var(--font-mono);
  font-size: 18px;
}

.td-profile-bars,
.td-profile-tags,
.td-score-breakdown,
.td-agent-list,
.td-agent-board,
.td-feedback-log ol {
  display: grid;
  gap: 10px;
}

.td-profile-meter,
.td-score-row,
.td-emotion-row {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr) 36px;
  gap: 8px;
  align-items: center;
  color: var(--td-ink);
  font-size: 12px;
  font-weight: 900;
}

.td-profile-meter i,
.td-score-row i,
.td-emotion-row i {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efed;
}

.td-profile-meter i::before,
.td-score-row i::before,
.td-emotion-row i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--td-teal), var(--td-warm), var(--td-coral));
}

.td-profile-tags,
.td-tag-row,
.td-evidence-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.td-profile-tags span,
.td-tag-row span,
.td-evidence-row span {
  border-radius: 999px;
  background: var(--td-soft);
  color: var(--td-ink);
  font-size: 11px;
  font-weight: 900;
  padding: 5px 8px;
}

.td-secondary-action {
  width: 100%;
  background: var(--td-teal);
  color: #ffffff;
}

.td-workspace,
.td-inspector {
  display: grid;
  align-content: start;
  gap: 14px;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.td-view-panel {
  display: none;
  border: 1px solid rgba(201, 217, 216, 0.9);
  border-radius: 12px;
  background: rgba(255, 253, 248, 0.88);
  padding: 14px;
}

.td-view-panel.active {
  display: grid;
  gap: 14px;
}

.td-section-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
}

.td-section-head h2,
.td-panel-head h2 {
  color: var(--td-ink);
  font-size: 24px;
  line-height: 1.2;
}

.td-section-head p {
  max-width: 360px;
  color: var(--td-muted);
  font-size: 13px;
  text-align: right;
}

.td-resource-list {
  display: grid;
  gap: 12px;
}

.td-resource-card {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
  cursor: pointer;
  transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.td-resource-card:hover,
.td-resource-card:focus,
.td-resource-card.selected {
  border-color: var(--td-teal);
  box-shadow: 0 18px 30px rgba(16, 43, 51, 0.1);
  transform: translateY(-1px);
  outline: 0;
}

.td-resource-card .resource-photo {
  min-height: 150px;
}

.td-resource-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.td-resource-topline,
.td-detail-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.td-resource-topline strong,
.td-detail-title strong {
  color: var(--td-coral);
  font-weight: 900;
}

.td-resource-body h3 {
  color: var(--td-ink);
  font-size: 18px;
  line-height: 1.25;
}

.td-mini-bars {
  display: grid;
  gap: 4px;
}

.td-mini-bars i {
  width: var(--w);
  height: 5px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--td-teal), var(--td-warm), var(--td-coral));
}

.td-resource-body p,
.td-detail-reason p,
.td-comment-list p,
.td-agent-card p,
.td-context-grid p,
.td-profile-explain p,
.td-empty-state span {
  color: #334b55;
  font-size: 13px;
  line-height: 1.55;
}

.td-card-actions,
.td-detail-actions {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
  margin-top: 3px;
}

.td-card-actions button {
  min-height: 34px;
  background: var(--td-soft);
  font-size: 11px;
  padding: 0 8px;
}

.td-card-actions button.active,
.td-detail-actions button:nth-child(2) {
  border-color: rgba(38, 113, 142, 0.36);
  background: #dcefed;
  color: var(--td-teal);
}

.td-detail-panel,
.td-chain-panel {
  padding: 14px;
}

.td-detail-visual {
  min-height: 190px;
  border-radius: 12px;
  margin-bottom: 14px;
}

.td-detail-title h2 {
  color: var(--td-ink);
  font-size: 23px;
  line-height: 1.2;
}

.td-detail-title p {
  margin-top: 3px;
  color: var(--td-muted);
  font-size: 13px;
}

.td-detail-title strong {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 12px;
  background: var(--td-soft);
  color: var(--td-teal);
  font-size: 20px;
}

.td-detail-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0;
}

.td-detail-facts div,
.td-detail-reason,
.td-comment-list p {
  border-radius: 10px;
  background: #f3f7f6;
  padding: 10px;
}

.td-detail-facts dt {
  color: var(--td-muted);
  font-size: 11px;
  font-weight: 900;
}

.td-detail-facts dd {
  margin: 3px 0 0;
  color: var(--td-ink);
  font-weight: 900;
}

.td-emotion-bars {
  display: grid;
  gap: 7px;
  margin: 14px 0;
}

.td-emotion-row {
  grid-template-columns: 52px minmax(0, 1fr) 28px;
}

.td-comment-list {
  display: grid;
  gap: 7px;
}

.td-detail-actions {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 14px;
}

.td-detail-actions button:first-child {
  background: var(--td-teal);
  color: #ffffff;
}

.td-detail-actions button:last-child {
  border-color: rgba(184, 97, 80, 0.3);
  background: #fff7f2;
  color: var(--td-coral);
}

.td-panel-head {
  margin-bottom: 12px;
}

.td-panel-head.small {
  margin-top: 14px;
  margin-bottom: 8px;
}

.td-panel-head h3 {
  color: var(--td-ink);
  font-size: 18px;
}

.td-score-breakdown {
  margin-bottom: 14px;
}

.td-agent-item {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  border-radius: 10px;
  background: #f3f7f6;
  padding: 10px;
}

.td-agent-item b {
  color: var(--td-teal);
  font-family: var(--font-mono);
  font-size: 13px;
}

.td-agent-item strong {
  display: block;
  color: var(--td-ink);
  font-size: 13px;
}

.td-agent-item span {
  color: var(--td-muted);
  font-size: 12px;
}

.td-agent-item.active {
  box-shadow: inset 3px 0 0 var(--td-warm);
}

.td-feedback-log ol {
  margin: 0;
  padding-left: 18px;
}

.td-feedback-log li {
  color: #334b55;
  font-size: 12px;
  line-height: 1.45;
  margin-top: 6px;
}

.td-context-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.td-context-grid article,
.td-agent-card {
  padding: 13px;
}

.td-context-grid strong,
.td-agent-card strong {
  display: block;
  color: var(--td-ink);
  font-size: 17px;
  margin-top: 4px;
}

.td-agent-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.td-agent-card i {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8efed;
  margin-top: 12px;
}

.td-agent-card i::before {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--td-teal), var(--td-warm));
}

.td-agent-card.wide {
  grid-column: 1 / -1;
}

.td-empty-state {
  display: grid;
  place-items: center;
  min-height: 180px;
  text-align: center;
  padding: 24px;
}

.td-empty-state strong {
  color: var(--td-ink);
  font-size: 18px;
}

.td-resource-list.compact .td-resource-card {
  grid-template-columns: 112px minmax(0, 1fr);
}

.td-profile-detail {
  display: grid;
  grid-template-columns: minmax(240px, 0.9fr) minmax(260px, 1.1fr);
  gap: 14px;
  padding: 14px;
}

.td-radar-card {
  border-radius: 12px;
  background: #ffffff;
  padding: 12px;
}

.td-radar-card svg {
  width: 100%;
  min-height: 260px;
}

.td-radar-card line {
  stroke: rgba(150, 184, 189, 0.78);
  stroke-width: 1;
}

.td-radar-card text {
  fill: #486065;
  font-size: 11px;
  font-weight: 900;
}

.td-profile-explain {
  align-self: center;
}

.td-profile-explain h3 {
  color: var(--td-ink);
  font-size: 22px;
}

.td-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 300;
  max-width: min(360px, calc(100vw - 44px));
  transform: translateY(18px);
  border: 1px solid rgba(38, 113, 142, 0.3);
  border-radius: 10px;
  background: var(--td-ink);
  color: #ffffff;
  opacity: 0;
  pointer-events: none;
  padding: 12px 14px;
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(16, 43, 51, 0.24);
  transition: opacity 180ms ease, transform 180ms ease;
}

.td-toast.show {
  transform: translateY(0);
  opacity: 1;
}

.td-noscript {
  color: var(--td-coral);
  font-weight: 900;
  padding: 16px 18px;
}

@media (max-width: 1180px) {
  .td-layout {
    grid-template-columns: 220px minmax(0, 1fr);
  }

  .td-inspector {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  }
}

@media (max-width: 900px) {
  .td-appbar,
  .td-layout,
  .td-inspector,
  .td-profile-detail {
    grid-template-columns: 1fr;
  }

  .td-controls {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-context-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-section-head {
    display: grid;
  }

  .td-section-head p {
    max-width: none;
    text-align: left;
  }
}

@media (max-width: 560px) {
  .tourism-demo-shell {
    border-radius: 10px;
    scroll-margin-top: 240px;
  }

  .td-appbar,
  .td-layout {
    padding: 12px;
  }

  .td-controls,
  .td-context-grid,
  .td-agent-board,
  .td-detail-facts,
  .td-card-actions,
  .td-detail-actions {
    grid-template-columns: 1fr;
  }

  .td-resource-card,
  .td-resource-list.compact .td-resource-card {
    grid-template-columns: 1fr;
  }

  .td-resource-card .resource-photo,
  .td-detail-visual {
    min-height: 190px;
  }

  .td-app-title strong {
    font-size: 22px;
  }

  .td-section-head h2,
  .td-panel-head h2,
  .td-detail-title h2 {
    font-size: 21px;
  }

  .td-tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .td-tabs button,
  .td-icon-button,
  .td-secondary-action,
  .td-card-actions button,
  .td-detail-actions button {
    min-height: 44px;
  }
}

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