@font-face {
  font-family: "HarmonyOS Sans SC";
  src: local("HarmonyOS Sans SC"), local("HarmonyOS Sans");
  font-display: swap;
}

:root {
  color-scheme: light;
  --ink: #10131f;
  --ink-soft: #2b3046;
  --ink-muted: #4a4f66;
  --paper: #f6f2ea;
  --mist: #eef4f6;
  --porcelain: #fbfaf7;
  --cobalt: #2b5f7a;
  --clay: #c16a3b;
  --jade: #2f6c6f;
  --sun: #d8ad5a;
  --shadow: 0 24px 60px rgba(18, 25, 40, 0.12);
  --shadow-soft: 0 12px 32px rgba(18, 25, 40, 0.08);
}

* {
  box-sizing: border-box;
}

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

body {
  margin: 0;
  font-family: "HarmonyOS Sans SC", "Noto Sans SC", "Source Han Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(900px 420px at 12% 12%, rgba(43, 95, 122, 0.14), rgba(43, 95, 122, 0) 60%),
    radial-gradient(840px 480px at 90% 18%, rgba(193, 106, 59, 0.14), rgba(193, 106, 59, 0) 62%),
    linear-gradient(120deg, #f3ede3 0%, #eef3f6 45%, #fff4e7 100%);
  min-height: 100vh;
}

.page {
  position: relative;
  overflow-x: hidden;
}

.container {
  width: min(1180px, 92vw);
  margin: 0 auto;
}

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

.site-header {
  position: sticky;
  top: 0;
  backdrop-filter: blur(14px);
  background: rgba(246, 242, 234, 0.82);
  border-bottom: 1px solid rgba(16, 19, 31, 0.08);
  z-index: 10;
}

.nav-wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
  gap: 18px;
}

.brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.brand-mark {
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  font-weight: 800;
}

.brand-tag {
  font-size: 0.85rem;
  color: var(--ink-muted);
}

.site-nav {
  display: flex;
  gap: 14px;
  font-size: 0.95rem;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.site-nav a {
  padding: 6px 10px;
  border-radius: 999px;
  transition: all 0.25s ease;
  border: 1px solid rgba(16, 19, 31, 0.0);
}

.site-nav a:hover,
.site-nav a.active {
  background: rgba(43, 95, 122, 0.13);
  border-color: rgba(43, 95, 122, 0.18);
}

.hero {
  padding: 44px 0 30px;
}

.hero-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  align-items: center;
}

.hero-media {
  background: rgba(251, 250, 247, 0.76);
  border-radius: 24px;
  padding: 10px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 19, 31, 0.06);
}

.mosaic {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 12px;
}

.mosaic-main,
.mosaic-side {
  display: grid;
  gap: 12px;
}

.mosaic-side {
  grid-template-rows: repeat(2, minmax(0, 1fr));
}

.photo {
  width: 100%;
  height: 100%;
  border-radius: 18px;
  /* Keep the whole cup visible (no cropping). */
  object-fit: contain;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(16, 19, 31, 0.06);
}

.photo.tall {
  aspect-ratio: 4 / 3;
}

.photo.wide {
  aspect-ratio: 4 / 3;
}

.photo.square {
  aspect-ratio: 1 / 1;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.24em;
  font-size: 0.75rem;
  color: var(--cobalt);
  margin-bottom: 12px;
}

.hero h1 {
  font-size: clamp(2.2rem, 3vw, 3.4rem);
  line-height: 1.14;
  margin: 0 0 12px;
  font-weight: 900;
  letter-spacing: 0.01em;
}

.hero p.lead {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--ink-soft);
  margin: 0 0 16px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 0;
}

.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 0 14px;
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(43, 95, 122, 0.12);
  border: 1px solid rgba(43, 95, 122, 0.14);
  color: var(--cobalt);
  font-size: 0.86rem;
  font-weight: 800;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 999px;
  font-weight: 700;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  border: none;
  cursor: pointer;
}

.btn.btn-large {
  padding: 14px 30px;
  font-size: 1.05rem;
}

