:root {
  --bg: #f7f6f1;
  --surface: #ffffff;
  --ink: #151515;
  --muted: #666b73;
  --line: rgba(20, 20, 20, .12);
  --accent: #c46b4c;
  --accent-strong: #9d432d;
  --accent-soft: rgba(196, 107, 76, .14);
  --dark: #151515;
  --light: #fffaf4;
  --shadow: 0 24px 70px rgba(28, 32, 38, .12);
  --radius: 8px;
  --radius-lg: 8px;
  font-family: "Inter", "PingFang SC", "Microsoft YaHei", Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
}

* {
  box-sizing: border-box;
  letter-spacing: 0;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  min-width: 320px;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

body.theme-fashion {
  --bg: #f7f1ec;
  --surface: #fffaf6;
  --ink: #171313;
  --muted: #756962;
  --accent: #b76d5f;
  --accent-strong: #713c35;
  --accent-soft: rgba(183, 109, 95, .16);
}

body.theme-trade {
  --bg: #f1f6fb;
  --surface: #ffffff;
  --ink: #0f2942;
  --muted: #617386;
  --accent: #1e74ff;
  --accent-strong: #0b4cb6;
  --accent-soft: rgba(30, 116, 255, .13);
}

body.theme-factory {
  --bg: #f1f2ef;
  --surface: #fafaf8;
  --ink: #22292d;
  --muted: #626c72;
  --accent: #d15b2f;
  --accent-strong: #98401f;
  --accent-soft: rgba(209, 91, 47, .14);
}

body.theme-tech {
  --bg: #071521;
  --surface: #0f2432;
  --ink: #f4fbff;
  --muted: #a7c4c8;
  --line: rgba(234, 252, 255, .15);
  --accent: #2dd4bf;
  --accent-strong: #7df7e8;
  --accent-soft: rgba(45, 212, 191, .14);
  --shadow: 0 26px 80px rgba(0, 0, 0, .28);
}

body.theme-education {
  --bg: #f4f8ee;
  --surface: #fffdf7;
  --ink: #24463d;
  --muted: #657969;
  --accent: #f0a23b;
  --accent-strong: #b66c15;
  --accent-soft: rgba(240, 162, 59, .16);
}

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

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

.site-shell {
  overflow: hidden;
}

.nav {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 74px;
  padding: 16px 6vw;
  background: rgba(247, 246, 241, .86);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(18px);
}

.theme-tech .nav {
  background: rgba(7, 21, 33, .84);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
}

.brand-logo {
  width: 42px;
  height: 42px;
  object-fit: contain;
  border-radius: 8px;
}

.brand-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 14px;
}

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

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

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 20px;
  border: 1px solid transparent;
  border-radius: 999px;
  color: #fff;
  background: var(--accent);
  box-shadow: 0 12px 26px var(--accent-soft);
  font-size: 15px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.btn:hover {
  transform: translateY(-2px);
  background: var(--accent-strong);
}

.theme-tech .btn {
  color: #05211e;
}

.btn.secondary {
  color: var(--ink);
  background: transparent;
  border-color: var(--line);
  box-shadow: none;
}

.btn.secondary:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 520px);
  gap: 54px;
  align-items: center;
  min-height: calc(100svh - 74px);
  padding: 72px 6vw 86px;
}

.photo-hero {
  grid-template-columns: minmax(0, .82fr) minmax(420px, 1.18fr);
  gap: 42px;
}

.hero.compact {
  min-height: auto;
  padding-top: 86px;
}

.hero::before {
  content: "";
  position: absolute;
  inset: auto -12vw -18vw auto;
  width: 46vw;
  height: 46vw;
  min-width: 420px;
  min-height: 420px;
  background: radial-gradient(circle, var(--accent-soft), transparent 66%);
  pointer-events: none;
}

.eyebrow {
  margin: 0 0 18px;
  color: var(--accent-strong);
  font-size: 14px;
  font-weight: 800;
}

.theme-tech .eyebrow {
  color: var(--accent-strong);
}

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

h1 {
  max-width: min(820px, 100%);
  margin-bottom: 22px;
  font-size: 64px;
  line-height: 1.05;
}

h2 {
  margin-bottom: 18px;
  font-size: 40px;
  line-height: 1.14;
}

h3 {
  margin-bottom: 10px;
  font-size: 22px;
  line-height: 1.28;
}

