:root {
  --ink: #15212d;
  --muted: #657284;
  --line: #dbe3ea;
  --panel: #ffffff;
  --soft: #f4f8fb;
  --soft-green: #eef8f1;
  --blue: #1769e0;
  --teal: #00a18a;
  --amber: #f0a21b;
  --red: #c9413a;
  --graphite: #26313d;
  --shadow: 0 18px 48px rgba(24, 39, 57, 0.14);
  --radius: 8px;
  font-family: "Microsoft YaHei", "PingFang SC", "Segoe UI", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: #ffffff;
  letter-spacing: 0;
}

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

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

button {
  cursor: pointer;
}

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

.boot {
  min-height: 100vh;
  display: grid;
  place-items: center;
  gap: 16px;
  color: var(--muted);
}

.boot-mark {
  width: 44px;
  height: 44px;
  border: 4px solid var(--line);
  border-top-color: var(--blue);
  border-radius: 50%;
  animation: spin 0.9s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.93);
  border-bottom: 1px solid rgba(219, 227, 234, 0.85);
  backdrop-filter: blur(18px);
}

.header-inner {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 172px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: var(--radius);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-weight: 800;
  background: linear-gradient(135deg, var(--blue), var(--teal));
  box-shadow: 0 10px 24px rgba(23, 105, 224, 0.24);
}

.brand-name {
  font-size: 20px;
  font-weight: 800;
  line-height: 1.1;
}

.brand-slogan {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-link,
.nav-parent {
  height: 40px;
  padding: 0 13px;
  border-radius: var(--radius);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--graphite);
  font-size: 14px;
  border: 1px solid transparent;
  background: transparent;
}

.nav-link.active,
.nav-parent.active,
.nav-link:hover,
.nav-parent:hover {
  color: var(--blue);
  background: #eef5ff;
  border-color: #d7e7ff;
}

.nav-group {
  position: relative;
}

.nav-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  width: 240px;
  display: none;
  padding: 10px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  display: grid;
  gap: 4px;
}

.nav-menu a {
  padding: 10px 12px;
  border-radius: 6px;
  color: var(--graphite);
  font-size: 14px;
}

.nav-menu a:hover {
  color: var(--blue);
  background: #f3f8ff;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.ghost-btn,
.solid-btn,
.danger-btn,
.icon-btn {
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--ink);
  background: #ffffff;
  white-space: nowrap;
}

.solid-btn {
  border-color: var(--blue);
  color: #ffffff;
  background: var(--blue);
}

.solid-btn:hover {
  background: #0d5ecf;
}

.ghost-btn:hover,
.icon-btn:hover {
  border-color: #b8c9dc;
  background: #f5f9fc;
}

.danger-btn {
  border-color: #f2c3c0;
  color: var(--red);
  background: #fff5f4;
}

.danger-btn:hover {
  background: #ffe8e6;
}

.hero {
  position: relative;
  min-height: min(720px, 76vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  color: #ffffff;
  background-position: center;
  background-size: cover;
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 31, 0.82), rgba(10, 18, 31, 0.52) 42%, rgba(10, 18, 31, 0.12));
}

.hero-content {
  position: relative;
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 76px 0 90px;
}

.eyebrow {
  margin: 0 0 14px;
  color: #a9ddff;
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  width: min(720px, 100%);
  margin: 0;
  font-size: clamp(36px, 6vw, 68px);
  line-height: 1.04;
  letter-spacing: 0;
}

.hero p {
  width: min(680px, 100%);
  margin: 24px 0 0;
  font-size: clamp(16px, 2vw, 21px);
  line-height: 1.75;
  color: rgba(255, 255, 255, 0.88);
}

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

.hero-actions .ghost-btn {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.42);
}

.hero-actions .ghost-btn:hover {
  background: rgba(255, 255, 255, 0.18);
}

.section {
  padding: 78px 0;
}

.section.alt {
  background: var(--soft);
}

.section.green {
  background: var(--soft-green);
}

.container {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
}

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

.section-head h2,
.page-title h1 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(28px, 4vw, 44px);
  line-height: 1.18;
  letter-spacing: 0;
}

.section-head p,
.page-title p {
  width: min(620px, 100%);
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.8;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  transform: translateY(-34px);
  margin-bottom: -34px;
}

.stat {
  min-height: 110px;
  padding: 24px;
  border-radius: var(--radius);
  background: #ffffff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 34px rgba(31, 49, 72, 0.08);
}

.stat strong {
  display: block;
  margin-bottom: 8px;
  color: var(--blue);
  font-size: 36px;
  line-height: 1;
}

.stat span {
  color: var(--muted);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(320px, 0.9fr);
  gap: 42px;
  align-items: center;
}

.intro-copy h2 {
  margin: 0 0 18px;
  font-size: clamp(26px, 4vw, 42px);
  line-height: 1.22;
  letter-spacing: 0;
}

.intro-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.9;
}

.media-frame {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #101821;
  min-height: 260px;
  box-shadow: var(--shadow);
}

.media-frame img,
.media-frame video {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
}

.video-empty {
  min-height: 260px;
  padding: 28px;
  display: grid;
  place-items: center;
  text-align: center;
  color: #dbe9ff;
  background:
    linear-gradient(135deg, rgba(23, 105, 224, 0.34), rgba(0, 161, 138, 0.18)),
    #172231;
}

.video-empty span {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 14px;
  border-radius: 50%;
  color: #ffffff;
  background: var(--amber);
}

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

.product-card,
.solution-card,
.category-pill,
.admin-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
}

.product-card,
.solution-card {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.product-card::before,
.solution-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 0%), rgba(23, 105, 224, 0.16), transparent 34%);
  transition: opacity 0.28s ease;
}

.product-card:hover::before,
.solution-card:hover::before {
  opacity: 1;
}

.product-card:hover,
.solution-card:hover {
  transform: translateY(-3px);
  border-color: #b9cee5;
  box-shadow: 0 16px 34px rgba(25, 41, 62, 0.12);
}

.card-media {
  position: relative;
  z-index: 2;
  height: 188px;
  background: #dbe4ee;
}

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

.card-body {
  position: relative;
  z-index: 2;
  padding: 20px;
  display: grid;
  gap: 12px;
  flex: 1;
}

.tag {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 6px;
  color: #0b6e5f;
  background: #e5f8f3;
  font-size: 12px;
  font-weight: 700;
}

.product-card h3,
.solution-card h3 {
  margin: 0;
  font-size: 21px;
  line-height: 1.3;
}

.product-card p,
.solution-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.72;
}

.arrow-link {
  margin-top: auto;
  color: var(--blue);
  font-weight: 700;
}

.page-hero {
  padding: 70px 0 54px;
  background: linear-gradient(135deg, #f7fbff, #eef8f1);
  border-bottom: 1px solid var(--line);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  align-items: center;
  margin-bottom: 20px;
  color: var(--muted);
  font-size: 14px;
}

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

.category-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.category-pill {
  padding: 10px 14px;
  color: var(--graphite);
  background: #ffffff;
}

.category-pill.active,
.category-pill:hover {
  color: #ffffff;
  border-color: var(--teal);
  background: var(--teal);
}

.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 38px;
  align-items: start;
}

.detail-main h2 {
  margin: 28px 0 14px;
  font-size: 28px;
}

.detail-main p {
  color: var(--muted);
  line-height: 1.85;
}

.detail-media {
  position: sticky;
  top: 96px;
}

.feature-list,
.spec-list,
.step-list,
.value-list {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-list li,
.spec-list li,
.step-list li,
.value-list li {
  padding: 13px 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--graphite);
  line-height: 1.55;
}