.btn.primary {
  background: linear-gradient(120deg, #2b5f7a, #c16a3b);
  color: #fdfbf8;
  box-shadow: var(--shadow-soft);
}

.btn.ghost {
  border: 1px solid rgba(16, 19, 31, 0.18);
  background: rgba(255, 255, 255, 0.55);
  color: var(--ink);
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.btn:disabled,
.btn:disabled:hover {
  cursor: default;
  transform: none;
  box-shadow: none;
}

.pay-btn {
  width: 128px;
  color: #ffffff;
  border: 1px solid transparent;
}

.pay-btn.pay-btn-alipay {
  background: linear-gradient(120deg, #188cff, #0f67ff);
}

.pay-btn.pay-btn-wechat {
  background: linear-gradient(120deg, #18c16a, #07a851);
}

.pay-btn.is-active {
  box-shadow: var(--shadow);
}

.hero-card {
  background: rgba(251, 250, 247, 0.76);
  border-radius: 28px;
  padding: 30px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 19, 31, 0.06);
  display: grid;
  gap: 16px;
}

.hero-card h3 {
  margin: 0 0 6px;
  font-size: 1.15rem;
}

.plan-price {
  margin: 0;
  font-size: 2rem;
  font-weight: 900;
  color: var(--jade);
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(43, 95, 122, 0.12);
  color: var(--cobalt);
  font-size: 0.85rem;
  border: 1px solid rgba(43, 95, 122, 0.12);
}

.section {
  padding: 34px 0;
}

.section-title {
  margin: 0 0 10px;
  font-size: 1.6rem;
  letter-spacing: 0.02em;
}

.section-subtitle {
  margin: 0 0 16px;
  color: var(--ink-muted);
  line-height: 1.8;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.gallery-grid a {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(16, 19, 31, 0.06);
  box-shadow: var(--shadow-soft);
  background: rgba(255, 255, 255, 0.7);
}

.gallery-grid a:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.gallery-grid .photo {
  border: none;
  border-radius: 0;
}

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

.card {
  background: rgba(255, 255, 255, 0.78);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(16, 19, 31, 0.06);
  min-height: 150px;
}

.card h4 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

.card p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

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

.panel {
  background: rgba(251, 250, 247, 0.82);
  border-radius: 22px;
  padding: 20px;
  border: 1px solid rgba(16, 19, 31, 0.06);
  box-shadow: var(--shadow-soft);
}

.panel h3 {
  margin: 0 0 10px;
  font-size: 1.05rem;
}

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

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

.pattern {
  background: rgba(255, 255, 255, 0.8);
  border: 1px solid rgba(16, 19, 31, 0.06);
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow-soft);
}

.pattern .thumb {
  aspect-ratio: 16 / 10;
  background:
    radial-gradient(16px 16px at 22% 34%, rgba(43, 95, 122, 0.24), rgba(43, 95, 122, 0) 70%),
    radial-gradient(18px 18px at 72% 58%, rgba(193, 106, 59, 0.22), rgba(193, 106, 59, 0) 70%),
    linear-gradient(120deg, rgba(238, 244, 246, 1), rgba(255, 244, 231, 1));
}

.pattern figcaption {
  padding: 14px 16px 16px;
}

.pattern strong {
  display: block;
  margin-bottom: 6px;
}

.pattern p {
  margin: 0;
  color: var(--ink-muted);
  line-height: 1.7;
  font-size: 0.92rem;
}

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

.product {
  background: rgba(255, 255, 255, 0.82);
  border-radius: 22px;
  padding: 16px;
  border: 1px solid rgba(16, 19, 31, 0.06);
  box-shadow: var(--shadow-soft);
  display: grid;
  gap: 12px;
}

.product .photo {
  border-radius: 18px;
}

.product-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: baseline;
}

.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(216, 173, 90, 0.16);
  border: 1px solid rgba(216, 173, 90, 0.24);
  color: #7a5d2b;
  font-size: 0.85rem;
  font-weight: 700;
}

.product-title {
  margin: 0;
  font-size: 1.05rem;
}

.price {
  font-weight: 900;
  color: var(--jade);
}

.product p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.75;
}

.product .actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.form {
  display: grid;
  gap: 12px;
}

label {
  display: grid;
  gap: 6px;
  font-weight: 700;
}

input,
textarea,
select {
  font: inherit;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(16, 19, 31, 0.14);
  background: rgba(255, 255, 255, 0.78);
}

textarea {
  min-height: 120px;
  resize: vertical;
}

.form-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 6px;
}

.success {
  display: none;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(47, 108, 111, 0.12);
  border: 1px solid rgba(47, 108, 111, 0.2);
  color: var(--jade);
  font-weight: 700;
}

.success.show {
  display: block;
}

.modal {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(16, 19, 31, 0.46);
  z-index: 30;
}

.modal.is-visible {
  display: flex;
}

.modal-card {
  position: relative;
  width: min(520px, 92vw);
  background: rgba(255, 255, 255, 0.96);
  border-radius: 24px;
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(16, 19, 31, 0.06);
}

.modal-close {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 32px;
  height: 32px;
  border: none;
  border-radius: 50%;
  background: rgba(16, 19, 31, 0.08);
  color: var(--ink);
  font-size: 1.2rem;
  cursor: pointer;
}

.modal-subtitle {
  margin: 6px 0 14px;
  color: var(--ink-muted);
  line-height: 1.7;
}

.modal-note {
  min-height: 1.6em;
  margin: 0 0 12px;
  color: var(--jade);
  font-size: 0.92rem;
  font-weight: 700;
}

.modal-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 14px;
}

.site-footer {
  margin-top: 22px;
  background: rgba(246, 242, 234, 0.75);
  border-top: 1px solid rgba(16, 19, 31, 0.08);
}

.footer-min {
  display: flex;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
  padding: 18px 0;
}

.footer-brand {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 220px;
}

.footer-name {
  font-weight: 900;
  letter-spacing: 0.02em;
}

.footer-meta {
  color: var(--ink-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

.footer-links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--ink-muted);
  font-size: 0.9rem;
}

.footer-links a {
  border-bottom: 1px solid rgba(16, 19, 31, 0.18);
}

.footer-legal {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  padding: 0 0 18px;
  color: var(--ink-muted);
  font-size: 0.85rem;
}

.footer-record {
  border-bottom: 1px solid rgba(16, 19, 31, 0.18);
}

.fade-up,
.fade-in {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.65s ease, transform 0.65s ease;
  transition-delay: var(--delay, 0ms);
}

.fade-in {
  transform: translateY(0);
}

.is-visible .fade-up,
.fade-up.is-visible,
.fade-in.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  }

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

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

  .footer-min {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 560px) {
  .hero {
    padding: 44px 0 32px;
  }

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

  .gallery-grid {
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  }

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