:root {
  --red: #d4000b;
  --red-dark: #9f0008;
  --ink: #291817;
  --muted: #76615d;
  --paper: #fffaf5;
  --ivory: #fff7ec;
  --gold: #d79d47;
  --gold-soft: #f7e4bb;
  --line: rgba(158, 0, 8, 0.16);
  --shadow: 0 28px 80px rgba(91, 21, 16, 0.14);
  --radius: 26px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--ink);
  font-family: "STSong", "Songti SC", "SimSun", serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(212, 0, 11, 0.09), transparent 28rem),
    radial-gradient(circle at 88% 6%, rgba(215, 157, 71, 0.16), transparent 24rem),
    linear-gradient(135deg, #fffdf9 0%, var(--paper) 48%, #fff3e3 100%);
  min-height: 100vh;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.34;
  background-image:
    linear-gradient(rgba(212, 0, 11, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(212, 0, 11, 0.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, #000, transparent 72%);
}

a { color: inherit; text-decoration: none; }

img { max-width: 100%; display: block; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(20px);
  background: rgba(255, 250, 245, 0.82);
  border-bottom: 1px solid rgba(212, 0, 11, 0.12);
}

.nav-wrap {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  min-height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 170px;
}

.brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  mix-blend-mode: multiply;
}

.brand-name {
  display: grid;
  line-height: 1.05;
}

.brand-name strong {
  color: var(--red);
  font-size: 22px;
  letter-spacing: 0.12em;
}

.brand-name span {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.main-nav {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.main-nav a {
  color: #5d413e;
  font-size: 14px;
  padding: 10px 13px;
  border-radius: 999px;
  transition: 0.22s ease;
}

.main-nav a:hover,
.main-nav a.active {
  color: var(--red);
  background: rgba(212, 0, 11, 0.08);
}

.main-nav .mall-link {
  color: #fff;
  background: var(--red);
  box-shadow: 0 10px 24px rgba(212, 0, 11, 0.22);
}

.main-nav .mall-link:hover { color: #fff; background: var(--red-dark); }

main { position: relative; z-index: 1; }

.section,
.hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
}

.hero {
  padding: 92px 0 62px;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 54px;
  align-items: center;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--red);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  margin-bottom: 18px;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: var(--red);
}

h1, h2, h3 { margin: 0; }

h1 {
  font-family: "STKaiti", "KaiTi", "STSong", serif;
  font-size: clamp(46px, 7vw, 94px);
  line-height: 0.98;
  color: var(--red);
  letter-spacing: 0.07em;
}

.hero-subtitle {
  font-size: clamp(24px, 3.6vw, 42px);
  line-height: 1.28;
  margin: 18px 0 22px;
  color: var(--ink);
  font-weight: 900;
}

.lead {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.95;
  margin: 0;
}

.hero-actions,
.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 32px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--red);
  font-weight: 800;
  letter-spacing: 0.04em;
  transition: transform 0.22s ease, box-shadow 0.22s ease, background 0.22s ease;
}

.btn:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(130, 42, 30, 0.14); }

.btn.primary {
  color: #fff;
  border-color: var(--red);
  background: linear-gradient(135deg, var(--red), #b30008);
  box-shadow: 0 18px 36px rgba(212, 0, 11, 0.24);
}

.btn.dark {
  color: #fff;
  border-color: var(--ink);
  background: var(--ink);
}

.hero-card {
  position: relative;
  padding: 28px;
  border-radius: 38px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(212, 0, 11, 0.13);
  box-shadow: var(--shadow);
  overflow: hidden;
}

.hero-card::before {
  content: "囍";
  position: absolute;
  right: -24px;
  top: -58px;
  font-size: 190px;
  font-weight: 900;
  color: rgba(212, 0, 11, 0.055);
  line-height: 1;
}

.logo-display {
  position: relative;
  padding: 28px;
  border-radius: 28px;
  background: #fff;
  min-height: 420px;
  display: grid;
  place-items: center;
}

.logo-display img {
  width: min(380px, 100%);
  mix-blend-mode: multiply;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 16px;
}

.stat {
  border-radius: 20px;
  padding: 18px;
  background: linear-gradient(180deg, rgba(255, 247, 236, 0.9), rgba(255, 255, 255, 0.88));
  border: 1px solid var(--line);
}

.stat strong {
  display: block;
  color: var(--red);
  font-size: 25px;
  line-height: 1;
}

.stat span { color: var(--muted); font-size: 13px; }

.section { padding: 54px 0; }

.section-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 28px;
  margin-bottom: 28px;
}

.section-title {
  font-size: clamp(28px, 4vw, 48px);
  color: var(--ink);
  letter-spacing: 0.04em;
}

.section-note {
  color: var(--muted);
  line-height: 1.8;
  max-width: 560px;
  margin: 10px 0 0;
}