.contact-band {
  color: #ffffff;
  background: linear-gradient(135deg, #163858, #0c7b69);
}

.contact-band .section-head h2,
.contact-band .section-head p {
  color: #ffffff;
}

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

.contact-item {
  min-height: 116px;
  padding: 20px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.contact-item span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 13px;
}

.contact-item strong {
  display: block;
  margin-top: 8px;
  font-size: 19px;
  line-height: 1.38;
  word-break: break-word;
}

.site-footer {
  padding: 34px 0;
  color: #d7e3ef;
  background: #15212d;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  align-items: center;
}

.footer-grid p {
  margin: 8px 0 0;
  color: #9fb0c2;
}

.footer-links {
  display: flex;
  gap: 14px;
}

.control-bar {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 50;
  width: min(720px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(21, 33, 45, 0.94);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.control-title {
  min-width: 120px;
  font-weight: 800;
}

.control-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.control-bar .ghost-btn,
.control-bar .solid-btn {
  min-height: 36px;
  color: #ffffff;
}

.control-bar .ghost-btn {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.28);
}

body.edit-mode [data-edit-path] {
  outline: 2px dashed var(--amber);
  outline-offset: 3px;
  cursor: pointer;
}

body.edit-mode [data-edit-path]:hover {
  outline-color: var(--teal);
}

.editor-drawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 70;
  width: min(430px, 100%);
  height: 100vh;
  padding: 24px;
  overflow: auto;
  background: #ffffff;
  box-shadow: -20px 0 44px rgba(25, 41, 62, 0.18);
  border-left: 1px solid var(--line);
}

.drawer-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}

.drawer-head h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.drawer-head p {
  margin: 0;
  color: var(--muted);
  word-break: break-all;
}

.field {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.field label {
  color: var(--graphite);
  font-weight: 700;
}

.field input,
.field textarea,
.field select {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 10px 12px;
  color: var(--ink);
  background: #ffffff;
}

.field textarea {
  min-height: 132px;
  resize: vertical;
  line-height: 1.65;
}

.drawer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.admin-shell {
  min-height: 100vh;
  background: #f3f6f9;
}

.admin-top {
  border-bottom: 1px solid var(--line);
  background: #ffffff;
}

.admin-top .header-inner {
  min-height: 66px;
}

.admin-layout {
  width: min(1280px, calc(100% - 32px));
  margin: 0 auto;
  padding: 26px 0 42px;
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 22px;
}

.admin-side {
  display: grid;
  align-content: start;
  gap: 8px;
}

.admin-tab {
  min-height: 46px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--graphite);
  background: #ffffff;
  text-align: left;
}

.admin-tab.active,
.admin-tab:hover {
  color: #ffffff;
  border-color: var(--blue);
  background: var(--blue);
}

.visual-editor-card {
  padding: 0;
  overflow: hidden;
}

.visual-editor-card .admin-toolbar {
  margin: 0;
  padding: 20px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #ffffff, #f3f9ff);
}

.visual-page-switch {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.visual-helper {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: #fbfdff;
}

.visual-helper span {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  padding: 0 10px;
  border-radius: 6px;
  color: var(--muted);
  background: #edf5fb;
  font-size: 12px;
}

.visual-preview-frame {
  height: min(74vh, 820px);
  overflow: auto;
  background:
    linear-gradient(90deg, rgba(21, 33, 45, 0.06) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(21, 33, 45, 0.05) 0 1px, transparent 1px 100%),
    #eaf0f5;
  background-size: 24px 24px;
  padding: 18px;
}

.visual-preview {
  width: min(1160px, 100%);
  margin: 0 auto;
  overflow: hidden;
  border: 1px solid rgba(178, 196, 214, 0.86);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(18, 34, 52, 0.18);
}

.visual-preview .hero {
  min-height: 560px;
  animation: none;
}

.visual-preview .hero-content,
.visual-preview .container {
  width: min(1080px, calc(100% - 32px));
}

.visual-preview .section {
  padding: 58px 0;
}

.visual-preview .site-header,
.visual-preview .site-footer {
  display: none;
}

.visual-preview [data-edit-path] {
  outline: 2px dashed rgba(240, 162, 27, 0.92);
  outline-offset: 3px;
  cursor: crosshair;
  transition: outline-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.visual-preview [data-edit-path]:hover {
  outline-color: var(--teal);
  box-shadow: 0 0 0 6px rgba(0, 161, 138, 0.12);
}

.visual-preview a[data-route] {
  cursor: pointer;
}

.admin-main {
  display: grid;
  gap: 18px;
}

.admin-card {
  padding: 20px;
}

.admin-card h2,
.admin-card h3 {
  margin: 0 0 14px;
}

.admin-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.search-form {
  display: flex;
  min-width: min(420px, 100%);
  gap: 8px;
}

.search-form input {
  flex: 1;
  min-width: 0;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
}

.data-table th,
.data-table td {
  padding: 12px 10px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  color: var(--muted);
  font-size: 13px;
}

.data-table td {
  color: var(--graphite);
}

.data-value {
  max-width: 420px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.product-admin-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
}

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

.product-row {
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #ffffff;
  text-align: left;
}

.product-row.active,
.product-row:hover {
  border-color: var(--blue);
  background: #eef5ff;
}

.product-row strong {
  display: block;
  line-height: 1.35;
}

.product-row span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
}

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

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.login-page {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 480px);
  background: #ffffff;
}

.login-visual {
  min-height: 100vh;
  background-position: center;
  background-size: cover;
  position: relative;
}

.login-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 18, 31, 0.18), rgba(10, 18, 31, 0.72));
}

.login-panel {
  display: grid;
  align-content: center;
  padding: 42px;
  border-left: 1px solid var(--line);
}

.login-panel h1 {
  margin: 0 0 10px;
  font-size: 34px;
}

.login-panel p {
  margin: 0 0 26px;
  color: var(--muted);
  line-height: 1.75;
}

#toast {
  position: fixed;
  left: 50%;
  bottom: 92px;
  z-index: 90;
  transform: translateX(-50%);
  min-width: 220px;
  max-width: calc(100% - 32px);
  padding: 12px 16px;
  border-radius: var(--radius);
  color: #ffffff;
  background: rgba(21, 33, 45, 0.94);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

#toast.show {
  opacity: 1;
  transform: translate(-50%, -8px);
}

.empty {
  padding: 22px;
  border: 1px dashed #b9c9d8;
  border-radius: var(--radius);
  color: var(--muted);
  background: #ffffff;
}

@media (max-width: 980px) {
  .header-inner {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 0;
  }

  .site-nav,
  .header-actions {
    width: 100%;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .nav-menu {
    left: 0;
    right: auto;
  }

  .stat-grid,
  .product-grid,
  .solution-grid,
  .contact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .intro-grid,
  .detail-layout,
  .admin-layout,
  .product-admin-layout,
  .login-page {
    grid-template-columns: 1fr;
  }

  .detail-media {
    position: static;
  }

  .login-visual {
    min-height: 260px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 640px;
  }

  .hero-content {
    padding: 56px 0 72px;
  }

  .section {
    padding: 54px 0;
  }

  .section-head,
  .footer-grid {
    align-items: flex-start;
    flex-direction: column;
  }

  .stat-grid,
  .product-grid,
  .solution-grid,
  .contact-grid,
  .form-grid {
    grid-template-columns: 1fr;
  }

  .control-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .control-actions,
  .search-form {
    width: 100%;
  }

  .control-actions .ghost-btn,
  .control-actions .solid-btn,
  .search-form .ghost-btn {
    flex: 1;
  }

  .login-panel {
    padding: 28px 20px 40px;
  }
}

/* Grand visual pass */
:root {
  --shadow: 0 24px 70px rgba(19, 35, 54, 0.16);
  --deep-shadow: 0 36px 90px rgba(9, 21, 36, 0.28);
}

body {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbfd 42%, #ffffff 100%);
}

.site-header {
  background: rgba(255, 255, 255, 0.86);
  border-bottom-color: rgba(196, 213, 228, 0.78);
  box-shadow: 0 10px 34px rgba(18, 35, 54, 0.06);
}

.header-inner {
  width: min(1240px, calc(100% - 40px));
  min-height: 82px;
}

.brand-mark {
  position: relative;
  isolation: isolate;
  box-shadow: 0 16px 34px rgba(23, 105, 224, 0.28);
  transition: transform 0.32s ease, box-shadow 0.32s ease;
}

.brand-mark::after {
  content: "";
  position: absolute;
  inset: 7px;
  z-index: -1;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.18);
}

.brand:hover .brand-mark {
  transform: translateY(-2px) scale(1.04);
  box-shadow: 0 20px 42px rgba(0, 161, 138, 0.26);
}

.nav-link,
.nav-parent {
  position: relative;
  overflow: hidden;
  transition: color 0.24s ease, background 0.24s ease, border-color 0.24s ease, transform 0.24s ease;
}

