*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --dw-bg: #E9E4DA;
  --dw-paper: #FBF8F1;
  --dw-ink: #3F4141;
  --dw-muted: #85827B;
  --dw-green: #5A7048;
  --dw-red: #A64A3A;
  --dw-gold: #C8A96E;
  --dw-line: rgba(90, 112, 72, 0.16);
  --dw-serif: 'Noto Serif SC', 'Songti SC', serif;
  --dw-sans: 'Noto Sans SC', -apple-system, 'PingFang SC', sans-serif;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  overflow-x: hidden;
  background: var(--dw-bg);
  color: var(--dw-ink);
  font-family: var(--dw-sans);
  font-weight: 300;
  line-height: 1.85;
  letter-spacing: 0.02em;
  -webkit-font-smoothing: antialiased;
}

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

.dw-topbar {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 1.2rem;
  align-items: center;
  padding: 1rem clamp(1.2rem, 4vw, 3rem);
  background: linear-gradient(180deg, rgba(233, 228, 218, 0.88), rgba(233, 228, 218, 0));
  color: rgba(63, 65, 65, 0.72);
  font-size: 0.76rem;
  letter-spacing: 0.14em;
}

.dw-topbar__nav {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 3vw, 2.4rem);
}

.dw-topbar a {
  transition: color 0.3s ease, transform 0.3s ease;
}

.dw-topbar a:hover {
  color: var(--dw-red);
  transform: translateY(-1px);
}

.dw-hero {
  position: relative;
  min-height: 96vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: clamp(6rem, 10vw, 9rem) clamp(1.4rem, 7vw, 8rem) clamp(4rem, 7vw, 6rem);
}

.dw-hero__bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(233, 228, 218, 0.96) 0%, rgba(233, 228, 218, 0.8) 42%, rgba(233, 228, 218, 0.42) 100%),
    url("images/duanwubg.webp") center / cover no-repeat;
}

.dw-hero::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 30%;
  background: linear-gradient(180deg, transparent, var(--dw-bg));
  pointer-events: none;
}

