:root {
  --bg: #fbfbf7;
  --panel: rgba(255, 255, 255, 0.94);
  --panel-strong: #ffffff;
  --line: rgba(28, 31, 38, 0.042);
  --line-strong: rgba(28, 31, 38, 0.082);
  --text: #181a1f;
  --muted: #7e858f;
  --yellow: #f0c742;
  --yellow-soft: #fbf1c8;
  --shadow: 0 18px 36px rgba(18, 24, 32, 0.035);
  --max-width: 1360px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text);
  background:
    linear-gradient(180deg, #ffffff, #f7f7f2),
    linear-gradient(125deg, transparent 0 66%, rgba(240, 199, 66, 0.09) 66% 72%, transparent 72% 100%);
  background-size: auto, auto;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-weight: 500;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 10% 6%, rgba(240, 199, 66, 0.1), transparent 24%),
    radial-gradient(circle at 88% 14%, rgba(30, 33, 40, 0.035), transparent 22%);
  z-index: -2;
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: -3;
}

.scene-panel,
.scene-word {
  position: absolute;
}

.scene-panel {
  filter: saturate(0.94);
}

.scene-word {
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  white-space: nowrap;
  user-select: none;
}

.scene-home .panel-a {
  top: -12vh;
  left: -8vw;
  width: 74vw;
  height: 48vh;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.96) 0 40%, rgba(240, 199, 66, 0.74) 40% 66%, rgba(221, 225, 230, 0.9) 66% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 62%, 0 88%);
  opacity: 0.86;
}

.scene-home .panel-b {
  right: -14vw;
  bottom: -22vh;
  width: 62vw;
  height: 44vh;
  background: linear-gradient(122deg, rgba(228, 231, 235, 0.92) 0 56%, rgba(240, 199, 66, 0.2) 56% 100%);
  clip-path: polygon(0 20%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.72;
}

.scene-home .panel-c {
  top: 16vh;
  right: 8vw;
  width: 18vw;
  height: 18vh;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.82), rgba(245, 246, 247, 0.92));
  border: 1px solid rgba(24, 26, 31, 0.05);
  transform: skewX(-24deg);
  opacity: 0.7;
}

.scene-home .word-a {
  top: 24vh;
  left: -2vw;
  font-size: min(20vw, 260px);
  color: rgba(24, 26, 31, 0.05);
  transform: rotate(-11deg);
}

.scene-home .word-b {
  top: 10vh;
  right: 5vw;
  font-size: min(8vw, 120px);
  color: rgba(24, 26, 31, 0.04);
}

.scene-about .panel-a {
  top: -10vh;
  left: -10vw;
  width: 68vw;
  height: 40vh;
  background: linear-gradient(120deg, rgba(255, 255, 255, 0.96) 0 44%, rgba(240, 199, 66, 0.62) 44% 64%, rgba(223, 227, 231, 0.88) 64% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 68%, 0 92%);
  opacity: 0.82;
}

.scene-about .panel-b {
  right: -10vw;
  bottom: -18vh;
  width: 56vw;
  height: 38vh;
  background: linear-gradient(125deg, rgba(230, 233, 237, 0.9) 0 58%, rgba(240, 199, 66, 0.16) 58% 100%);
  clip-path: polygon(0 18%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.72;
}

.scene-about .panel-c {
  top: 24vh;
  left: 62vw;
  width: 14vw;
  height: 14vh;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(24, 26, 31, 0.05);
  transform: skewX(-22deg);
}

.scene-about .word-a {
  top: 19vh;
  left: -1vw;
  font-size: min(17vw, 220px);
  color: rgba(24, 26, 31, 0.048);
  transform: rotate(-10deg);
}

.scene-about .word-b {
  top: 66vh;
  right: 6vw;
  font-size: min(7vw, 110px);
  color: rgba(24, 26, 31, 0.036);
}

.page-content-work {
  background:
    radial-gradient(circle at 12% 10%, rgba(200, 232, 255, 0.2), transparent 22%),
    linear-gradient(180deg, #fbfdff, #f2f7ff),
    linear-gradient(120deg, transparent 0 58%, rgba(171, 216, 255, 0.18) 58% 69%, rgba(223, 239, 255, 0.78) 69% 82%, transparent 82% 100%);
}

.page-content-work::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.12)),
    radial-gradient(circle at 88% 8%, rgba(120, 192, 255, 0.12), transparent 20%);
}

