/* 试用吧 · 温柔高级感 */
@font-face {
  font-family: "SyB Display";
  src: local("PingFang SC"), local("Hiragino Sans GB"), local("Microsoft YaHei UI"), local("Noto Sans SC");
  font-weight: 600 700;
  font-display: swap;
}
@font-face {
  font-family: "SyB Body";
  src: local("PingFang SC"), local("Hiragino Sans GB"), local("Microsoft YaHei"), local("Noto Sans SC");
  font-weight: 400 500;
  font-display: swap;
}

:root {
  --rose: #e8a4b8;
  --rose-deep: #d47893;
  --rose-soft: #f7e4eb;
  --mint: #9ec9be;
  --mint-deep: #6fa897;
  --ink: #3a2f35;
  --ink-soft: #6b5a62;
  --paper: #fffaf8;
  --paper-2: #fff3f0;
  --line: rgba(212, 120, 147, 0.18);
  --shadow: 0 18px 50px rgba(212, 120, 147, 0.12);
  --radius: 22px;
  --radius-sm: 14px;
  --max: 1120px;
  --header-h: 72px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: "SyB Body", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(1200px 600px at 10% -10%, rgba(232, 164, 184, 0.28), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(158, 201, 190, 0.22), transparent 55%),
    linear-gradient(180deg, var(--paper) 0%, #fff 45%, var(--paper-2) 100%);
  min-height: 100vh;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--rose-deep); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--ink); }