.nav-link::after,
.nav-parent::after {
  content: "";
  position: absolute;
  left: 13px;
  right: 13px;
  bottom: 5px;
  height: 2px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.24s ease;
}

.nav-link:hover,
.nav-parent:hover {
  transform: translateY(-1px);
}

.nav-link.active::after,
.nav-parent.active::after,
.nav-link:hover::after,
.nav-parent:hover::after {
  transform: scaleX(1);
}

.nav-menu {
  display: grid;
  gap: 4px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.2s ease, transform 0.2s ease, visibility 0.2s ease;
}

.nav-group:hover .nav-menu,
.nav-group:focus-within .nav-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.ghost-btn,
.solid-btn,
.danger-btn,
.icon-btn,
.category-pill,
.admin-tab,
.product-row {
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease, border-color 0.22s ease, color 0.22s ease;
}

.ghost-btn:hover,
.solid-btn:hover,
.danger-btn:hover,
.icon-btn:hover,
.category-pill:hover,
.admin-tab:hover,
.product-row:hover {
  transform: translateY(-2px);
}

.solid-btn {
  background: linear-gradient(135deg, #1769e0, #00a18a);
  border-color: transparent;
  box-shadow: 0 14px 28px rgba(23, 105, 224, 0.24);
}

.solid-btn:hover {
  background: linear-gradient(135deg, #0f5ed2, #008f7b);
  box-shadow: 0 18px 36px rgba(0, 128, 164, 0.26);
}

.hero {
  min-height: clamp(680px, 84vh, 860px);
  background-position: center right;
  box-shadow: inset 0 -110px 120px rgba(255, 255, 255, 0.92);
  animation: heroScale 10s ease-out both;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(6, 15, 27, 0.9), rgba(10, 26, 43, 0.62) 44%, rgba(11, 27, 43, 0.18) 76%),
    linear-gradient(180deg, rgba(4, 12, 23, 0.12), rgba(4, 12, 23, 0.34));
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 34%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #ffffff 96%);
  pointer-events: none;
}

.hero-content {
  width: min(1240px, calc(100% - 40px));
  padding: 100px 0 150px;
}

.hero .eyebrow {
  width: fit-content;
  min-height: 30px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border: 1px solid rgba(169, 221, 255, 0.36);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.09);
  backdrop-filter: blur(12px);
}

.hero h1 {
  width: min(800px, 100%);
  text-shadow: 0 20px 52px rgba(0, 0, 0, 0.34);
}

.hero p {
  width: min(740px, 100%);
  color: rgba(255, 255, 255, 0.91);
}

.hero-content > * {
  animation: liftIn 0.84s cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.hero-content > *:nth-child(2) {
  animation-delay: 0.08s;
}

.hero-content > *:nth-child(3) {
  animation-delay: 0.16s;
}

.hero-content > *:nth-child(4) {
  animation-delay: 0.24s;
}

.section {
  padding: 96px 0;
}

.container {
  width: min(1240px, calc(100% - 40px));
}

.section-head {
  margin-bottom: 42px;
}

.section-head h2,
.page-title h1,
.intro-copy h2 {
  color: #101c29;
}

.section-head h2,
.page-title h1 {
  font-size: clamp(32px, 4.3vw, 52px);
}

.stat-grid {
  gap: 18px;
  transform: translateY(-58px);
  margin-bottom: -58px;
}

.stat {
  min-height: 138px;
  padding: 30px;
  border-color: rgba(195, 211, 225, 0.72);
  box-shadow: var(--shadow);
}

.stat strong {
  font-size: 44px;
}

.intro-grid {
  gap: 58px;
}

.intro-copy p,
.detail-main p {
  font-size: 18px;
}

.media-frame {
  position: relative;
  min-height: 340px;
  box-shadow: var(--deep-shadow);
  transform: translateZ(0);
}

.media-frame img,
.media-frame video {
  min-height: 340px;
  transition: transform 0.72s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.72s ease;
}

.media-frame:hover img,
.media-frame:hover video {
  transform: scale(1.045);
  filter: saturate(1.08) contrast(1.03);
}

.product-grid,
.solution-grid {
  gap: 24px;
}

.product-card,
.solution-card {
  border-color: rgba(197, 213, 227, 0.72);
  box-shadow: 0 12px 36px rgba(25, 42, 61, 0.08);
  transition: transform 0.36s cubic-bezier(0.2, 0.7, 0.2, 1), box-shadow 0.36s ease, border-color 0.36s ease;
}

.product-card:hover,
.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(23, 105, 224, 0.34);
  box-shadow: 0 30px 70px rgba(20, 39, 61, 0.18);
}

.card-media {
  height: 218px;
  overflow: hidden;
}

.card-media img {
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.7s ease;
}

.product-card:hover .card-media img,
.solution-card:hover .card-media img {
  transform: scale(1.07);
  filter: saturate(1.08);
}

.card-body {
  padding: 24px;
}

.tag {
  color: #075f54;
  background: linear-gradient(135deg, #dcfbf4, #eef6ff);
}

.arrow-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.arrow-link::after {
  content: ">";
  transition: transform 0.22s ease;
}

.product-card:hover .arrow-link::after,
.solution-card:hover .arrow-link::after {
  transform: translateX(4px);
}

.page-hero {
  padding: 92px 0 70px;
  background:
    linear-gradient(135deg, rgba(247, 251, 255, 0.98), rgba(238, 248, 241, 0.92)),
    linear-gradient(90deg, rgba(23, 105, 224, 0.08), rgba(0, 161, 138, 0.08));
}

.feature-list li,
.spec-list li,
.step-list li,
.value-list li,
.contact-item {
  transition: transform 0.26s ease, box-shadow 0.26s ease, border-color 0.26s ease;
}

.feature-list li:hover,
.spec-list li:hover,
.step-list li:hover,
.value-list li:hover {
  transform: translateX(5px);
  border-color: rgba(23, 105, 224, 0.32);
  box-shadow: 0 14px 32px rgba(23, 105, 224, 0.08);
}

.contact-band {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(135deg, rgba(10, 38, 64, 0.98), rgba(9, 122, 105, 0.96)),
    #10283f;
}

.contact-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 100%);
  background-size: 46px 46px;
  opacity: 0.22;
  pointer-events: none;
}

.contact-band .container {
  position: relative;
}

.contact-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 18px 44px rgba(0, 0, 0, 0.16);
}

.admin-shell {
  background:
    linear-gradient(180deg, #f4f8fb, #ffffff);
}

.admin-card {
  box-shadow: 0 16px 42px rgba(28, 45, 64, 0.08);
}

.control-bar,
.editor-drawer {
  animation: liftIn 0.3s ease both;
}

.motion-reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.68s ease, transform 0.68s cubic-bezier(0.2, 0.7, 0.2, 1);
  transition-delay: var(--motion-delay, 0ms);
}

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

@keyframes liftIn {
  from {
    opacity: 0;
    transform: translateY(22px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroScale {
  from {
    background-size: auto 106%;
  }
  to {
    background-size: auto 112%;
  }
}

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

@media (max-width: 980px) {
  .header-inner,
  .container,
  .hero-content {
    width: min(100% - 32px, 1240px);
  }

  .hero {
    min-height: 680px;
    background-size: cover;
    animation: none;
  }

  .hero-content {
    padding: 76px 0 110px;
  }
}

@media (max-width: 640px) {
  .section {
    padding: 64px 0;
  }

  .hero {
    min-height: 650px;
  }

  .stat-grid {
    transform: translateY(-34px);
    margin-bottom: -34px;
  }

  .media-frame,
  .media-frame img,
  .media-frame video {
    min-height: 260px;
  }
}

/* Choseal-inspired corporate presentation pass */
:root {
  --brand-orange: #ed711f;
  --brand-orange-dark: #d95f12;
  --brand-orange-soft: #fff2e9;
  --brand-black: #202020;
  --brand-gray: #6d6d6d;
  --brand-line: #eeeeee;
}

body {
  color: var(--brand-black);
  background: #ffffff;
}

.site-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid #ececec;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.045);
}

.header-inner {
  width: min(1280px, calc(100% - 48px));
  min-height: 80px;
  gap: 28px;
}

.brand {
  min-width: 210px;
}

.brand-mark {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--brand-orange);
  box-shadow: none;
}

.brand-mark::after {
  display: none;
}

.brand-name {
  color: #3a3a3a;
  font-size: 22px;
  letter-spacing: 0;
}

.brand-slogan {
  color: #777777;
  font-size: 13px;
}

.site-nav {
  flex: 1;
  justify-content: center;
  gap: 0;
}

.nav-link,
.nav-parent {
  height: 80px;
  padding: 0 18px;
  border: 0;
  border-radius: 0;
  color: #222222;
  font-size: 15px;
  background: transparent;
}

.nav-link::after,
.nav-parent::after {
  left: 16px;
  right: 16px;
  bottom: auto;
  top: 0;
  height: 3px;
  background: var(--brand-orange);
}

.nav-link.active,
.nav-parent.active,
.nav-link:hover,
.nav-parent:hover {
  color: var(--brand-orange);
  background: transparent;
  border-color: transparent;
}

.nav-menu {
  top: 100%;
  width: 250px;
  padding: 12px 0;
  border-color: #efefef;
  border-radius: 0;
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.12);
}