.dw-hero__inner {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.dw-hero__eyebrow {
  margin-bottom: 1.6rem;
  color: var(--dw-red);
  font-size: 0.78rem;
  letter-spacing: 0.3em;
}

.dw-hero h1 {
  font-family: var(--dw-serif);
  font-size: clamp(3.4rem, 8vw, 7.8rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: 0.07em;
  color: #3F4141;
}

.dw-hero__sub {
  margin-top: 1.5rem;
  color: var(--dw-gold);
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.18em;
}

.dw-hero__intro {
  max-width: 440px;
  margin-top: 3.2rem;
  color: var(--dw-muted);
  font-family: var(--dw-serif);
  font-size: clamp(1rem, 1.4vw, 1.22rem);
  line-height: 2;
}

.dw-hero__visual {
  position: absolute;
  right: clamp(1.2rem, 8vw, 8rem);
  bottom: clamp(4rem, 10vw, 8rem);
  z-index: 2;
  width: clamp(220px, 28vw, 420px);
  height: clamp(180px, 24vw, 340px);
}

.dw-hero-card {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 78%;
  aspect-ratio: 1.72 / 1;
  padding: clamp(1rem, 2vw, 1.6rem);
  background: rgba(255, 250, 239, 0.9);
  border: 1px solid rgba(200, 169, 110, 0.42);
  box-shadow: 0 28px 62px rgba(63, 45, 25, 0.13);
  transform: rotate(-3deg);
  animation: dwCardDrift 6s ease-in-out infinite;
}

.dw-hero-card span,
.dw-hero-card em {
  display: block;
  color: var(--dw-gold);
  font-size: 0.68rem;
  letter-spacing: 0.16em;
}

.dw-hero-card strong {
  display: block;
  margin: 1.2rem 0 0.8rem;
  color: var(--dw-red);
  font-family: var(--dw-serif);
  font-size: clamp(1.2rem, 2.6vw, 2.2rem);
  letter-spacing: 0.12em;
}

.dw-hero-lychee {
  position: absolute;
  left: 0;
  top: 6%;
  width: 46%;
  aspect-ratio: 1;
  animation: dwFloat 5s ease-in-out infinite;
}

.dw-hero-lychee i {
  position: absolute;
  display: block;
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 30%, #F8B6AA 0 8%, transparent 9%),
    radial-gradient(circle at 70% 64%, #F5A295 0 6%, transparent 7%),
    #C94138;
  box-shadow: inset -10px -12px 0 rgba(110, 26, 22, 0.14);
}

.dw-hero-lychee i:nth-child(1) {
  width: 58%;
  height: 58%;
  left: 10%;
  top: 18%;
}

.dw-hero-lychee i:nth-child(2) {
  width: 66%;
  height: 66%;
  right: 2%;
  top: 2%;
  background-color: #D95848;
}

.dw-hero-lychee i:nth-child(3) {
  width: 48%;
  height: 48%;
  left: 34%;
  bottom: 0;
  background-color: #B93932;
}

.dw-story {
  max-width: 980px;
  margin: 0 auto;
  padding: clamp(5rem, 10vw, 9rem) clamp(1.4rem, 5vw, 4rem);
}

.dw-story__label,
.dw-section__head span,
.dw-enterprise__intro span,
.dw-contact-card span {
  display: block;
  margin-bottom: 1.2rem;
  color: var(--dw-gold);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.24em;
}

.dw-story__text {
  max-width: 760px;
}

.dw-story__text p {
  margin-bottom: 1.7rem;
  color: #74716B;
  font-family: var(--dw-serif);
  font-size: clamp(1.08rem, 1.8vw, 1.45rem);
  line-height: 2.15;
}

.dw-story__text blockquote {
  margin-top: 3rem;
  padding-left: 1.2rem;
  border-left: 3px solid rgba(200, 169, 110, 0.58);
  color: #9A7D50;
  font-family: var(--dw-serif);
  font-size: clamp(1.05rem, 1.55vw, 1.25rem);
  line-height: 2;
}

.dw-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: clamp(4rem, 8vw, 7rem) clamp(1.4rem, 5vw, 4rem);
}

.dw-section__head {
  margin-bottom: clamp(2rem, 4vw, 3rem);
}

.dw-section__head h2,
.dw-enterprise__intro h2,
.dw-contact-card h3 {
  font-family: var(--dw-serif);
  font-size: clamp(1.9rem, 4vw, 3.2rem);
  font-weight: 500;
  line-height: 1.38;
  letter-spacing: 0.08em;
}

.dw-section__head p,
.dw-enterprise__intro p {
  max-width: 680px;
  margin-top: 0.9rem;
  color: var(--dw-muted);
}

.dw-program {
  background: var(--dw-paper);
  max-width: none;
}

.dw-program > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.dw-program__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: clamp(1rem, 2vw, 1.5rem);
}

.dw-program-card,
.dw-flow-step,
.dw-custom-grid article {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(200, 169, 110, 0.18);
}

.dw-program-card {
  padding: clamp(1.2rem, 2.4vw, 1.8rem);
  transition: transform 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}

.dw-program-card:hover {
  transform: translateY(-4px);
  border-color: rgba(200, 169, 110, 0.38);
  box-shadow: 0 18px 42px rgba(80, 61, 38, 0.08);
}

.dw-product-image {
  position: relative;
  aspect-ratio: 1.55 / 1;
  margin-bottom: 1.4rem;
  background: linear-gradient(135deg, #F8F1E7, #EFE0CC);
  overflow: hidden;
}

.dw-product-image img,
.dw-lychee-photo img,
.dw-flow-map img,
.dw-custom-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: transform 0.7s cubic-bezier(0.2, 0.7, 0.2, 1), filter 0.5s ease;
}

.dw-product-image img {
  object-fit: contain;
  padding: clamp(0.6rem, 1.5vw, 1rem);
}

.dw-program-card:hover .dw-product-image img,
.dw-program-card:hover .dw-lychee-photo img {
  transform: scale(1.035);
  filter: saturate(1.04);
}

.dw-product-image::after,
.dw-lychee-photo::after,
.dw-custom-image::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 0%, rgba(255, 255, 255, 0.42) 45%, transparent 68%);
  transform: translateX(-120%);
  transition: transform 0.75s ease;
  pointer-events: none;
}

.dw-program-card:hover .dw-product-image::after,
.dw-program-card:hover .dw-lychee-photo::after,
.dw-custom-grid article:hover .dw-custom-image::after {
  transform: translateX(120%);
}

.dw-program-card h3,
.dw-flow-step h3,
.dw-custom-grid h3 {
  margin-bottom: 0.45rem;
  font-family: var(--dw-serif);
  font-size: 1.1rem;
  letter-spacing: 0.08em;
}

.dw-program-card p,
.dw-flow-step p,
.dw-custom-grid p,
.dw-price-line em {
  color: var(--dw-muted);
  font-size: 0.9rem;
}