.container { width: min(100% - 32px, var(--max)); margin-inline: auto; }
.skip-link {
  position: absolute; left: -999px; top: 0; background: #fff; padding: 8px 12px; z-index: 100;
}
.skip-link:focus { left: 12px; top: 12px; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: rgba(255, 250, 248, 0.82);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  height: var(--header-h);
  display: flex; align-items: center; gap: 20px;
}
.brand { display: flex; align-items: center; gap: 12px; color: inherit; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 14px;
  background:
    radial-gradient(circle at 30% 30%, #fff 0 18%, transparent 19%),
    linear-gradient(135deg, var(--rose), var(--mint));
  box-shadow: 0 8px 20px rgba(212, 120, 147, 0.25);
  animation: breathe 4s ease-in-out infinite;
}
.brand-text { display: flex; flex-direction: column; line-height: 1.15; }
.brand-text strong {
  font-family: "SyB Display", sans-serif;
  font-size: 1.25rem; letter-spacing: 0.04em;
}
.brand-text em { font-style: normal; font-size: 0.72rem; color: var(--ink-soft); }
.nav { display: flex; gap: 8px; margin-left: auto; }
.nav-link {
  padding: 8px 14px; border-radius: 999px; color: var(--ink-soft); font-size: 0.95rem;
}
.nav-link:hover, .nav-link.is-active {
  background: var(--rose-soft); color: var(--rose-deep);
}
.header-actions { display: flex; gap: 8px; }
.nav-toggle {
  display: none; width: 42px; height: 42px; border: 0; background: var(--rose-soft); border-radius: 12px;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 2px; background: var(--rose-deep); margin: 0 auto; position: relative;
}
.nav-toggle span::before, .nav-toggle span::after {
  content: ""; position: absolute; left: 0;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  border: 0; cursor: pointer; border-radius: 999px;
  padding: 10px 20px; font-size: 0.95rem; font-weight: 600;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--rose-deep), #e89bb0);
  color: #fff; box-shadow: 0 10px 24px rgba(212, 120, 147, 0.35);
}
.btn-primary:hover { color: #fff; }
.btn-soft { background: var(--rose-soft); color: var(--rose-deep); }
.btn-ghost { background: transparent; color: var(--ink-soft); border: 1px solid var(--line); }
.btn-lg { padding: 14px 28px; font-size: 1rem; }
.btn-sm { padding: 8px 14px; font-size: 0.85rem; }
.btn-block { width: 100%; }

/* Hero */
.hero {
  position: relative; overflow: hidden;
  min-height: calc(100vh - var(--header-h));
  display: grid; align-items: center;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    linear-gradient(120deg, rgba(255,250,248,.92), rgba(255,243,240,.65)),
    url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%23e8a4b8' fill-opacity='0.08'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  z-index: 0;
}
.hero-inner { position: relative; z-index: 2; padding: 64px 0 80px; max-width: 640px; }
.hero-eyebrow {
  display: inline-block; padding: 6px 14px; border-radius: 999px;
  background: rgba(158, 201, 190, 0.25); color: var(--mint-deep);
  font-size: 0.85rem; margin-bottom: 18px;
  animation: fadeUp .7s ease both;
}
.hero-brand {
  font-family: "SyB Display", sans-serif;
  font-size: clamp(2.8rem, 8vw, 4.6rem);
  letter-spacing: 0.08em; margin: 0 0 12px;
  background: linear-gradient(120deg, var(--ink) 20%, var(--rose-deep) 80%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: fadeUp .8s ease .05s both;
}
.hero-lead {
  font-size: clamp(1.15rem, 2.5vw, 1.45rem); margin: 0 0 8px; color: var(--ink);
  animation: fadeUp .8s ease .1s both;
}
.hero-sub { margin: 0 0 28px; color: var(--ink-soft); animation: fadeUp .8s ease .15s both; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; animation: fadeUp .8s ease .2s both; }
.hero-visual {
  position: absolute; right: 5%; top: 18%; width: min(420px, 42vw); height: 420px; z-index: 1; pointer-events: none;
}
.blob {
  position: absolute; border-radius: 50%; filter: blur(2px);
  animation: float 7s ease-in-out infinite;
}
.blob.b1 {
  width: 280px; height: 280px; right: 20px; top: 40px;
  background: radial-gradient(circle at 30% 30%, #ffd6e2, #f2b8c8 45%, rgba(255,255,255,0) 70%);
}
.blob.b2 {
  width: 200px; height: 200px; left: 0; bottom: 40px;
  background: radial-gradient(circle at 40% 40%, #d5efe8, #9ec9be 50%, rgba(255,255,255,0) 72%);
  animation-delay: -2s;
}
.float-card {
  position: absolute; padding: 10px 16px; border-radius: 16px;
  background: rgba(255,255,255,.88); box-shadow: var(--shadow);
  font-size: 0.85rem; font-weight: 600; color: var(--rose-deep);
  animation: float 5.5s ease-in-out infinite;
}
.fc1 { top: 70px; left: 10px; }
.fc2 { bottom: 90px; right: 30px; color: var(--mint-deep); animation-delay: -1.5s; }

/* Sections */
.section { padding: 64px 0; }
.section-soft {
  background: linear-gradient(180deg, rgba(247, 228, 235, 0.45), rgba(255,255,255,0));
}
.section-head { text-align: center; margin-bottom: 36px; }
.section-head h2 {
  font-family: "SyB Display", sans-serif; font-size: 1.8rem; margin: 0 0 8px; letter-spacing: 0.04em;
}
.section-head p { margin: 0; color: var(--ink-soft); }
.section-more { text-align: center; margin-top: 32px; }

.page-banner {
  padding: 48px 0 28px;
  background: linear-gradient(120deg, rgba(232,164,184,.18), rgba(158,201,190,.15));
  border-bottom: 1px solid var(--line);
}
.page-banner h1 { margin: 0 0 8px; font-family: "SyB Display", sans-serif; letter-spacing: 0.04em; }
.page-banner p { margin: 0; color: var(--ink-soft); }

/* Product grid */
.product-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.product-card {
  display: flex; flex-direction: column;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  color: inherit;
  box-shadow: 0 10px 30px rgba(58, 47, 53, 0.04);
  transition: transform .25s ease, box-shadow .25s ease;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow);
  color: inherit;
}
.card-cover {
  aspect-ratio: 1; overflow: hidden; background: var(--rose-soft);
}
.card-cover img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .45s ease;
}
.product-card:hover .card-cover img { transform: scale(1.05); }
.card-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.tag {
  font-size: 0.75rem; padding: 4px 10px; border-radius: 999px;
  background: var(--rose-soft); color: var(--rose-deep); font-weight: 600;
}
.card-stock { font-size: 0.8rem; color: var(--mint-deep); }
.card-body h3 { margin: 0; font-size: 1.05rem; line-height: 1.4; }
.card-body p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; flex: 1; }
.card-foot {
  display: flex; justify-content: space-between; align-items: center;
  margin-top: 8px; font-size: 0.82rem; color: var(--ink-soft);
}
.card-foot .go { color: var(--rose-deep); font-weight: 600; }

.steps-row {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.step-card {
  padding: 28px 24px; border-radius: var(--radius);
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  transition: transform .25s ease;
}
.step-card:hover { transform: translateY(-4px); }
.step-num {
  display: inline-block; font-family: "SyB Display", sans-serif;
  color: var(--rose); font-size: 1.4rem; margin-bottom: 8px;
}
.step-card h3 { margin: 0 0 8px; }
.step-card p { margin: 0; color: var(--ink-soft); font-size: 0.92rem; }

/* Product detail */
.product-hero { padding: 36px 0 10px; }
.product-layout {
  display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start;
}
.product-media {
  border-radius: 28px; overflow: hidden;
  background: var(--rose-soft); box-shadow: var(--shadow);
}
.product-media img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.crumb { font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 12px; }
.product-info h1 {
  margin: 0 0 12px; font-family: "SyB Display", sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.1rem); letter-spacing: 0.03em;
}
.product-summary { color: var(--ink-soft); margin: 0 0 16px; }
.meta-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 18px; }
.meta-chip {
  padding: 8px 14px; border-radius: 999px; background: #fff;
  border: 1px solid var(--line); font-size: 0.9rem;
}
.meta-chip.status { background: var(--rose-soft); border-color: transparent; color: var(--rose-deep); font-weight: 600; }
.countdown {
  padding: 18px 20px; border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(232,164,184,.2), rgba(158,201,190,.18));
  margin-bottom: 22px;
}
.cd-label { display: block; font-size: 0.85rem; color: var(--ink-soft); margin-bottom: 8px; }
.cd-digits { display: flex; align-items: baseline; gap: 6px; font-family: "SyB Display", sans-serif; }
.cd-digits span {
  min-width: 42px; text-align: center; padding: 8px 6px; border-radius: 12px;
  background: #fff; font-size: 1.25rem; color: var(--rose-deep);
  box-shadow: 0 4px 12px rgba(212,120,147,.12);
}
.cd-digits em { font-style: normal; font-size: 0.85rem; color: var(--ink-soft); margin-right: 4px; }
.product-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.tiny-hint { margin-top: 14px; font-size: 0.82rem; color: var(--ink-soft); }
.prose h2 { font-family: "SyB Display", sans-serif; }
.content-body {
  background: rgba(255,255,255,.75); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px; line-height: 1.8;
}