.nav-menu a {
  padding: 12px 20px;
  border-radius: 0;
}

.nav-menu a:hover {
  color: #ffffff;
  background: var(--brand-orange);
}

.header-actions {
  gap: 12px;
}

.header-search {
  width: 190px;
  height: 38px;
  display: flex;
  align-items: center;
  border: 1px solid #e7e7e7;
  background: #ffffff;
}

.header-search input {
  width: 100%;
  min-width: 0;
  height: 100%;
  border: 0;
  padding: 0 10px;
  color: #555555;
  outline: 0;
  font-size: 13px;
}

.header-search button {
  width: 42px;
  height: 100%;
  border: 0;
  color: var(--brand-orange);
  background: transparent;
  font-size: 23px;
  line-height: 1;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #777777;
  font-size: 12px;
  white-space: nowrap;
}

.language-switch span:first-child {
  color: var(--brand-orange);
}

.header-actions > .ghost-btn,
.header-actions > .solid-btn {
  min-height: 38px;
  padding: 0 13px;
  box-shadow: none;
}

.ghost-btn,
.icon-btn {
  border-color: #e6e6e6;
  color: #333333;
  background: #ffffff;
}

.solid-btn {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
  box-shadow: none;
}

.solid-btn:hover {
  border-color: var(--brand-orange-dark);
  background: var(--brand-orange-dark);
  box-shadow: none;
}

.hero {
  min-height: clamp(600px, 74vh, 760px);
  color: var(--brand-black);
  background-position: center center;
  box-shadow: none;
  animation: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0.42) 43%, rgba(255, 255, 255, 0.94) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), rgba(255, 255, 255, 0.14));
}

.hero::after {
  display: none;
}

.hero-content {
  width: min(1280px, calc(100% - 48px));
  padding: 92px 0 110px;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: left;
}

.hero .eyebrow,
.hero h1,
.hero p,
.hero-actions {
  width: min(610px, 100%);
}

.hero .eyebrow {
  min-height: auto;
  margin-bottom: 18px;
  padding: 0;
  border: 0;
  border-radius: 0;
  color: var(--brand-orange);
  background: transparent;
  font-size: 16px;
  font-weight: 800;
}

.hero h1 {
  color: #060606;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.08;
  text-shadow: none;
}

.hero p {
  color: #333333;
  font-size: clamp(17px, 1.6vw, 22px);
  line-height: 1.72;
}

.hero-actions {
  justify-content: flex-start;
}

.hero-actions .solid-btn {
  min-width: 154px;
  min-height: 46px;
}

.hero-actions .ghost-btn {
  min-height: 46px;
  color: var(--brand-orange);
  border-color: var(--brand-orange);
  background: rgba(255, 255, 255, 0.86);
}

.section {
  padding: 86px 0;
  background: #ffffff;
}

.section.alt,
.section.green {
  background: #ffffff;
}

.container {
  width: min(1200px, calc(100% - 48px));
}

.section-head {
  display: block;
  margin-bottom: 48px;
  text-align: center;
}

.section-head h2,
.page-title h1 {
  color: #333333;
  font-size: clamp(30px, 3.2vw, 42px);
  font-weight: 800;
}

.section-head h2::after,
.page-title h1::after {
  content: "";
  display: block;
  width: 48px;
  height: 2px;
  margin: 14px auto 0;
  background: var(--brand-orange);
}

.section-head p,
.page-title p {
  margin: 10px auto 0;
  color: #666666;
}

.stat-grid {
  transform: none;
  margin: 0 auto;
  padding: 26px 0 0;
}

.stat {
  min-height: 120px;
  border: 0;
  border-radius: 0;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.07);
}

.stat strong {
  color: var(--brand-orange);
}

.intro-grid {
  grid-template-columns: minmax(0, 0.92fr) minmax(360px, 1.08fr);
  align-items: stretch;
  padding: 0;
}

.intro-copy {
  align-self: center;
}

.intro-copy h2 {
  color: #333333;
  font-size: clamp(30px, 3.3vw, 46px);
}

.intro-copy h2::after {
  content: "";
  display: block;
  width: 54px;
  height: 3px;
  margin-top: 18px;
  background: var(--brand-orange);
}

.intro-copy p,
.detail-main p {
  color: #666666;
}

.media-frame {
  border: 0;
  border-radius: 0;
  background: #f8f8f8;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.1);
}

.product-grid,
.solution-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.product-card,
.solution-card {
  border: 0;
  border-radius: 0;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.1);
  background: #ffffff;
}

.product-card:hover,
.solution-card:hover {
  transform: translateY(-7px);
  border-color: transparent;
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.16);
}

.product-card::before,
.solution-card::before {
  background: linear-gradient(180deg, rgba(237, 113, 31, 0.1), rgba(237, 113, 31, 0));
}

.card-media {
  height: 246px;
  background: #ffffff;
}

.card-media img {
  object-fit: cover;
}

.card-body {
  min-height: 176px;
  padding: 24px 22px 28px;
  text-align: center;
}

.tag {
  margin: 0 auto;
  color: var(--brand-orange);
  background: transparent;
  font-size: 13px;
}

.product-card h3,
.solution-card h3 {
  color: #222222;
  font-size: 20px;
}

.product-card p,
.solution-card p {
  color: var(--brand-orange);
  font-size: 14px;
}

.arrow-link {
  margin: 4px auto 0;
  color: var(--brand-orange);
}

.page-hero {
  padding: 86px 0 64px;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 247, 241, 0.88)),
    #f7f7f7;
  border-bottom: 1px solid #eeeeee;
}

.breadcrumb {
  justify-content: center;
}

.breadcrumb a {
  color: var(--brand-orange);
}

.category-row {
  justify-content: center;
}

.category-pill {
  border-color: #eeeeee;
  border-radius: 0;
  background: #ffffff;
}

.category-pill.active,
.category-pill:hover {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
}

.feature-list li,
.spec-list li,
.step-list li,
.value-list li {
  border-color: #eeeeee;
  border-radius: 0;
}

.feature-list li:hover,
.spec-list li:hover,
.step-list li:hover,
.value-list li:hover {
  border-color: rgba(237, 113, 31, 0.35);
  box-shadow: 0 12px 28px rgba(237, 113, 31, 0.08);
}

.contact-band {
  color: #333333;
  background: #f7f7f7;
}

.contact-band::before {
  display: none;
}

.contact-band .section-head h2,
.contact-band .section-head p {
  color: #333333;
}

.contact-band .ghost-btn {
  color: var(--brand-orange);
  border-color: var(--brand-orange);
}

.contact-item {
  border: 0;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}

.contact-item span {
  color: var(--brand-orange);
}

.contact-item strong {
  color: #333333;
}

.site-footer {
  color: #bbbbbb;
  background: #2b2b2b;
}

.footer-grid p {
  color: #999999;
}

.control-bar {
  background: rgba(43, 43, 43, 0.95);
}

@media (max-width: 1120px) {
  .header-actions {
    display: none;
  }

  .site-nav {
    justify-content: flex-end;
  }
}

@media (max-width: 980px) {
  .header-inner,
  .container,
  .hero-content {
    width: min(100% - 32px, 1200px);
  }

  .hero-content {
    align-items: flex-start;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.62));
  }

  .nav-link,
  .nav-parent {
    height: 42px;
  }
}