.grid-3,
.grid-4,
.card-grid {
  display: grid;
  gap: 18px;
}

.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card-grid { grid-template-columns: repeat(3, 1fr); }

.card,
.panel,
.merchant-card,
.rule-card {
  border-radius: var(--radius);
  padding: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
  box-shadow: 0 18px 52px rgba(81, 30, 25, 0.08);
}

.card h3,
.panel h3,
.rule-card h3 {
  color: var(--red);
  font-size: 22px;
  margin-bottom: 10px;
}

.card p,
.panel p,
.rule-card p,
.merchant-card p {
  color: var(--muted);
  line-height: 1.8;
  margin: 0;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 16px;
  border-radius: 999px;
  color: var(--red-dark);
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(212, 0, 11, 0.15);
  font-weight: 700;
}

.merchant-card {
  position: relative;
  overflow: hidden;
}

.merchant-card::after {
  content: "";
  position: absolute;
  inset: auto 24px 0 24px;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--red), var(--gold));
}

.merchant-top {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  margin-bottom: 12px;
}

.merchant-top h3 { font-size: 22px; color: var(--ink); }

.badge {
  flex: none;
  color: #fff;
  background: var(--red);
  border-radius: 999px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 800;
}

.meta {
  display: grid;
  gap: 6px;
  margin: 14px 0 18px;
  color: #785b55;
  font-size: 14px;
}

.mini-actions { display: flex; gap: 10px; flex-wrap: wrap; }

.mini-actions .btn { min-height: 38px; padding: 0 15px; font-size: 13px; }

.page-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 72px 0 34px;
}

.page-title {
  font-size: clamp(38px, 5vw, 70px);
  color: var(--red);
  font-family: "STKaiti", "KaiTi", "STSong", serif;
  letter-spacing: 0.08em;
}

.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 24px 24px 24px 72px;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid var(--line);
}

.step::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  left: 22px;
  top: 22px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--red);
  font-weight: 900;
}

.info-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.76);
  box-shadow: var(--shadow);
}

.info-table th,
.info-table td {
  text-align: left;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  vertical-align: top;
}

.info-table th {
  color: var(--red-dark);
  width: 220px;
  background: rgba(212, 0, 11, 0.05);
}

.prose {
  font-size: 16px;
  line-height: 2;
  color: #5f4642;
}

.prose h2 {
  color: var(--red);
  font-size: 28px;
  margin: 34px 0 12px;
}

.prose h3 {
  color: var(--ink);
  font-size: 21px;
  margin: 24px 0 8px;
}

.prose p { margin: 0 0 14px; }
.prose ul { margin: 0 0 18px; padding-left: 1.4em; }

.notice {
  border-left: 5px solid var(--red);
  padding: 18px 20px;
  background: rgba(212, 0, 11, 0.06);
  border-radius: 18px;
  color: #69443f;
  line-height: 1.8;
}

.site-footer {
  position: relative;
  z-index: 1;
  margin-top: 54px;
  background: #210f0e;
  color: rgba(255, 255, 255, 0.78);
}

.footer-inner {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 44px 0 34px;
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 34px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.footer-brand img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  background: #fff;
  border-radius: 18px;
}