.scene-content .panel-a {
  top: -10vh;
  left: -10vw;
  width: 74vw;
  height: 34vh;
  background: linear-gradient(116deg, rgba(251, 253, 255, 0.98) 0 44%, rgba(184, 225, 255, 0.92) 44% 61%, rgba(232, 243, 255, 0.98) 61% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 74%, 0 92%);
  opacity: 0.98;
}

.scene-content .panel-b {
  right: -10vw;
  bottom: -14vh;
  width: 62vw;
  height: 34vh;
  background: linear-gradient(125deg, rgba(222, 238, 255, 0.96) 0 58%, rgba(145, 205, 255, 0.24) 58% 100%);
  clip-path: polygon(0 22%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.94;
}

.scene-content .panel-c {
  top: 18vh;
  left: 63vw;
  width: 16vw;
  height: 12vh;
  background: rgba(226, 241, 255, 0.92);
  border: 1px solid rgba(131, 196, 248, 0.18);
  transform: skewX(-18deg);
}

.scene-content .word-a {
  top: 15vh;
  left: -1vw;
  font-size: min(15vw, 198px);
  color: rgba(86, 142, 196, 0.08);
  transform: rotate(-8deg);
}

.scene-content .word-b {
  top: 60vh;
  right: 5vw;
  font-size: min(6.5vw, 96px);
  color: rgba(86, 142, 196, 0.06);
}

.scene-detail .panel-a {
  top: -12vh;
  left: -6vw;
  width: 70vw;
  height: 38vh;
  background: linear-gradient(118deg, rgba(255, 255, 255, 0.96) 0 46%, rgba(240, 199, 66, 0.54) 46% 62%, rgba(225, 229, 233, 0.88) 62% 100%);
  clip-path: polygon(0 0, 100% 0, 100% 70%, 0 92%);
  opacity: 0.8;
}

.scene-detail .panel-b {
  right: -12vw;
  bottom: -18vh;
  width: 58vw;
  height: 38vh;
  background: linear-gradient(124deg, rgba(227, 231, 236, 0.9) 0 60%, rgba(240, 199, 66, 0.14) 60% 100%);
  clip-path: polygon(0 16%, 100% 0, 100% 100%, 0 100%);
  opacity: 0.68;
}

.scene-detail .panel-c {
  top: 16vh;
  right: 10vw;
  width: 16vw;
  height: 14vh;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(24, 26, 31, 0.05);
  transform: skewX(-20deg);
}

.scene-detail .word-a {
  top: 20vh;
  left: -1vw;
  font-size: min(17vw, 210px);
  color: rgba(24, 26, 31, 0.045);
  transform: rotate(-10deg);
}

.scene-detail .word-b {
  top: 12vh;
  right: 7vw;
  font-size: min(7vw, 110px);
  color: rgba(24, 26, 31, 0.035);
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.04), rgba(255, 255, 255, 0.04)),
    radial-gradient(rgba(0, 0, 0, 0.05) 0.55px, transparent 0.8px);
  background-size: auto, 7px 7px;
  opacity: 0.08;
  z-index: -1;
}

.shell {
  width: min(calc(100% - 92px), var(--max-width));
  margin: 0 auto;
  padding: 30px 0 132px;
  position: relative;
  z-index: 1;
}

.topbar,
.hero,
.section,
.preview-shell,
.detail-panel,
.project-card,
.capability-card,
.closing-card,
.demo-card,
.metric-card {
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 16px 20px;
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
}

