:root {
  --pink: #f7abc3;
  --rose: #df5f86;
  --cream: #fff8f2;
  --peach: #ffe8df;
  --cocoa: #553f39;
  --ink: #2c2524;
  --leaf: #6f9c72;
  --mint: #dcefdc;
  --gold: #c99647;
  --line: rgba(85, 63, 57, 0.14);
  --shadow: 0 18px 50px rgba(124, 78, 76, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--cream);
  font-family: Poppins, "Microsoft YaHei", sans-serif;
}

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

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 64px);
  background: rgba(255, 248, 242, 0.84);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--cocoa);
  font-family: "Noto Serif SC", serif;
  font-size: 1.15rem;
  font-weight: 700;
  white-space: nowrap;
}

.brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  color: #fff;
  background: var(--rose);
  border-radius: 50%;
  box-shadow: 0 8px 22px rgba(223, 95, 134, 0.28);
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(14px, 3vw, 34px);
  color: rgba(85, 63, 57, 0.82);
  font-size: 0.95rem;
}

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

.icon-button {
  position: relative;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  color: var(--cocoa);
  background: #fff;
  cursor: pointer;
}

.icon-button svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cart-count {
  position: absolute;
  top: -5px;
  right: -3px;
  display: grid;
  min-width: 20px;
  height: 20px;
  place-items: center;
  padding: 0 5px;
  border-radius: 999px;
  color: #fff;
  background: var(--rose);
  font-size: 0.75rem;
  font-weight: 700;
}

.hero {
  position: relative;
  display: grid;
  min-height: calc(100vh - 72px);
  align-items: center;
  overflow: hidden;
  background-image: url("assets/hero-bouquet.png");
  background-position: center;
  background-size: cover;
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 88px;
  background: linear-gradient(to bottom, rgba(255, 248, 242, 0), var(--cream));
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 248, 242, 0.92) 0%, rgba(255, 248, 242, 0.76) 36%, rgba(255, 248, 242, 0.18) 68%),
    linear-gradient(180deg, rgba(255, 232, 223, 0.14), rgba(255, 248, 242, 0.08));
}

.hero-content {
  position: relative;
  z-index: 1;
  width: min(610px, calc(100% - 36px));
  margin-left: clamp(18px, 7vw, 96px);
  padding-bottom: 48px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--rose);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

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

h1,
h2 {
  font-family: "Noto Serif SC", serif;
  color: var(--cocoa);
}

h1 {
  margin-bottom: 16px;
  font-size: clamp(3.6rem, 9vw, 7.4rem);
  line-height: 0.98;
}

h2 {
  margin-bottom: 0;
  font-size: clamp(2rem, 5vw, 3.3rem);
  line-height: 1.15;
}

.hero-copy {
  max-width: 440px;
  margin-bottom: 32px;
  color: rgba(44, 37, 36, 0.78);
  font-size: clamp(1.08rem, 2.5vw, 1.35rem);
  line-height: 1.8;
}

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

.primary-action,
.secondary-action,
.choose-plan,
.pay-button,
.confirm-pay {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 0;
  cursor: pointer;
  font-weight: 700;
}

.primary-action,
.pay-button,
.confirm-pay {
  padding: 0 24px;
  color: #fff;
  background: var(--rose);
  box-shadow: 0 14px 30px rgba(223, 95, 134, 0.28);
}

.secondary-action {
  padding: 0 22px;
  color: var(--cocoa);
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.section {
  padding: clamp(56px, 8vw, 100px) clamp(18px, 5vw, 72px);
}

.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
  max-width: 1180px;
  margin: 0 auto 32px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: 1180px;
  margin: -34px auto 0;
  padding: 0 clamp(18px, 5vw, 72px);
  position: relative;
  z-index: 2;
}

.trust-strip div {
  min-height: 104px;
  padding: 22px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.trust-strip div:first-child {
  border-radius: 8px 0 0 8px;
}

.trust-strip div:last-child {
  border-radius: 0 8px 8px 0;
}

.trust-strip strong,
.trust-strip span {
  display: block;
}

.trust-strip strong {
  margin-bottom: 8px;
  color: var(--cocoa);
}

.trust-strip span {
  color: rgba(44, 37, 36, 0.62);
  font-size: 0.9rem;
  line-height: 1.55;
}

.intro-section {
  padding-top: 70px;
}

.month-grid,
.plans-grid,
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  max-width: 1180px;
  margin: 0 auto;
}

