:root {
  --gift-paper: #faf7f0;
  --gift-paper-2: #f2eee4;
  --gift-ink: #26352e;
  --gift-green: #1f4a3b;
  --gift-muted: #6f7a73;
  --gift-line: #e2ddd1;
  --gift-clay: #a45b45;
  --gift-sand: #e9dfcc;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--gift-ink);
  background: var(--gift-paper);
  font-family: "Microsoft YaHei UI", "Segoe UI", sans-serif;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

.gift-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 5vw, 72px);
  background: rgba(250, 247, 240, .92);
  border-bottom: 1px solid var(--gift-line);
  backdrop-filter: blur(12px);
}

.gift-brand { display: flex; align-items: center; gap: 10px; color: var(--gift-green); text-decoration: none; font-weight: 700; }
.gift-brand img { width: 36px; height: 36px; border-radius: 50%; object-fit: contain; background: #fff; }
.gift-brand small { display: block; color: var(--gift-muted); font-size: 9px; font-weight: 400; letter-spacing: .14em; }
.gift-header nav { display: flex; gap: clamp(12px, 2vw, 26px); }
.gift-header nav a { color: #4a5a51; font-size: 13px; text-decoration: none; }
.gift-header nav a:hover { color: var(--gift-clay); }

main { overflow: hidden; }

.gift-hero {
  display: grid;
  grid-template-columns: 1.02fr .98fr;
  align-items: center;
  gap: clamp(30px, 5vw, 72px);
  padding: clamp(46px, 7vw, 100px) clamp(20px, 6vw, 96px) clamp(30px, 4vw, 56px);
  background:
    radial-gradient(ellipse at 18% 10%, #fffdf7 0, transparent 55%),
    linear-gradient(180deg, #fbf8f1 0, var(--gift-paper) 100%);
}

.gift-kicker { margin: 0 0 16px; color: var(--gift-clay); font-size: 10px; font-weight: 700; letter-spacing: .24em; }
.gift-hero h1 { margin: 0; color: var(--gift-green); font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(36px, 5.4vw, 66px); font-weight: 600; line-height: 1.18; letter-spacing: -.02em; }
.gift-subtitle { margin: 18px 0 0; color: var(--gift-clay); font-size: clamp(14px, 1.4vw, 17px); font-weight: 700; letter-spacing: .16em; }
.gift-lead { max-width: 540px; margin: 18px 0 0; color: #4d5b53; font-size: 14px; line-height: 1.9; }
.gift-hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.gift-btn { min-height: 46px; padding: 12px 22px; display: inline-flex; align-items: center; justify-content: center; border-radius: 4px; font-size: 13px; font-weight: 700; text-decoration: none; transition: transform .18s, background .18s, color .18s; }
.gift-btn:hover { transform: translateY(-1px); }
.gift-btn-primary { color: #fff; background: var(--gift-green); }
.gift-btn-primary:hover { background: #163a2e; }
.gift-btn-ghost { color: var(--gift-green); background: transparent; border: 1px solid var(--gift-green); }
.gift-btn-ghost:hover { color: #fff; background: var(--gift-green); }

.gift-hero-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; align-items: end; }
.gift-hero-strip figure { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--gift-line); border-radius: 10px; box-shadow: 0 18px 40px rgba(39, 49, 42, .08); }
.gift-hero-strip figure:nth-child(2) { transform: translateY(-18px); }
.gift-hero-strip figure:nth-child(3) { transform: translateY(8px); }
.gift-hero-strip img { width: 100%; aspect-ratio: 4 / 5; object-fit: contain; display: block; background: #f7f3e9; }
.gift-hero-strip figcaption { padding: 8px 10px; color: var(--gift-muted); font-size: 10px; letter-spacing: .1em; text-align: center; }

.gift-categories, .gift-works, .gift-campus { padding: clamp(40px, 6vw, 86px) clamp(20px, 6vw, 96px); }
.gift-categories { border-top: 1px solid var(--gift-line); }
.gift-section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: clamp(22px, 3vw, 36px); }
.gift-section-head h2 { margin: 0; color: var(--gift-green); font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(26px, 3.4vw, 40px); font-weight: 600; }
.gift-section-head > p { max-width: 380px; margin: 0; color: var(--gift-muted); font-size: 12px; }

.gift-category-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 24px); }
.gift-category-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; background: #fff; border: 1px solid var(--gift-line); border-radius: 12px; text-decoration: none; transition: transform .22s, box-shadow .22s; }
.gift-category-card:hover { transform: translateY(-4px); box-shadow: 0 20px 42px rgba(39, 49, 42, .10); }
.gift-category-card figure { margin: 0; aspect-ratio: 4 / 3; overflow: hidden; background: #f5f1e7; }
.gift-category-card img { width: 100%; height: 100%; object-fit: contain; display: block; transition: transform .35s; }
.gift-category-card:hover img { transform: scale(1.03); }
.gift-category-card > div { padding: 18px 20px 22px; }
.gift-category-card h3 { margin: 0 0 8px; color: var(--gift-green); font-family: Georgia, "Noto Serif SC", serif; font-size: 22px; }
.gift-category-card p { margin: 0 0 14px; color: #56635b; font-size: 12px; line-height: 1.8; }
.gift-category-card span { color: var(--gift-clay); font-size: 12px; font-weight: 700; }

.gift-works { padding-top: 0; }
.gift-works-section { padding: clamp(26px, 4vw, 46px) 0; border-top: 1px solid var(--gift-line); scroll-margin-top: 90px; }
.gift-works-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 18px; margin-bottom: 20px; }
.gift-works-head > div { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: 14px; align-items: baseline; }
.gift-works-index { grid-row: 1 / 3; color: var(--gift-sand); font-family: Georgia, serif; font-size: clamp(34px, 4vw, 52px); line-height: 1; }
.gift-works-head h2 { margin: 0; color: var(--gift-green); font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(24px, 2.8vw, 34px); font-weight: 600; }
.gift-works-head p { grid-column: 2; margin: 4px 0 0; color: var(--gift-muted); font-size: 12px; }
.gift-works-head > small { color: var(--gift-muted); font-size: 11px; }

.gift-work-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(14px, 2vw, 22px); }
.gift-card { overflow: hidden; background: #fff; border: 1px solid var(--gift-line); border-radius: 10px; }
.gift-media { position: relative; margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #f5f1e7; overflow: hidden; }
.gift-media img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gift-media-placeholder { color: var(--gift-muted); font-size: 12px; }
.gift-concept-badge { position: absolute; left: 10px; top: 10px; padding: 4px 8px; color: #7b5a45; background: rgba(255, 250, 240, .92); border: 1px solid #e8dcc8; border-radius: 999px; font-size: 9px; letter-spacing: .06em; }
.gift-body { padding: 15px 16px 18px; }
.gift-body h3 { margin: 0 0 6px; color: var(--gift-green); font-size: 17px; font-weight: 700; }
.gift-body p { margin: 0; color: var(--gift-muted); font-size: 12px; line-height: 1.75; }
.gift-empty, .gift-loading { padding: 28px; color: var(--gift-muted); text-align: center; font-size: 13px; }

.gift-campus {
  display: grid;
  grid-template-columns: 1.15fr .85fr;
  align-items: center;
  gap: clamp(24px, 4vw, 60px);
  background: #f1ece0;
  border-top: 1px solid var(--gift-line);
  border-bottom: 1px solid var(--gift-line);
}
.gift-campus h2 { margin: 0 0 16px; color: var(--gift-green); font-family: Georgia, "Noto Serif SC", serif; font-size: clamp(26px, 3.4vw, 42px); line-height: 1.3; font-weight: 600; }
.gift-campus-copy > p { max-width: 620px; margin: 0 0 14px; color: #4d5b53; font-size: 13px; }
.gift-fineprint { padding-left: 12px; border-left: 2px solid var(--gift-clay); color: var(--gift-muted) !important; font-size: 11px !important; line-height: 1.8; }
.gift-campus-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.gift-campus-figure { margin: 0; overflow: hidden; background: #fff; border: 1px solid var(--gift-line); border-radius: 12px; box-shadow: 0 18px 42px rgba(39, 49, 42, .08); }
.gift-campus-figure img { width: 100%; aspect-ratio: 4 / 3; object-fit: contain; display: block; }

.gift-footer { padding: 30px clamp(20px, 6vw, 96px); display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; color: var(--gift-muted); font-size: 11px; }
.gift-footer-brand { display: flex; align-items: center; gap: 10px; color: var(--gift-green); font-weight: 700; }
.gift-footer-brand img { width: 30px; height: 30px; border-radius: 50%; object-fit: contain; background: #fff; }
.gift-footer-brand small { display: block; color: var(--gift-muted); font-size: 9px; font-weight: 400; letter-spacing: .1em; }
.gift-footer nav { display: flex; flex-wrap: wrap; gap: 16px; }
.gift-footer nav a { color: var(--gift-green); text-decoration: none; font-size: 11px; }
.gift-footer > p { margin: 0; }

.gift-showcase-section { padding: clamp(30px, 4vw, 54px) clamp(20px, 6vw, 96px); border-top: 1px solid var(--gift-line); background: #fbf8f2; }
.gift-showcase-section[hidden] { display: none !important; }
.gift-showcase-track { display: flex; gap: 16px; overflow-x: auto; padding: 4px 2px 10px; scroll-snap-type: x mandatory; scrollbar-width: thin; }
.gift-showcase-card { flex: 0 0 calc((100% - 32px) / 3); overflow: hidden; background: #fff; border: 1px solid var(--gift-line); border-radius: 10px; scroll-snap-align: start; }
.gift-showcase-card figure { position: relative; margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #f5f1e7; overflow: hidden; }
.gift-showcase-card figure img { width: 100%; height: 100%; object-fit: contain; display: block; }
.gift-showcase-card figure span { color: var(--gift-muted); font-size: 12px; }
.gift-showcase-tag { position: absolute; left: 10px; top: 10px; padding: 4px 8px; color: #7b5a45; background: rgba(255, 250, 240, .92); border: 1px solid #e8dcc8; border-radius: 999px; font-size: 9px; letter-spacing: .06em; }
.gift-showcase-card > div { padding: 14px 16px 18px; }
.gift-showcase-card h3 { margin: 0 0 6px; color: var(--gift-green); font-size: 17px; }
.gift-showcase-card p { margin: 0; color: var(--gift-muted); font-size: 12px; line-height: 1.75; }
.gift-showcase-note { margin: 8px 0 0; color: var(--gift-muted); font-size: 10px; }
.gift-showcase-home { margin-top: 26px; padding-top: 24px; border-top: 1px solid rgba(31, 74, 59, .12); }
.gift-showcase-home[hidden] { display: none !important; }
.gift-showcase-home-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 18px; margin-bottom: 14px; }
.gift-showcase-home-head .section-kicker { margin: 0; }
.gift-showcase-home-head h3 { margin: 0; color: var(--gift-green); font-family: Georgia, "Noto Serif SC", serif; font-size: 22px; }
.gift-showcase-home-head > p:last-child { margin: 0; color: var(--gift-muted); font-size: 11px; }
.gift-showcase-home .gift-showcase-card { flex-basis: calc((100% - 32px) / 3); }

/* 首页定制礼物预览 */
.gift-preview-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.gift-preview-card { display: flex; flex-direction: column; overflow: hidden; color: inherit; background: #fff; border: 1px solid var(--gift-line); border-radius: 10px; text-decoration: none; transition: transform .2s; }
.gift-preview-card:hover { transform: translateY(-3px); }
.gift-preview-card figure { margin: 0; aspect-ratio: 4 / 3; display: grid; place-items: center; overflow: hidden; background: #f5f1e7; }
.gift-preview-card figure img { width: 100%; height: 100%; object-fit: contain; }
.gift-preview-card figure span { color: var(--gift-muted); font-size: 12px; }
.gift-preview-card > div { padding: 14px 16px 18px; }
.gift-preview-card small { color: var(--gift-clay); font-size: 9px; letter-spacing: .12em; }
.gift-preview-card h3 { margin: 5px 0 6px; color: var(--gift-green); font-size: 17px; }
.gift-preview-card p { margin: 0 0 10px; color: var(--gift-muted); font-size: 11px; }
.gift-preview-cta { color: var(--gift-green); font-size: 11px; font-weight: 700; }
.gift-preview-empty { padding: 24px; color: var(--gift-muted); background: #fff; border: 1px dashed var(--gift-line); border-radius: 8px; text-align: center; }

@media (max-width: 900px) {
  .gift-hero { grid-template-columns: 1fr; padding-bottom: 30px; }
  .gift-hero-strip figure:nth-child(2), .gift-hero-strip figure:nth-child(3) { transform: none; }
  .gift-category-grid, .gift-work-grid, .gift-preview-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gift-campus { grid-template-columns: 1fr; }
  .gift-campus-figure { order: -1; }
}

@media (max-width: 640px) {
  .gift-header { align-items: flex-start; flex-direction: column; gap: 10px; padding: 12px 18px; }
  .gift-header nav { gap: 14px; overflow-x: auto; width: 100%; padding-bottom: 2px; }
  .gift-header nav a { white-space: nowrap; font-size: 12px; }
  .gift-brand small { display: none; }
  .gift-hero { padding: 34px 18px 24px; }
  .gift-hero h1 { font-size: 32px; }
  .gift-hero-actions .gift-btn { flex: 1 1 auto; }
  .gift-hero-strip { gap: 8px; }
  .gift-hero-strip img { aspect-ratio: 3 / 4; }
  .gift-hero-strip figcaption { font-size: 9px; padding: 6px 4px; }
  .gift-categories, .gift-works, .gift-campus { padding-left: 18px; padding-right: 18px; }
  .gift-category-grid, .gift-work-grid, .gift-preview-grid { grid-template-columns: 1fr; }
  .gift-showcase-section { padding-left: 18px; padding-right: 18px; }
  .gift-showcase-card, .gift-showcase-home .gift-showcase-card { flex-basis: 82%; }
  .gift-showcase-home-head h3 { font-size: 20px; }
  .gift-works-head > small { display: none; }
  .gift-works-head > div { grid-template-columns: auto 1fr; }
  .gift-footer { flex-direction: column; align-items: flex-start; }
}