.brand-mark {
  width: 10px;
  height: 42px;
  background: linear-gradient(180deg, var(--yellow), #e3e5e9 100%);
  border-radius: 999px;
}

.eyebrow {
  margin: 0 0 10px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--muted);
}

.topbar h1,
.hero h2,
.section h3,
.demo-card h4,
.capability-card h4,
.closing-card h4,
.project-card h4,
.preview-head h4 {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.03em;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.topbar h1 {
  font-size: clamp(1.4rem, 1.8vw, 1.8rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.topbar-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.topbar-links a,
.filter-chip,
.button,
.panel-close {
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.topbar-links a {
  display: inline-flex;
  align-items: center;
  height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  background: rgba(255, 255, 255, 0.72);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.topbar-links a:hover,
.button:hover,
.filter-chip:hover {
  transform: translateY(-1px);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 36%;
  gap: 40px;
  margin-top: 26px;
  padding: 56px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.97), rgba(251, 250, 245, 0.98)),
    linear-gradient(140deg, transparent 0 80%, rgba(240, 199, 66, 0.12) 80% 86%, transparent 86% 100%);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.hero-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  min-width: 0;
  max-width: 720px;
}

.hero::after {
  content: "";
  position: absolute;
  inset: 20px;
  border: 1px solid rgba(17, 19, 24, 0.038);
  pointer-events: none;
}

.hero-copy h2 {
  font-size: clamp(2.15rem, 2.95vw, 3.1rem);
  line-height: 1.12;
  max-width: 6.2em;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.045em;
  text-transform: none;
}

.hero-body {
  max-width: 34rem;
  margin: 26px 0 0;
  font-size: 0.95rem;
  line-height: 2;
  color: var(--muted);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 44px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 15px;
  text-decoration: none;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  white-space: nowrap;
}

.button-primary {
  color: #16181d;
  background: var(--yellow);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.3);
}

.button-ghost {
  color: var(--text);
  background: rgba(255, 255, 255, 0.66);
}

.button-subtle {
  color: var(--muted);
  background: transparent;
  border-color: transparent;
  padding-left: 0;
  padding-right: 0;
}

.hero-panel {
  display: grid;
  gap: 12px;
  min-width: 0;
  width: min(100%, 640px);
  justify-self: end;
}

.metric-card,
.demo-card,
.capability-card,
.closing-card,
.preview-shell,
.project-card,
.detail-panel {
  border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.page-home .metric-card,
.page-home .hero-summary,
.page-home .project-card,
.page-home .section,
.page-home .topbar {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: blur(18px) saturate(1.02);
  -webkit-backdrop-filter: blur(18px) saturate(1.02);
}

.page-home .project-card,
.page-home .metric-card,
.page-home .hero-summary {
  border-color: rgba(28, 31, 38, 0.08);
}

.metric-card {
  padding: 18px 18px;
}

.metric-label {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--muted);
}

.metric-value {
  display: block;
  margin-top: 10px;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: clamp(1.7rem, 2.6vw, 2.25rem);
  line-height: 1;
  letter-spacing: -0.04em;
}

.metric-text {
  font-size: 1.1rem;
}

.hero-summary p,
.section-note,
.project-card p,
.closing-card p,
.capability-card p {
  margin: 0;
  line-height: 1.7;
}

.hero-summary {
  padding: 18px 18px 20px;
  border: 1px solid var(--line);
  background: rgba(252, 252, 249, 0.9);
}

.hero-summary p + p {
  margin-top: 10px;
}

.section {
  margin-top: 54px;
  padding: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 18px;
  margin-bottom: 28px;
}

.section h3 {
  font-size: clamp(1.36rem, 2.1vw, 1.9rem);
  line-height: 1.2;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-transform: none;
  letter-spacing: -0.03em;
}

.section-note {
  max-width: 24rem;
  color: var(--muted);
  font-size: 0.88rem;
}

.flagship-grid,
.feature-grid,
.demo-grid,
.contact-grid,
.closing-grid {
  display: grid;
  gap: 20px;
}

.contact-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.about-hero {
  align-items: stretch;
}

.about-hero-grid,
.about-method-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.about-timeline {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.about-partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
}

.about-link-grid {
  display: grid;
  grid-template-columns: minmax(260px, 480px);
  gap: 18px;
}

.content-hero {
  border-color: rgba(143, 205, 255, 0.2);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.99), rgba(245, 250, 255, 0.99)),
    linear-gradient(145deg, transparent 0 76%, rgba(171, 218, 255, 0.2) 76% 100%);
}