/* Auth / Profile */
.auth-section {
  min-height: calc(100vh - var(--header-h) - 160px);
  display: grid; place-items: center; padding: 40px 16px;
}
.auth-card {
  width: min(100%, 420px); padding: 36px 28px;
  background: rgba(255,255,255,.9); border-radius: 28px;
  border: 1px solid var(--line); box-shadow: var(--shadow);
  animation: fadeUp .6s ease both;
}
.auth-card h1 { margin: 0 0 8px; font-family: "SyB Display", sans-serif; text-align: center; }
.auth-desc { text-align: center; color: var(--ink-soft); margin: 0 0 24px; }
.auth-form label, .profile-form label {
  display: flex; flex-direction: column; gap: 6px;
  font-size: 0.88rem; color: var(--ink-soft); margin-bottom: 14px;
}
.auth-form input, .profile-form input, .profile-form select, .profile-form textarea,
.claim-form textarea {
  border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px;
  font: inherit; color: var(--ink); background: #fff; outline: none;
  transition: border-color .2s, box-shadow .2s;
}
.auth-form input:focus, .profile-form input:focus, .profile-form select:focus,
.profile-form textarea:focus, .claim-form textarea:focus {
  border-color: var(--rose); box-shadow: 0 0 0 4px rgba(232,164,184,.2);
}
.auth-switch { text-align: center; font-size: 0.9rem; color: var(--ink-soft); }
.form-msg {
  margin-top: 12px; padding: 10px 12px; border-radius: 12px;
  background: var(--rose-soft); color: var(--rose-deep); font-size: 0.9rem;
}
.form-msg.ok { background: rgba(158,201,190,.25); color: var(--mint-deep); }

