/* ============================================
   Secret Match — 暖粉·轻量·诱惑感 主题
   Light, warm, seductive redesign
   ============================================ */

*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }
html, body { margin: 0; padding: 0; }

:root {
  --rose: #e91e63;
  --rose-dark: #c2185b;
  --rose-light: #ff80ab;
  --coral: #ff6b6b;
  --peach: #ff8a80;
  --gold: #f8b4c8;
  --gold-light: #fce4ec;

  --bg: #fff8fa;
  --bg-gradient: linear-gradient(180deg, #fff0f4 0%, #fff8fa 30%, #ffffff 100%);
  --card: #ffffff;
  --card-border: #f0e0e6;
  --card-shadow: 0 8px 30px rgba(233, 30, 99, 0.08);
  --card-shadow-hover: 0 16px 48px rgba(233, 30, 99, 0.14);

  --text: #1a0a14;
  --text-soft: #4a2a3a;
  --text-dim: #8a6a7a;
  --text-light: #bba0ae;

  --primary: var(--rose);
  --primary-dark: var(--rose-dark);
  --primary-gradient: linear-gradient(135deg, #e91e63, #ff4081);
  --primary-gradient-hover: linear-gradient(135deg, #d81b60, #f06292);
  --primary-shadow: 0 8px 28px rgba(233, 30, 99, 0.3);

  --line-green: #00c300;

  --radius-sm: 10px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-xl: 32px;

  --font: "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* ===== Base ===== */
body {
  font-family: var(--font);
  line-height: 1.7;
  color: var(--text);
  background: var(--bg-gradient);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  min-height: 100vh;
}

img, picture, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
input, button, textarea, select { font: inherit; }

.container {
  width: min(1120px, 92%);
  margin: 0 auto;
}

/* ===== Header ===== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 248, 250, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(240, 224, 230, 0.5);
  transition: box-shadow .2s ease;
}
.site-header.scrolled { box-shadow: 0 2px 20px rgba(233, 30, 99, 0.06); }

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  letter-spacing: .5px;
  font-size: 1.1rem;
}
.brand__logo {
  font-size: 1.6rem;
  filter: drop-shadow(0 2px 8px rgba(233,30,99,.2));
}
.brand__name {
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Header CTA — LINE button */
.btn--line {
  background: #00c300;
  color: #fff;
  padding: 8px 16px;
  border-radius: 999px;
  font-weight: 700;
  font-size: .9rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  animation: breathe 2.5s ease-in-out infinite;
  transition: transform .15s ease, filter .2s ease;
}
.btn--line:hover { filter: brightness(1.05); transform: translateY(-1px); }
.btn--line:active { transform: translateY(0) scale(.98); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  font-weight: 600;
  transition: transform .15s ease, box-shadow .2s ease, filter .2s ease;
  position: relative;
  overflow: hidden;
}
.btn:active { transform: translateY(1px) scale(.98); }
.btn-icon { width: 20px; height: 20px; flex: 0 0 auto; }
.btn-icon--download { fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.btn--primary {
  background: var(--primary-gradient);
  color: #fff;
  box-shadow: var(--primary-shadow);
}
.btn--primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.25), transparent);
  transform: translateX(-100%);
  transition: transform .6s ease;
}
.btn--primary:hover::before { transform: translateX(100%); }
.btn--primary:hover { filter: brightness(1.06); box-shadow: 0 10px 36px rgba(233, 30, 99, 0.35); }

.btn--xl {
  padding: 16px 28px;
  font-size: 1.1rem;
  gap: 10px;
}

.btn--pulse {
  animation: pulseBig 1.8s ease-in-out infinite, pulseGlow 2.8s ease-in-out infinite;
  font-size: 1.2rem;
  font-weight: 800;
  letter-spacing: .5px;
}

/* ===== Animations ===== */
@keyframes pulseBig {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.04); }
}
@keyframes pulseGlow {
  0%, 100% { box-shadow: 0 8px 28px rgba(233, 30, 99, 0.25); }
  50% { box-shadow: 0 12px 44px rgba(233, 30, 99, 0.45); }
}
@keyframes breathe {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.85; }
}
@keyframes floatUp {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes heartBeat {
  0%, 100% { transform: scale(1); }
  15% { transform: scale(1.2); }
  30% { transform: scale(1); }
  45% { transform: scale(1.15); }
  60% { transform: scale(1); }
}
@keyframes shimmer {
  0% { background-position: -200% center; }
  100% { background-position: 200% center; }
}
@keyframes countUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ===== Hero ===== */
.hero {
  padding: 32px 0 24px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 700px;
  height: 700px;
  background: radial-gradient(circle, rgba(233,30,99,.06) 0%, transparent 70%);
  pointer-events: none;
  animation: floatUp 10s ease-in-out infinite;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -20%;
  left: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255,138,128,.06) 0%, transparent 70%);
  pointer-events: none;
  animation: floatUp 14s ease-in-out infinite reverse;
}