.content-hero-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.content-project-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.content-card {
  min-height: 100%;
}

.page-content-work .topbar,
.page-content-work .section,
.page-content-work .project-page-hero,
.page-content-work .detail-info-card,
.page-content-work .about-card,
.page-content-work .closing-card {
  border-color: rgba(163, 196, 229, 0.18);
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

.page-content-work .brand-mark {
  background: linear-gradient(180deg, #8fd2ff, #d9f0ff 100%);
}

.page-content-work .topbar-links a,
.page-content-work .button-ghost,
.page-content-work .card-action,
.page-content-work .filter-chip,
.page-content-work .project-type,
.page-content-work .project-status,
.page-content-work .tag-pill,
.page-content-work .detail-button {
  border-color: rgba(159, 189, 219, 0.22);
  background: rgba(247, 250, 253, 0.66);
  color: #203a52;
}

.page-content-work .button-primary,
.page-content-work .card-action-primary {
  background: #abd7f4;
  color: #173955;
  box-shadow:
    inset 0 0 0 1px rgba(255, 255, 255, 0.34),
    0 8px 18px rgba(96, 140, 184, 0.1);
}

.page-content-work .button-primary:hover,
.page-content-work .card-action-primary:hover {
  background: #9fd0f0;
}

.page-content-work .metric-card,
.page-content-work .detail-info-card,
.page-content-work .about-card,
.page-content-work .closing-card {
  box-shadow: 0 18px 34px rgba(72, 150, 219, 0.05);
}

.page-content-work .flow-step-stage,
.page-content-work .flow-branch-label {
  background: rgba(223, 235, 246, 0.72);
  border-color: rgba(165, 194, 222, 0.24);
  color: #2a4964;
}

.page-content-work .flow-step-index {
  background: rgba(180, 211, 235, 0.44);
  border-color: rgba(160, 190, 218, 0.26);
  color: #21425d;
}

.page-content-work .closing-card::before {
  background: linear-gradient(90deg, #8fd2ff, rgba(143, 210, 255, 0));
}

.page-content-work .flow-step,
.page-content-work .flow-group,
.page-content-work .flow-branch {
  border-color: rgba(168, 196, 224, 0.18);
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 14px 28px rgba(96, 140, 184, 0.035);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

.content-placeholder-gallery {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.content-placeholder-card {
  border-color: rgba(168, 196, 224, 0.18);
  background: rgba(255, 255, 255, 0.58);
  backdrop-filter: blur(18px) saturate(1.04);
  -webkit-backdrop-filter: blur(18px) saturate(1.04);
}

.content-placeholder-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 260px;
  border-bottom: 1px solid rgba(168, 196, 224, 0.18);
  background:
    linear-gradient(135deg, rgba(235, 246, 255, 0.9), rgba(255, 255, 255, 0.52)),
    linear-gradient(120deg, transparent 0 58%, rgba(171, 216, 255, 0.22) 58% 68%, rgba(223, 239, 255, 0.46) 68% 82%, transparent 82% 100%);
}

.content-placeholder-visual span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 112px;
  min-height: 34px;
  padding: 0 14px;
  border: 1px solid rgba(145, 197, 244, 0.24);
  background: rgba(246, 250, 255, 0.72);
  color: #20405d;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 0.84rem;
  letter-spacing: 0.14em;
}

.about-card {
  padding: 22px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.about-card h4 {
  margin: 0 0 12px;
  font-size: 1rem;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  letter-spacing: -0.02em;
}

.about-card p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.about-contact-grid {
  max-width: 760px;
}

.about-card-actions {
  padding-top: 18px;
}

.about-tags {
  margin-bottom: 0;
}

.demo-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.brief-card,
.flagship-card,
.background-card,
.demo-card,
.capability-card,
.closing-card,
.project-card {
  position: relative;
  overflow: hidden;
}

.flagship-card,
.demo-card {
  padding: 26px;
}

.flagship-card::before,
.demo-card::before,
.project-card::before,
.capability-card::before,
.closing-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 84px;
  height: 3px;
  background: linear-gradient(90deg, var(--yellow), rgba(240, 199, 66, 0));
}

.flagship-card {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow);
}

.brief-index,
.flagship-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 28px;
  border: 1px solid var(--line-strong);
  background: var(--yellow-soft);
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 0.86rem;
}

.flagship-card h4 {
  font-size: 1.16rem;
  margin: 16px 0 12px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-transform: none;
  letter-spacing: -0.02em;
}

.flagship-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.75;
}

