:root {
  --bg: #f7f0e8;
  --bg-soft: #fbf7f2;
  --paper: rgba(255, 251, 247, 0.84);
  --paper-strong: #fffaf6;
  --line: rgba(185, 112, 57, 0.14);
  --line-strong: rgba(185, 112, 57, 0.24);
  --ink: #281e17;
  --ink-soft: rgba(74, 56, 43, 0.78);
  --hero-ink: rgba(255, 246, 239, 0.95);
  --hero-soft: rgba(255, 233, 216, 0.78);
  --accent: #c67742;
  --accent-deep: #a85b2e;
  --container: 1240px;
  --radius-xl: 34px;
  --radius-lg: 26px;
  --radius-md: 18px;
  --shadow-soft: 0 20px 54px rgba(106, 66, 38, 0.08);
  --shadow-hover: 0 26px 66px rgba(106, 66, 38, 0.14);
  --font-ui: "Source Han Sans SC", "Noto Sans SC", "HarmonyOS Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  font-family: var(--font-ui);
  background:
    radial-gradient(circle at 12% 12%, rgba(255, 227, 198, 0.3), transparent 18%),
    radial-gradient(circle at 88% 10%, rgba(255, 239, 220, 0.24), transparent 18%),
    linear-gradient(180deg, #f8f2eb 0%, #f4ede5 100%);
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.42s ease,
    transform 0.42s ease;
}

body.is-ready {
  opacity: 1;
  transform: none;
}

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

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

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

.detail-header {
  position: sticky;
  top: 0;
  z-index: 30;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(18, 13, 10, 0.78);
  backdrop-filter: blur(18px);
}

.detail-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 84px;
}

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

.detail-brand img {
  width: 56px;
  height: 56px;
  object-fit: contain;
}

.detail-brand strong {
  display: block;
  color: var(--hero-ink);
  font-size: 1.04rem;
}

.detail-brand span {
  display: block;
  margin-top: 4px;
  color: var(--hero-soft);
  font-size: 0.9rem;
}

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

.detail-link,
.detail-button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition:
    transform 0.22s ease,
    box-shadow 0.22s ease,
    border-color 0.22s ease,
    background 0.22s ease;
}

.detail-link {
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--hero-soft);
  background: rgba(255, 255, 255, 0.04);
}

.detail-button {
  color: #fffaf6;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep));
  box-shadow: 0 14px 28px rgba(168, 91, 46, 0.18);
}

.detail-link:hover,
.detail-button:hover,
.detail-related-link:hover {
  transform: translateY(-2px);
}

.detail-main {
  padding-bottom: 84px;
}

.detail-hero {
  position: relative;
  overflow: hidden;
  padding: 64px 0 46px;
  background: #15100d;
}

.detail-hero::before,
.detail-hero::after {
  content: "";
  position: absolute;
  inset: 0;
}

.detail-hero::before {
  background:
    linear-gradient(90deg, rgba(13, 10, 8, 0.88) 14%, rgba(13, 10, 8, 0.56) 56%, rgba(13, 10, 8, 0.24) 100%),
    radial-gradient(circle at 80% 18%, rgba(255, 192, 129, 0.18), transparent 18%);
  z-index: 1;
}

.detail-hero::after {
  background:
    linear-gradient(180deg, rgba(12, 9, 7, 0.12), rgba(12, 9, 7, 0.38)),
    var(--detail-hero-image, none) center center / cover no-repeat;
  opacity: var(--detail-hero-image-opacity, 0.26);
  z-index: 0;
}

.detail-hero-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 28px;
  align-items: center;
}