.hero__grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 40px;
  align-items: center;
  position: relative;
  z-index: 1;
}

.hero__copy h1 {
  font-size: clamp(30px, 5.5vw, 52px);
  line-height: 1.1;
  margin: 0 0 8px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -.5px;
}

.hero__subtitle {
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  color: var(--text-soft);
  margin: 0 0 18px;
  font-weight: 500;
}

/* Social proof bar */
.social-proof {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 8px 16px;
  background: rgba(233, 30, 99, 0.04);
  border: 1px solid rgba(233, 30, 99, 0.1);
  border-radius: 999px;
  margin-bottom: 20px;
  width: fit-content;
}
.social-proof__avatars {
  display: flex;
}
.social-proof__avatars img {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  border: 2px solid #fff;
  margin-right: -6px;
  object-fit: cover;
}
.social-proof__text {
  font-size: .85rem;
  color: var(--text-soft);
  white-space: nowrap;
}
.social-proof__text strong {
  color: var(--rose);
  font-weight: 700;
}
.social-proof__dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #00c300;
  margin-right: 6px;
  animation: pulseBig 1.5s ease-in-out infinite;
}

/* Hero badges */
.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 0;
  margin: 0 0 22px;
  list-style: none;
}
.hero__badges li {
  padding: 6px 14px;
  background: linear-gradient(135deg, rgba(233,30,99,.06), rgba(255,64,129,.04));
  border: 1px solid rgba(233,30,99,.12);
  border-radius: 999px;
  color: var(--text-soft);
  font-size: .88rem;
  font-weight: 500;
  transition: transform .15s ease, box-shadow .2s ease;
}
.hero__badges li:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(233,30,99,.1);
}

/* CTA Panel (filters) */
.cta-panel {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 20px;
  box-shadow: var(--card-shadow);
  transition: box-shadow .3s ease;
}
.cta-panel:hover { box-shadow: var(--card-shadow-hover); }

.filters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin-bottom: 6px;
}

.label {
  display: block;
  color: var(--text-soft);
  margin: 0 0 8px;
  font-size: .88rem;
  font-weight: 600;
}

/* Chips */
.chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.chip {
  background: #fdf0f4;
  color: var(--text-dim);
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 7px 13px;
  font-size: .85rem;
  font-weight: 500;
  cursor: pointer;
  transition: all .2s ease;
}
.chip:hover {
  color: var(--rose);
  background: #fce4ec;
  transform: translateY(-1px);
}
.chip.is-active {
  color: #fff;
  background: var(--primary-gradient);
  border-color: transparent;
  box-shadow: 0 4px 20px rgba(233,30,99,.3);
}
.chip.is-active:hover {
  filter: brightness(1.05);
  box-shadow: 0 6px 24px rgba(233,30,99,.35);
}

.cta-panel__row {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-top: 16px;
}