.flagship-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.home-contact-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
  margin-top: 38px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.9rem;
}

.home-contact-label {
  color: var(--text);
}

.flagship-topline {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.demo-tag {
  margin: 0 0 10px;
  color: var(--muted);
  font-size: 0.68rem;
  letter-spacing: 0.08em;
  text-transform: none;
}

.demo-card h4,
.flagship-card h4,
.project-card h4,
.capability-card h4,
.closing-card h4 {
  font-size: 1.16rem;
  margin-bottom: 12px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  text-transform: none;
  letter-spacing: -0.02em;
  font-weight: 700;
}

.demo-card p,
.flagship-card p,
.project-card p,
.capability-card p,
.closing-card p {
  color: var(--muted);
}

.demo-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.preview-shell {
  margin-top: 28px;
  padding: 20px;
}

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

#demoFrame {
  width: 100%;
  min-height: 760px;
  border: 1px solid var(--line);
  background: #ffffff;
}

.closing-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.contact-grid .closing-card {
  min-height: 100%;
}

.contact-qr-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.contact-qr {
  width: min(100%, 220px);
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
  align-self: center;
  margin-top: 14px;
  border: 1px solid var(--line);
  background: #fff;
  padding: 10px;
}

.closing-card {
  padding: 26px;
  min-height: 0;
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.filter-chip {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  cursor: pointer;
  font: inherit;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
}

.filter-chip.is-active {
  border-color: rgba(17, 19, 24, 0.45);
  background: var(--yellow);
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 22px;
}

.project-card {
  padding: 24px;
  display: flex;
  flex-direction: column;
}

.project-role,
.flagship-role {
  color: var(--text) !important;
  font-weight: 600;
}

.project-topline,
.project-tags,
.project-footer,
.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.project-topline {
  align-items: center;
  margin-bottom: 12px;
}

.project-type,
.project-status,
.tag-pill,
.detail-path {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 10px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.74);
  color: var(--muted);
  font-size: 0.82rem;
  white-space: nowrap;
}

.project-status.status-demo {
  border-color: rgba(242, 194, 48, 0.44);
  background: rgba(242, 194, 48, 0.18);
  color: #7d6211;
}

.project-status.status-active {
  border-color: rgba(17, 19, 24, 0.24);
  background: rgba(17, 19, 24, 0.08);
  color: #39404c;
}

.project-status.status-archive {
  color: #6c7482;
}

.project-tags {
  margin-top: 16px;
}

.tag-pill {
  min-height: 28px;
}

.project-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 22px;
}

.card-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  color: var(--text);
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 600;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.card-action:hover,
.detail-button:hover {
  transform: translateY(-1px);
}

.card-action-primary {
  background: var(--yellow);
  color: #16181d;
}

.project-footer {
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}

.mini-link {
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid transparent;
}

.mini-link:hover {
  border-color: var(--text);
}