.month-grid article,
.plan-card,
.reviews-grid article,
.gift-panel,
.order-form {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: var(--shadow);
}

.month-grid article {
  min-height: 178px;
  padding: 28px;
}

.flower-dot {
  display: block;
  width: 48px;
  height: 48px;
  margin-bottom: 22px;
  border-radius: 50%;
}

.dot-rose {
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #f5a6bb 9% 46%, #df5f86 47%);
}

.dot-tulip {
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #ffcc77 9% 48%, #77a96d 49%);
}

.dot-lisianthus {
  background: radial-gradient(circle at 35% 30%, #fff 0 8%, #dbc2e8 9% 44%, #5c8a68 45%);
}

.month-grid h3,
.plan-card h3 {
  margin-bottom: 10px;
  color: var(--cocoa);
  font-size: 1.3rem;
}

.month-grid p,
.plan-desc,
.reviews-grid p,
.gift-copy p,
.site-footer p {
  color: rgba(44, 37, 36, 0.66);
  line-height: 1.75;
}

.plans-section {
  background: linear-gradient(180deg, rgba(220, 239, 220, 0.42), rgba(255, 248, 242, 0));
}

.plan-card {
  display: flex;
  min-height: 456px;
  flex-direction: column;
  padding: 28px;
}

.plan-card.featured {
  border-color: rgba(223, 95, 134, 0.45);
  background: #fff;
  transform: translateY(-12px);
}

.plan-tag {
  align-self: flex-start;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  color: var(--rose);
  background: rgba(247, 171, 195, 0.18);
  font-size: 0.78rem;
  font-weight: 700;
}

.price {
  margin: 10px 0 18px;
  color: var(--cocoa);
  font-size: 3rem;
  font-weight: 800;
  line-height: 1;
}

.price span,
.price small {
  font-size: 1rem;
}

.plan-card ul {
  display: grid;
  gap: 10px;
  margin: 0 0 24px;
  padding: 0;
  color: rgba(44, 37, 36, 0.72);
  list-style: none;
}

.plan-card li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--leaf);
  font-weight: 800;
}

.choose-plan {
  width: 100%;
  margin-top: auto;
  color: var(--rose);
  background: rgba(247, 171, 195, 0.16);
  border: 1px solid rgba(223, 95, 134, 0.24);
}

.featured .choose-plan {
  color: #fff;
  background: var(--rose);
}

.gift-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 480px);
  gap: 28px;
  align-items: center;
  max-width: 1180px;
  margin: 0 auto;
}

.gift-copy p {
  max-width: 560px;
  margin: 18px 0 0;
  font-size: 1.05rem;
}

.gift-panel {
  display: grid;
  overflow: hidden;
}

.gift-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 22px;
  border-bottom: 1px solid var(--line);
}

.gift-row:last-child {
  border-bottom: 0;
}

.gift-row span {
  color: rgba(44, 37, 36, 0.62);
}

.gift-row strong {
  color: var(--cocoa);
  text-align: right;
}

.order-section {
  background: var(--peach);
}

.order-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  max-width: 920px;
  margin: 0 auto;
  padding: clamp(20px, 4vw, 34px);
}

label {
  display: grid;
  gap: 8px;
}

label span {
  color: var(--cocoa);
  font-size: 0.9rem;
  font-weight: 700;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid rgba(85, 63, 57, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: #fff;
  outline: 0;
}

input,
select {
  min-height: 48px;
  padding: 0 14px;
}

textarea {
  resize: vertical;
  padding: 13px 14px;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(223, 95, 134, 0.14);
}

.full-field,
.payment-summary,
.pay-button {
  grid-column: 1 / -1;
}

.payment-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px;
  border: 1px solid rgba(223, 95, 134, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.payment-summary span,
.payment-summary p {
  color: rgba(44, 37, 36, 0.62);
}

.payment-summary strong {
  display: block;
  margin-top: 2px;
  color: var(--rose);
  font-size: 2rem;
}

.payment-summary p {
  margin: 0;
  text-align: right;
}

.order-result,
.orders-panel {
  margin-top: 24px;
  padding: 24px;
  border: 1px solid rgba(223, 95, 134, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 34px rgba(44, 37, 36, 0.08);
}

.order-result h3,
.orders-panel h3 {
  margin-bottom: 10px;
}

.order-result p:last-child,
.orders-empty,
.orders-list p {
  color: rgba(44, 37, 36, 0.66);
}

.orders-list {
  display: grid;
  gap: 16px;
}

.order-card {
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255, 248, 242, 0.92), rgba(255, 255, 255, 0.96));
  border: 1px solid rgba(223, 95, 134, 0.14);
}

.order-card p {
  margin: 6px 0;
}

.order-card-head,
.order-card-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.order-card-head span,
.order-card-foot span:last-child {
  color: rgba(44, 37, 36, 0.56);
  font-size: 0.94rem;
}

.order-card-foot span:first-child {
  color: var(--rose);
  font-weight: 700;
}

.reviews-grid article {
  padding: 26px;
}

.reviews-grid strong {
  color: var(--cocoa);
}

.site-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 5vw, 72px);
  color: #fff;
  background: #4b403c;
}