@media (max-width: 640px) {
  .hero {
    min-height: 600px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .card-media {
    height: 210px;
  }
}

/* Console three-column editor */
.admin-layout {
  width: min(1500px, calc(100% - 24px));
  min-height: calc(100vh - 66px);
  padding: 14px 0 28px;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 14px;
}

.admin-side {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 94px);
  overflow: hidden;
  padding: 14px;
  border: 1px solid #e7e7e7;
  border-radius: 0;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.admin-side-section {
  display: grid;
  gap: 10px;
  min-height: 0;
}

.admin-side-section + .admin-side-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid #eeeeee;
}

.admin-side-title {
  color: #888888;
  font-size: 12px;
  font-weight: 700;
}

.admin-page-list {
  display: grid;
  gap: 8px;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding-right: 4px;
}

.admin-page {
  width: 100%;
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #eeeeee;
  border-left: 3px solid transparent;
  border-radius: 0;
  color: #333333;
  background: #ffffff;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.admin-page:hover,
.admin-page.active {
  border-color: #f2c19c;
  border-left-color: var(--brand-orange);
  background: #fff7f1;
}

.admin-page:hover {
  transform: translateX(2px);
}

.admin-page strong {
  display: block;
  font-size: 14px;
  line-height: 1.3;
}

.admin-page span {
  display: block;
  margin-top: 4px;
  color: #999999;
  font-size: 12px;
  word-break: break-all;
}

.admin-tab {
  min-height: 42px;
  border-radius: 0;
}

.admin-tab.active,
.admin-tab:hover {
  border-color: var(--brand-orange);
  background: var(--brand-orange);
}

.admin-main {
  min-width: 0;
}

.visual-workbench {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 14px;
  align-items: start;
}

.visual-preview-panel,
.visual-inspector {
  border: 1px solid #e7e7e7;
  background: #ffffff;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.06);
}

.visual-panel-head {
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid #eeeeee;
}

.visual-panel-head h2,
.inspector-head h2 {
  margin: 0;
  color: #262626;
  font-size: 20px;
}

.visual-panel-head p,
.inspector-head p {
  margin: 4px 0 0;
  color: #999999;
  font-size: 13px;
}

.visual-preview-frame {
  height: calc(100vh - 214px);
  min-height: 560px;
  border: 0;
  box-shadow: none;
}

.visual-preview {
  width: min(1180px, 100%);
}

.visual-preview [data-edit-path].is-selected {
  outline-color: var(--brand-orange);
  box-shadow: 0 0 0 8px rgba(237, 113, 31, 0.18);
}

.visual-inspector {
  position: sticky;
  top: 80px;
  max-height: calc(100vh - 94px);
  overflow: auto;
  padding: 0;
}

.inspector-head {
  min-height: 72px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #eeeeee;
}

.inspector-current {
  padding: 18px;
  border-bottom: 1px solid #eeeeee;
  background: #fff7f1;
}

.inspector-current .tag {
  margin: 0 0 10px;
}

.inspector-current h3 {
  margin: 0;
  color: #242424;
  font-size: 18px;
  line-height: 1.35;
}

.inspector-current p {
  margin: 8px 0 0;
  color: #8c6a54;
  font-size: 12px;
  line-height: 1.6;
  word-break: break-all;
}

.visual-inspector .field {
  padding: 16px 18px 0;
}

.visual-inspector .drawer-actions {
  padding: 0 18px 18px;
}

.visual-inspector .empty {
  margin: 18px;
}

.inspector-media {
  margin: 14px 18px 18px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  background: #f7f7f7;
}

.inspector-media img,
.inspector-media video {
  width: 100%;
  max-height: 210px;
  object-fit: cover;
}

.media-upload {
  margin: 18px;
  padding: 16px;
  display: grid;
  gap: 10px;
  border: 2px dashed #ed711f;
  background: linear-gradient(180deg, #fff8f2, #ffffff);
  box-shadow: 0 10px 22px rgba(237, 113, 31, 0.1);
}

.media-upload label {
  color: #ed711f;
  font-weight: 700;
}

.media-upload input[type="file"] {
  width: 100%;
  padding: 9px;
  border: 1px solid #eeeeee;
  background: #ffffff;
}

.media-upload .solid-btn {
  width: 100%;
  min-height: 42px;
}

.media-upload p {
  margin: 0;
  color: #9a6d4f;
  font-size: 12px;
  line-height: 1.6;
}

.inspector-list {
  padding: 18px;
  border-top: 1px solid #eeeeee;
}

.inspector-list h3 {
  margin: 0 0 12px;
  color: #333333;
  font-size: 16px;
}

.inspector-row {
  width: 100%;
  min-height: 46px;
  padding: 9px 10px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  border: 1px solid #eeeeee;
  border-radius: 0;
  background: #ffffff;
  text-align: left;
}

.inspector-row + .inspector-row {
  margin-top: 8px;
}

.inspector-row:hover,
.inspector-row.active {
  border-color: #f2c19c;
  background: #fff7f1;
}

.inspector-row span {
  overflow: hidden;
  color: #333333;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.inspector-row small {
  color: var(--brand-orange);
  font-size: 12px;
}

@media (max-width: 1180px) {
  .admin-layout,
  .visual-workbench {
    grid-template-columns: 1fr;
  }

  .admin-side,
  .visual-inspector {
    position: static;
    max-height: none;
  }

  .admin-page-list {
    max-height: 320px;
  }

  .visual-preview-frame {
    height: 620px;
  }
}

/* Tuositu premium brand system */
:root {
  --brand-teal: #51b7b2;
  --brand-teal-dark: #168f8a;
  --brand-teal-soft: #eaf7f6;
  --brand-charcoal: #1d2223;
  --brand-silver: #dce3e2;
  --brand-orange: var(--brand-teal);
  --brand-orange-dark: var(--brand-teal-dark);
  --brand-orange-soft: var(--brand-teal-soft);
  --blue: var(--brand-teal-dark);
  --teal: var(--brand-teal);
  --ink: #202627;
  --graphite: #333a3b;
  --muted: #687273;
  --line: #dfe6e5;
  --soft: #f3f6f5;
  --soft-green: #edf6f4;
  --shadow: 0 22px 56px rgba(24, 34, 35, 0.13);
  --deep-shadow: 0 34px 82px rgba(18, 28, 29, 0.2);
}

body {
  color: var(--ink);
  background: #ffffff;
}

.site-header {
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid rgba(210, 222, 220, 0.88);
  box-shadow: 0 12px 34px rgba(22, 34, 35, 0.07);
  backdrop-filter: blur(20px);
}

.header-inner {
  width: min(1320px, calc(100% - 48px));
  min-height: 88px;
  gap: 30px;
}

.brand {
  min-width: 190px;
}

.brand-logo {
  width: 186px;
  height: auto;
  max-height: 66px;
  object-fit: contain;
  object-position: left center;
  transition: transform 0.32s ease, filter 0.32s ease;
}

.brand:hover .brand-logo {
  transform: translateY(-2px);
  filter: saturate(1.06) contrast(1.03);
}

.admin-brand-logo {
  width: 138px;
  max-height: 50px;
}

.login-brand-logo {
  width: 228px;
  max-height: 90px;
}

.site-nav {
  justify-content: center;
}

.nav-link,
.nav-parent {
  height: 88px;
  padding: 0 19px;
  color: #2a3031;
  font-size: 15px;
  font-weight: 600;
  white-space: nowrap;
}

.nav-link::after,
.nav-parent::after {
  left: 19px;
  right: 19px;
  height: 3px;
  background: var(--brand-teal);
}

.nav-link.active,
.nav-parent.active,
.nav-link:hover,
.nav-parent:hover {
  color: var(--brand-teal-dark);
}

.nav-menu {
  border-top: 3px solid var(--brand-teal);
  border-right-color: #e8edec;
  border-bottom-color: #e8edec;
  border-left-color: #e8edec;
  box-shadow: 0 22px 50px rgba(20, 31, 32, 0.16);
}

.nav-menu a:hover {
  color: #ffffff;
  background: var(--brand-teal-dark);
}

.solid-btn {
  border-color: var(--brand-teal-dark);
  color: #ffffff;
  background: var(--brand-teal-dark);
  box-shadow: 0 12px 28px rgba(22, 143, 138, 0.22);
}

.solid-btn:hover {
  border-color: #107d78;
  background: #107d78;
  box-shadow: 0 16px 34px rgba(22, 143, 138, 0.28);
}

.hero {
  min-height: clamp(680px, 82vh, 850px);
  color: #ffffff;
  background-position: center center;
  box-shadow: none;
}

.hero::before {
  background:
    linear-gradient(90deg, rgba(13, 20, 21, 0.88) 0%, rgba(16, 27, 28, 0.7) 42%, rgba(15, 25, 26, 0.18) 78%),
    linear-gradient(180deg, rgba(6, 10, 11, 0.12), rgba(6, 10, 11, 0.34));
}

.hero-content {
  width: min(1320px, calc(100% - 48px));
  padding: 112px 0 132px;
  align-items: flex-start;
  text-align: left;
}

.hero .eyebrow,
.hero h1,
.hero p,
.hero-actions {
  width: min(720px, 100%);
}

.hero .eyebrow {
  width: fit-content;
  min-height: 30px;
  padding: 0 12px;
  color: #9fe2de;
  border: 1px solid rgba(159, 226, 222, 0.4);
  background: rgba(20, 34, 35, 0.3);
  backdrop-filter: blur(12px);
}

.hero h1 {
  color: #ffffff;
  font-size: clamp(44px, 5.5vw, 72px);
  line-height: 1.08;
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.3);
}

.hero p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(17px, 1.6vw, 21px);
}