.detail-type-label,
.mini-label {
  margin: 0;
  color: rgba(255, 232, 214, 0.84);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-copy h1 {
  margin: 18px 0 0;
  color: var(--hero-ink);
  font-size: clamp(3rem, 4.8vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.07em;
}

.detail-en {
  margin: 16px 0 0;
  color: rgba(255, 232, 214, 0.68);
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.detail-summary {
  max-width: 60ch;
  margin: 18px 0 0;
  color: var(--hero-soft);
  line-height: 1.9;
}

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

.detail-metric {
  padding: 18px 18px 20px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(10px);
}

.detail-metric strong {
  display: block;
  color: var(--hero-ink);
  font-size: 1.28rem;
}

.detail-metric span {
  display: block;
  margin-top: 8px;
  color: var(--hero-soft);
}

.detail-stage {
  min-height: 468px;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0.04)),
    radial-gradient(circle at top left, rgba(255, 205, 153, 0.14), transparent 24%);
  box-shadow: 0 22px 64px rgba(8, 6, 5, 0.22);
}

.product-stage-v2,
.solution-stage-v2 {
  height: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 16px;
}

.product-stage-gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.product-stage-gallery-single {
  grid-template-columns: 1fr;
}

.product-stage-image {
  min-height: 292px;
  display: grid;
  place-items: center;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.product-stage-image img {
  width: min(100%, 260px);
  max-height: 260px;
  object-fit: contain;
  filter: drop-shadow(0 18px 32px rgba(11, 8, 7, 0.18));
}

.detail-stage-aside {
  display: grid;
  gap: 14px;
}

.detail-aside-card,
.detail-panel,
.detail-related-link {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.8);
  box-shadow: var(--shadow-soft);
}

.detail-aside-card {
  padding: 20px;
  border-radius: 24px;
}

.detail-aside-card h3 {
  margin: 12px 0 0;
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.42;
}

.detail-aside-card ul {
  margin: 14px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.8;
}

.solution-stage-visual {
  position: relative;
  min-height: 100%;
  border-radius: 28px;
  overflow: hidden;
  background:
    linear-gradient(180deg, rgba(14, 10, 8, 0.16), rgba(14, 10, 8, 0.56)),
    var(--detail-stage-image, none) center center / cover no-repeat;
}

.solution-stage-copy {
  position: absolute;
  inset: auto 22px 22px 22px;
  color: var(--hero-ink);
}

.solution-stage-copy strong {
  display: block;
  margin-top: 14px;
  font-size: 2rem;
  line-height: 1.1;
  letter-spacing: -0.04em;
}

.solution-stage-copy p {
  margin: 12px 0 0;
  color: var(--hero-soft);
  line-height: 1.84;
}

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

.solution-flow-card {
  padding: 20px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(10px);
}

.solution-flow-step {
  display: inline-flex;
  min-width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 234, 218, 0.9);
  font-weight: 700;
}

.solution-flow-card strong {
  display: block;
  margin-top: 14px;
  color: var(--hero-ink);
  font-size: 1.1rem;
  line-height: 1.5;
}

.detail-sections {
  padding: 82px 0 36px;
}

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

.detail-panel {
  padding: 24px;
  border-radius: var(--radius-lg);
}

.detail-panel-head {
  display: flex;
  align-items: center;
  gap: 14px;
}

.detail-panel-index {
  display: inline-flex;
  min-width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: var(--accent-deep);
  background: rgba(255, 233, 216, 0.92);
  font-weight: 700;
}

.detail-panel h3 {
  margin: 0;
  font-size: 1.22rem;
}

.detail-panel ul {
  margin: 18px 0 0;
  padding-left: 18px;
  color: var(--ink-soft);
  line-height: 1.84;
}

.detail-related {
  padding: 28px 0 0;
}

.detail-section-heading p {
  margin: 0;
  color: var(--accent);
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.detail-section-heading h2 {
  margin: 16px 0 0;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1.08;
  letter-spacing: -0.05em;
}

.detail-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}

.detail-related-link {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border-radius: var(--radius-lg);
}

.detail-related-media {
  aspect-ratio: 1.6 / 1;
  background-position: center;
  background-size: cover;
}

.detail-related-copy {
  padding: 22px;
}

.detail-related-copy span {
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.detail-related-copy strong {
  display: block;
  margin-top: 14px;
  font-size: 1.18rem;
  line-height: 1.42;
}

.detail-related-copy p {
  margin: 12px 0 0;
  color: var(--ink-soft);
  line-height: 1.78;
}

@media (max-width: 1180px) {
  .detail-hero-layout,
  .product-stage-v2,
  .solution-stage-v2 {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .container {
    width: min(calc(100% - 40px), var(--container));
  }

  .detail-header-inner {
    flex-wrap: wrap;
    padding: 14px 0;
  }

  .detail-header-actions {
    width: 100%;
  }

  .detail-header-actions a {
    flex: 1;
  }

  .detail-metrics,
  .detail-panel-grid,
  .detail-related-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .container {
    width: min(calc(100% - 28px), var(--container));
  }

  .detail-copy h1 {
    font-size: clamp(2.4rem, 10vw, 3.8rem);
  }

  .detail-stage,
  .detail-panel,
  .detail-aside-card {
    padding: 18px;
  }

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