.lead {
  max-width: 680px;
  margin-bottom: 34px;
  color: var(--muted);
  font-size: 19px;
  line-height: 1.8;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.hero-visual {
  position: relative;
  min-width: 0;
  min-height: 500px;
}

.hero-photo {
  position: relative;
  min-height: 560px;
  border-radius: 8px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.hero-photo img {
  width: 100%;
  height: 100%;
  min-height: inherit;
  object-fit: cover;
}

.hero-photo::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(0, 0, 0, .16), transparent 44%);
  pointer-events: none;
}

.photo-badge {
  position: absolute;
  right: 24px;
  bottom: 24px;
  z-index: 2;
  max-width: 320px;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, .44);
  border-radius: 8px;
  color: #171313;
  background: rgba(255, 255, 255, .78);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.theme-tech .photo-badge {
  color: #f4fbff;
  background: rgba(7, 21, 33, .76);
}

.photo-badge p {
  margin-bottom: 0;
  color: inherit;
  line-height: 1.65;
}

.visual-board {
  position: relative;
  min-height: 500px;
  border-radius: 8px;
  background: linear-gradient(145deg, var(--surface), var(--accent-soft));
  box-shadow: var(--shadow);
  overflow: hidden;
}

.visual-board::before,
.visual-board::after {
  content: "";
  position: absolute;
  border-radius: 999px;
}

.visual-board::before {
  top: 12%;
  right: 10%;
  width: 190px;
  height: 190px;
  background: var(--accent-soft);
}

.visual-board::after {
  bottom: 12%;
  left: 10%;
  width: 240px;
  height: 86px;
  background: rgba(255, 255, 255, .58);
}

.mock-window {
  position: absolute;
  inset: 58px 46px auto;
  height: 290px;
  border-radius: 8px;
  background: var(--dark);
  overflow: hidden;
  transform: rotate(-2deg);
}

.theme-tech .mock-window {
  background: #102c3a;
}

.mock-window img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: .92;
}

.mock-panel {
  position: absolute;
  right: 38px;
  bottom: 46px;
  width: min(72%, 330px);
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, .52);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
  overflow: hidden;
}

.theme-tech .mock-panel {
  color: #f4fbff;
  background: rgba(13, 31, 43, .78);
}

.metric-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 22px;
}

.metric {
  min-width: 0;
}

.metric strong {
  display: block;
  font-size: 28px;
  line-height: 1;
}

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

.section {
  padding: 88px 6vw;
}

.section.alt {
  background: rgba(255, 255, 255, .46);
}

.theme-tech .section.alt {
  background: rgba(255, 255, 255, .04);
}

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

.hero-copy,
.section-head > *,
.split > * {
  min-width: 0;
}

.section-head p {
  max-width: 560px;
  margin-bottom: 0;
  color: var(--muted);
  line-height: 1.8;
}

.template-grid,
.feature-grid,
.product-grid,
.scene-grid,
.process-grid {
  display: grid;
  gap: 22px;
}

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

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

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

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

.template-card,
.feature-item,
.product-item,
.scene-item,
.process-item,
.contact-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--surface);
  box-shadow: 0 18px 42px rgba(25, 28, 34, .07);
}

.template-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  overflow: hidden;
  transition: transform .28s ease, box-shadow .28s ease;
}

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

.template-card img {
  width: 100%;
  aspect-ratio: 1.28;
  object-fit: cover;
}

.template-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 22px;
}

.template-card p,
.feature-item p,
.product-item p,
.scene-item p,
.process-item p {
  color: var(--muted);
  line-height: 1.7;
}

.tagline {
  margin-bottom: 16px;
  color: var(--accent-strong);
  font-weight: 800;
}

.client-types {
  margin: auto 0 20px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

.feature-item,
.product-item,
.scene-item,
.process-item {
  padding: 26px;
}

.feature-index,
.process-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 22px;
  border-radius: 999px;
  color: var(--accent-strong);
  background: var(--accent-soft);
  font-weight: 900;
}

.product-media,
.scene-media {
  min-height: 180px;
  margin: -26px -26px 22px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .55), transparent),
    radial-gradient(circle at 70% 30%, var(--accent-soft), transparent 44%),
    linear-gradient(145deg, var(--accent-soft), var(--surface));
}

.product-media.photo,
.scene-media.photo {
  background-size: cover;
  background-position: center;
}

.theme-fashion .product-media.photo,
.theme-fashion .scene-media.photo {
  background-image: linear-gradient(rgba(23, 19, 19, .04), rgba(23, 19, 19, .1)), url("/assets/templates/images/fashion-hero.webp");
}

