:root {
  --bg: #f8fbff;
  --bg-soft: #f3f6fb;
  --surface: rgba(255, 255, 255, 0.92);
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-soft: #eff6ff;
  --text-main: #0f172a;
  --text-sub: #475569;
  --text-soft: #64748b;
  --border: #e5eaf3;
  --shadow: 0 16px 40px rgba(15, 23, 42, 0.06);
  --shadow-blue: 0 22px 50px rgba(37, 99, 235, 0.10);
}

* {
  box-sizing: border-box;
}

html,
body {
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f8fbff 0%, #f3f6fb 100%);
  color: var(--text-main);
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  line-height: 1.7;
}

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

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

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

.shell {
  max-width: 1448px;
  margin: 0 auto;
  padding: 0 48px;
}

.section {
  padding: 72px 0;
  scroll-margin-top: 88px;
}

.eyebrow {
  margin-bottom: 10px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0;
}

.pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  box-shadow: 0 10px 28px rgba(37, 99, 235, 0.08);
}

h1 {
  margin-bottom: 10px;
  font-size: clamp(72px, 6.8vw, 96px);
  line-height: 1.02;
  letter-spacing: 0;
}

h2 {
  margin-bottom: 0;
  font-size: 34px;
  line-height: 1.25;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.35;
  letter-spacing: 0;
}

.section-heading {
  margin-bottom: 28px;
}

.compact-heading {
  margin: 0 0 18px;
  transform: translateY(8px);
}

.card,
.summary-card,
.project-tile,
.tool-card,
.gallery-entry {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  box-shadow: var(--shadow);
}

.card {
  padding: 24px;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-blue);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 11px 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  font-weight: 800;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn.primary {
  background: var(--blue);
  color: #fff;
  box-shadow: 0 14px 28px rgba(37, 99, 235, 0.24);
}

.btn.secondary {
  background: var(--blue-soft);
  color: var(--blue-dark);
}

.btn.ghost {
  background: #fff;
  border-color: var(--border);
  color: var(--text-main);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.86);
  border-bottom: 1px solid var(--border);
  backdrop-filter: blur(18px);
}

.nav {
  min-height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: fit-content;
}

.brand-logo {
  width: 42px;
  height: 34px;
  object-fit: contain;
}

.brand-mark {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  background: var(--blue);
  border-radius: 12px;
  color: #fff;
  font-size: 14px;
  font-weight: 900;
}

.brand-text {
  color: var(--text-main);
  font-size: 22px;
  font-weight: 900;
}

.brand small {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

.nav-links a {
  padding: 9px 13px;
  border-radius: 12px;
  color: var(--text-sub);
  font-size: 15px;
  font-weight: 700;
}

.nav-links a:hover,
.nav-links a.active {
  position: relative;
  background: transparent;
  color: var(--blue);
}

.nav-links a.active::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: -9px;
  height: 3px;
  background: var(--blue);
  border-radius: 999px;
}

.nav-links .nav-download,
.nav-download {
  background: var(--blue);
  color: #fff;
}

.nav-links .nav-download:hover,
.nav-download:hover {
  background: var(--blue-dark);
  color: #fff;
}

.nav-actions,
.nav-download-mobile,
.menu-toggle {
  display: none;
}

.menu-toggle {
  width: 42px;
  height: 42px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  padding: 10px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--text-main);
}

/* Home intro */
.home-intro {
  position: relative;
  padding-top: 46px;
  padding-bottom: 34px;
  scroll-margin-top: 88px;
}

.home-intro::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(circle at 18% 16%, rgba(37, 99, 235, 0.10), transparent 34%),
    radial-gradient(circle at 88% 24%, rgba(59, 130, 246, 0.08), transparent 30%);
  pointer-events: none;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(610px, 0.95fr) minmax(560px, 0.85fr);
  align-items: center;
  gap: 36px;
  min-height: auto;
  padding: 26px 0 28px;
}

.hero-copy {
  padding-left: 0;
}

.hero-copy h1 {
  position: relative;
  width: fit-content;
}

.hero-role {
  margin-bottom: 16px;
  color: var(--blue-dark);
  font-size: 30px;
  line-height: 1.25;
  font-weight: 900;
}

.hero-summary {
  max-width: 590px;
  margin-bottom: 0;
  color: var(--text-sub);
  font-size: 17px;
  font-weight: 700;
  line-height: 1.85;
}

.contact-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 22px 0 0;
}

.contact-pills a,
.contact-pills > span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 8px 14px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.03);
}

.profile-pill {
  background: rgba(255, 255, 255, 0.86);
}

.profile-pill img {
  width: 17px;
  height: 17px;
  object-fit: contain;
}

.contact-pills span span,
.contact-pills a span {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 900;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 22px;
  margin-top: 20px;
}

.hero-actions .btn {
  min-width: 142px;
  min-height: 40px;
  padding: 9px 18px;
  border-radius: 7px;
}

.btn-arrow {
  margin-left: 6px;
}

.doc-icon {
  margin-right: 6px;
  width: 18px;
  height: 18px;
  object-fit: contain;
}

.hero-showcase {
  display: grid;
  grid-template-columns: 276px 330px;
  align-items: center;
  justify-content: end;
  gap: 66px;
  margin-left: 0;
  width: 100%;
}

.phone-mockup {
  position: relative;
  aspect-ratio: 487 / 1005;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.phone-frame {
  width: 260px;
  max-height: none;
}

.phone-frame::before {
  content: none;
}

.phone-frame::after {
  content: none;
}

.phone-mockup img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent;
}

.phone-screen {
  position: absolute;
  inset: 6px;
  z-index: 3;
  overflow: hidden;
  border-radius: 30px;
  background: var(--phone-fallback, #05070b) center / cover no-repeat;
}

.phone-screen::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background: var(--phone-fallback, transparent) center / cover no-repeat;
  opacity: 1;
  transition: opacity 0.28s ease;
}

.phone-screen.video-ready::before {
  opacity: 0;
}

.phone-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.24);
  transform-origin: center;
  background: transparent;
  opacity: 0;
  transition: opacity 0.28s ease;
}

.phone-screen.video-ready .phone-video {
  opacity: 1;
}

.phone-mockup > .phone-frame-art {
  position: absolute;
  inset: 0;
  z-index: 20;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 0;
  background: transparent !important;
  filter: drop-shadow(0 22px 34px rgba(15, 23, 42, 0.22));
  pointer-events: none;
}

.hero-preview-cards {
  display: grid;
  gap: 20px;
}

.mini-card {
  position: relative;
  min-height: 200px;
  padding: 18px 20px 16px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  box-shadow: 0 16px 42px rgba(15, 23, 42, 0.06);
  font-weight: 700;
}

.mini-icon,
.ability-icon {
  display: grid;
  place-items: center;
  background: var(--blue-soft);
  color: var(--blue);
  font-weight: 900;
}

.mini-icon {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  font-size: 13px;
}

.green-dot {
  background: #e9fbf6;
  color: #10b981;
}

.blue-dot {
  background: #eef4ff;
  color: var(--blue);
}

.card-kicker {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
}

.card-kicker em {
  color: var(--text-soft);
  font-size: 16px;
  font-style: normal;
  font-weight: 800;
}

.card-arrow {
  position: absolute;
  top: 52px;
  right: 20px;
  display: grid;
  width: 30px;
  height: 30px;
  place-items: center;
  background: transparent;
  border-radius: 50%;
  line-height: 1;
}

.card-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.mini-card strong {
  display: block;
  max-width: 250px;
  margin-bottom: 5px;
  color: var(--text-main);
  font-size: 17px;
  line-height: 1.35;
}

.mini-card p {
  margin-bottom: 9px;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
}

.mini-card ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  list-style: none;
}

.mini-card li {
  position: relative;
  padding-left: 27px;
}

.mini-card li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  display: grid;
  width: 17px;
  height: 17px;
  place-items: center;
  background: #eaf2ff;
  border-radius: 50%;
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.profile-overview {
  display: grid;
  gap: 18px;
  margin-top: -8px;
}

.summary-card {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 24px;
  align-items: start;
  min-height: 126px;
  padding: 16px 32px;
  border-radius: 8px;
}

.summary-icon {
  width: 64px;
  height: 64px;
  object-fit: contain;
  border-radius: 50%;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.22);
}

.summary-card p {
  max-width: 1120px;
  margin-bottom: 6px;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.62;
}

.summary-card h2 {
  margin-bottom: 5px;
  font-size: 18px;
}

.compact-heading h2,
.software-strip-title {
  color: var(--text-main);
  font-size: 22px;
  line-height: 1.25;
  font-weight: 900;
}

.summary-card p:last-child {
  margin-bottom: 0;
}

.text-blue {
  color: inherit;
  font-weight: 700;
}

.ability-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

.ability-card {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  grid-template-areas:
    "title"
    "desc"
    "tags";
  grid-template-rows: auto auto 1fr;
  min-height: 140px;
  padding: 18px 20px;
  border-radius: 8px;
}

.ability-card.highlighted {
  background: var(--surface);
  border-color: var(--border);
}

.ability-icon-img {
  position: absolute;
  left: 24px;
  top: 25px;
  width: 58px;
  height: 58px;
  object-fit: contain;
  transform: none;
}

.ability-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 16px;
}

.ability-card p {
  grid-area: desc;
  margin: 2px 0 0 76px;
  color: var(--text-sub);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.55;
}

.ability-card h3 {
  grid-area: title;
  margin: 0 0 3px 76px;
  font-size: 16px;
}