.hero-actions .ghost-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(15, 26, 27, 0.28);
  backdrop-filter: blur(10px);
}

.hero-actions .ghost-btn:hover {
  border-color: #ffffff;
  background: rgba(255, 255, 255, 0.16);
}

.section {
  padding: 96px 0;
}

.section.alt {
  background: #f3f6f5;
}

.section.green {
  background: #eaf3f1;
}

.container {
  width: min(1240px, calc(100% - 48px));
}

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

.section-head h2,
.page-title h1,
.intro-copy h2 {
  color: var(--brand-charcoal);
}

.section-head h2::after,
.page-title h1::after,
.intro-copy h2::after {
  width: 52px;
  height: 3px;
  margin: 16px 0 0;
  background: var(--brand-teal);
}

.section-head p,
.page-title p {
  margin-right: 0;
  margin-left: 0;
  color: var(--muted);
}

.home-stats {
  position: relative;
  z-index: 3;
  padding: 30px 0 26px;
  background: #ffffff;
}

.stat-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  padding: 0;
  transform: none;
  margin: 0;
  overflow: hidden;
  border: 1px solid #dce6e4;
  border-radius: 6px;
  background: #ffffff;
  box-shadow: 0 20px 50px rgba(15, 42, 43, 0.09);
}

.stat {
  position: relative;
  min-height: 152px;
  padding: 30px 40px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  border: 0;
  border-right: 1px solid #dce6e4;
  border-radius: 0;
  background: #ffffff;
  box-shadow: none;
  transition: background 0.2s ease;
}

.stat:last-child {
  border-right: 0;
}

.stat::before {
  position: absolute;
  top: 0;
  left: 40px;
  width: 42px;
  height: 3px;
  content: "";
  background: var(--brand-teal);
}

.stat:hover {
  background: #f3f9f8;
}

.stat strong {
  margin: 0 0 13px;
  color: var(--brand-teal-dark);
  font-size: 52px;
  line-height: 1;
  letter-spacing: 0;
}

.stat span {
  color: #607271;
  font-size: 16px;
  line-height: 1.5;
}

.intro-grid {
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: 68px;
}

.media-frame {
  overflow: hidden;
  border: 1px solid rgba(202, 215, 213, 0.72);
  border-radius: 6px;
  box-shadow: var(--deep-shadow);
}

.product-grid,
.solution-grid {
  gap: 24px;
}

.product-card,
.solution-card {
  overflow: hidden;
  border: 1px solid #dfe6e5;
  border-radius: 6px;
  box-shadow: 0 12px 34px rgba(23, 34, 35, 0.08);
}

.product-card:hover,
.solution-card:hover {
  transform: translateY(-8px);
  border-color: rgba(81, 183, 178, 0.62);
  box-shadow: 0 26px 62px rgba(20, 34, 35, 0.16);
}

.product-card::before,
.solution-card::before {
  background: radial-gradient(circle at var(--cursor-x, 50%) var(--cursor-y, 0%), rgba(81, 183, 178, 0.16), transparent 38%);
}

.card-media {
  height: 242px;
  background: #edf2f1;
}

.card-body {
  min-height: 210px;
  padding: 26px 24px 28px;
  align-content: start;
  text-align: left;
}

.tag {
  margin: 0;
  color: #0e706c;
  background: var(--brand-teal-soft);
}

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

.arrow-link {
  margin: auto 0 0;
  color: var(--brand-teal-dark);
}

.page-hero {
  padding: 96px 0 72px;
  background:
    linear-gradient(120deg, rgba(237, 245, 243, 0.94), rgba(250, 251, 251, 0.98)),
    #f4f7f6;
  border-bottom-color: #dfe7e5;
}

.page-title {
  text-align: left;
}

.breadcrumb {
  justify-content: flex-start;
}

.breadcrumb a {
  color: var(--brand-teal-dark);
}

.category-pill {
  border: 1px solid #dce5e3;
  border-radius: 6px;
}

.category-pill.active,
.category-pill:hover {
  border-color: var(--brand-teal-dark);
  background: var(--brand-teal-dark);
}

.feature-list li,
.spec-list li,
.step-list li,
.value-list li {
  border-color: #dfe6e5;
  border-radius: 6px;
}

.feature-list li:hover,
.spec-list li:hover,
.step-list li:hover,
.value-list li:hover {
  border-color: rgba(81, 183, 178, 0.6);
  box-shadow: 0 12px 30px rgba(26, 112, 108, 0.1);
}

.contact-band {
  color: #ffffff;
  background: var(--brand-charcoal);
  border-top: 4px solid var(--brand-teal);
}

.contact-band .section-head h2,
.contact-band .section-head p {
  color: #ffffff;
}

.contact-band .section-head h2::after {
  background: #84d4d0;
}

.contact-band .ghost-btn {
  color: #bce8e5;
  border-color: rgba(132, 212, 208, 0.7);
  background: transparent;
}

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

.contact-item {
  min-height: 130px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.055);
  box-shadow: none;
}

.contact-item span {
  color: #83d2ce;
}

.contact-item strong,
.contact-value {
  display: block;
  margin-top: 10px;
  color: #ffffff;
  font-size: 23px;
  font-weight: 700;
  line-height: 1.35;
  word-break: break-word;
}

.contact-value:hover {
  color: #9fe2de;
}

.site-footer {
  color: #cad3d2;
  background: #111617;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-brand {
  display: grid;
  gap: 8px;
}

.footer-logo {
  width: 152px;
  max-height: 58px;
  filter: brightness(0) invert(1);
  opacity: 0.94;
}

.footer-grid p {
  margin: 0;
  color: #85908f;
}

.footer-links a:hover {
  color: #8fd8d4;
}

.admin-page.active,
.admin-page:hover,
.inspector-current,
.inspector-row:hover,
.inspector-row.active {
  border-color: rgba(81, 183, 178, 0.55);
  background: #eef8f7;
}

.visual-preview [data-edit-path].is-selected {
  outline-color: var(--brand-teal-dark);
  box-shadow: 0 0 0 8px rgba(81, 183, 178, 0.18);
}