.site-footer p {
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.72);
}

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

.payment-modal {
  width: min(430px, calc(100% - 28px));
  border: 0;
  border-radius: 8px;
  padding: 0;
  background: #fff;
  box-shadow: 0 28px 80px rgba(44, 37, 36, 0.24);
}

.payment-modal::backdrop {
  background: rgba(44, 37, 36, 0.32);
  backdrop-filter: blur(4px);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: var(--cream);
  cursor: pointer;
  font-size: 1.4rem;
}

.modal-content {
  display: grid;
  justify-items: center;
  padding: 34px;
  text-align: center;
}

.modal-content h2 {
  margin-bottom: 8px;
  font-size: 2rem;
}

.modal-content p {
  color: rgba(44, 37, 36, 0.62);
}

.qr-code {
  display: grid;
  grid-template-columns: repeat(4, 24px);
  grid-auto-rows: 24px;
  gap: 6px;
  margin: 18px 0;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.qr-code span {
  background: var(--cocoa);
}

.qr-code span:nth-child(2n),
.qr-code span:nth-child(7),
.qr-code span:nth-child(11) {
  background: var(--pink);
}

.qr-code span:nth-child(5),
.qr-code span:nth-child(8),
.qr-code span:nth-child(14) {
  background: var(--leaf);
}

#modalPrice {
  color: var(--rose);
  font-size: 2.4rem;
}

.payment-tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  width: 100%;
  gap: 8px;
  margin: 18px 0;
}

.payment-tabs button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--cocoa);
  background: #fff;
  cursor: pointer;
}

.payment-tabs button.active {
  border-color: rgba(223, 95, 134, 0.38);
  color: var(--rose);
  background: rgba(247, 171, 195, 0.16);
}

.confirm-pay {
  width: 100%;
}

.toast {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 30;
  transform: translateY(22px);
  opacity: 0;
  pointer-events: none;
  max-width: calc(100vw - 48px);
  padding: 15px 18px;
  border-radius: 8px;
  color: #fff;
  background: var(--cocoa);
  box-shadow: var(--shadow);
  transition: 0.22s ease;
}

.toast.show {
  transform: translateY(0);
  opacity: 1;
}

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

  .hero {
    min-height: 720px;
    background-position: 58% center;
  }

  .hero-overlay {
    background:
      linear-gradient(180deg, rgba(255, 248, 242, 0.9) 0%, rgba(255, 248, 242, 0.72) 42%, rgba(255, 248, 242, 0.26) 100%),
      linear-gradient(90deg, rgba(255, 248, 242, 0.88), rgba(255, 248, 242, 0.16));
  }

  .hero-content {
    align-self: start;
    margin: 76px 18px 0;
    padding-bottom: 0;
  }

  .trust-strip,
  .month-grid,
  .plans-grid,
  .reviews-grid,
  .gift-section,
  .order-form {
    grid-template-columns: 1fr;
  }

  .trust-strip {
    margin-top: -22px;
  }

  .trust-strip div,
  .trust-strip div:first-child,
  .trust-strip div:last-child {
    border-radius: 8px;
  }

  .section-heading,
  .payment-summary,
  .site-footer {
    align-items: flex-start;
    flex-direction: column;
  }

  .plan-card.featured {
    transform: none;
  }

  .payment-summary p {
    text-align: left;
  }
}

@media (max-width: 520px) {
  .site-header {
    padding: 12px 14px;
  }

  .brand {
    font-size: 1rem;
  }

  .brand-mark {
    width: 30px;
    height: 30px;
  }

  .hero-actions,
  .primary-action,
  .secondary-action {
    width: 100%;
  }

  .gift-row {
    flex-direction: column;
    gap: 6px;
  }

  .gift-row strong {
    text-align: left;
  }

  .modal-content {
    padding: 28px 20px;
  }
}