.mini-tags {
  grid-area: tags;
  align-self: end;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
}

.ability-card .mini-tags {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  overflow: visible;
  transform: translateY(3px);
}

.mini-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 4px 9px;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-sub);
  font-size: 10.5px;
  font-weight: 800;
}

.ability-card .mini-tags span {
  min-width: 0;
  width: 100%;
  justify-content: center;
  padding: 4px 10px;
  overflow: visible;
  white-space: nowrap;
  font-size: 10.5px;
}

.ability-card .mini-tags span:nth-child(3) {
  grid-column: 1 / -1;
}

.tool-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

.software-strip-title {
  width: 100%;
  margin-top: 0;
  margin-bottom: 10px;
  margin-right: 8px;
  transform: translateY(6px);
}

.tool-tags span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 12px 7px 9px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  color: var(--text-sub);
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.03);
}

.tool-tags span img {
  width: 24px;
  height: 24px;
  object-fit: contain;
}

/* Project area */
#projects.shell {
  max-width: 1260px;
  padding-left: 0;
  padding-right: 0;
}

.project-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(430px, 0.78fr);
  min-height: 430px;
  height: 430px;
  gap: 28px;
  align-items: center;
  margin-bottom: 28px;
  padding: 48px 56px;
  overflow: hidden;
  background:
    linear-gradient(90deg, rgba(5, 20, 57, 0.95), rgba(7, 31, 79, 0.82)),
    url("../ui/蓝色背景.png") center / cover;
  border-radius: 16px;
  color: #fff;
  box-shadow: 0 26px 60px rgba(15, 35, 86, 0.20);
}

.project-kicker {
  display: none;
  margin-bottom: 12px;
  padding: 6px 13px;
  background: #2563eb;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 7px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.project-hero h2 {
  margin-bottom: 12px;
  color: #fff;
  font-size: clamp(36px, 3.7vw, 48px);
  line-height: 1.05;
}

.project-hero-copy {
  transform: translateY(-22px);
}

[data-project-title],
[data-project-tags] {
  transition: opacity 420ms ease, transform 420ms ease;
}

[data-project-title].is-switching,
[data-project-tags].is-switching {
  opacity: 0;
  transform: translateY(8px);
}

.hero-project-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.hero-project-tags span {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  color: #eaf2ff;
  font-weight: 800;
}

.project-role-line {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 20px;
}

.project-role-line img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.project-hero p {
  max-width: 670px;
  margin-bottom: 6px;
  color: #dbeafe;
  font-size: 13.5px;
  line-height: 1.62;
  font-weight: 700;
}

.project-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
  max-width: 720px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.2);
}

.project-metrics div {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
}

.project-metrics img {
  width: 28px;
  height: 28px;
}

.project-metrics strong,
.project-metrics span {
  display: block;
}

.project-metrics strong {
  color: #eaf2ff;
  font-size: 14px;
}

.project-metrics span {
  grid-column: 2;
  color: #c7d2fe;
  font-size: 13px;
  font-weight: 700;
  transform: translateY(-8px);
}

.project-hero-phones {
  position: relative;
  align-self: stretch;
  min-height: 0;
  height: 100%;
}

.project-phone {
  overflow: visible;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: 0 18px 38px rgba(0, 0, 0, 0.28);
}

.project-phone-screen {
  position: absolute;
  inset: 6px 5px 6px 5px;
  z-index: 1;
  overflow: hidden;
  background: #0f172a;
  border-radius: 30px;
}

.project-phone-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.08);
  transition: opacity 420ms ease, transform 420ms ease;
}

.project-hero-phones.is-switching .project-phone-screen img {
  opacity: 0;
  transform: scale(1.02) translateY(8px);
}

.project-phone-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.project-phone-main {
  position: absolute;
  right: 182px;
  top: -34px;
  width: 190px;
  aspect-ratio: 487 / 1005;
}

.project-phone-small {
  position: absolute;
  right: 60px;
  width: 80px;
  aspect-ratio: 487 / 1005;
}

.project-phone-small.top {
  top: 0;
}

.project-phone-small.bottom {
  top: 174px;
}

.project-phone-small .project-phone-screen {
  inset: 3px 3px 3px 3px;
  border-radius: 15px;
}

.project-section-title {
  display: flex;
  align-items: center;
  margin: 20px 0 18px;
}

.project-section-title h2 {
  position: relative;
  padding-left: 14px;
  font-size: 21px;
}

.project-section-title h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 5px;
  bottom: 5px;
  width: 4px;
  background: var(--blue);
  border-radius: 999px;
}

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

.project-tile {
  display: grid;
  grid-template-columns: 148px 112px;
  column-gap: 10px;
  justify-content: space-between;
  min-height: 360px;
  padding: 16px;
  border-radius: 8px;
}

.project-card-copy {
  display: grid;
  grid-template-rows: 30px 34px 20px minmax(158px, 1fr) 24px;
  row-gap: 6px;
  width: 148px;
  min-width: 0;
  max-width: 148px;
  height: 100%;
}

.project-top {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 0;
}

.project-top span {
  display: grid;
  min-width: 22px;
  height: 22px;
  place-items: center;
  background: var(--blue);
  border-radius: 6px;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.project-top h3 {
  margin-bottom: 0;
  overflow: hidden;
  font-size: 14.5px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.project-card-tags {
  display: flex;
  flex-wrap: nowrap;
  align-content: flex-start;
  gap: 5px;
  min-height: 34px;
  margin-bottom: 0;
  overflow: hidden;
}

.project-card-tags span {
  padding: 4px 6px;
  background: var(--blue-soft);
  border-radius: 999px;
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
}

.project-tile .meta {
  margin-bottom: 0;
  font-size: 12px;
  line-height: 1.4;
}

.project-tile ul {
  min-height: 0;
  margin: 0;
  padding-left: 17px;
  color: var(--text-sub);
  font-size: 11.3px;
  line-height: 1.42;
  font-weight: 700;
  max-width: 148px;
  overflow-wrap: anywhere;
}

.project-card-media {
  justify-self: end;
}

.project-tile li + li {
  margin-top: 4px;
}

.project-tile a {
  align-self: end;
  transform: translateY(-10px);
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.project-card-media {
  align-self: center;
  overflow: hidden;
  height: 230px;
  background: #0f172a;
  border-radius: 18px;
}

.project-card-media > img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.project-card-phone {
  position: relative;
  width: 112px;
  height: 232px;
  overflow: visible;
  background: transparent;
  border-radius: 0;
}

.project-card-screen {
  position: absolute;
  inset: 5px 5px 5px 4px;
  z-index: 1;
  overflow: hidden;
  background: #0f172a;
  border-radius: 14px;
}

.project-card-screen img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1.13);
}

.project-card-frame {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  object-fit: contain;
  pointer-events: none;
}

.project-card-phone.stacked .project-card-screen {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 4px;
  background: #eaf2ff;
}

.project-card-phone.stacked .project-card-screen img {
  min-height: 0;
}

  .project-card-phone.dark .project-card-screen img {
  object-fit: contain;
  padding: 10px;
  background: #0f172a;
  transform: scale(1.1);
}

.meta {
  margin-bottom: 10px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.gallery-entry.asset-gallery {
  display: block;
  margin: 34px -48px 0;
  padding: 0 48px 34px;
  background: linear-gradient(180deg, #f5f9ff 0%, #eef5ff 100%);
  border: 0;
  border-radius: 0;
  box-shadow: none;
}

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

.asset-gallery-head h3 {
  margin-bottom: 6px;
  color: var(--text-main);
  font-size: clamp(28px, 2.3vw, 34px);
  line-height: 1.05;
  font-weight: 950;
}

.asset-gallery-head p {
  margin-bottom: 0;
  color: var(--text-sub);
  font-size: 17px;
  font-weight: 750;
}

.asset-gallery-status {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 7px;
  padding: 11px 18px;
  min-width: fit-content;
  background: #eaf2ff;
  border-radius: 999px;
  color: var(--blue);
  font-size: 15px;
  font-weight: 900;
}

.asset-gallery-status i {
  width: 13px;
  height: 13px;
  background: var(--blue);
  border-radius: 50%;
}

.asset-gallery-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: center;
  min-height: 72px;
  margin-bottom: 22px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.05);
}

.asset-gallery-tabs button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  min-height: 72px;
  border: 0;
  border-right: 1px solid #dbe3ef;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 16px;
  font-weight: 900;
}

.asset-gallery-tabs button:last-child {
  border-right: 0;
}

.asset-gallery-tabs button.active {
  color: var(--blue);
}

.asset-gallery-tabs button.active::after {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  bottom: 0;
  height: 4px;
  background: var(--blue);
  border-radius: 999px 999px 0 0;
}

.asset-gallery-tabs img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}

.asset-gallery-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 390px;
  gap: 22px;
  align-items: stretch;
}

.asset-viewer-panel,
.asset-control-panel {
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.asset-viewer-panel {
  overflow: hidden;
}

.asset-viewer-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 66px;
  padding: 0 26px;
}

.asset-viewer-topbar strong {
  color: var(--text-main);
  font-size: 21px;
  font-weight: 950;
}

.asset-viewer-topbar span {
  display: inline-flex;
  margin-left: 12px;
  padding: 5px 11px;
  background: #dbeafe;
  border-radius: 999px;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
}

.asset-viewer-actions {
  display: flex;
  gap: 8px;
}

.asset-viewer-actions button {
  position: relative;
  width: 34px;
  height: 34px;
  border: 0;
  background: transparent;
}