.hint {
  color: var(--text-light);
  font-size: .82rem;
  margin: 10px 0 0;
  text-align: center;
}

/* Hero visual (portrait stack) */
.hero__visual { position: relative; }

.portrait-stack {
  position: relative;
  height: 480px;
  width: 100%;
}

.portrait-card {
  position: absolute;
  width: 64%;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(233, 30, 99, 0.12);
  border: 2px solid rgba(255,255,255,.7);
  transition: transform .3s ease, box-shadow .4s ease;
}
.portrait-card:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 24px 60px rgba(233, 30, 99, 0.18);
}

.portrait-card--a {
  top: 0;
  left: 0;
  transform: rotate(-5deg);
  z-index: 3;
  width: 62%;
}
.portrait-card--a { animation: floatUp 6s ease-in-out infinite; }
.portrait-card--b {
  top: 50px;
  right: -2%;
  transform: rotate(4deg);
  z-index: 2;
  width: 58%;
}
.portrait-card--b { animation: floatUp 8s ease-in-out infinite 0.5s; }
.portrait-card--c {
  bottom: 10px;
  left: 22%;
  transform: rotate(-3deg);
  z-index: 1;
  width: 56%;
}
.portrait-card--c { animation: floatUp 7s ease-in-out infinite 1s; }

.portrait-card .portrait {
  width: 100%;
  aspect-ratio: 3/4;
  object-fit: cover;
  display: block;
}

.portrait-label {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255,255,255,.92);
  color: var(--text-soft);
  padding: 5px 12px;
  border-radius: 999px;
  font-size: .8rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.05);
}

/* ===== Gallery ===== */
.gallery {
  padding: 32px 0 16px;
  position: relative;
}
.gallery h2 {
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 4px;
  color: var(--text);
}
.section-sub {
  color: var(--text-dim);
  margin: 0 0 20px;
  font-size: .95rem;
}

.gallery__slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding: 8px max(calc((100vw - 1120px) / 2 + 16px), 16px) 16px;
  justify-content: flex-start;
}
.gallery__slider::-webkit-scrollbar { display: none; }
.gallery__slider { -ms-overflow-style: none; scrollbar-width: none; }

.gallery-card {
  position: relative;
  flex: 0 0 auto;
  width: 320px;
  scroll-snap-align: center;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 6px 24px rgba(233,30,99,.06);
  transition: transform .25s ease, box-shadow .3s ease;
}
.gallery-card:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 12px 40px rgba(233,30,99,.12);
}
.gallery-card:first-child { scroll-snap-align: start; }
.gallery-card img {
  aspect-ratio: 3/4;
  object-fit: cover;
  width: 100%;
  display: block;
  border-radius: var(--radius-md);
}
.gallery-caption {
  position: absolute;
  left: 10px;
  bottom: 10px;
  background: rgba(255,255,255,.92);
  color: var(--text-soft);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 600;
  backdrop-filter: blur(4px);
  box-shadow: 0 2px 10px rgba(0,0,0,.04);
  white-space: nowrap;
}

.gallery__scroll-hint {
  text-align: center;
  color: var(--text-light);
  font-size: .85rem;
  margin-top: 4px;
  animation: floatUp 3s ease-in-out infinite;
}

/* ===== Features ===== */
.features {
  padding: 24px 0 10px;
}
.section__title {
  text-align: center;
  font-size: clamp(22px, 3vw, 30px);
  margin: 0 0 24px;
  color: var(--text);
}
.features__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.feature {
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-md);
  padding: 22px;
  text-align: center;
  box-shadow: var(--card-shadow);
  transition: transform .25s ease, box-shadow .3s ease;
}
.feature:hover {
  transform: translateY(-3px);
  box-shadow: var(--card-shadow-hover);
}
.feature__icon {
  font-size: 28px;
  margin-bottom: 10px;
  display: inline-block;
  animation: floatUp 4s ease-in-out infinite;
}
.feature:nth-child(2) .feature__icon { animation-delay: .3s; }
.feature:nth-child(3) .feature__icon { animation-delay: .6s; }
.feature h3 {
  margin: 0 0 8px;
  font-size: 1.1rem;
  color: var(--text);
}
.feature p {
  margin: 0;
  color: var(--text-dim);
  font-size: .92rem;
  line-height: 1.6;
}

