:root {
  --blue: #246be8;
  --blue-soft: #eef4ff;
  --ink: #24272c;
  --muted: #777e88;
  --line: #e7e9ed;
  --surface: #f6f7f8;
  --white: #fff;
  --radius: 12px;
  --shadow: 0 10px 26px rgba(28, 39, 54, .075);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.6;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
}
button, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  min-height: 64px;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(232,235,239,.9);
  background: rgba(255,255,255,.94);
  backdrop-filter: blur(14px);
}
.brand { display: flex; align-items: center; gap: 9px; font-size: 16px; font-weight: 700; letter-spacing: 0; white-space: nowrap; }
.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: #fff;
  border-radius: 9px;
  background: var(--blue);
}
.main-nav { display: flex; justify-content: center; gap: 4px; }
.nav-link {
  position: relative;
  padding: 22px 12px 19px;
  color: #444b55;
  font-size: 13px;
  font-weight: 500;
}
.nav-link.active { color: var(--blue); font-weight: 700; }
.nav-link.active::after {
  position: absolute;
  right: 12px;
  bottom: 0;
  left: 12px;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--blue);
  content: "";
}
.header-search {
  display: flex;
  width: 202px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
}
.header-search input { min-width: 0; flex: 1; padding: 9px 0 9px 15px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.header-search button { width: 42px; border: 0; color: var(--blue); background: transparent; cursor: pointer; }
.mobile-menu { display: none; border: 0; background: transparent; font-size: 24px; }

#app { min-height: calc(100vh - 150px); }
.container { width: min(1280px, 92vw); margin: 0 auto; }
.breadcrumb { padding: 18px 0 12px; color: #9298a1; font-size: 12px; }
.section { padding: 28px 0; }
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 16px;
}
.section-heading h2 { margin: 0; font-size: 22px; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.section-heading p { margin: 5px 0 0; color: var(--muted); font-size: 13px; }
.text-button { color: var(--blue); font-weight: 700; }

.search-hero {
  position: relative;
  display: grid;
  min-height: 286px;
  padding: 38px 46px;
  overflow: hidden;
  align-items: center;
  border-radius: 13px;
  background:
    linear-gradient(90deg, rgba(16,25,39,.72), rgba(22,49,76,.26)),
    url("./assets/cases/twin-campus.png") center/cover;
}
.hero-content { position: relative; z-index: 1; max-width: 900px; color: #fff; }
.hero-content h1 { margin: 0 0 9px; font-size: 32px; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.hero-content > p { margin: 0 0 24px; color: rgba(255,255,255,.82); font-size: 13px; }
.big-search {
  display: flex;
  max-width: 870px;
  min-height: 54px;
  padding: 5px;
  align-items: center;
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 12px 34px rgba(0,0,0,.16);
}
.search-leading { display: grid; width: 40px; flex: 0 0 40px; place-items: center; color: #9aa1aa; }
.big-search input { min-width: 0; flex: 1; padding: 12px 6px; border: 0; outline: 0; background: transparent; }
.big-search button, .primary-button {
  display: inline-flex;
  padding: 11px 16px;
  align-items: center;
  gap: 7px;
  border: 0;
  color: #69717c;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
}
.big-search .search-submit, .primary-button { padding-inline: 24px; color: #fff; background: var(--blue); }
.hot-words { display: flex; flex-wrap: wrap; gap: 13px; margin-top: 12px; color: rgba(255,255,255,.78); font-size: 12px; }
.hot-words button { padding: 0; border: 0; color: inherit; background: none; cursor: pointer; }

.service-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; margin-top: 18px; }
.assistant-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.assistant-card {
  display: flex;
  min-height: 102px;
  padding: 17px;
  align-items: flex-start;
  gap: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.assistant-card h3 { margin: 1px 0 5px; font-size: 15px; font-weight: 650; }
.assistant-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.65; }
.service-card, .icon-card {
  padding: 17px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  transition: .2s ease;
}
.service-card:hover, .case-card:hover, .icon-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.service-icon, .scene-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 12px;
  place-items: center;
  color: var(--blue);
  border-radius: 10px;
  background: var(--blue-soft);
  font-size: 22px;
}
.service-card h3 { margin: 0 0 5px; font-size: 15px; font-weight: 650; }
.service-card p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }

.panel {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}
.intro-panel {
  display: grid;
  grid-template-columns: 1fr minmax(260px, .62fr);
  min-height: 205px;
  gap: 30px;
  padding: 28px 32px;
  align-items: center;
}
.intro-panel h1 { margin: 0 0 8px; font-size: 27px; font-weight: 650; line-height: 1.3; letter-spacing: 0; }
.intro-title { display: flex; align-items: center; gap: 11px; margin-bottom: 8px; }
.intro-title > span {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  place-items: center;
  color: var(--blue);
  border-radius: 10px;
  background: var(--blue-soft);
}
.intro-title h1 { margin: 0; }
.intro-panel p { margin: 8px 0 17px; color: var(--muted); font-size: 13px; line-height: 1.75; }
.inline-search { display: flex; padding: 5px; border: 1px solid var(--line); border-radius: 999px; background: #fff; }
.inline-search input { min-width: 0; flex: 1; padding: 10px 14px; border: 0; outline: 0; background: transparent; font-size: 13px; }
.inline-search button { display: inline-flex; padding: 9px 20px; align-items: center; gap: 6px; border: 0; color: #fff; border-radius: 999px; background: var(--blue); font-size: 13px; }
.wire-art { min-height: 135px; border-radius: 10px; background: linear-gradient(135deg, #edf4ff, #f9fbff); position: relative; overflow: hidden; }
.wire-art::before, .wire-art::after { position: absolute; border: 1px solid #a9c6f6; content: ""; transform: rotate(35deg); }
.wire-art::before { width: 220px; height: 120px; right: -30px; bottom: 5px; }
.wire-art::after { width: 130px; height: 190px; right: 80px; bottom: -70px; }

.quick-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; }
.icon-card { padding: 14px 10px; color: #444a52; font-size: 13px; font-weight: 500; text-align: center; cursor: pointer; }
.icon-card .scene-icon { margin: 0 auto 10px; }
.icon-card.active { border-color: #a9c9ff; background: var(--blue-soft); color: var(--blue); }

.filter-box { padding: 8px 20px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.home-filter { margin-bottom: 22px; background: var(--surface); }
.filter-row { display: grid; grid-template-columns: 82px 1fr; gap: 13px; padding: 11px 0; border-bottom: 1px solid #eff0f2; }
.filter-row:last-child { border: 0; }
.filter-label { padding-top: 5px; color: #888f98; font-size: 12px; }
.filter-options { display: flex; flex-wrap: wrap; gap: 9px; }
.filter-options button {
  padding: 5px 10px;
  border: 0;
  border-radius: 999px;
  color: #525963;
  background: transparent;
  cursor: pointer;
  font-size: 12px;
}
.filter-options button.active { color: var(--blue); background: var(--blue-soft); }
.toolbar { display: flex; justify-content: space-between; gap: 20px; margin: 18px 0 14px; color: var(--muted); font-size: 12px; }
.toolbar-actions { display: flex; gap: 16px; }
.filter-row.is-hidden { display: none; }
.render-library { padding-top: 18px; }
.render-filter-box { margin-bottom: 14px; }
.render-tools { display: flex; justify-content: flex-end; gap: 14px; align-items: center; }
.render-sort-actions { justify-content: flex-end; flex-wrap: wrap; }
.render-sort-actions button {
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #59616b;
  cursor: pointer;
  font-size: 12px;
}
.render-sort-actions button.active { border-color: #a9c9ff; color: var(--blue); background: var(--blue-soft); }
.render-clear { border: 0; background: transparent; cursor: pointer; color: var(--blue); }

.case-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.case-grid.three { grid-template-columns: repeat(3, 1fr); }
.case-grid.two { grid-template-columns: repeat(2, 1fr); gap: 20px; }
.home-overview-section { padding-top: 24px; padding-bottom: 24px; }
.home-overview-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); align-items: stretch; }
.home-overview-grid .case-card { display: grid; grid-template-rows: auto 1fr; min-width: 0; height: 100%; }
.home-overview-grid .case-media { aspect-ratio: 16/10; }
.home-overview-grid .case-media.video { aspect-ratio: 16/10; }
.home-overview-grid .case-info {
  display: grid;
  min-height: 112px;
  align-content: start;
}
.home-overview-grid .case-info h3 {
  display: -webkit-box;
  min-height: 42px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-overview-grid .case-info p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}
.home-overview-grid .tags {
  max-height: 24px;
  overflow: hidden;
}
.case-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 2px 8px rgba(27,39,56,.025);
  transition: .2s ease;
}
.case-media { position: relative; aspect-ratio: 4/3; overflow: hidden; background: #e9edf2; }
.case-media.video { aspect-ratio: 16/9; }
.case-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.case-card:hover img { transform: scale(1.025); }
.case-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 5px 9px;
  color: #fff;
  border-radius: 999px;
  background: rgba(27,38,52,.78);
  font-size: 11px;
}
.duration { position: absolute; right: 10px; bottom: 10px; padding: 4px 7px; color: #fff; border-radius: 5px; background: rgba(0,0,0,.68); font-size: 11px; }
.play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: grid;
  width: 50px;
  height: 50px;
  place-items: center;
  color: #fff;
  border: 1px solid rgba(255,255,255,.5);
  border-radius: 50%;
  background: rgba(35,104,232,.86);
  transform: translate(-50%,-50%);
}
.case-info { padding: 13px 14px 15px; }
.case-info h3 { margin: 0 0 6px; font-size: 14px; font-weight: 650; line-height: 1.5; }
.case-info p { margin: 0; color: var(--muted); font-size: 12px; line-height: 1.65; }
.tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.tag { padding: 3px 7px; color: #68707a; border-radius: 5px; background: var(--surface); font-size: 10px; }
.load-more { display: block; margin: 32px auto 0; padding: 11px 28px; border: 1px solid var(--line); border-radius: 999px; background: #fff; cursor: pointer; }
.render-inspiration-card { display: grid; align-content: start; }
.render-detail-link { display: block; color: inherit; text-decoration: none; cursor: pointer; }
.render-card-title { display: grid; grid-template-columns: 1fr auto; gap: 10px; align-items: start; }
.favorite-button {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: #7a828c;
  cursor: pointer;
}
.favorite-button .ui-icon { width: 16px; height: 16px; }
.favorite-button.active { border-color: #f3b3bb; color: #d84d60; background: #fff5f6; }
.favorite-button.active .ui-icon { fill: currentColor; }
.render-empty {
  display: grid;
  min-height: 190px;
  place-items: center;
  color: var(--muted);
  border: 1px dashed #cfd6df;
  border-radius: var(--radius);
  background: var(--surface);
}
.empty-state {
  display: flex;
  min-height: 118px;
  padding: 22px;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: var(--muted);
  border: 1px dashed #cfd6df;
  border-radius: var(--radius);
  background: var(--surface);
  text-align: left;
}
.empty-state strong { display: block; color: #5f6771; font-size: 13px; font-weight: 650; }
.empty-state p { margin: 2px 0 0; font-size: 12px; }
.empty-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  color: #98a2af;
  border-radius: 8px;
  background: #fff;
}
.empty-icon .ui-icon { width: 18px; height: 18px; }
.drawing-card .drawing-pair { display: grid; grid-template-columns: 74% 26%; min-height: 292px; background: #f8f8f8; }
.drawing-main, .render-ref { position: relative; overflow: hidden; }
.drawing-main img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(1) contrast(1.05); }
.render-ref { border-left: 1px solid var(--line); background: #eef1f4; }
.render-ref img { width: 100%; height: 100%; object-fit: contain; }
.drawing-label { position: absolute; top: 10px; left: 10px; padding: 4px 7px; border-radius: 5px; background: rgba(255,255,255,.9); font-size: 11px; }

.panorama-stage {
  position: relative;
  min-height: 470px;
  overflow: hidden;
  border-radius: 12px;
  background: #dfe5ea;
}
.panorama-stage > img { width: 100%; height: 470px; object-fit: cover; }
.panorama-stage::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 55%, rgba(13,20,31,.55));
  content: "";
  pointer-events: none;
}
.panorama-hint {
  position: absolute;
  z-index: 2;
  top: 22px;
  left: 50%;
  padding: 8px 13px;
  color: #fff;
  border-radius: 999px;
  background: rgba(21,29,40,.66);
  font-size: 12px;
  transform: translateX(-50%);
}
.scene-switcher {
  position: absolute;
  z-index: 2;
  right: 0;
  bottom: 22px;
  left: 0;
  display: flex;
  justify-content: center;
  gap: 10px;
}
.scene-switcher button {
  padding: 8px 18px;
  border: 1px solid rgba(255,255,255,.5);
  color: #fff;
  border-radius: 999px;
  background: rgba(20,27,38,.58);
  cursor: pointer;
}
.scene-switcher button.active { color: var(--blue); background: #fff; }
.heading-with-icon { display: flex; align-items: center; gap: 9px; }
.heading-with-icon .ui-icon { width: 23px; height: 23px; color: var(--blue); }
.drawing-home-section {
  width: min(1280px, 92vw);
  margin: 8px auto 0;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, #fafbfc, #f7f8fa);
}
.drawing-home-section .drawing-pair { min-height: 320px; }
.drawing-overview-grid .drawing-pair { min-height: 0; aspect-ratio: 16/10; }

.detail-header { padding: 22px 0 17px; }
.detail-header h1 { margin: 0 0 10px; font-size: 28px; font-weight: 650; line-height: 1.35; letter-spacing: 0; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px 24px; color: var(--muted); font-size: 13px; }
.detail-layout { display: grid; grid-template-columns: 1fr 310px; gap: 26px; align-items: start; }
.main-viewer { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #10151c; }
.main-viewer img { width: 100%; aspect-ratio: 16/9; object-fit: cover; }
.panorama-viewer-shell {
  min-height: 560px;
}
.panorama-viewer {
  width: 100%;
  min-height: 560px;
  aspect-ratio: 16 / 9;
  background: #10151c;
}
.panorama-viewer .psv-container {
  min-height: inherit;
}
.panorama-overlay {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 4;
  pointer-events: none;
}
.panorama-overlay span,
.panorama-loading,
.panorama-fallback {
  display: inline-flex;
  min-height: 36px;
  padding: 0 12px;
  align-items: center;
  gap: 7px;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 8px;
  background: rgba(10,14,20,.72);
  backdrop-filter: blur(12px);
  font-size: 12px;
}
.panorama-overlay .ui-icon { width: 17px; height: 17px; }
.panorama-loading,
.panorama-fallback {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}
.viewer-with-thumbs { display: grid; grid-template-columns: 76px 1fr; gap: 12px; min-width: 0; }
.thumb-rail { display: grid; align-content: start; gap: 9px; }
.thumb-rail button { padding: 2px; overflow: hidden; border: 2px solid transparent; border-radius: 8px; background: #fff; cursor: pointer; }
.thumb-rail button.active { border-color: var(--blue); }
.thumb-rail img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 5px; }
.viewer-tools { display: flex; position: absolute; right: 14px; bottom: 14px; gap: 8px; }
.main-viewer { position: relative; }
.viewer-tools button { display: inline-flex; padding: 8px 11px; align-items: center; gap: 6px; color: #fff; border: 1px solid rgba(255,255,255,.25); border-radius: 7px; background: rgba(19,25,34,.72); }
.info-card { position: sticky; top: 90px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.info-card h3 { margin: 0 0 16px; font-size: 17px; font-weight: 650; }
.info-list { display: grid; gap: 13px; }
.info-item { display: flex; justify-content: space-between; gap: 20px; padding-bottom: 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.info-item span:first-child { color: var(--muted); }
.content-copy { max-width: 820px; color: #505761; font-size: 14px; line-height: 1.9; }
.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.gallery img { width: 100%; aspect-ratio: 16/9; object-fit: cover; border-radius: var(--radius); }
.gallery img.wide { grid-column: 1 / -1; }
.zhimo-detail-layout {
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 34px;
}
.detail-story {
  display: grid;
  gap: 24px;
  min-width: 0;
}
.detail-copy-block {
  display: grid;
  gap: 12px;
}
.detail-copy-block .section-heading {
  margin-bottom: 0;
}
.detail-image-stack {
  display: grid;
  gap: 18px;
}
.detail-image-row {
  width: 100%;
  margin: 0;
}
.detail-image-trigger {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #f2f3f5;
  cursor: zoom-in;
}
.detail-image-trigger img {
  width: 100%;
  height: auto;
  object-fit: contain;
}
body.lightbox-open {
  overflow: hidden;
}
.image-lightbox {
  position: fixed;
  z-index: 200;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 66px 88px 38px;
  background: rgba(0,0,0,.92);
  outline: 0;
}
.image-lightbox-img {
  width: auto;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  box-shadow: 0 20px 70px rgba(0,0,0,.35);
}
.image-lightbox.is-expanded {
  padding: 58px 70px 34px;
}
.image-lightbox-toolbar {
  position: fixed;
  top: 18px;
  right: 22px;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 10px;
}
.image-lightbox-counter {
  min-height: 38px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  color: rgba(255,255,255,.78);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  font-size: 12px;
}
.image-lightbox-action,
.image-lightbox-nav {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  color: #fff;
  border: 1px solid rgba(255,255,255,.22);
  border-radius: 6px;
  background: rgba(255,255,255,.12);
  cursor: pointer;
}
.image-lightbox-action:hover,
.image-lightbox-nav:hover {
  background: rgba(255,255,255,.2);
}
.image-lightbox-action .ui-icon,
.image-lightbox-nav .ui-icon {
  width: 21px;
  height: 21px;
}
.image-lightbox-nav {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
}
.image-lightbox-nav.prev {
  left: 24px;
}
.image-lightbox-nav.prev .ui-icon {
  transform: rotate(180deg);
}
.image-lightbox-nav.next {
  right: 24px;
}
.image-lightbox-nav:disabled {
  opacity: .35;
  cursor: default;
}
.video-player { position: relative; }
.video-player .play { width: 64px; height: 64px; font-size: 24px; }
.player-controls { display: flex; justify-content: space-between; padding: 11px 15px; color: #fff; background: #111820; font-size: 12px; }
.player-controls span { display: inline-flex; align-items: center; gap: 5px; }

.drawing-detail { display: grid; grid-template-columns: 74% 26%; min-height: 540px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.drawing-detail .drawing-main img { object-fit: cover; }
.drawing-detail .render-ref { display: flex; padding: 15px; align-items: center; }
.drawing-tabs { display: flex; flex-wrap: wrap; gap: 10px; padding: 15px; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--radius) var(--radius); }
.drawing-tabs button { display: inline-flex; padding: 7px 14px; align-items: center; gap: 6px; border: 0; border-radius: 999px; background: var(--surface); cursor: pointer; }
.drawing-tabs button .ui-icon { width: 17px; height: 17px; }
.drawing-tabs button.active { color: var(--blue); background: var(--blue-soft); }
.drawing-gallery img { filter: grayscale(1) contrast(1.05); }
.data-table { width: 100%; border-collapse: collapse; overflow: hidden; border-radius: var(--radius); }
.data-table th, .data-table td { padding: 13px 15px; border-bottom: 1px solid var(--line); text-align: left; font-size: 13px; }
.data-table th { background: var(--surface); }

.admin-page .site-header, .admin-page .site-footer, .admin-page .mobile-tabbar { display: none; }
.admin-shell { display: grid; grid-template-columns: 236px 1fr; min-height: 100vh; background: #f4f6f8; }
.admin-side { position: sticky; top: 0; display: flex; height: 100vh; padding: 24px 18px; color: #fff; flex-direction: column; background: #1f2733; }
.admin-brand { display: flex; padding: 0 8px 25px; align-items: center; gap: 11px; border-bottom: 1px solid rgba(255,255,255,.08); }
.admin-brand div { display: grid; gap: 2px; }
.admin-brand small { color: #8f9aaa; font-size: 10px; }
.admin-side nav { display: grid; gap: 5px; margin-top: 20px; }
.admin-side nav button, .admin-return { display: flex; width: 100%; padding: 11px 12px; align-items: center; gap: 10px; border: 0; color: #aeb8c5; border-radius: 8px; background: transparent; font-size: 13px; text-align: left; cursor: pointer; }
.admin-side nav button.active { color: #fff; background: #326fe5; }
.admin-side nav .ui-icon, .admin-return .ui-icon { width: 18px; height: 18px; }
.admin-return { margin-top: auto; }
.admin-return .ui-icon { transform: rotate(180deg); }
.admin-main { min-width: 0; padding: 30px 34px 50px; }
.admin-topbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.admin-topbar h1 { margin: 0; font-size: 25px; }
.admin-topbar p, .admin-toolbar p, .editor-head p { margin: 4px 0 0; color: var(--muted); font-size: 12px; }
.admin-topbar .primary-button { border-radius: 8px; }
.admin-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 18px; }
.admin-stats article { display: grid; padding: 18px; gap: 3px; border: 1px solid var(--line); border-radius: 10px; background: #fff; }
.admin-stats span, .admin-stats small { color: var(--muted); font-size: 11px; }
.admin-stats b { font-size: 27px; line-height: 1.3; }
.admin-panel { padding: 20px; border: 1px solid var(--line); border-radius: 11px; background: #fff; }
.admin-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.admin-toolbar h2, .editor-head h2 { margin: 0; font-size: 17px; }
.admin-search { display: flex; width: 260px; padding: 8px 11px; align-items: center; gap: 7px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.admin-search .ui-icon { width: 17px; height: 17px; color: #8d949d; }
.admin-search input { min-width: 0; flex: 1; border: 0; outline: 0; background: transparent; font-size: 12px; }
.admin-table-wrap { overflow-x: auto; }
.admin-table { width: 100%; min-width: 820px; border-collapse: collapse; }
.admin-table th { padding: 11px 10px; color: #858c95; background: #f8f9fa; font-size: 11px; font-weight: 500; text-align: left; }
.admin-table td { padding: 12px 10px; border-bottom: 1px solid #eff0f2; color: #4f5660; font-size: 12px; }
.admin-case-cell { display: flex; min-width: 240px; align-items: center; gap: 10px; }
.admin-case-cell img { width: 58px; height: 42px; object-fit: cover; border-radius: 6px; background: var(--surface); }
.admin-case-cell div { display: grid; gap: 3px; }
.admin-case-cell strong { color: var(--ink); font-size: 12px; }
.admin-case-cell small { color: var(--muted); font-size: 10px; }
.status-pill { display: inline-flex; padding: 3px 8px; color: #8a651b; border-radius: 999px; background: #fff4d8; font-size: 10px; }
.status-pill.published { color: #267443; background: #e9f7ee; }
.table-action { padding: 4px 7px; border: 0; color: var(--blue); background: transparent; font-size: 11px; cursor: pointer; }
.table-action.danger { color: #cf4a4a; }
.admin-editor { position: fixed; z-index: 100; top: 0; right: 0; bottom: 0; width: min(760px, 92vw); padding: 25px; overflow-y: auto; background: #f5f6f8; box-shadow: -18px 0 45px rgba(20,29,43,.17); transform: translateX(105%); transition: transform .25s ease; }
.admin-editor.open { transform: translateX(0); }
.editor-head { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 16px; }
.editor-close { width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 8px; background: #fff; font-size: 22px; cursor: pointer; }
.admin-form { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; padding: 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; }
.field { display: grid; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { color: #555d67; font-size: 12px; font-weight: 600; }
.field input, .field select, .field textarea { width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; outline-color: var(--blue); background: #fff; font-size: 12px; }
.upload-control { display: flex; padding: 11px; align-items: center; justify-content: space-between; gap: 15px; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.upload-control span { color: var(--muted); font-size: 10px; }
.upload-preview { display: grid; min-height: 200px; place-items: center; overflow: hidden; border: 1px dashed #aeb9c8; border-radius: 10px; background: var(--surface); }
.upload-preview > span { display: flex; align-items: center; gap: 8px; color: var(--muted); font-size: 12px; }
.upload-preview img { width: 100%; height: 100%; max-height: 330px; object-fit: contain; }
.gallery-preview { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.gallery-preview-item { display: grid; min-height: 90px; place-items: center; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--surface); }
.gallery-preview-item img { width: 100%; height: 76px; object-fit: cover; }
.gallery-preview-item small { max-width: 100%; padding: 4px 6px; overflow: hidden; color: var(--muted); font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.form-actions { display: flex; justify-content: flex-end; gap: 10px; }
.secondary-button { padding: 10px 18px; border: 1px solid var(--line); border-radius: 8px; background: #fff; cursor: pointer; }
.notice { padding: 12px 15px; color: #27623b; border-radius: 9px; background: #ebf8ef; }
.notice.warning { color: #905e18; background: #fff3d8; }

.site-footer { display: flex; justify-content: space-between; gap: 30px; padding: 35px 4vw; color: var(--muted); border-top: 1px solid var(--line); font-size: 12px; }
.site-footer strong { color: var(--ink); font-size: 15px; }
.contact-float {
  position: fixed;
  right: clamp(16px, 3vw, 34px);
  bottom: clamp(82px, 14vh, 132px);
  z-index: 80;
  display: grid;
  justify-items: end;
  gap: 10px;
}
.contact-trigger {
  display: inline-flex;
  min-height: 48px;
  padding: 0 16px;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(36, 107, 232, .22);
  border-radius: 999px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 14px 34px rgba(36, 107, 232, .28);
  cursor: pointer;
}
.contact-trigger .ui-icon { width: 20px; height: 20px; }
.contact-trigger span { font-size: 13px; font-weight: 700; white-space: nowrap; }
.contact-trigger:hover { background: #1d60d6; }
.contact-trigger:focus-visible { outline: 3px solid rgba(36, 107, 232, .24); outline-offset: 3px; }
.contact-popover {
  position: relative;
  width: 268px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, .98);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}
.contact-popover::after {
  position: absolute;
  right: 24px;
  bottom: -7px;
  width: 14px;
  height: 14px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .98);
  transform: rotate(45deg);
  content: "";
}
.contact-popover strong { display: block; margin-bottom: 10px; color: var(--ink); font-size: 15px; }
.contact-list { display: grid; gap: 8px; }
.contact-row {
  display: grid;
  grid-template-columns: 48px 1fr;
  min-height: 34px;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}
.contact-row > span { font-weight: 650; }
.contact-copy {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.contact-copy b {
  min-width: 0;
  color: var(--ink);
  font-size: 14px;
  font-weight: 700;
}
.contact-action {
  display: inline-flex;
  width: max-content;
  border: 0;
  min-height: 30px;
  padding: 0 12px;
  align-items: center;
  border-radius: 999px;
  color: var(--blue);
  background: var(--blue-soft);
  font-size: 12px;
  font-weight: 700;
}
.contact-action:hover { background: #dde9ff; }
.contact-row-qr { align-items: start; }
.contact-qr {
  width: 112px;
  height: 112px;
  padding: 6px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  object-fit: cover;
}
.ui-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.service-icon .ui-icon, .scene-icon .ui-icon { width: 22px; height: 22px; }
.play .ui-icon { width: 24px; height: 24px; fill: currentColor; }
.header-search .ui-icon { width: 18px; height: 18px; }
.text-button { font-size: 13px; }
.mobile-tabbar { display: none; }
.admin-bridge { display:grid; min-height:calc(100vh - 170px); max-width:720px; place-content:center; justify-items:center; gap:16px; text-align:center; }
.admin-bridge .service-icon { margin:0; }
.admin-bridge h1 { margin:0; font-size:30px; }
.admin-bridge p { max-width:620px; margin:0 0 8px; color:var(--muted); }
button { color: inherit; }
input::placeholder, textarea::placeholder { color: #a4a9b0; }

@media (max-width: 1000px) {
  .site-header { grid-template-columns: auto auto 1fr; }
  .mobile-menu { display: block; }
  .main-nav { position: absolute; top: 68px; right: 0; left: 0; display: none; padding: 12px 4vw; flex-direction: column; background: #fff; box-shadow: var(--shadow); }
  .main-nav.open { display: flex; }
  .nav-link { padding: 12px; }
  .nav-link.active::after { display: none; }
  .header-search { justify-self: end; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
  .assistant-grid { grid-template-columns: repeat(3, 1fr); }
  .case-grid, .case-grid.three { grid-template-columns: repeat(2, 1fr); }
  .home-overview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quick-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-layout,
  .zhimo-detail-layout { grid-template-columns: 1fr; }
  .render-detail-layout .info-card { margin-left: 88px; }
  .info-card { position: static; }
  .drawing-detail { grid-template-columns: 68% 32%; min-height: 420px; }
  .admin-shell { grid-template-columns: 190px 1fr; }
  .admin-main { padding: 25px 22px; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); }
  .render-sort-actions { justify-content: flex-start; }
}

@media (max-width: 700px) {
  body:not(.admin-page) { padding-bottom: 64px; }
  .contact-float {
    right: 14px;
    bottom: calc(78px + env(safe-area-inset-bottom));
  }
  .contact-trigger {
    min-height: 44px;
    padding: 0 12px;
  }
  .contact-trigger span { display: none; }
  .contact-popover { width: min(268px, calc(100vw - 32px)); }
  .site-header { min-height: 56px; padding: 0 14px; grid-template-columns: auto 1fr auto; }
  .brand span:last-child { display: none; }
  .brand-mark { width: 30px; height: 30px; }
  .mobile-menu { order: 3; }
  .header-search { width: auto; margin: 0 10px; justify-self: stretch; }
  .main-nav { top: 56px; }
  .container { width: min(100% - 28px, 1240px); }
  .section { padding: 22px 0; }
  .section-heading { align-items: flex-start; margin-bottom: 13px; }
  .section-heading h2 { font-size: 19px; }
  .search-hero { min-height: 255px; padding: 26px 18px; border-radius: 11px; }
  .hero-content h1 { font-size: 25px; }
  .hero-content > p { font-size: 11px; }
  .big-search { min-height: 48px; border-radius: 10px; flex-direction: row; }
  .big-search .search-leading { display: none; }
  .big-search input { width: 100%; padding: 11px 10px; font-size: 12px; }
  .big-search button:not(.search-submit) { display: none; }
  .big-search .search-submit { width: auto; padding-inline: 17px; justify-content: center; }
  .hot-words { gap: 8px; font-size: 10px; }
  .service-grid { grid-template-columns: repeat(2, 1fr); gap: 9px; }
  .service-card { min-height: 132px; padding: 14px; }
  .service-icon { width: 36px; height: 36px; }
  .case-grid, .case-grid.three { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .home-overview-section { padding-top: 18px; padding-bottom: 18px; }
  .home-overview-grid { gap: 10px; }
  .home-overview-grid .case-media,
  .home-overview-grid .case-media.video,
  .drawing-overview-grid .drawing-pair { aspect-ratio: 4/3; }
  .home-overview-grid .case-info { min-height: 82px; }
  .home-overview-grid .case-info h3 { min-height: 36px; }
  .case-grid.two, .gallery { grid-template-columns: 1fr; }
  .case-info { padding: 10px; }
  .case-info h3 { font-size: 12px; }
  .case-info p { display: none; }
  .case-badge { top: 7px; left: 7px; padding: 3px 6px; font-size: 9px; }
  .assistant-grid { grid-template-columns: 1fr; }
  .quick-grid { grid-template-columns: repeat(3, 1fr); gap: 8px; }
  .icon-card { padding: 12px 6px; font-size: 11px; }
  .icon-card .scene-icon { width: 35px; height: 35px; margin-bottom: 6px; }
  .intro-panel { grid-template-columns: 1fr; padding: 23px; }
  .intro-panel h1 { font-size: 22px; }
  .intro-title > span { width: 37px; height: 37px; flex-basis: 37px; }
  .wire-art { display: none; }
  .inline-search button span { display: none; }
  .filter-row { grid-template-columns: 1fr; gap: 8px; }
  .filter-options { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; }
  .filter-options button { flex: 0 0 auto; }
  .toolbar { align-items: flex-start; flex-direction: column; }
  .render-tools { gap: 10px; }
  .render-sort-actions { gap: 8px; overflow-x: auto; padding-bottom: 3px; }
  .render-sort-actions button { flex: 0 0 auto; padding: 6px 10px; font-size: 11px; }
  .favorite-button { min-width: 31px; height: 31px; padding-inline: 8px; }
  .drawing-card .drawing-pair, .drawing-detail { grid-template-columns: 1fr; }
  .drawing-detail { min-height: 0; }
  .drawing-detail .drawing-main { min-height: 390px; }
  .drawing-detail .render-ref { min-height: 220px; }
  .detail-image-stack { gap: 12px; }
  .detail-copy-block { gap: 9px; }
  .image-lightbox {
    padding: 58px 14px 26px;
  }
  .image-lightbox-toolbar {
    top: 12px;
    right: 12px;
    gap: 7px;
  }
  .image-lightbox-counter {
    min-height: 34px;
    padding-inline: 9px;
  }
  .image-lightbox-action,
  .image-lightbox-nav {
    width: 36px;
    height: 36px;
  }
  .image-lightbox-nav {
    top: auto;
    bottom: 18px;
    transform: none;
  }
  .image-lightbox-nav.prev { left: 14px; }
  .image-lightbox-nav.next { right: 14px; }
  .panorama-stage, .panorama-stage > img { min-height: 330px; height: 330px; }
  .panorama-viewer-shell,
  .panorama-viewer {
    min-height: 360px;
  }
  .panorama-overlay {
    top: 10px;
    left: 10px;
  }
  .panorama-overlay span {
    min-height: 32px;
    padding-inline: 10px;
  }
  .drawing-home-section { width: min(100% - 28px, 1280px); padding: 20px 14px; }
  .drawing-home-section .case-grid.two { grid-template-columns: 1fr; }
  .admin-shell { grid-template-columns: 1fr; }
  .admin-side { display: none; }
  .admin-main { padding: 24px 14px; }
  .admin-topbar { align-items: flex-start; }
  .admin-topbar h1 { font-size: 21px; }
  .admin-topbar .primary-button span { display: none; }
  .admin-stats { grid-template-columns: repeat(2, 1fr); gap: 8px; }
  .admin-stats article { padding: 13px; }
  .admin-stats b { font-size: 22px; }
  .admin-panel { padding: 14px; }
  .admin-toolbar { align-items: stretch; flex-direction: column; }
  .admin-search { width: 100%; }
  .admin-editor { width: 100vw; padding: 18px 12px; }
  .admin-form { grid-template-columns: 1fr; }
  .field.full { grid-column: auto; }
  .upload-control { align-items: flex-start; flex-direction: column; }
  .gallery-preview { grid-template-columns: repeat(3, 1fr); }
  .site-footer { flex-direction: column; }
  .viewer-with-thumbs { grid-template-columns: 1fr; }
  .thumb-rail { grid-template-columns: repeat(5, 1fr); grid-row: 2; }
  .render-detail-layout .info-card { margin-left: 0; }
  .mobile-tabbar {
    position: fixed;
    z-index: 60;
    right: 0;
    bottom: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    padding: 8px 5px max(8px, env(safe-area-inset-bottom));
    border-top: 1px solid var(--line);
    background: rgba(255,255,255,.96);
    backdrop-filter: blur(14px);
  }
  .mobile-tabbar a { display: grid; place-items: center; color: #69717b; font-size: 10px; }
  .mobile-tabbar a.active { color: var(--blue); font-weight: 700; }
}