.asset-viewer-actions button:first-child::before,
.asset-viewer-actions button:first-child::after {
  content: "";
  position: absolute;
  width: 18px;
  height: 18px;
  left: 8px;
  top: 8px;
  border: 2px solid #2563eb;
  border-right: 0;
  border-bottom: 0;
  border-radius: 3px 0 0 0;
}

.asset-viewer-actions button:first-child::after {
  left: auto;
  top: auto;
  right: 8px;
  bottom: 8px;
  border: 2px solid #2563eb;
  border-left: 0;
  border-top: 0;
  border-radius: 0 0 3px 0;
}

.asset-viewer-actions button:last-child::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 7px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #334155;
  box-shadow: 0 8px 0 #334155, 0 16px 0 #334155;
}

.asset-viewer-actions button:not([data-viewer-fullscreen]) {
  display: none;
}

.asset-viewer-stage {
  position: relative;
  height: 432px;
  margin: 0 14px 14px;
  overflow: hidden;
  touch-action: none;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.96), rgba(226, 232, 240, 0.72) 52%, #dbe3ef 100%);
  border: 1px solid #e6edf7;
  border-radius: 16px;
}

#assetViewerCanvas {
  display: block;
  width: 100%;
  height: 100%;
  touch-action: none;
  cursor: grab;
}

#assetViewerCanvas:active {
  cursor: grabbing;
}

.asset-viewer-toolbar {
  position: absolute;
  left: 24px;
  top: 28px;
  z-index: 2;
  display: grid;
  width: 70px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #e5eaf3;
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.asset-viewer-toolbar button {
  display: grid;
  gap: 4px;
  place-items: center;
  min-height: 72px;
  border: 0;
  border-bottom: 1px solid #eef2f7;
  background: transparent;
  color: #0f172a;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
}

.asset-viewer-toolbar button:last-child {
  border-bottom: 0;
}

.asset-viewer-toolbar button.active {
  color: var(--blue);
}

.asset-viewer-toolbar span {
  position: relative;
  width: 22px;
  height: 22px;
}

.asset-viewer-toolbar [data-view-mode="rotate"] span {
  border: 2px solid #0f172a;
  border-right-color: transparent;
  border-radius: 50%;
}

.asset-viewer-toolbar [data-view-mode="pan"] span::before,
.asset-viewer-toolbar [data-view-mode="pan"] span::after,
.asset-viewer-toolbar [data-view-mode="zoom"] span::before,
.asset-viewer-toolbar [data-view-reset] span::before {
  content: "";
  position: absolute;
  background: #0f172a;
}

.asset-viewer-toolbar [data-view-mode="pan"] span::before {
  left: 2px;
  right: 2px;
  top: 10px;
  height: 2px;
}

.asset-viewer-toolbar [data-view-mode="pan"] span::after {
  top: 2px;
  bottom: 2px;
  left: 10px;
  width: 2px;
}

.asset-viewer-toolbar [data-view-mode="zoom"] span {
  border: 2px solid #0f172a;
  border-radius: 50%;
}

.asset-viewer-toolbar [data-view-mode="zoom"] span::before {
  right: -4px;
  bottom: 1px;
  width: 9px;
  height: 2px;
  transform: rotate(45deg);
}

.asset-viewer-toolbar [data-view-reset] span {
  border: 2px solid #0f172a;
  border-left-color: transparent;
  border-radius: 50%;
}

.asset-viewer-hint,
.asset-viewer-fallback {
  position: absolute;
  left: 50%;
  z-index: 2;
  transform: translateX(-50%);
  margin: 0;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  pointer-events: none;
}

.asset-viewer-hint {
  bottom: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(15, 23, 42, 0.44);
  border-radius: 999px;
}

.asset-viewer-hint i {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.86);
}

.asset-viewer-fallback {
  top: 50%;
  display: none;
  padding: 10px 16px;
  background: rgba(15, 23, 42, 0.7);
  border-radius: 10px;
}

.asset-viewer-fallback.show {
  display: block;
}

.asset-control-panel {
  padding: 26px;
}

.asset-control-panel h4 {
  margin-bottom: 18px;
  color: var(--text-main);
  font-size: 19px;
}

.shader-mode-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding-bottom: 22px;
  border-bottom: 1px solid #e5eaf3;
}

.shader-mode-grid button {
  min-height: 39px;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #f8fbff;
  color: #0f172a;
  font: inherit;
  font-size: 14px;
  font-weight: 900;
}

.shader-mode-grid button.active {
  border-color: var(--blue);
  background: #eff6ff;
  color: var(--blue);
  box-shadow: inset 0 0 0 1px var(--blue);
}

.asset-switch-list {
  display: grid;
  gap: 17px;
  padding: 24px 0;
  border-bottom: 1px solid #e5eaf3;
}

.asset-switch-list label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  color: #334155;
  font-size: 15px;
  font-weight: 750;
}

.asset-switch-list input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.asset-switch-list i {
  position: relative;
  width: 44px;
  height: 24px;
  flex: 0 0 auto;
  background: #cbd5e1;
  border-radius: 999px;
  transition: background 0.18s ease;
}

.asset-switch-list i::before {
  content: "";
  position: absolute;
  left: 3px;
  top: 3px;
  width: 18px;
  height: 18px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.18);
  transition: transform 0.18s ease;
}

.asset-switch-list input:checked + i {
  background: var(--blue);
}

.asset-switch-list input:checked + i::before {
  transform: translateX(20px);
}

.asset-speed-control {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 46px;
  gap: 12px;
  align-items: center;
  padding-top: 22px;
  color: #334155;
  font-size: 14px;
  font-weight: 800;
}

.asset-speed-control input {
  width: 100%;
  accent-color: var(--blue);
}

.asset-speed-control strong {
  color: #0f172a;
  text-align: right;
}

.asset-strip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  gap: 16px;
  align-items: center;
  margin-top: 22px;
}

.asset-group-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 23px;
  padding: 0 64px;
  color: var(--blue);
  font-size: 16px;
  font-weight: 800;
}

.asset-group-bar button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  height: 32px;
  padding: 0 14px;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  background: #ffffff;
  color: var(--blue);
  font-size: 13px;
  font-weight: 900;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.08);
}

.asset-group-bar button[hidden] {
  display: none;
}

.asset-thumbs {
  display: flex;
  justify-content: flex-start;
  overflow-x: auto;
  gap: 16px;
  min-width: 0;
  padding: 4px 2px 10px;
  scrollbar-width: thin;
}

.asset-thumbs button {
  position: relative;
  flex: 0 0 126px;
  width: 126px;
  min-height: 112px;
  padding: 0;
  overflow: hidden;
  border: 2px solid transparent;
  border-radius: 14px;
  background: linear-gradient(180deg, #f8fbff 0%, #e8eef7 100%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.06);
}

.asset-thumbs button.active {
  border-color: var(--blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12), 0 18px 38px rgba(15, 23, 42, 0.08);
}

.asset-thumbs em {
  position: static;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  height: 20px;
  padding: 0 7px;
  background: rgba(255, 255, 255, 0.78);
  border-radius: 999px;
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
  line-height: 20px;
}

.asset-thumb-render {
  position: absolute;
  inset: 8px 8px 30px;
  display: grid;
  place-items: center;
}

.asset-thumb-render canvas,
.asset-thumb-render img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.asset-fake-thumb {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  overflow: hidden;
  border-radius: 12px;
  background:
    radial-gradient(circle at 50% 42%, rgba(255, 255, 255, 0.92) 0 18%, transparent 42%),
    linear-gradient(145deg, rgba(226, 238, 255, 0.95), rgba(241, 247, 255, 0.72));
}

.asset-fake-thumb::before {
  content: "";
  position: absolute;
  inset: 9px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.12);
}