.dw-program-card--wide {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 0.86fr) minmax(0, 1.15fr) auto;
  gap: clamp(1rem, 4vw, 3rem);
  align-items: stretch;
}

.dw-lychee-info {
  display: flex;
  align-items: center;
}

.dw-lychee-photo {
  position: relative;
  min-height: 340px;
  overflow: hidden;
  background: #EFE0CC;
}

.dw-lychee-info p + p {
  margin-top: 0.85rem;
}

.dw-lychee-points {
  display: grid;
  gap: 0.55rem;
  margin-top: 1.1rem;
  padding-left: 1.1rem;
  color: var(--dw-muted);
  font-size: 0.88rem;
  line-height: 1.85;
}

.dw-lychee-points li::marker {
  color: var(--dw-red);
}

.dw-price-line {
  min-width: 220px;
  padding-left: 1.5rem;
  border-left: 1px solid rgba(200, 169, 110, 0.32);
}

.dw-price-line span,
.dw-price-line em {
  display: block;
}

.dw-price-line strong {
  display: block;
  margin: 0.25rem 0;
  color: var(--dw-red);
  font-family: var(--dw-serif);
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.1;
}

.dw-flow__rail {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.dw-flow-map {
  position: relative;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(200, 169, 110, 0.2);
  box-shadow: 0 18px 42px rgba(80, 61, 38, 0.08);
}

.dw-flow-map img {
  height: auto;
  object-fit: contain;
}

.dw-flow-map:hover img {
  transform: scale(1.018);
}

.dw-flow-step {
  position: relative;
  min-height: 300px;
  padding: 1.4rem;
}

.dw-flow-step span {
  color: var(--dw-red);
  font-family: var(--dw-serif);
  font-size: 1.7rem;
}

.dw-flow-icon {
  height: 118px;
  margin-bottom: 1.2rem;
  border: 1px solid rgba(200, 169, 110, 0.22);
  background: linear-gradient(135deg, #FFF9EF, #EFE1D1);
  position: relative;
  overflow: hidden;
}

.dw-flow-icon::before,
.dw-flow-icon::after {
  content: '';
  position: absolute;
  background: var(--dw-red);
}

.dw-flow-icon--buy::before {
  left: 28%;
  top: 30%;
  width: 44%;
  height: 40%;
  border-radius: 4px;
  background: #FFF;
  border: 2px solid var(--dw-gold);
}

.dw-flow-icon--buy::after {
  left: 36%;
  top: 22%;
  width: 28%;
  height: 18%;
  border: 2px solid var(--dw-green);
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  background: transparent;
}

.dw-flow-icon--mail::before {
  left: 22%;
  top: 34%;
  width: 56%;
  height: 36%;
  background: #FFF7E8;
  border: 2px solid var(--dw-gold);
}

.dw-flow-icon--mail::after {
  left: 22%;
  top: 34%;
  width: 56%;
  height: 36%;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  background: rgba(200, 169, 110, 0.26);
}

.dw-flow-icon--gift::before {
  left: 26%;
  top: 28%;
  width: 48%;
  height: 44%;
  background: #FFF;
  border: 2px solid var(--dw-red);
}

.dw-flow-icon--gift::after {
  left: 48%;
  top: 25%;
  width: 4%;
  height: 50%;
  background: var(--dw-red);
  box-shadow: -34px 20px 0 0 var(--dw-red), 34px 20px 0 0 var(--dw-red);
}

.dw-flow-icon--scan::before {
  left: 32%;
  top: 22%;
  width: 36%;
  height: 56%;
  border-radius: 10px;
  background: #FFF;
  border: 2px solid var(--dw-green);
}

.dw-flow-icon--scan::after {
  left: 42%;
  top: 38%;
  width: 16%;
  height: 16%;
  background: var(--dw-red);
  box-shadow: 14px 0 0 var(--dw-red), 0 14px 0 var(--dw-red), 14px 14px 0 var(--dw-gold);
}

.dw-enterprise {
  max-width: none;
  background: #3F4141;
  color: var(--dw-paper);
}

.dw-enterprise > * {
  max-width: 1180px;
  margin-left: auto;
  margin-right: auto;
}

.dw-enterprise__intro p,
.dw-custom-grid p {
  color: rgba(251, 248, 241, 0.62);
}

.dw-custom-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-top: 2.6rem;
}

.dw-custom-grid article {
  padding: clamp(1.2rem, 2vw, 1.8rem);
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(200, 169, 110, 0.22);
  transition: transform 0.4s ease, border-color 0.4s ease, background 0.4s ease;
}

.dw-custom-grid article:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(200, 169, 110, 0.42);
}