/* ===== CTA Section ===== */
.cta {
  padding: 28px 0 48px;
}
.cta__card {
  background: linear-gradient(135deg, #fff0f4 0%, #fff5f8 50%, #fce4ec 100%);
  border: 1px solid rgba(233,30,99,.12);
  border-radius: var(--radius-xl);
  padding: 40px 24px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(233,30,99,.08);
  position: relative;
  overflow: hidden;
}
.cta__card::before {
  content: '💗';
  position: absolute;
  top: -20px;
  right: -10px;
  font-size: 100px;
  opacity: .06;
  pointer-events: none;
}
.cta__card h2 {
  font-size: clamp(24px, 4vw, 36px);
  margin: 0 0 8px;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.cta__card > p {
  color: var(--text-soft);
  font-size: 1.05rem;
  margin: 0 0 20px;
}
.cta__card .btn--pulse {
  margin: 8px 0 12px;
  min-width: 280px;
}
.cta__card .hint {
  color: var(--text-light);
}

/* ===== Footer ===== */
.site-footer {
  padding: 28px 0 40px;
  border-top: 1px solid var(--card-border);
  background: linear-gradient(180deg, #fff8fa, #fff0f4);
}
.footer__grid {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px;
  align-items: start;
}
.brand--footer {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}
.brand--footer .brand__name {
  -webkit-text-fill-color: var(--rose);
}
.footer__text {
  color: var(--text-dim);
  margin: 8px 0 0;
  font-size: .9rem;
}
.footer__links {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}
.footer__link {
  color: var(--text-dim);
  font-size: .9rem;
  transition: color .2s ease;
}
.footer__link:hover { color: var(--rose); }
.footer__legal {
  color: var(--text-light);
  margin-top: 14px;
  font-size: .82rem;
  line-height: 1.6;
}

/* ===== Toast ===== */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%);
  background: var(--card);
  color: var(--text-soft);
  border: 1px solid var(--card-border);
  padding: 12px 20px;
  border-radius: 999px;
  box-shadow: 0 10px 40px rgba(0,0,0,.08);
  display: none;
  font-weight: 500;
}
.toast.show { display: inline-block; animation: fadeInUp .3s ease; }

/* ===== Responsive ===== */
@media (max-width: 960px) {
  .hero__grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .portrait-stack {
    height: 360px;
  }
  .portrait-card--a { width: 58%; }
  .portrait-card--b { width: 54%; }
  .portrait-card--c { width: 52%; }
  .features__grid { grid-template-columns: 1fr; }
  .gallery__slider { padding: 8px 16px 16px; }
  .gallery-card { width: 75vw; scroll-snap-align: center; }
  .gallery-card:first-child { scroll-snap-align: center; }
  .filters { grid-template-columns: 1fr; }
  .btn--xl { width: 100%; }
  .cta__card { padding: 28px 16px; }
  .footer__grid { grid-template-columns: 1fr; text-align: center; }
  .footer__links { justify-content: center; }
  .social-proof { width: 100%; justify-content: center; }
  .hero__badges { justify-content: center; }
}

@media (max-width: 480px) {
  .portrait-stack { height: 280px; }
  .portrait-card--a { width: 55%; }
  .portrait-card--b { width: 50%; top: 30px; }
  .portrait-card--c { width: 48%; }
  .gallery-card { width: 85vw; }
  .header__inner { padding: 10px 0; }
  .brand__name { font-size: .95rem; }
  .btn--line { font-size: .8rem; padding: 6px 12px; }
  .cta-panel { padding: 14px; }
}