.asset-fake-item {
  position: absolute;
  width: 8px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(180deg, #d7a84f 0%, #775f2a 64%, #3a3021 100%);
  box-shadow: 0 5px 12px rgba(30, 41, 59, 0.16);
}

.asset-fake-thumb.group .asset-fake-item,
.asset-fake-thumb.group-many .asset-fake-item {
  left: 50%;
  top: 50%;
}

.asset-fake-thumb.group .asset-fake-item:nth-child(1),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(1) {
  transform: translate(-50%, -50%) rotate(0deg) translateY(-22px);
}

.asset-fake-thumb.group .asset-fake-item:nth-child(2),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(2) {
  transform: translate(-50%, -50%) rotate(45deg) translateY(-24px);
}

.asset-fake-thumb.group .asset-fake-item:nth-child(3),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(3) {
  transform: translate(-50%, -50%) rotate(90deg) translateY(-23px);
}

.asset-fake-thumb.group .asset-fake-item:nth-child(4),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(4) {
  transform: translate(-50%, -50%) rotate(135deg) translateY(-24px);
}

.asset-fake-thumb.group .asset-fake-item:nth-child(5),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(5) {
  transform: translate(-50%, -50%) rotate(180deg) translateY(-22px);
}

.asset-fake-thumb.group .asset-fake-item:nth-child(6),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(6) {
  transform: translate(-50%, -50%) rotate(225deg) translateY(-24px);
}

.asset-fake-thumb.group .asset-fake-item:nth-child(7),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(7) {
  transform: translate(-50%, -50%) rotate(270deg) translateY(-23px);
}

.asset-fake-thumb.group .asset-fake-item:nth-child(8),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(8) {
  transform: translate(-50%, -50%) rotate(315deg) translateY(-24px);
}

.asset-fake-thumb.group .asset-fake-item:nth-child(9),
.asset-fake-thumb.group-many .asset-fake-item:nth-child(9) {
  width: 9px;
  height: 9px;
  transform: translate(-50%, -50%);
}

.asset-fake-thumb.character .asset-fake-item,
.asset-fake-thumb.avatar .asset-fake-item {
  width: 22px;
  height: 34px;
  border-radius: 14px 14px 9px 9px;
  background: linear-gradient(180deg, #d4b798 0%, #334155 46%, #1d4ed8 100%);
}

.asset-fake-thumb.character .asset-fake-item::before,
.asset-fake-thumb.avatar .asset-fake-item::before {
  content: "";
  position: absolute;
  left: 50%;
  top: -11px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #f3c99d;
  transform: translateX(-50%);
}

.asset-fake-thumb.weapon .asset-fake-item {
  width: 9px;
  height: 54px;
  border-radius: 999px;
  background: linear-gradient(180deg, #f8d77a 0%, #9b6b16 52%, #e5e7eb 100%);
  transform: rotate(38deg);
}

.asset-fake-thumb.scene .asset-fake-item {
  width: 54px;
  height: 34px;
  border-radius: 8px 8px 5px 5px;
  background: linear-gradient(180deg, #2563eb 0 34%, #9a6a2d 35% 100%);
}

.asset-thumb-label {
  position: static;
  flex: 1 1 auto;
  min-width: 0;
  max-width: none;
  overflow: hidden;
  color: #64748b;
  font-size: 11px;
  font-weight: 900;
  line-height: 20px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.asset-thumb-meta {
  position: absolute;
  left: 7px;
  right: 7px;
  bottom: 6px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  height: 25px;
  padding: 3px 5px;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(219, 234, 254, 0.95);
  border-radius: 8px;
  box-shadow: 0 6px 16px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(6px);
}

.asset-strip-arrow {
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.09);
}

.asset-strip-arrow::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 9px;
  height: 9px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
  transform: translate(-35%, -50%) rotate(-45deg);
}

.asset-strip-arrow.next::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.asset-thumb-art {
  position: absolute;
  inset: 14px 14px 26px;
}

.asset-thumb-art::before,
.asset-thumb-art::after {
  content: "";
  position: absolute;
}

.asset-thumb-art.chest::before {
  left: 18%;
  right: 18%;
  top: 30%;
  height: 44%;
  background: linear-gradient(90deg, #1f2937 0 18%, #8b5a2b 18% 82%, #1f2937 82%);
  border: 8px solid #c58b38;
  border-radius: 10px 10px 6px 6px;
}

.asset-thumb-art.chest::after {
  left: 45%;
  top: 44%;
  width: 14px;
  height: 20px;
  background: #60a5fa;
  border: 4px solid #d99a35;
  transform: rotate(45deg);
}

.asset-thumb-art.sword::before {
  left: 47%;
  top: 8%;
  width: 10px;
  height: 80%;
  background: linear-gradient(180deg, #bfdbfe, #64748b);
  border-radius: 999px 999px 4px 4px;
  transform: rotate(38deg);
}

.asset-thumb-art.sword::after {
  left: 31%;
  top: 62%;
  width: 56px;
  height: 9px;
  background: #b7791f;
  border-radius: 999px;
  transform: rotate(38deg);
}

.asset-thumb-art.house::before {
  left: 20%;
  right: 20%;
  bottom: 16%;
  height: 44%;
  background: #8b5a2b;
  border-radius: 8px;
}

.asset-thumb-art.house::after {
  left: 14%;
  top: 18%;
  width: 72%;
  height: 36%;
  background: #2563eb;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.asset-thumb-art.golem::before {
  left: 32%;
  top: 14%;
  width: 44%;
  height: 54%;
  background: #78716c;
  border-radius: 22px 22px 16px 16px;
}

.asset-thumb-art.golem::after {
  left: 22%;
  top: 60%;
  width: 56%;
  height: 22%;
  background: #57534e;
  border-radius: 14px;
}

.asset-thumb-art.lamp::before {
  left: 43%;
  top: 18%;
  width: 14%;
  height: 66%;
  background: #1f2937;
  border-radius: 999px;
}

.asset-thumb-art.lamp::after {
  left: 35%;
  top: 16%;
  width: 30%;
  height: 30%;
  background: radial-gradient(circle, #fde68a 0 42%, #1f2937 45% 100%);
  border-radius: 6px;
}

.asset-thumb-art.drone::before {
  left: 28%;
  right: 28%;
  top: 42%;
  height: 22%;
  background: #94a3b8;
  border-radius: 14px;
}

.asset-thumb-art.drone::after {
  left: 10%;
  right: 10%;
  top: 35%;
  height: 36%;
  border: 10px solid #475569;
  border-left-color: #60a5fa;
  border-right-color: #60a5fa;
  border-radius: 999px;
}

.asset-thumb-art.potion::before {
  left: 35%;
  top: 12%;
  width: 30%;
  height: 74%;
  background: linear-gradient(180deg, #dbeafe 0 20%, #38bdf8 21% 100%);
  border: 5px solid rgba(15, 23, 42, 0.12);
  border-radius: 12px 12px 28px 28px;
}

.asset-thumb-art.potion::after {
  left: 39%;
  top: 4%;
  width: 22%;
  height: 18%;
  background: #b7791f;
  border-radius: 4px;
}

.asset-thumb-art.hero::before {
  left: 34%;
  top: 18%;
  width: 32%;
  height: 32%;
  background: #f8d7b0;
  border-radius: 50%;
}

.asset-thumb-art.hero::after {
  left: 25%;
  top: 50%;
  width: 50%;
  height: 34%;
  background: linear-gradient(180deg, #93c5fd, #475569);
  border-radius: 20px 20px 10px 10px;
}

/* Tools */
.tools-section {
  background: transparent;
  padding-top: 0;
  margin-top: -16px;
  zoom: 0.95;
}

.tools-hero {
  display: grid;
  grid-template-columns: minmax(390px, 0.78fr) minmax(520px, 1fr);
  gap: 34px;
  align-items: center;
  margin-bottom: 26px;
  min-height: 282px;
}

.tools-hero-copy {
  padding: 6px 0 0 12px;
}

.tools-hero h2 {
  transform: translateY(-10px);
  margin-bottom: 2px;
  font-size: clamp(52px, 5.2vw, 72px);
  line-height: 1.05;
  color: #111827;
}

.tools-subtitle {
  transform: translateY(-7px);
  margin: 0 0 14px;
  color: #2563eb;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 900;
}

.tools-hero p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--text-sub);
  font-size: 16px;
  line-height: 1.78;
  font-weight: 700;
}

.value-cards {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 180px));
  gap: 22px;
  margin-top: 28px;
}

.value-cards > span {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  column-gap: 10px;
  align-items: center;
  min-height: 49px;
  padding: 10px 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #dbeafe;
  border-radius: 9px;
  color: var(--text-main);
  box-shadow: 0 10px 30px rgba(37, 99, 235, 0.06);
  font-weight: 900;
}

.value-cards > span > img {
  grid-row: 1 / 3;
  width: 31px;
  height: 31px;
  object-fit: contain;
}

.value-cards > span > small {
  display: block;
  margin-top: 1px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.mini-separator-dot {
  display: inline-block;
  width: 3px;
  height: 3px;
  margin: 0 4px;
  vertical-align: middle;
  background: currentColor;
  border-radius: 50%;
}

.tool-preview {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 260px;
}

.tool-preview img {
  width: min(100%, 640px);
  height: auto;
  object-fit: contain;
}

.tools-grid {
  display: grid;
  grid-template-columns: 1.08fr 0.98fr 0.93fr;
  align-items: stretch;
  gap: 14px;
}

.tool-card {
  display: flex;
  flex-direction: column;
  min-height: 468px;
  padding: 14px;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.06);
}

.tool-card-title {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 34px;
  margin-bottom: 10px;
}

.tool-no {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 6px;
  background: linear-gradient(180deg, #3b82f6, #1d4ed8);
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 0 8px 18px rgba(37, 99, 235, 0.22);
}

.tool-card h3 {
  margin-bottom: 0;
  font-size: 19px;
}

.tool-card .meta {
  margin: -6px 0 7px 46px;
  color: var(--blue);
  font-weight: 900;
}

.tool-card .asset-tool-name {
  margin-left: 0;
  font-size: 16.45px;
  line-height: 1.35;
  text-align: left;
}

.tool-card .unity-tool-name {
  margin-left: 0;
  font-size: 16.45px;
  line-height: 1.35;
  text-align: left;
}

.unity-tool-group {
  transform: translateY(10px);
}

.unity-media-copy-group {
  transform: translateY(11px);
}

.asset-video-group {
  transform: translateY(10px);
}

.asset-video-copy-group {
  transform: translateY(11px);
}

.tool-card .asset-tool-desc {
  font-size: 15.6px;
}

.tool-card .unity-tool-desc {
  font-size: 15.6px;
}

.tool-card p {
  margin-bottom: 10px;
  color: var(--text-sub);
  font-size: 13px;
  line-height: 1.62;
  font-weight: 700;
}

.tool-ui-shot {
  overflow: hidden;
  height: 158px;
  margin-bottom: 10px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #111827;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

.tool-video-shot {
  position: relative;
  overflow: hidden;
  height: 158px;
  margin-bottom: 10px;
  border: 1px solid #dfe6f2;
  border-radius: 8px;
  background: #0f172a;
}

.tool-video-shot video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-quality-switch {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  display: inline-flex;
  gap: 4px;
  padding: 3px;
  border: 1px solid rgba(191, 219, 254, 0.7);
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
}

.video-quality-switch button {
  min-width: 42px;
  height: 24px;
  border: 0;
  border-radius: 999px;
  color: #dbeafe;
  font-size: 12px;
  font-weight: 800;
  background: transparent;
  cursor: pointer;
}

.video-quality-switch button.active {
  color: #0f172a;
  background: #ffffff;
}

.unity-shot {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  padding: 7px;
}

.unity-shot div {
  display: grid;
  gap: 6px;
  padding: 7px;
  background: #1f2933;
  border-radius: 4px;
}

.unity-shot b {
  color: #dbe4ef;
  font-size: 7px;
}

.unity-shot i,
.unity-shot em {
  height: 12px;
  border-radius: 3px;
  background: linear-gradient(90deg, #334155, #475569);
}

.unity-shot em {
  margin-top: auto;
  background: #22c55e;
}

.unity-shot span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 30% 30%, #c8a078, #2f3138 70%);
}

.asset-shot {
  display: grid;
  grid-template-columns: 84px 1fr 116px;
  gap: 8px;
  padding: 10px;
}

.asset-shot aside,
.asset-shot main,
.asset-shot section {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.asset-shot aside i {
  height: 13px;
  border-radius: 4px;
  background: #334155;
}

.asset-shot main {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.asset-shot main span {
  border-radius: 5px;
  background: linear-gradient(145deg, #8b5e34, #232b37 72%);
}

.asset-shot section b {
  height: 72px;
  border-radius: 7px;
  background: linear-gradient(145deg, #9b6a3a, #202936 74%);
}

.asset-shot section i {
  height: 15px;
  border-radius: 4px;
  background: #334155;
}

.tool-feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px 13px;
  margin-top: auto;
  padding-top: 4px;
}

.tool-feature-grid.two-col {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.unity-feature-grid {
  transform: translateY(-5px);
  gap: 10px 24px;
}

.tool-feature-grid.unity-feature-grid b {
  margin-bottom: 2px;
  font-size: 14px;
  line-height: 1.35;
}

.tool-feature-grid.unity-feature-grid small {
  font-size: 12px;
  line-height: 1.38;
}

.tool-feature-grid.unity-feature-grid span {
  padding-left: 23px;
}

.tool-feature-grid.unity-feature-grid span::before {
  top: 4px;
  width: 13px;
  height: 13px;
}

.asset-feature-grid {
  transform: translateY(-30px);
  gap: 14px 28px;
}

.tool-feature-grid.asset-feature-grid b {
  margin-bottom: 4px;
  font-size: 15px;
  line-height: 1.35;
}

.tool-feature-grid.asset-feature-grid small {
  font-size: 13px;
  line-height: 1.5;
}

.tool-feature-grid.asset-feature-grid span {
  padding-left: 26px;
}

.tool-feature-grid.asset-feature-grid span::before {
  top: 5px;
  width: 15px;
  height: 15px;
}

.tool-feature-grid span {
  position: relative;
  padding-left: 20px;
  min-width: 0;
}

.tool-feature-grid span::before {
  content: "";
  position: absolute;
  top: 4px;
  left: 0;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--blue);
  box-shadow: inset 0 0 0 3px #dbeafe;
}

.tool-feature-grid b,
.mini-tool-item h4 {
  display: block;
  margin-bottom: 2px;
  color: var(--text-main);
  font-size: 12px;
  line-height: 1.35;
}

.tool-feature-grid small {
  display: block;
  color: var(--text-soft);
  font-size: 11px;
  line-height: 1.38;
  font-weight: 700;
}

.tool-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  margin-top: 12px;
  color: var(--blue);
  font-size: 14px;
  font-weight: 900;
}

.tool-card-stack {
  gap: 0;
}

.mini-tool-list {
  display: grid;
  gap: 10px;
}

.mini-tool-item {
  display: grid;
  grid-template-columns: 118px minmax(0, 1fr);
  gap: 12px;
  min-height: 88px;
  padding: 8px;
  border: 1px solid #e4eaf4;
  border-radius: 9px;
  background: #fff;
}

.mini-tool-visual {
  min-height: 72px;
  border-radius: 8px;
  background: linear-gradient(145deg, #1f2937, #334155);
}

.phone-visual {
  background:
    radial-gradient(circle at 68% 48%, #f8fafc 0 14%, transparent 15%),
    linear-gradient(90deg, #334155 0 46%, #f8fafc 47% 78%, #dbeafe 79%);
}

.web-visual {
  background:
    linear-gradient(180deg, transparent 0 18%, rgba(255,255,255,0.18) 19% 22%, transparent 23%),
    linear-gradient(145deg, #111827, #3f4c5e);
}

.proto-visual {
  background:
    radial-gradient(circle at 30% 45%, #dbeafe 0 18%, transparent 19%),
    radial-gradient(circle at 66% 52%, #bfdbfe 0 22%, transparent 23%),
    linear-gradient(145deg, #eff6ff, #dbeafe);
}

.mini-tool-item p {
  display: -webkit-box;
  margin-bottom: 5px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  font-size: 11px;
  line-height: 1.45;
}

.mini-tool-item span {
  display: inline-flex;
  margin: 0 4px 3px 0;
  padding: 1px 7px;
  border: 1px solid #e4eaf4;
  border-radius: 999px;
  color: var(--text-soft);
  font-size: 10px;
  font-weight: 800;
}

.wechat-mini-program-layout {
  display: grid;
  grid-template-columns: 168px minmax(0, 1fr);
  gap: 14px;
  align-items: stretch;
  min-height: 374px;
  padding: 8px;
  border: 1px solid #e4eaf4;
  border-radius: 9px;
  background: #fff;
}

.wechat-video-phone {
  position: relative;
  overflow: hidden;
  width: 168px;
  min-height: 358px;
  border: 1px solid #dbeafe;
  border-radius: 12px;
  background: #0f172a;
  box-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.wechat-video-phone video {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wechat-video-phone video:fullscreen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.wechat-video-phone video:-webkit-full-screen {
  width: 100vw;
  height: 100vh;
  object-fit: contain;
  background: #000;
}

.video-fullscreen-button {
  position: absolute;
  top: 8px;
  right: 8px;
  z-index: 5;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(191, 219, 254, 0.85);
  border-radius: 999px;
  color: #ffffff;
  font-size: 17px;
  font-weight: 900;
  line-height: 1;
  background: rgba(15, 23, 42, 0.72);
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
  cursor: pointer;
}

.video-fullscreen-button:hover {
  background: rgba(37, 99, 235, 0.92);
}

.wechat-mini-copy {
  align-self: center;
  min-width: 0;
}

.wechat-mini-copy h4 {
  margin-bottom: 10px;
  color: var(--text-main);
  font-size: 15px;
  line-height: 1.35;
}

.wechat-mini-copy section + section {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #e8eef8;
}

.wechat-mini-copy h5 {
  margin-bottom: 5px;
  color: var(--text-main);
  font-size: 13px;
  line-height: 1.35;
}

.wechat-mini-copy p {
  margin-bottom: 8px;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.65;
  font-weight: 750;
}

.wechat-mini-copy span {
  display: inline-flex;
  margin: 0 5px 6px 0;
  padding: 3px 9px;
  border: 1px solid #dbeafe;
  border-radius: 999px;
  color: var(--blue);
  background: #eff6ff;
  font-size: 11px;
  font-weight: 900;
}

.tool-value-bar {
  overflow: hidden;
  margin-top: 22px;
  border-radius: 10px;
  box-shadow: 0 18px 48px rgba(37, 99, 235, 0.07);
}

.tool-value-bar img {
  width: 100%;
  height: auto;
  object-fit: contain;
}

.tools-footer-note {
  margin: 12px 0 0;
  color: #6b7280;
  font-size: 13px;
  line-height: 1.4;
  text-align: center;
  font-weight: 900;
}

/* Existing supporting sections */
.experience-section {
  position: relative;
  background: rgba(255, 255, 255, 0.36);
  border-top: 0;
  border-bottom: 1px solid var(--border);
  margin-top: -30px;
}

.experience-section::before {
  content: "";
  position: absolute;
  top: 34px;
  left: 0;
  right: 0;
  height: 1px;
  background: var(--border);
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 154px;
  top: 14px;
  bottom: 92px;
  width: 1px;
  background: #cbd5e1;
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 48px;
}

.experience-card::before {
  content: "";
  position: absolute;
  left: 149px;
  top: 18px;
  width: 11px;
  height: 11px;
  background: var(--blue);
  border: 4px solid #dbeafe;
  border-radius: 50%;
}

.time {
  padding-top: 10px;
  color: var(--blue);
  font-weight: 900;
}

.experience-card ul {
  margin: 16px 0 0;
  padding-left: 20px;
  color: var(--text-sub);
  font-weight: 700;
}

.experience-card li + li {
  margin-top: 8px;
}

.experience-section .meta {
  font-weight: 800;
}

.early-card {
  position: relative;
  margin-left: 178px;
}

.early-card summary {
  display: flex;
  align-items: center;
  gap: 9px;
  cursor: pointer;
  color: var(--blue);
  font-weight: 900;
  list-style: none;
}

.early-card summary::-webkit-details-marker {
  display: none;
}

.early-card summary::before {
  content: "";
  width: 0;
  height: 0;
  border-top: 6px solid transparent;
  border-bottom: 6px solid transparent;
  border-left: 9px solid var(--blue);
  transition: transform 0.18s ease;
}

.early-card[open] summary::before {
  transform: rotate(90deg);
}

.early-card p {
  margin: 14px 0 0;
  color: var(--text-sub);
  font-weight: 700;
}

.early-experience-list {
  display: grid;
  gap: 16px;
  margin-top: 20px;
}

.early-experience-item {
  padding: 18px 20px;
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.early-experience-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 18px;
}

.early-experience-head h3 {
  margin-bottom: 6px;
  font-size: 20px;
}

.early-experience-head span {
  min-width: fit-content;
  color: var(--blue);
  font-weight: 900;
}

.early-experience-item .meta {
  margin-bottom: 8px;
}

.early-experience-item p:last-child {
  margin-top: 0;
  color: var(--text-sub);
  font-weight: 700;
  line-height: 1.75;
}

.footer {
  padding: 18px 0 52px;
}

.footer-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  max-width: calc((1448px - 96px) * 0.95);
  margin-left: auto;
  margin-right: auto;
  padding-top: 30px;
  padding-bottom: 30px;
  padding-left: 46px;
  padding-right: 46px;
  background:
    radial-gradient(circle at 95% 0%, rgba(37, 99, 235, 0.12), transparent 32%),
    #fff;
  border: 1px solid var(--border);
  border-radius: 28px;
  box-shadow: var(--shadow);
}

.footer-cta p {
  margin-bottom: 5px;
  color: var(--text-sub);
  font-weight: 900;
}

.footer-contact-line {
  display: flex;
  flex-wrap: wrap;
  gap: 0 18px;
}

.footer-cta a {
  font-weight: 900;
}

.footer-cta h2 {
  transform: translateY(-8px);
}

@media (max-width: 1100px) {
  .hero-layout,
  .project-hero,
  .tools-hero {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    max-width: 760px;
  }

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

  .project-hero-phones {
    min-height: 380px;
  }

  .project-phone-main {
    left: 50%;
    right: auto;
    transform: translateX(-60%);
  }

  .project-phone-small {
    right: calc(50% - 230px);
  }

  .gallery-tags {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .asset-gallery-workbench {
    grid-template-columns: 1fr;
  }

  .asset-control-panel {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 18px 26px;
  }

  .asset-control-panel h4 {
    grid-column: 1 / -1;
  }

  .shader-mode-grid,
  .asset-switch-list,
  .asset-speed-control {
    border-bottom: 0;
    padding-bottom: 0;
  }

  .asset-thumbs {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .tools-grid {
    grid-template-columns: 1fr;
  }

  .tool-value-bar {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 767px) {
  .shell {
    padding: 0 20px;
  }

  #projects.shell {
    padding-left: 20px;
    padding-right: 20px;
  }

  .section {
    padding: 58px 0;
    scroll-margin-top: 76px;
  }

  .nav {
    min-height: 64px;
  }

  .brand small {
    display: none;
  }

  .nav-actions {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: auto;
  }

  .nav-download-mobile {
    display: inline-flex;
    align-items: center;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 13px;
    font-weight: 900;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: absolute;
    left: 20px;
    right: 20px;
    top: 64px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 12px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: var(--shadow-blue);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    width: 100%;
  }

  .nav-links .nav-download {
    display: none;
  }

  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 30px;
    padding-top: 42px;
  }

  h1 {
    font-size: 50px;
  }

  h2 {
    font-size: 28px;
  }

  .hero-role {
    font-size: 20px;
  }

  .hero-actions {
    flex-direction: column;
  }

  .btn {
    width: 100%;
  }

  .hero-showcase,
  .summary-card,
  .gallery-entry {
    grid-template-columns: 1fr;
  }

  .hero-showcase {
    justify-content: center;
  }

  .hero-phone {
    width: min(280px, 100%);
    margin: 0 auto;
  }

  .ability-grid,
  .project-grid,
  .tools-grid {
    grid-template-columns: 1fr;
  }

  .project-hero {
    height: auto;
    padding: 24px;
  }

  .project-hero-copy {
    order: 1;
  }

  .project-hero-phones {
    order: 2;
    min-height: 350px;
  }

  .project-phone-main {
    width: 190px;
    top: -12px;
    transform: translateX(-50%);
  }

  .project-phone-small {
    width: 86px;
    right: calc(50% - 152px);
  }

  .project-phone-small.top {
    top: 30px;
  }

  .project-phone-small.bottom {
    top: 190px;
  }

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

  .project-tile {
    grid-template-columns: minmax(0, 1fr) 118px;
  }

  .project-card-copy {
    width: auto;
    max-width: none;
  }

  .gallery-heading {
    display: block;
  }

  .gallery-tags {
    grid-template-columns: 1fr;
  }

  .gallery-entry.asset-gallery {
    margin-left: -20px;
    margin-right: -20px;
    padding: 0 20px 28px;
  }

  .asset-gallery-head {
    display: block;
  }

  .asset-gallery-status {
    margin-top: 16px;
  }

  .asset-gallery-tabs {
    display: flex;
    overflow-x: auto;
    min-height: 64px;
  }

  .asset-gallery-tabs button {
    flex: 0 0 230px;
    min-height: 64px;
  }

  .asset-viewer-topbar {
    padding: 0 16px;
  }

  .asset-viewer-topbar strong {
    font-size: 17px;
  }

  .asset-viewer-stage {
    height: 360px;
    margin: 0 10px 10px;
  }

  .asset-viewer-hint {
    left: 12px;
    right: 12px;
    bottom: 10px;
    transform: none;
    flex-wrap: wrap;
    justify-content: center;
    gap: 3px 8px;
    max-width: none;
    padding: 7px 10px;
    border-radius: 12px;
    font-size: 11px;
    line-height: 1.35;
    white-space: normal;
  }

  .asset-viewer-hint i {
    display: none;
  }

  .asset-viewer-toolbar {
    left: 14px;
    top: 16px;
    width: 58px;
  }

  .asset-viewer-toolbar button {
    min-height: 58px;
    font-size: 11px;
  }

  .asset-control-panel {
    display: block;
    padding: 18px;
  }

  .asset-switch-list,
  .asset-speed-control {
    padding-top: 18px;
  }

  .asset-strip {
    grid-template-columns: 38px minmax(0, 1fr) 38px;
    gap: 8px;
  }

  .asset-thumbs {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding-bottom: 4px;
  }

  .asset-thumbs button {
    flex: 0 0 132px;
  }

  .asset-strip-arrow {
    width: 36px;
    height: 36px;
  }

  .tools-hero {
    padding: 0;
  }

  .tool-preview {
    min-height: 220px;
  }

  .tools-hero-copy {
    padding-left: 0;
  }

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

  .unity-tool-group,
  .unity-media-copy-group,
  .asset-video-group,
  .asset-video-copy-group,
  .unity-feature-grid,
  .asset-feature-grid {
    transform: none;
  }

  .tool-feature-grid,
  .tool-feature-grid.two-col {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    margin-top: 8px;
  }

  .tool-feature-grid span,
  .tool-feature-grid.unity-feature-grid span,
  .tool-feature-grid.asset-feature-grid span {
    padding-left: 20px;
  }

  .tool-feature-grid b,
  .tool-feature-grid.unity-feature-grid b,
  .tool-feature-grid.asset-feature-grid b {
    font-size: 12px;
    line-height: 1.25;
  }

  .tool-feature-grid small,
  .tool-feature-grid.unity-feature-grid small,
  .tool-feature-grid.asset-feature-grid small {
    font-size: 10px;
    line-height: 1.28;
  }

  .tools-footer-note {
    font-size: 13px;
    line-height: 1.55;
    text-align: center;
  }

  .value-cards {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .timeline::before,
  .experience-card::before {
    display: none;
  }

  .experience-card {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .time {
    padding-top: 0;
  }

  .early-card {
    margin-left: 0;
  }

  .footer-cta {
    flex-direction: column;
    align-items: stretch;
    gap: 18px;
    padding: 24px 18px;
    border-radius: 22px;
  }

  .footer-cta h2 {
    transform: none;
    font-size: 30px;
    line-height: 1.15;
  }

  .footer-cta p {
    font-size: 15px;
    line-height: 1.7;
    overflow-wrap: anywhere;
  }

  .footer-contact-line {
    display: grid;
    gap: 4px;
  }

  .footer-contact-line span {
    min-width: 0;
    overflow-wrap: anywhere;
  }
}

@media (max-width: 430px) {
  .contact-pills a,
  .contact-pills > span {
    width: 100%;
  }

  .project-hero h2 {
    font-size: 34px;
  }

  .project-hero-phones {
    min-height: 320px;
  }

  .project-phone-main {
    width: 170px;
    top: -12px;
  }

  .project-phone-small {
    display: none;
  }

  .project-tile {
    grid-template-columns: minmax(0, 1fr) 132px;
    column-gap: 8px;
    min-height: 0;
    padding: 16px 14px;
    align-items: start;
  }

  .project-card-copy {
    grid-template-rows: auto;
    row-gap: 8px;
    min-width: 0;
  }

  .project-top h3 {
    white-space: normal;
    font-size: 22px;
    line-height: 1.12;
  }

  .project-card-tags {
    flex-wrap: wrap;
    min-height: 0;
  }

  .project-card-tags span {
    font-size: 11px;
  }

  .project-tile .meta {
    font-size: 13px;
  }

  .project-tile ul {
    max-width: none;
    padding-left: 16px;
    font-size: 12px;
    line-height: 1.5;
  }

  .project-tile a {
    transform: none;
    font-size: 16px;
  }

  .project-card-media {
    width: 132px;
    margin: 70px 0 0;
  }

  .project-card-phone {
    width: 132px;
    height: 274px;
  }

  .project-card-phone .project-card-screen {
    inset: 5px 5px 6px 4px;
    border-radius: 15px;
    background: #0f172a;
  }

  .project-card-phone .project-card-screen img {
    transform: scale(1.18);
  }

  .gallery-entry.asset-gallery {
    padding-left: 14px;
    padding-right: 14px;
  }

  .asset-gallery-tabs button {
    flex-basis: 188px;
    font-size: 18px;
  }

  .asset-viewer-panel,
  .asset-control-panel {
    border-radius: 16px;
  }

  .asset-viewer-topbar {
    gap: 8px;
    min-height: 58px;
    padding: 0 12px;
  }

  .asset-viewer-topbar strong {
    min-width: 0;
    font-size: 20px;
    overflow-wrap: anywhere;
  }

  .asset-viewer-topbar span {
    margin-left: 6px;
    padding: 4px 8px;
    font-size: 12px;
  }

  .asset-viewer-stage {
    height: 330px;
    margin: 0 8px 8px;
  }

  .asset-control-panel {
    padding: 18px 14px;
  }

  .asset-control-panel h4 {
    font-size: 26px;
  }

  .wechat-mini-program-layout {
    grid-template-columns: minmax(0, 43%) minmax(0, 1fr);
    gap: 10px;
    padding: 6px;
  }

  .wechat-video-phone {
    width: 100%;
    min-height: 0;
    aspect-ratio: 168 / 358;
  }

  .wechat-mini-copy h4 {
    font-size: 14px;
  }

  .wechat-mini-copy h5 {
    font-size: 13px;
  }

  .wechat-mini-copy p {
    font-size: 11px;
    line-height: 1.45;
  }

  .wechat-mini-copy span {
    margin-right: 3px;
    padding: 2px 7px;
    font-size: 10px;
  }

  .footer-cta {
    padding: 22px 16px;
    margin-left: 12px;
    margin-right: 12px;
  }

  .footer-cta h2 {
    font-size: 28px;
    line-height: 1.15;
    white-space: nowrap;
  }

  .footer-cta .btn {
    min-height: 56px;
    font-size: 18px;
  }
}

/* Project detail page */
.detail-page {
  min-height: 100vh;
  background: linear-gradient(180deg, #f8fbff 0%, #f2f6fc 100%);
  color: #0f172a;
}

.detail-shell {
  width: min(1260px, 100%);
  margin: 0 auto;
}

.detail-site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.88);
  border-bottom: 1px solid #e5eaf3;
  backdrop-filter: blur(18px);
}

.detail-nav {
  display: grid;
  grid-template-columns: 220px 1fr 180px;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}

.detail-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #0f172a;
  font-weight: 900;
}

.detail-logo > span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  background: #2563eb;
  border-radius: 50%;
  color: #fff;
}

.detail-logo small {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}

.detail-nav-links {
  display: flex;
  justify-content: center;
  gap: 70px;
  color: #475569;
  font-weight: 800;
}

.detail-nav-links a {
  position: relative;
  padding: 24px 0;
}

.detail-nav-links a.active {
  color: #2563eb;
}

.detail-nav-links a.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 13px;
  height: 3px;
  background: #2563eb;
  border-radius: 999px;
}

.detail-nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.detail-nav-actions button,
.detail-nav-actions a {
  display: inline-flex;
  min-height: 38px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  font-weight: 900;
}

.detail-nav-actions button {
  width: 38px;
  border: 1px solid #dbe3ef;
  background: #fff;
  color: #334155;
}

.detail-nav-actions a {
  padding: 0 18px;
  background: #2563eb;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.18);
}

.project-detail {
  padding: 20px 0 44px;
}

.detail-project-tabs {
  display: grid;
  grid-template-columns: 210px repeat(4, minmax(0, 1fr));
  align-items: center;
  min-height: 64px;
  margin-bottom: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid #e5eaf3;
  border-radius: 18px;
  overflow: hidden;
}

.back-link,
.project-tab {
  display: flex;
  align-items: center;
  min-height: 64px;
  gap: 10px;
  padding: 0 18px;
  color: #334155;
  font-weight: 800;
}

.project-tab {
  border-left: 1px solid #eef2f7;
  justify-content: center;
}

.project-tab span {
  display: grid;
  width: 22px;
  height: 22px;
  place-items: center;
  background: #94a3b8;
  border-radius: 6px;
  color: #fff;
  font-size: 12px;
}

.project-tab img {
  display: none;
}

.project-tab strong {
  font-size: 14px;
  white-space: nowrap;
}

.project-tab.active {
  color: #0f172a;
  background: linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: inset 0 -4px 0 #2563eb;
}

.project-tab.active span {
  background: #2563eb;
}

.detail-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.05);
}

.detail-hero-grid {
  display: grid;
  grid-template-columns: 318px 615px 280px;
  gap: 18px;
  align-items: start;
  width: min(100%, 1267px);
  margin: 0 auto;
}

.detail-left-column {
  display: grid;
  gap: 11px;
  width: 318px;
}

.project-brief-card {
  padding: 22px 24px 17px;
  height: 580px;
  min-height: 580px;
  overflow: hidden;
  box-sizing: border-box;
}

.detail-pill {
  display: inline-flex;
  margin-bottom: 20px;
  padding: 7px 12px;
  background: #eff6ff;
  border-radius: 999px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.project-brief-card h1 {
  margin-bottom: 12px;
  font-size: 26px;
  line-height: 1.18;
  font-weight: 950;
}

.detail-subtitle,
.detail-desc {
  color: #475569;
  font-weight: 750;
  line-height: 1.68;
}

.detail-subtitle {
  padding-bottom: 18px;
  border-bottom: 1px solid #edf2f7;
}

.project-facts {
  display: grid;
  gap: 14px;
  margin: 18px 0;
}

.project-facts div {
  display: grid;
  grid-template-columns: 10px 58px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}

.project-facts img {
  width: 5px;
  height: 5px;
  align-self: center;
  justify-self: center;
  object-fit: none;
  border-radius: 50%;
  background: #0f172a;
  content-visibility: hidden;
}

.project-facts dt {
  color: #64748b;
  font-weight: 900;
  white-space: nowrap;
}

.project-facts dd {
  margin: 0;
  color: #1e293b;
  font-weight: 900;
  white-space: nowrap;
}

.project-showcase-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 100px;
  gap: 16px;
  align-items: center;
  width: 615px;
  height: 690px;
  min-height: 690px;
  padding: 18px 20px;
  overflow: hidden;
  box-sizing: border-box;
}

.project-showcase-card::before {
  content: "";
  position: absolute;
  left: 9%;
  right: 18%;
  top: 28%;
  height: 245px;
  background: radial-gradient(circle at 50% 50%, rgba(37, 99, 235, 0.12), transparent 70%);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 50%;
}

.detail-main-phone {
  position: relative;
  z-index: 1;
  width: 316px;
  aspect-ratio: 487 / 1005;
  justify-self: center;
  margin: 0;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.18));
}

.detail-phone-screen {
  position: absolute;
  inset: 10px 8px 10px;
  overflow: hidden;
  background: #0f172a;
  border-radius: 38px;
}

.detail-phone-screen img,
.detail-phone-screen video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.08);
}

.detail-phone-screen video {
  display: block;
}

.detail-phone-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.detail-thumbs {
  position: relative;
  z-index: 1;
  display: grid;
  width: 100px;
  gap: 8px;
  justify-items: center;
}

.detail-thumbs button {
  position: relative;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid #dbeafe;
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  color: transparent;
  font-size: 0;
  font-weight: 900;
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.08);
}

.detail-thumbs button::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  border-top: 2px solid var(--blue);
  border-left: 2px solid var(--blue);
}

.detail-thumbs button:first-child::before {
  transform: translate(-50%, -35%) rotate(45deg);
}

.detail-thumbs button:last-child::before {
  transform: translate(-50%, -65%) rotate(225deg);
}

.detail-thumbs button:hover {
  border-color: #bfdbfe;
  background: #eff6ff;
}

.detail-thumbs img {
  width: 80px;
  height: 80px;
  object-fit: cover;
  border-radius: 15px;
  border: 1px solid #dbe3ef;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.detail-thumbs img.active {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.16);
}

.project-showcase-card.landscape-showcase {
  grid-template-columns: 1fr;
  grid-template-rows: minmax(0, 1fr) 96px;
  align-items: center;
  justify-items: center;
  gap: 10px;
  padding: 12px 30px 24px;
}

.project-showcase-card.landscape-showcase::before {
  left: 8%;
  right: 8%;
  top: 22%;
  height: 205px;
}

.landscape-showcase .detail-main-phone {
  width: min(100%, 540px);
  aspect-ratio: 1005 / 487;
  align-self: end;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 18px 28px rgba(15, 23, 42, 0.18));
  transform: translateY(-172px) scale(1.1);
}

.landscape-showcase .detail-main-phone::before {
  display: none;
}

.landscape-showcase .detail-phone-screen {
  position: absolute;
  inset: 5.6% 2.2%;
  width: auto;
  height: auto;
  background: #0f172a;
  border-radius: 24px;
  clip-path: inset(0 round 24px);
}

.landscape-showcase .detail-phone-screen img,
.landscape-showcase .detail-phone-screen video {
  object-fit: cover;
  transform: scale(1.16);
}

.landscape-showcase .detail-phone-frame {
  display: block;
  left: 50%;
  top: 50%;
  width: 48.46%;
  height: 206.37%;
  transform: translate(-50%, -50%) rotate(270deg);
  transform-origin: center;
}

.landscape-showcase .detail-thumbs {
  display: grid;
  grid-template-columns: 34px repeat(4, 88px) 34px;
  width: auto;
  max-width: 100%;
  gap: 12px;
  align-items: center;
  justify-content: center;
  justify-items: center;
  transform: translateY(-72px);
}

.landscape-showcase .detail-thumbs button {
  width: 34px;
  height: 34px;
}

.landscape-showcase .detail-thumbs button:first-child::before {
  transform: translate(-35%, -50%) rotate(-45deg);
}

.landscape-showcase .detail-thumbs button:last-child::before {
  transform: translate(-65%, -50%) rotate(135deg);
}

.landscape-showcase .detail-thumbs img {
  width: 88px;
  height: 88px;
  border-radius: 14px;
}

.landscape-showcase .detail-thumbs img:nth-of-type(5),
.landscape-showcase .detail-thumbs img:nth-of-type(6) {
  display: none;
}

.detail-side {
  display: grid;
  width: 280px;
  height: 690px;
  min-height: 690px;
  grid-template-rows: 352px 1fr;
  gap: 20px;
  transform: translateX(4px);
}

.side-card {
  padding: 23px;
}

.side-card h2,
.text-card h2,
.visual-card h2,
.gallery-section h2 {
  position: relative;
  margin-bottom: 20px;
  padding-left: 16px;
  font-size: 20px;
  font-weight: 950;
}

.side-card h2::before,
.text-card h2::before,
.visual-card h2::before,
.gallery-section h2::before {
  content: "";
  position: absolute;
  left: 0;
  top: 3px;
  bottom: 3px;
  width: 4px;
  background: #2563eb;
  border-radius: 999px;
}

.tool-list {
  display: grid;
  gap: 16px;
  padding-left: 24px;
}

.tool-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
  color: #334155;
  font-weight: 800;
  text-align: left;
}

.tool-list img {
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  object-fit: contain;
}

.skill-pills,
.style-pills,
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.skill-pills span,
.style-pills span,
.gallery-filter span {
  padding: 7px 11px;
  background: #eff6ff;
  border-radius: 999px;
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.detail-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 20px 0;
}

.project-detail > .detail-kpi-grid {
  display: none;
}

.detail-left-column .detail-kpi-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  height: 93px;
  overflow: hidden;
  border: 1px solid #e5eaf3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 44px rgba(15, 23, 42, 0.05);
}

.kpi-card {
  padding: 18px;
}

.detail-left-column .kpi-card {
  min-height: 84px;
  padding: 12px 8px;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
}

.detail-left-column .kpi-card + .kpi-card {
  border-left: 1px solid #e5eaf3;
}

.kpi-card span {
  color: #2563eb;
  font-size: 13px;
  font-weight: 900;
}

.detail-left-column .kpi-card span {
  display: block;
  text-align: center;
  font-size: 13px;
  font-weight: 950;
  white-space: nowrap;
}

.kpi-card strong {
  display: block;
  margin: 8px 0 4px;
  color: #0f172a;
  font-size: 18px;
}

.detail-left-column .kpi-card strong {
  font-size: 12px;
  font-weight: 950;
  line-height: 1.2;
  text-align: center;
  white-space: normal;
}

.kpi-card p {
  margin: 0;
  color: #64748b;
  font-weight: 750;
}

.detail-left-column .kpi-card p {
  font-size: 10px;
  line-height: 1.25;
}

.detail-info-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.9fr 0.9fr 1fr;
  gap: 16px;
  align-items: stretch;
  position: relative;
  z-index: 3;
  margin-top: 12px;
  margin-bottom: 20px;
}

.text-card,
.visual-card {
  padding: 18px 20px;
  min-height: 250px;
  height: 100%;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
}

.text-card h2,
.visual-card h2 {
  margin-bottom: 16px;
  font-size: 18px;
}

.check-list {
  display: grid;
  gap: 8px;
  margin-top: 8px;
  padding-left: 0;
  list-style: none;
  color: #475569;
  font-size: 13.65px;
  font-weight: 750;
  line-height: 1.55;
}

.check-list li {
  position: relative;
  padding-left: 18px;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #0f172a;
}

.style-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 7px;
  margin-top: 10px;
}

.style-gallery img {
  width: 100%;
  aspect-ratio: 1 / 0.58;
  object-fit: cover;
  border-radius: 9px;
}

.style-gallery img[hidden] {
  display: none;
}

.gallery-section {
  padding: 14px 24px 20px;
}

.detail-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 20px;
}

.gallery-section .detail-section-title {
  transform: translateY(6px);
}

.gallery-section .gallery-filter {
  display: none;
}

.gallery-filter span {
  background: transparent;
  color: #64748b;
}

.gallery-filter span.active {
  background: #eff6ff;
  color: #2563eb;
}

.detail-gallery-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  transform: translateY(-10px);
}