.profile-layout {
  display: grid; grid-template-columns: 240px 1fr; gap: 28px; align-items: start;
}
.score-panel {
  padding: 24px; border-radius: var(--radius); text-align: center;
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
  position: sticky; top: calc(var(--header-h) + 16px);
}
.score-ring {
  width: 120px; height: 120px; margin: 0 auto 14px; border-radius: 50%;
  display: grid; place-items: center;
  background:
    radial-gradient(circle at center, #fff 56%, transparent 57%),
    conic-gradient(var(--rose-deep) calc(var(--p, 0) * 1%), var(--rose-soft) 0);
  font-family: "SyB Display", sans-serif;
}
.score-ring span { font-size: 1.8rem; line-height: 1; }
.score-ring small { display: block; font-size: 0.75rem; color: var(--ink-soft); }
.profile-form {
  padding: 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.85); border: 1px solid var(--line);
}
.form-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0 16px;
}
.form-grid .full { grid-column: 1 / -1; }
.form-sub { margin: 8px 0 12px; font-size: 1.05rem; }

/* Guide */
.guide-wrap { display: grid; gap: 18px; max-width: 760px; }
.guide-card {
  padding: 28px; border-radius: var(--radius);
  background: rgba(255,255,255,.88); border: 1px solid var(--line);
  box-shadow: 0 8px 24px rgba(58,47,53,.04);
  animation: fadeUp .6s ease both;
}
.guide-card:nth-child(2) { animation-delay: .08s; }
.guide-card:nth-child(3) { animation-delay: .16s; }
.guide-illus {
  width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center;
  font-size: 1.5rem; margin-bottom: 12px;
  background: var(--rose-soft);
}
.guide-illus.g2 { background: rgba(158,201,190,.3); }
.guide-illus.g3 { background: #ffe8c8; }
.guide-card h2 { margin: 0 0 10px; font-size: 1.2rem; }
.guide-card p { margin: 0 0 16px; color: var(--ink-soft); }
.tips-board {
  padding: 24px 28px; border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(232,164,184,.15), rgba(158,201,190,.15));
}
.tips-board h3 { margin: 0 0 10px; }
.tips-board ul { margin: 0; padding-left: 18px; color: var(--ink-soft); }

/* Dialog */
.claim-dialog {
  border: 0; border-radius: 24px; padding: 0; width: min(92vw, 420px);
  box-shadow: var(--shadow); background: #fff;
}
.claim-dialog::backdrop { background: rgba(58, 47, 53, 0.35); backdrop-filter: blur(4px); }
.claim-form { padding: 28px 24px; }
.claim-form h3 { margin: 0 0 8px; font-family: "SyB Display", sans-serif; }
.claim-form p { margin: 0 0 12px; color: var(--ink-soft); font-size: 0.9rem; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 14px; }