.dw-custom-image {
  position: relative;
  aspect-ratio: 1.4 / 1;
  margin: -0.25rem -0.25rem 1rem;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.08);
}

.dw-custom-image--small img {
  object-fit: contain;
  padding: 0.6rem;
  background: rgba(255, 255, 255, 0.06);
}

.dw-contact-card {
  display: flex;
  justify-content: space-between;
  gap: 2rem;
  align-items: center;
  margin-top: 2.6rem;
  padding: clamp(1.4rem, 3vw, 2rem);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(200, 169, 110, 0.24);
}

.dw-contact-card h3 {
  font-size: clamp(1.35rem, 2.4vw, 2rem);
}

.dw-contact-card__info {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
  color: rgba(251, 248, 241, 0.78);
  font-size: 0.88rem;
}

.dw-contact-card__info a,
.dw-contact-card__info span {
  padding: 0.48rem 0.85rem;
  border: 1px solid rgba(200, 169, 110, 0.28);
}

.dw-ending {
  padding: clamp(5rem, 10vw, 8rem) 1.4rem;
  text-align: center;
  color: var(--dw-muted);
}

.dw-home-light {
  width: min(320px, 74vw);
  margin: 0 auto 2.2rem;
}

.dw-home-light svg {
  width: 100%;
  height: auto;
  display: block;
}

.dw-light-glow {
  opacity: 0.18;
  transform-box: fill-box;
  transform-origin: center;
  animation: dwLightGlow 3.4s ease-in-out infinite;
}

.dw-window-light {
  transform-box: fill-box;
  transform-origin: center;
  animation: dwWindowWait 3.4s ease-in-out infinite;
}

.dw-smoke {
  stroke-dasharray: 70;
  stroke-dashoffset: 70;
  animation: dwSmokeRise 3.6s ease-in-out infinite;
}

.dw-smoke--2 {
  animation-delay: 0.8s;
}

.dw-ending p {
  margin-bottom: 1.4rem;
  line-height: 2;
}

.dw-ending strong {
  color: #F09A2A;
  font-family: var(--dw-serif);
  font-size: clamp(1.18rem, 2.4vw, 1.8rem);
  letter-spacing: 0.08em;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

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

@keyframes dwFloat {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes dwCardDrift {
  0%, 100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-8px) rotate(-1deg); }
}

@keyframes dwLightGlow {
  0%, 100% { opacity: 0.16; transform: scale(0.94); }
  50% { opacity: 0.36; transform: scale(1.05); }
}

@keyframes dwWindowWait {
  0%, 100% { opacity: 0.72; }
  50% { opacity: 1; }
}

@keyframes dwSmokeRise {
  0% { opacity: 0; stroke-dashoffset: 70; transform: translateY(8px); }
  35% { opacity: 0.75; }
  100% { opacity: 0; stroke-dashoffset: 0; transform: translateY(-10px); }
}

@media (max-width: 1024px) {
  .dw-topbar__nav {
    display: none;
  }

  .dw-hero__visual {
    opacity: 0.42;
    right: 1rem;
    bottom: 3rem;
  }

  .dw-program__grid,
  .dw-flow__rail,
  .dw-custom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dw-topbar {
    grid-template-columns: auto auto;
    padding: 0.8rem 1rem;
    font-size: 0.68rem;
  }

  .dw-hero {
    min-height: 88vh;
    padding: 5rem 1.2rem 3.5rem;
  }

  .dw-hero h1 {
    font-size: clamp(2.7rem, 14vw, 4.4rem);
  }

  .dw-hero__intro {
    margin-top: 2rem;
  }

  .dw-hero__visual {
    width: 220px;
    opacity: 0.28;
  }

  .dw-story,
  .dw-section {
    padding-left: 1.2rem;
    padding-right: 1.2rem;
  }

  .dw-program__grid,
  .dw-flow__rail,
  .dw-custom-grid {
    grid-template-columns: 1fr;
  }

  .dw-program-card--wide,
  .dw-contact-card {
    grid-template-columns: 1fr;
    flex-direction: column;
    align-items: flex-start;
  }

  .dw-lychee-info {
    align-items: flex-start;
  }

  .dw-price-line {
    min-width: 0;
    padding-left: 0;
    border-left: 0;
    border-top: 1px solid rgba(200, 169, 110, 0.32);
    padding-top: 1rem;
  }

  .dw-contact-card__info {
    justify-content: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}