.theme-trade .product-media.photo,
.theme-trade .scene-media.photo {
  background-image: linear-gradient(rgba(15, 41, 66, .02), rgba(15, 41, 66, .12)), url("/assets/templates/images/trade-hero.webp");
}

.theme-factory .product-media.photo,
.theme-factory .scene-media.photo {
  background-image: linear-gradient(rgba(34, 41, 45, .08), rgba(34, 41, 45, .22)), url("/assets/templates/images/factory-hero.webp");
}

.theme-tech .product-media.photo,
.theme-tech .scene-media.photo {
  background-image: linear-gradient(rgba(7, 21, 33, .08), rgba(7, 21, 33, .28)), url("/assets/templates/images/tech-hero.webp");
}

.theme-education .product-media.photo,
.theme-education .scene-media.photo {
  background-image: linear-gradient(rgba(36, 70, 61, .02), rgba(36, 70, 61, .1)), url("/assets/templates/images/education-hero.webp");
}

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

.story-panel {
  padding: 34px;
  border-left: 4px solid var(--accent);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.story-panel p {
  color: var(--muted);
  line-height: 1.85;
}

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

.stat {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, .48);
}

.stat strong {
  display: block;
  margin-bottom: 6px;
  font-size: 28px;
}

.contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 28px;
  align-items: center;
  padding: 34px;
}

.contact-options {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px 6vw 96px;
  color: var(--muted);
  border-top: 1px solid var(--line);
}

.float-consult {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 40;
  display: flex;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .88);
  box-shadow: var(--shadow);
  backdrop-filter: blur(16px);
}

.theme-tech .float-consult {
  background: rgba(13, 31, 43, .86);
}

.float-consult a {
  min-height: 40px;
  padding: 0 16px;
  font-size: 14px;
}

.reveal {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .7s ease, transform .7s ease;
}

.js-ready .reveal {
  opacity: 0;
  transform: translateY(18px);
}

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

.hero-copy,
.hero-visual {
  opacity: 1;
  transform: translateY(0);
  animation: riseIn .48s ease both;
}

.hero-visual {
  animation-delay: .06s;
}

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

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

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

@media (max-width: 900px) {
  .nav {
    min-height: 66px;
    padding: 12px 18px;
  }

  .nav-links {
    display: none;
  }

  .brand-logo {
    width: 36px;
    height: 36px;
  }

  .hero {
    grid-template-columns: 1fr;
    gap: 28px;
    min-height: auto;
    padding: 42px 20px 64px;
  }

  .photo-hero {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 42px;
  }

  h2 {
    font-size: 30px;
  }

  .lead {
    font-size: 17px;
  }

  .hero-visual,
  .visual-board,
  .hero-photo {
    min-height: 380px;
  }

  .hero-photo img {
    min-height: 380px;
  }

  .mock-window {
    inset: 34px 24px auto;
    height: 220px;
  }

  .mock-panel {
    right: 20px;
    bottom: 22px;
    width: calc(100% - 40px);
  }

  .section {
    padding: 62px 20px;
  }

  .section-head,
  .split,
  .contact-panel,
  .footer {
    display: block;
  }

  .section-head p {
    margin-top: 12px;
  }

  .template-grid,
  .product-grid,
  .scene-grid {
    grid-template-columns: 1fr;
  }

  .feature-grid,
  .process-grid,
  .stats {
    grid-template-columns: 1fr;
  }

  .contact-options {
    margin-top: 22px;
  }

  .footer {
    padding: 28px 20px 92px;
  }

  .float-consult {
    right: 12px;
    left: 12px;
    bottom: 12px;
    justify-content: center;
  }
}

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

  .hero-copy,
  .hero-visual,
  .visual-board,
  .hero-photo {
    width: 100%;
    max-width: 350px;
  }

  .btn {
    min-height: 44px;
    padding: 0 16px;
    font-size: 14px;
  }

  h1 {
    font-size: 34px;
  }

  h2 {
    font-size: 27px;
  }

  h3 {
    font-size: 20px;
  }

  .hero-actions,
  .section-actions,
  .contact-options {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn,
  .section-actions .btn,
  .contact-options .btn {
    width: 100%;
  }

  .hero-visual,
  .visual-board,
  .hero-photo {
    min-height: 330px;
  }

  .hero-photo img {
    min-height: 330px;
  }

  .photo-badge {
    right: 12px;
    bottom: 76px;
    left: 12px;
    max-width: none;
    padding: 16px;
  }

  .mock-window {
    height: 186px;
  }

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

  .metric strong {
    font-size: 20px;
  }

  .metric span {
    font-size: 12px;
  }
}