/* Footer */
.site-footer {
  margin-top: 40px; padding: 48px 0 24px;
  background: linear-gradient(180deg, transparent, rgba(247,228,235,.55));
  border-top: 1px solid var(--line);
}
.footer-grid {
  display: grid; grid-template-columns: 1.4fr 1fr 1.2fr; gap: 24px; margin-bottom: 28px;
}
.footer-brand {
  font-family: "SyB Display", sans-serif; font-size: 1.3rem; margin-bottom: 8px;
}
.footer-grid h4 { margin: 0 0 10px; font-size: 0.95rem; }
.footer-grid a { display: block; color: var(--ink-soft); margin-bottom: 6px; }
.footer-grid p { margin: 0; color: var(--ink-soft); font-size: 0.9rem; }
.footer-copy { font-size: 0.82rem; color: var(--ink-soft); padding-top: 12px; border-top: 1px solid var(--line); }

.empty-state {
  grid-column: 1 / -1; text-align: center; padding: 48px 20px;
  color: var(--ink-soft); background: rgba(255,255,255,.6); border-radius: var(--radius);
}

/* 资料页：鉴权完成前弱化表单（服务端也会拦截未登录） */
html:not(.profile-ready) body:has(#profileForm) .profile-layout {
  opacity: 0.25;
  pointer-events: none;
  filter: blur(2px);
}
html.profile-ready .profile-layout {
  opacity: 1;
  pointer-events: auto;
  filter: none;
  transition: opacity .25s ease;
}

/* 微信第一步 */
.wx-step {
  margin-bottom: 22px;
  padding: 20px 18px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, rgba(232,164,184,.18), rgba(158,201,190,.16));
  border: 1px solid var(--line);
}
.wx-step-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, var(--rose-deep), #e89bb0);
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 10px;
}
.wx-warn {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.75);
  color: var(--rose-deep);
  font-size: 0.92rem;
  font-weight: 600;
}
.wx-cs-box {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  background: rgba(255,255,255,.88);
  border-radius: 16px;
}
.wx-cs-qr img {
  width: 120px;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: var(--rose-soft);
}
.wx-cs-info p { margin: 0 0 6px; color: var(--ink-soft); font-size: 0.85rem; }
.wx-id-row {
  display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px;
}
.wx-id-row strong {
  font-size: 1.15rem;
  letter-spacing: 0.02em;
  word-break: break-all;
}
.chk-line {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
  font-size: 0.95rem;
  color: var(--ink);
}
.chk-line input { width: auto; margin: 0; }
.wx-step-pulse {
  box-shadow: 0 0 0 3px rgba(212,120,147,.25);
  animation: breathe 2.4s ease-in-out infinite;
}
.wx-step-warn .wx-warn { background: #ffe8ee; }

@media (max-width: 720px) {
  .wx-cs-box { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .wx-id-row { justify-content: center; }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: none; }
}
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
@keyframes breathe {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.05); }
}

@media (max-width: 960px) {
  .product-grid, .steps-row, .footer-grid, .product-layout, .profile-layout, .form-grid {
    grid-template-columns: 1fr 1fr;
  }
  .product-layout, .profile-layout { grid-template-columns: 1fr; }
  .hero-visual { opacity: 0.45; width: 260px; height: 260px; right: -20px; }
  .score-panel { position: static; }
}
@media (max-width: 720px) {
  .nav, .header-actions { display: none; }
  .nav-toggle { display: inline-flex; align-items: center; margin-left: auto; }
  body.nav-open .nav, body.nav-open .header-actions {
    display: flex; flex-direction: column; position: absolute;
    left: 16px; right: 16px; top: calc(var(--header-h) + 8px);
    background: #fff; border-radius: 18px; padding: 12px; box-shadow: var(--shadow);
    border: 1px solid var(--line);
  }
  body.nav-open .header-actions { top: calc(var(--header-h) + 180px); flex-direction: row; }
  .product-grid, .steps-row, .footer-grid, .form-grid { grid-template-columns: 1fr; }
  .hero-inner { padding: 40px 0 60px; }
  .hero { min-height: auto; }
}