.detail-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, 0.78);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.detail-panel {
  position: fixed;
  top: 18px;
  right: 18px;
  bottom: 18px;
  width: min(520px, calc(100vw - 36px));
  padding: 18px;
  transform: translateX(calc(100% + 18px));
  z-index: 30;
}

.reveal-card {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 420ms ease, transform 420ms ease;
}

.reveal-card.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.detail-panel.is-open {
  transform: translateX(0);
}

.panel-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 42px;
  height: 42px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  font-size: 1.6rem;
}

.detail-content {
  height: 100%;
  overflow: auto;
  padding-right: 8px;
}

.detail-content h4 {
  margin: 0 0 12px;
  font-family: "Manrope", "Noto Sans SC", sans-serif;
  font-size: 2.2rem;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.detail-content p,
.detail-content li {
  color: var(--muted);
  line-height: 1.8;
}

.detail-content ul {
  margin: 12px 0 0;
  padding-left: 20px;
}

.flow-diagram {
  display: grid;
  gap: 14px;
}

.flow-step {
  position: relative;
  padding: 20px 20px 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.flow-step-head,
.flow-group-head {
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.flow-step-stage {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border: 1px solid var(--line-strong);
  background: rgba(240, 199, 66, 0.12);
  color: var(--text);
  font-size: 0.72rem;
  white-space: nowrap;
}

.flow-step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  height: 24px;
  border: 1px solid var(--line-strong);
  background: var(--yellow-soft);
  font-size: 0.75rem;
  color: var(--text);
  white-space: nowrap;
}

.flow-group {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
}

.flow-group h6 {
  margin: 0;
  font-size: 0.98rem;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  align-self: center;
}

.flow-branches {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.flow-branch {
  padding: 16px;
  border: 1px solid var(--line);
  background: rgba(250, 250, 247, 0.96);
}

.flow-branch-label {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  background: rgba(240, 199, 66, 0.08);
  font-size: 0.72rem;
  white-space: nowrap;
}

.flow-branch p {
  margin: 0;
  line-height: 1.75;
}

.flow-step h6 {
  margin: 0 0 8px;
  font-size: 0.98rem;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  word-break: keep-all;
  overflow-wrap: normal;
}

.flow-step p {
  margin: 0;
}

.flow-arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 1.1rem;
  min-height: 18px;
}

.detail-section {
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid var(--line);
}

.detail-section h5 {
  margin: 0 0 10px;
  font-size: 0.92rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text);
}

.detail-page-shell {
  padding-bottom: 112px;
}

.detail-topbar {
  position: sticky;
  top: 18px;
  z-index: 10;
}

.project-page-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  margin-top: 26px;
  padding: 42px;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(251, 250, 245, 0.98)),
    linear-gradient(145deg, transparent 0 80%, rgba(240, 199, 66, 0.12) 80% 100%);
  box-shadow: var(--shadow);
}

.project-page-copy h2 {
  margin: 0;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(2.05rem, 3.2vw, 3.2rem);
  line-height: 1.08;
  letter-spacing: -0.04em;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
  text-wrap: balance;
}

.project-page-body {
  max-width: 40rem;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 0.96rem;
  line-height: 1.92;
}

.project-page-copy {
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.project-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: auto;
  padding-top: 40px;
}

.project-page-side {
  display: grid;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 16px;
}

.detail-info-card,
.path-card,
.architecture-card,
.deliverable-card,
.preview-card {
  padding: 20px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow);
}

.detail-info-card p:last-child,
.path-card p,
.architecture-note,
.deliverable-card p,
.preview-card p,
.detail-text-block p,
.detail-list-block li {
  margin: 0;
  color: var(--muted);
  line-height: 1.82;
}

.detail-text-block {
  display: grid;
  gap: 16px;
  max-width: 860px;
}

.path-grid,
.architecture-grid,
.deliverable-grid,
.preview-card-grid {
  display: grid;
  gap: 18px;
}

.path-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.path-card {
  position: relative;
}