.footer-brand strong { display: block; color: #fff; font-size: 24px; letter-spacing: 0.16em; }
.footer-brand span { color: rgba(255,255,255,0.62); font-size: 13px; }

.footer-links {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px 20px;
  align-content: center;
}

.footer-links a:hover { color: #fff; }

.beian {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: underline;
  text-underline-offset: 4px;
}

.footer-bottom {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 18px 0 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 14px;
}

@media (max-width: 980px) {
  .hero { grid-template-columns: 1fr; padding-top: 58px; }
  .grid-3, .grid-4, .card-grid, .steps { grid-template-columns: repeat(2, 1fr); }
  .section-head { display: block; }
  .main-nav { gap: 2px; }
  .main-nav a { padding: 8px 9px; font-size: 13px; }
}

@media (max-width: 680px) {
  .nav-wrap { width: min(100% - 24px, 1180px); min-height: auto; padding: 12px 0; display: block; }
  .main-nav { justify-content: flex-start; margin-top: 12px; }
  .section, .hero, .page-hero, .footer-inner, .footer-bottom { width: min(100% - 24px, 1180px); }
  .grid-3, .grid-4, .card-grid, .steps, .stat-row { grid-template-columns: 1fr; }
  .hero-card { padding: 16px; }
  .logo-display { min-height: 270px; }
  .footer-inner { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
  .info-table th, .info-table td { display: block; width: 100%; }
}


/* Static mall decoration */
.mall-hero {
  width: min(1180px, calc(100% - 40px));
  margin: 34px auto 0;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 22px;
  align-items: stretch;
}
.mall-banner {
  min-height: 420px;
  border-radius: 36px;
  padding: 44px;
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(212,0,11,.96), rgba(139,0,7,.92)),
    radial-gradient(circle at 82% 18%, rgba(255,255,255,.34), transparent 22rem);
  box-shadow: 0 34px 80px rgba(142,0,8,.24);
}
.mall-banner::before {
  content: "囍";
  position: absolute;
  right: 24px;
  top: 8px;
  font-size: 220px;
  line-height: 1;
  color: rgba(255,255,255,.11);
  font-weight: 900;
}
.mall-banner::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -110px;
  width: 330px;
  height: 330px;
  border-radius: 50%;
  border: 42px solid rgba(255,255,255,.12);
}
.mall-banner h1 { color: #fff; font-size: clamp(42px, 6vw, 78px); }
.mall-banner .lead { color: rgba(255,255,255,.86); max-width: 620px; }
.mall-banner .eyebrow { color: #fff; }
.mall-banner .eyebrow::before { background: #fff; }
.mall-side {
  display: grid;
  gap: 18px;
}
.promo-card {
  min-height: 198px;
  border-radius: 32px;
  padding: 28px;
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background: rgba(255,255,255,.82);
  box-shadow: var(--shadow);
}
.promo-card strong { display:block; font-size: 32px; color: var(--red); margin-bottom: 8px; }
.promo-card span { color: var(--muted); line-height: 1.8; }
.promo-card::after {
  content: attr(data-mark);
  position: absolute;
  right: 18px;
  bottom: -12px;
  color: rgba(212,0,11,.08);
  font-size: 116px;
  font-weight: 900;
}
.mall-tabs {
  width: min(1180px, calc(100% - 40px));
  margin: 22px auto 0;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
}
.mall-tab {
  border-radius: 22px;
  min-height: 88px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 14px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--red-dark);
  font-weight: 900;
  box-shadow: 0 12px 32px rgba(91,21,16,.08);
}
.product-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product-card {
  border-radius: 30px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 20px 54px rgba(91,21,16,.1);
}
.product-media,
.store-cover {
  min-height: 210px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  color: rgba(255,255,255,.92);
  text-align: center;
  padding: 22px;
  background: linear-gradient(135deg, #d4000b, #f0b657);
}
.product-media.flower { background: linear-gradient(135deg, #d4000b, #ff9ab0 55%, #f6c35a); }
.product-media.date { background: linear-gradient(135deg, #7b1f1a, #d4000b 52%, #f3c36a); }
.product-media.proposal { background: linear-gradient(135deg, #a00009, #d4000b 45%, #1f1110); }
.product-media::before,
.store-cover::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255,255,255,.46);
  border-radius: 24px;
}
.product-media::after,
.store-cover::after {
  content: attr(data-icon);
  position: absolute;
  right: 18px;
  bottom: -18px;
  font-size: 120px;
  color: rgba(255,255,255,.18);
  line-height: 1;
}
.product-media strong,
.store-cover strong { position: relative; z-index: 1; font-size: 30px; letter-spacing: .08em; }
.product-body { padding: 22px; }
.product-body h3 { color: var(--ink); font-size: 22px; margin-bottom: 8px; }
.product-body p { color: var(--muted); line-height: 1.75; margin: 0 0 14px; }
.price-row { display:flex; align-items:end; justify-content:space-between; gap: 12px; margin: 14px 0 18px; }
.price { color: var(--red); font-size: 30px; font-weight: 900; }
.price small { font-size: 14px; color: var(--muted); font-weight: 700; }
.service-points { display:flex; flex-wrap:wrap; gap: 8px; margin: 14px 0; }
.service-points span { border-radius:999px; background: rgba(212,0,11,.07); color: var(--red-dark); padding: 6px 10px; font-size: 13px; font-weight: 800; }
.store-detail {
  border-radius: 34px;
  overflow: hidden;
  background: rgba(255,255,255,.82);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.store-head { display:grid; grid-template-columns: 320px 1fr; gap: 0; }
.store-cover { min-height: 100%; }
.store-info { padding: 30px; }
.store-title-row { display:flex; gap: 18px; align-items:center; margin-bottom: 14px; }
.store-logo {
  width: 74px;
  height: 74px;
  flex: none;
  border-radius: 24px;
  display:grid;
  place-items:center;
  background: var(--red);
  color: #fff;
  font-size: 28px;
  font-weight: 900;
  box-shadow: 0 14px 32px rgba(212,0,11,.22);
}
.store-info h2 { color: var(--ink); font-size: 34px; }
.store-info p { color: var(--muted); line-height: 1.8; }
.goods-detail {
  border-radius: 34px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.goods-layout { display:grid; grid-template-columns: 420px 1fr; }
.goods-layout .product-media { min-height: 100%; }
.goods-info { padding: 34px; }
.goods-info h2 { font-size: 38px; color: var(--ink); }
.buy-box {
  margin-top: 20px;
  border-radius: 24px;
  padding: 20px;
  background: rgba(212,0,11,.055);
  border: 1px solid var(--line);
}
@media (max-width: 980px) {
  .mall-hero, .store-head, .goods-layout { grid-template-columns: 1fr; }
  .mall-tabs { grid-template-columns: repeat(3, 1fr); }
  .product-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 680px) {
  .mall-hero, .mall-tabs { width: min(100% - 24px, 1180px); }
  .mall-banner { padding: 28px; min-height: 360px; }
  .mall-tabs, .product-grid { grid-template-columns: 1fr; }
}

.form-grid { display:grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.form-field { display:grid; gap: 8px; }
.form-field label { color: var(--red-dark); font-weight: 900; }
.form-field input, .form-field select, .form-field textarea { width:100%; border:1px solid var(--line); background:rgba(255,255,255,.86); border-radius:16px; padding:13px 14px; color:var(--ink); font:inherit; }
.form-field textarea { min-height: 110px; resize: vertical; }
.upload-box { border:1px dashed rgba(212,0,11,.38); background:rgba(212,0,11,.045); border-radius:18px; padding:18px; color:var(--muted); line-height:1.7; }
@media (max-width: 680px) { .form-grid { grid-template-columns: 1fr; } }

.upload-box { cursor: pointer; display: block; }
.upload-box input[type="file"] { display: none; }
.upload-box .upload-title { display:block; color: var(--ink); font-weight: 900; margin-bottom: 6px; }
.upload-box .upload-hint { display:block; color: var(--muted); font-size: 14px; }
.upload-box .file-name { display:block; margin-top: 8px; color: var(--red); font-weight: 900; }

.feedback-box { display:none; margin-top:18px; border-radius:22px; padding:18px 20px; background:rgba(212,0,11,.07); border:1px solid rgba(212,0,11,.22); color:var(--ink); line-height:1.8; }
.feedback-box.show { display:block; }
.feedback-box strong { color:var(--red); }
.form-error { display:none; margin-top:14px; color:var(--red); font-weight:900; }
.form-error.show { display:block; }
button.btn { cursor:pointer; font-family:inherit; font-size:inherit; }

.mall-hero.full { grid-template-columns: 1fr; }
.mall-banner.with-photo { min-height: 520px; background: linear-gradient(90deg, rgba(73,0,4,.88), rgba(139,0,7,.52), rgba(0,0,0,.12)), var(--banner-image) center/cover no-repeat; }
.mall-banner.with-photo::before { color: rgba(255,255,255,.16); }
.product-media.has-photo, .store-cover.has-photo { background: #3a1614; padding: 0; }
.product-media.has-photo img, .store-cover.has-photo img { position:absolute; inset:0; width:100%; height:100%; object-fit:cover; }
.product-media.has-photo::before, .store-cover.has-photo::before { z-index:2; }
.product-media.has-photo::after, .store-cover.has-photo::after { z-index:2; }
.product-media.has-photo strong, .store-cover.has-photo strong { position:relative; z-index:3; padding: 12px 18px; border-radius: 18px; background: rgba(44,12,10,.42); backdrop-filter: blur(8px); }
.product-media.has-photo::selection, .store-cover.has-photo::selection { background: transparent; }

.mall-banner.banner-link { display:block; padding:0; min-height:520px; cursor:pointer; }
.mall-banner.banner-link::before, .mall-banner.banner-link::after { content:none; }
.product-media.has-photo::after, .store-cover.has-photo::after { content:none; }
.product-media.has-photo strong, .store-cover.has-photo strong { display:none; }

/* Banner without overlay */
.mall-banner.with-photo.banner-link { background: var(--banner-image) center/cover no-repeat !important; }

.banner-image-link { display:block; width:min(1180px, calc(100% - 40px)); margin:34px auto 0; border-radius:36px; overflow:hidden; box-shadow:0 34px 80px rgba(142,0,8,.18); background:#fff; }
.banner-image-link img { width:100%; height:auto; display:block; }
@media (max-width:680px){ .banner-image-link { width:min(100% - 24px, 1180px); border-radius:24px; } }

.license-image { max-width: 560px; width: 100%; border-radius: 18px; border: 1px solid var(--line); box-shadow: 0 18px 46px rgba(81, 30, 25, 0.12); margin: 12px 0; }
.status-pill { display:inline-flex; align-items:center; min-height:34px; padding:0 14px; border-radius:999px; background:rgba(212,0,11,.08); color:var(--red); font-weight:900; border:1px solid var(--line); }