.detail-gallery-grid figure {
  margin: 0;
}

.detail-gallery-grid img {
  width: 100%;
  aspect-ratio: 0.72 / 1;
  object-fit: cover;
  border-radius: 12px;
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  cursor: zoom-in;
}

.detail-gallery-grid figcaption {
  display: none;
}

.detail-bottom-nav {
  display: grid;
  grid-template-columns: repeat(3, 180px);
  justify-content: center;
  gap: 34px;
  margin-top: 26px;
}

.detail-bottom-nav a {
  display: flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbe3ef;
  border-radius: 8px;
  background: #fff;
  color: #334155;
  font-weight: 900;
}

.detail-bottom-nav a.primary {
  background: #2563eb;
  color: #fff;
  border-color: #2563eb;
  box-shadow: 0 12px 26px rgba(37, 99, 235, 0.18);
}

.image-viewer {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(10px);
}

.image-viewer.open {
  display: flex;
}

.image-viewer__stage {
  position: relative;
  width: min(92vw, 1180px);
  height: min(88vh, 820px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.image-viewer__image {
  max-width: 92%;
  max-height: 92%;
  object-fit: contain;
  border-radius: 14px;
  box-shadow: 0 28px 70px rgba(0, 0, 0, 0.28);
  cursor: grab;
  transform: translate(var(--viewer-x, 0px), var(--viewer-y, 0px)) scale(var(--viewer-scale, 1));
  transition: transform 0.08s ease;
  transform-origin: center;
  user-select: none;
  -webkit-user-drag: none;
}

.image-viewer__image.dragging {
  cursor: grabbing;
  transition: none;
}

.image-viewer__close {
  position: absolute;
  top: 22px;
  right: 26px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #0f172a;
  font-size: 24px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
}

@media (max-width: 1100px) {
  .detail-nav,
  .detail-project-tabs,
  .detail-hero-grid,
  .detail-info-grid {
    grid-template-columns: 1fr;
  }

  .detail-nav-links {
    gap: 24px;
  }

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

@media (max-width: 767px) {
  .detail-shell {
    width: min(100% - 40px, 1260px);
  }

  .detail-nav {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px 10px;
    padding: 12px 0;
  }

  .detail-logo {
    grid-column: 1;
    grid-row: 1;
    min-width: 0;
  }

  .detail-logo > span {
    width: 28px;
    height: 28px;
    font-size: 13px;
  }

  .detail-logo strong {
    font-size: 13px;
    line-height: 1.1;
  }

  .detail-logo small {
    font-size: 10px;
  }

  .detail-nav-links {
    grid-column: 1 / -1;
    grid-row: 2;
    justify-content: flex-start;
    gap: 22px;
    overflow-x: auto;
  }

  .detail-nav-links a {
    padding: 12px 0 10px;
    font-size: 13px;
  }

  .detail-nav-links a.active::after {
    bottom: 4px;
  }

  .detail-nav-actions {
    grid-column: 2;
    grid-row: 1;
    justify-content: flex-end;
  }

  .detail-nav-actions a {
    min-height: 30px;
    padding: 0 12px;
    border-radius: 8px;
    font-size: 12px;
    white-space: nowrap;
  }

  .detail-project-tabs {
    display: flex;
    overflow-x: auto;
  }

  .back-link,
  .project-tab {
    min-width: max-content;
  }

  .project-showcase-card {
    grid-template-columns: 1fr;
    width: 100%;
    height: auto;
    min-height: 0;
    padding: 16px;
    gap: 14px;
  }

  .detail-main-phone {
    width: min(100%, 300px);
  }

  .detail-phone-screen img,
  .detail-phone-screen video {
    transform: scale(1.02);
  }

  .detail-thumbs {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    justify-items: center;
  }

  .detail-thumbs button {
    display: none;
  }

  .detail-thumbs img {
    width: min(100%, 72px);
    height: auto;
    aspect-ratio: 1;
  }

  .project-showcase-card.landscape-showcase {
    width: 100%;
    grid-template-rows: auto auto;
    padding: 16px;
    gap: 12px;
  }

  .landscape-showcase .detail-main-phone {
    width: 100%;
    max-width: 310px;
    transform: none;
  }

  .landscape-showcase .detail-phone-screen img,
  .landscape-showcase .detail-phone-screen video {
    transform: none;
    object-fit: contain;
  }

  .landscape-showcase .detail-thumbs {
    width: 100%;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 8px;
    transform: none;
  }

  .landscape-showcase .detail-thumbs img {
    width: min(100%, 70px);
    height: auto;
    aspect-ratio: 1;
  }

  .detail-kpi-grid,
  .detail-gallery-grid,
  .detail-bottom-nav {
    grid-template-columns: 1fr;
  }
}