.path-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  height: 24px;
  margin-bottom: 12px;
  border: 1px solid var(--line-strong);
  background: var(--yellow-soft);
  font-size: 0.74rem;
}

.path-card h4,
.deliverable-card h4,
.preview-card h4 {
  margin: 0 0 10px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
}

.architecture-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.architecture-head {
  margin-bottom: 14px;
}

.architecture-note {
  font-size: 0.92rem;
}

.architecture-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  line-height: 1.8;
}

.deliverable-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.project-preview-shell {
  display: grid;
  gap: 14px;
}

.project-preview-frame {
  width: 100%;
  min-height: 780px;
  border: 1px solid var(--line);
  background: #fff;
}

.mockup-note {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(255, 247, 214, 0.26);
  color: var(--muted);
  line-height: 1.8;
}

.mockup-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 18px;
}

.mockup-card {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.88);
  box-shadow: var(--shadow);
}

.mockup-image {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.mockup-caption {
  padding: 16px 18px 18px;
}

.mockup-caption h4 {
  margin: 0 0 10px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
}

.mockup-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.preview-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.diagram-note {
  margin-top: 22px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  background: rgba(252, 252, 248, 0.9);
  color: var(--muted);
  line-height: 1.8;
}

.diagram-gallery {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(360px, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.diagram-card {
  margin: 0;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow);
}

.diagram-image {
  display: block;
  width: 100%;
  height: auto;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.diagram-caption {
  padding: 18px 20px 20px;
}

.diagram-caption h4 {
  margin: 0 0 10px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
}

.diagram-caption p {
  margin: 0;
  color: var(--muted);
  line-height: 1.8;
}

.detail-tags {
  margin-bottom: 18px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 18px;
}

.related-card {
  padding: 18px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.related-card h4 {
  margin: 0 0 10px;
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  word-break: keep-all;
  overflow-wrap: normal;
}

.related-card p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.8;
}

.related-card .detail-button {
  margin-top: auto;
  align-self: flex-start;
}

@media (max-width: 1120px) {
  .detail-info-grid,
  .path-grid,
  .architecture-grid,
  .deliverable-grid,
  .preview-card-grid,
  .diagram-gallery,
  .mockup-gallery,
  .related-grid,
  .feature-grid,
  .flagship-grid,
  .contact-grid,
  .flow-branches,
  .hero,
  .demo-grid,
  .project-grid,
  .closing-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1121px) {
  .hero-copy {
    padding-right: 12px;
  }
}

@media (min-width: 1680px) {
  .hero {
    grid-template-columns: minmax(0, 1fr) 34%;
  }

  .hero-copy h2 {
    max-width: 6em;
    font-size: clamp(2.15rem, 2.45vw, 2.9rem);
  }
}

@media (max-width: 820px) {
  .scene-word.word-b,
  .scene-panel.panel-c {
    display: none;
  }

  .scene-home .word-a,
  .scene-about .word-a,
  .scene-detail .word-a {
    font-size: min(26vw, 160px);
    left: -8vw;
    top: 18vh;
  }

  .shell {
    width: min(calc(100% - 28px), var(--max-width));
    padding-top: 18px;
  }

  .topbar,
  .hero,
  .section,
  .project-page-hero {
    padding: 20px;
  }

  .topbar,
  .section-head,
  .preview-head {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero,
  .project-page-hero,
  .feature-grid,
  .flagship-grid,
  .contact-grid,
  .flow-branches,
  .diagram-gallery,
  .mockup-gallery,
  .related-grid,
  .demo-grid,
  .project-grid,
  .closing-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy h2 {
    font-size: clamp(2.15rem, 11vw, 3.2rem);
  }

  .home-contact-strip {
    gap: 10px 16px;
  }

  #demoFrame {
    min-height: 520px;
  }

  .detail-panel {
    top: auto;
    left: 12px;
    right: 12px;
    bottom: 12px;
    width: auto;
    transform: translateY(calc(100% + 12px));
  }

  .detail-panel.is-open {
    transform: translateY(0);
  }
}