.media-upload {
  border-color: var(--brand-teal);
  background: linear-gradient(180deg, #eef9f8, #ffffff);
  box-shadow: 0 10px 22px rgba(22, 143, 138, 0.1);
}

.media-upload label,
.inspector-row small {
  color: var(--brand-teal-dark);
}

.media-upload p,
.inspector-current p {
  color: #567674;
}

@media (max-width: 1120px) {
  .brand-logo {
    width: 166px;
  }
}

@media (max-width: 980px) {
  .header-inner {
    width: min(100% - 32px, 1240px);
    align-items: stretch;
    padding: 14px 0;
  }

  .site-nav {
    justify-content: flex-start;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .site-nav::-webkit-scrollbar {
    display: none;
  }

  .nav-link,
  .nav-parent {
    height: 44px;
  }

  .hero {
    min-height: 680px;
  }

  .hero::before {
    background: linear-gradient(90deg, rgba(12, 20, 21, 0.86), rgba(13, 22, 23, 0.52));
  }

  .hero-content,
  .container {
    width: min(100% - 32px, 1240px);
  }

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

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

@media (max-width: 640px) {
  .brand-logo {
    width: 154px;
  }

  .site-nav {
    justify-content: space-between;
  }

  .nav-link,
  .nav-parent {
    padding: 0 7px;
    font-size: 13px;
  }

  .nav-link::after,
  .nav-parent::after {
    left: 7px;
    right: 7px;
  }

  .hero {
    min-height: 630px;
  }

  .hero-content {
    padding: 82px 0 102px;
  }

  .hero h1 {
    font-size: 38px;
  }

  .section {
    padding: 66px 0;
  }

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

  .footer-grid {
    display: flex;
  }
}

/* Persistent three-column console and site contact tools */
.editable-inline {
  display: inline;
}

.header-phone {
  min-width: 224px;
  min-height: 58px;
  padding: 8px 14px 8px 9px;
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: center;
  gap: 11px;
  border: 1px solid #d8e5e3;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 10px 28px rgba(18, 62, 62, 0.08);
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.header-phone:hover,
.header-phone:focus-visible {
  border-color: rgba(22, 143, 138, 0.55);
  color: var(--ink);
  background: #f3f9f8;
  box-shadow: 0 14px 32px rgba(18, 94, 91, 0.14);
  transform: translateY(-2px);
}

.header-phone-icon {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border-radius: 4px;
  color: #ffffff;
  background: var(--brand-teal-dark);
}

.header-phone-copy {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.header-phone-label {
  overflow: hidden;
  color: #687877;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.header-phone strong {
  color: var(--brand-teal-dark);
  font-size: 17px;
  line-height: 1.2;
  letter-spacing: 0;
  white-space: nowrap;
}

.interface-icon {
  width: 100%;
  height: 100%;
  display: block;
  background: currentColor;
  -webkit-mask-position: center;
  -webkit-mask-repeat: no-repeat;
  -webkit-mask-size: contain;
  mask-position: center;
  mask-repeat: no-repeat;
  mask-size: contain;
}

.header-phone-icon .interface-icon {
  width: 20px;
  height: 20px;
}

.icon-phone-call {
  -webkit-mask-image: url("/assets/icons/phone-call.svg");
  mask-image: url("/assets/icons/phone-call.svg");
}

.icon-qr-code {
  -webkit-mask-image: url("/assets/icons/qr-code.svg");
  mask-image: url("/assets/icons/qr-code.svg");
}

.icon-messages-square {
  -webkit-mask-image: url("/assets/icons/messages-square.svg");
  mask-image: url("/assets/icons/messages-square.svg");
}

.hero-bg-video {
  position: absolute;
  z-index: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero::before {
  z-index: 1;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.floating-contact {
  position: fixed;
  z-index: 80;
  right: 22px;
  bottom: 132px;
  display: grid;
  gap: 7px;
}

.floating-action {
  position: relative;
  width: 74px;
  min-height: 72px;
  padding: 10px 7px;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 6px;
  border: 1px solid rgba(129, 171, 168, 0.28);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(18, 29, 30, 0.96);
  box-shadow: 0 14px 36px rgba(12, 22, 23, 0.2);
  text-align: center;
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.floating-action:hover,
.floating-action:focus-visible {
  color: #ffffff;
  background: var(--brand-teal-dark);
  box-shadow: 0 18px 40px rgba(22, 143, 138, 0.3);
  transform: translateX(-4px);
}

.floating-icon {
  width: 25px;
  height: 25px;
  display: block;
  color: #79d5d0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.floating-action:hover .floating-icon,
.floating-action:focus-visible .floating-icon {
  color: #ffffff;
  transform: scale(1.08);
}

.floating-action small {
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: 0;
}

.wechat-popover {
  position: absolute;
  right: calc(100% + 12px);
  bottom: 0;
  width: 188px;
  padding: 14px;
  visibility: hidden;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  box-shadow: 0 20px 52px rgba(16, 28, 29, 0.2);
  opacity: 0;
  pointer-events: none;
  transform: translateX(8px);
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.wechat-action:hover .wechat-popover,
.wechat-action:focus .wechat-popover,
.wechat-action:focus-within .wechat-popover {
  visibility: visible;
  opacity: 1;
  transform: translateX(0);
}

.wechat-popover img,
.qr-placeholder {
  width: 158px;
  aspect-ratio: 1;
  margin: 0 auto 10px;
  display: grid;
  place-items: center;
  object-fit: contain;
  border: 1px solid var(--line);
  background: #f5f8f7;
}

.qr-placeholder {
  padding: 16px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.wechat-popover strong {
  display: block;
  font-size: 14px;
  text-align: center;
}

.chat-window {
  position: fixed;
  z-index: 90;
  right: 102px;
  bottom: 24px;
  width: min(390px, calc(100vw - 32px));
  height: min(610px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid #d8e2e0;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 28px 80px rgba(12, 24, 25, 0.28);
  animation: chat-window-in 0.22s ease both;
}

@keyframes chat-window-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.chat-head {
  min-height: 72px;
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #ffffff;
  background: var(--brand-charcoal);
  border-top: 4px solid var(--brand-teal);
}

.chat-head strong,
.chat-head span {
  display: block;
}

.chat-head strong {
  font-size: 17px;
}

.chat-head span {
  margin-top: 3px;
  color: #afcfcc;
  font-size: 11px;
}

.chat-head .icon-btn {
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.24);
  background: transparent;
}

.chat-messages {
  padding: 18px 14px;
  overflow: auto;
  background: #f3f6f5;
}

.chat-welcome {
  padding: 12px 14px;
  border: 1px solid #dfe7e5;
  border-radius: 6px;
  color: var(--muted);
  background: #ffffff;
  font-size: 13px;
  line-height: 1.7;
}

.chat-message {
  max-width: 82%;
  margin: 0 0 12px;
  display: grid;
  gap: 4px;
}

.chat-message > div {
  padding: 10px 12px;
  border: 1px solid #dce5e3;
  border-radius: 6px;
  color: var(--ink);
  background: #ffffff;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.chat-message time {
  color: #8a9594;
  font-size: 10px;
}

.chat-message.visitor {
  margin-left: auto;
  justify-items: end;
}

.chat-message.visitor > div {
  color: #ffffff;
  border-color: var(--brand-teal-dark);
  background: var(--brand-teal-dark);
}

.chat-message.service {
  margin-right: auto;
}

.chat-compose {
  padding: 12px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 8px;
  border-top: 1px solid var(--line);
  background: #ffffff;
}

.chat-compose textarea {
  min-height: 68px;
  max-height: 130px;
  resize: vertical;
}

.chat-compose .solid-btn {
  min-width: 66px;
  min-height: 44px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.admin-layout {
  width: min(1780px, calc(100% - 24px));
  grid-template-columns: 248px minmax(520px, 1fr) 370px;
  gap: 14px;
  align-items: start;
}

.admin-main {
  min-width: 0;
}

.visual-workbench {
  display: block;
}

.visual-preview-panel {
  min-width: 0;
}

.visual-preview-frame {
  position: relative;
  height: calc(100vh - 214px);
  min-height: 560px;
}

.visual-preview {
  position: relative;
}

.visual-preview .site-header,
.visual-preview .site-footer {
  display: block;
}

.visual-preview .site-header {
  position: relative;
  top: auto;
}

.visual-preview .header-inner {
  width: min(100% - 24px, 1180px);
  min-height: 70px;
}

.visual-preview .brand-logo {
  width: 138px;
}

.visual-preview .nav-link,
.visual-preview .nav-parent {
  height: 70px;
  padding-right: 10px;
  padding-left: 10px;
  font-size: 13px;
}

.visual-preview .header-phone {
  min-width: 154px;
  min-height: 46px;
}

.visual-preview .floating-contact.is-preview {
  position: absolute;
  right: 12px;
  bottom: 18px;
  z-index: 12;
  transform: scale(0.82);
  transform-origin: right bottom;
}

.visual-preview .floating-contact.is-preview .wechat-popover {
  display: none;
}

.visual-inspector {
  position: sticky;
  top: 80px;
  width: 100%;
  max-height: calc(100vh - 94px);
}

.text-style-editor {
  margin: 16px 18px;
  padding: 14px;
  border: 1px solid #dce5e3;
  background: #f6f9f8;
}

.style-editor-head {
  margin-bottom: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.text-btn {
  padding: 0;
  border: 0;
  color: var(--brand-teal-dark);
  background: transparent;
  font-size: 12px;
}

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

.style-grid label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
}

.style-grid .span-2 {
  grid-column: 1 / -1;
}

.style-grid input,
.style-grid select {
  width: 100%;
  min-height: 38px;
}

.style-grid input[type="color"] {
  padding: 4px;
}

.color-field {
  display: grid;
  grid-template-columns: 60px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
}

.color-field input {
  width: 60px;
  min-height: 42px;
  padding: 3px;
}

.color-field code {
  color: var(--muted);
}

.element-table-row {
  cursor: pointer;
  transition: background 0.16s ease;
}

.element-table-row:hover,
.element-table-row.active {
  background: var(--brand-teal-soft);
}

.admin-card {
  overflow-x: auto;
}

@media (max-width: 1380px) {
  .admin-layout {
    grid-template-columns: 220px minmax(460px, 1fr) 330px;
  }
}

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

  .visual-inspector {
    position: static;
    grid-column: 1 / -1;
    max-height: none;
  }
}

@media (max-width: 760px) {
  .home-stats {
    padding: 18px 0;
  }

  .home-stats .stat-grid {
    grid-template-columns: 1fr;
  }

  .home-stats .stat {
    min-height: 112px;
    padding: 22px 24px;
    border-right: 0;
    border-bottom: 1px solid #dce6e4;
  }

  .home-stats .stat:last-child {
    border-bottom: 0;
  }

  .home-stats .stat::before {
    left: 24px;
    width: 34px;
  }

  .home-stats .stat strong {
    margin-bottom: 8px;
    font-size: 38px;
  }

  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-side {
    position: static;
    max-height: none;
  }

  .visual-preview-frame {
    height: 620px;
    min-height: 0;
  }

  .floating-contact:not(.is-preview) {
    right: 10px;
    bottom: max(10px, env(safe-area-inset-bottom));
    left: 10px;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .floating-contact:not(.is-preview) .floating-action {
    width: 100%;
    min-height: 58px;
    grid-template-columns: auto auto;
    gap: 6px;
  }

  .floating-contact:not(.is-preview) .floating-action:hover {
    transform: translateY(-2px);
  }

  .wechat-popover {
    right: 0;
    bottom: calc(100% + 10px);
  }

  .chat-window {
    right: 10px;
    bottom: calc(82px + env(safe-area-inset-bottom));
    left: 10px;
    width: auto;
    height: min(66vh, 560px);
  }
}

/* Product detail pages */
.product-detail-page {
  background: #ffffff;
}

.product-detail-hero {
  position: relative;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #ffffff;
  background: var(--brand-charcoal);
  isolation: isolate;
}

.product-detail-hero-media,
.product-detail-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.product-detail-hero-media {
  z-index: -2;
}

.product-detail-hero-media img {
  object-fit: cover;
  object-position: center;
  transition: transform 1.2s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.product-detail-hero:hover .product-detail-hero-media img {
  transform: scale(1.025);
}

.product-detail-hero-shade {
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(10, 19, 20, 0.5);
}

.product-detail-hero-inner {
  padding-top: 92px;
  padding-bottom: 72px;
}

.product-detail-hero .breadcrumb {
  margin-bottom: 88px;
  color: rgba(255, 255, 255, 0.74);
}

.product-detail-hero .breadcrumb a,
.product-detail-hero .breadcrumb strong {
  color: #ffffff;
}

.product-detail-hero-copy {
  width: min(760px, 100%);
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.36);
}

.product-detail-hero-copy .tag {
  margin-bottom: 22px;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.45);
  background: rgba(22, 143, 138, 0.82);
  text-shadow: none;
}

.product-detail-hero-copy h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: 58px;
  line-height: 1.12;
  letter-spacing: 0;
}

.product-detail-highlight {
  max-width: 680px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 21px;
  line-height: 1.75;
}

.product-overview-band {
  padding: 92px 0;
  background: #ffffff;
}

.product-overview-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(460px, 1.18fr);
  gap: 74px;
  align-items: center;
}

.product-section-heading {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 28px;
}

.product-section-heading > span:first-child {
  flex: 0 0 auto;
  color: var(--brand-teal-dark);
  font-size: 13px;
  font-weight: 800;
}

.product-section-heading > span:first-child::after {
  content: "";
  display: inline-block;
  width: 42px;
  height: 1px;
  margin-left: 12px;
  vertical-align: middle;
  background: var(--brand-teal);
}

.product-section-heading h2 {
  margin: 0;
  color: var(--brand-charcoal);
  font-size: 34px;
  line-height: 1.24;
  letter-spacing: 0;
}

.product-overview-copy > p {
  margin: 0;
  color: #5f6f6e;
  font-size: 18px;
  line-height: 2;
}

.product-video-frame {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  min-height: 0;
  border: 1px solid #d9e3e1;
  border-radius: 6px;
  background: #111819;
  box-shadow: 0 28px 70px rgba(22, 39, 40, 0.18);
}

.product-video-frame video,
.product-video-frame .video-empty {
  width: 100%;
  height: 100%;
  min-height: 0;
  object-fit: cover;
}

.product-information-band {
  padding: 92px 0 104px;
  border-top: 1px solid #e1e9e7;
  background: #f4f7f6;
}

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

.product-information-column {
  min-width: 0;
}

.product-section-heading.compact {
  margin-bottom: 24px;
  padding-bottom: 20px;
  border-bottom: 1px solid #cfdbd9;
}

.product-section-heading.compact h2 {
  font-size: 29px;
}

.product-detail-list {
  gap: 0;
}

.product-detail-list li {
  min-height: 72px;
  padding: 17px 6px;
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  border: 0;
  border-bottom: 1px solid #d9e3e1;
  border-radius: 0;
  background: transparent;
  transition: padding 0.24s ease, background 0.24s ease, border-color 0.24s ease;
}

.product-detail-list li:first-child {
  border-top: 1px solid #d9e3e1;
}

.product-detail-list li:hover {
  padding-right: 14px;
  padding-left: 14px;
  transform: none;
  border-color: #b8cdca;
  background: #ffffff;
  box-shadow: none;
}

.product-item-index {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  color: var(--brand-teal-dark);
  border: 1px solid #bdd4d1;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}

.product-item-text {
  min-width: 0;
  color: #253332;
  font-size: 17px;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .product-detail-hero {
    min-height: 540px;
  }

  .product-detail-hero .breadcrumb {
    margin-bottom: 62px;
  }

  .product-overview-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .product-video-frame {
    width: 100%;
  }

  .product-information-grid {
    gap: 42px;
  }
}

@media (max-width: 760px) {
  .product-detail-hero {
    min-height: 500px;
  }

  .product-detail-hero-inner {
    padding-top: 70px;
    padding-bottom: 48px;
  }

  .product-detail-hero .breadcrumb {
    margin-bottom: 48px;
  }

  .product-detail-hero-copy h1 {
    font-size: 40px;
  }

  .product-detail-highlight {
    font-size: 18px;
  }

  .product-overview-band,
  .product-information-band {
    padding: 64px 0;
  }

  .product-overview-grid {
    gap: 36px;
  }

  .product-section-heading {
    align-items: flex-start;
    gap: 12px;
  }

  .product-section-heading > span:first-child::after {
    width: 24px;
  }

  .product-section-heading h2,
  .product-section-heading.compact h2 {
    font-size: 27px;
  }

  .product-overview-copy > p {
    font-size: 16px;
  }

  .product-information-grid {
    grid-template-columns: 1fr;
    gap: 56px;
  }

  .product-detail-list li {
    min-height: 66px;
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 12px;
  }

  .product-item-index {
    width: 34px;
    height: 34px;
  }

  .product-item-text {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .product-detail-hero-media img,
  .product-detail-list li {
    transition: none;
  }
}
