﻿/* 叔叔不约 · buyueshushu.cn — 粉色气泡叙事 */

:root {
  --paper: #fffafc;
  --blush: #fff0f6;
  --rose: #e0559b;
  --rose-deep: #bf3477;
  --ink: #2a1a24;
  --muted: #836b78;
  --line: #f6dbe7;
  --box: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.78;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; height: auto; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, p, ol, figure { margin: 0; }

ol { padding: 0; list-style: none; }

.box {
  width: 100%;
  max-width: var(--box);
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- 顶栏 ---------- */

.bar {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 250, 252, 0.9);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.bar-in {
  display: flex;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}

.brand img {
  width: 38px;
  height: 38px;
  border-radius: 11px;
}

.brand span {
  display: flex;
  flex-direction: column;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.4px;
  line-height: 1.3;
}

.brand em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: #b39aa8;
  letter-spacing: 0.4px;
}

.bar-nav {
  display: flex;
  gap: 22px;
  margin-left: auto;
  font-size: 14px;
  color: var(--muted);
}

.bar-nav a:hover { color: var(--rose-deep); }

.bar-btn {
  align-items: center;
  height: 38px;
  padding: 0 20px;
  border-radius: 999px;
  background: var(--rose);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}

.bar-btn:not([hidden]) { display: inline-flex; }

/* ---------- 首屏 ---------- */

.hero {
  position: relative;
  padding: 74px 0 86px;
  background:
    radial-gradient(640px 340px at 84% 4%, #ffe1ee, transparent 70%),
    radial-gradient(500px 300px at 4% 90%, #fff2d9, transparent 72%),
    var(--paper);
  overflow: hidden;
}

.hero-in {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 40px;
  align-items: center;
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 2.6px;
  color: var(--rose-deep);
}

.hero h1 {
  margin-top: 16px;
  font-size: clamp(42px, 5.8vw, 70px);
  line-height: 1.08;
  letter-spacing: -1.6px;
}

.hero h1 span {
  display: block;
  margin-top: 12px;
  font-size: clamp(21px, 2.7vw, 30px);
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--rose-deep);
}

.lead {
  margin-top: 22px;
  max-width: 470px;
  color: var(--muted);
  font-size: 16px;
}

.hero-btns {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}

.btn-rose {
  align-items: center;
  height: 50px;
  padding: 0 30px;
  border-radius: 999px;
  background: linear-gradient(120deg, #ee6fae, var(--rose-deep));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 28px rgba(224, 85, 155, 0.28);
  transition: transform 0.2s;
}

.btn-rose:not([hidden]) { display: inline-flex; }

.btn-rose:hover { transform: translateY(-2px); }

.btn-soft {
  display: inline-flex;
  align-items: center;
  height: 50px;
  padding: 0 26px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid var(--line);
  color: var(--rose-deep);
  font-weight: 600;
}

.btn-soft:hover { border-color: var(--rose); }

.hero-note {
  margin-top: 16px;
  font-size: 12.5px;
  color: #b39aa8;
}

/* 手机 + 气泡 */

.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  padding: 18px 0;
}

.phone {
  position: relative;
  z-index: 2;
  width: min(262px, 80%);
  padding: 10px;
  border-radius: 34px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 30px 60px rgba(191, 52, 119, 0.18);
}

.phone img {
  border-radius: 26px;
  width: 100%;
}

.bubble {
  position: absolute;
  z-index: 3;
  padding: 9px 16px;
  border-radius: 18px;
  font-size: 13.5px;
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: 0 12px 24px rgba(191, 52, 119, 0.12);
  animation: float 5.5s ease-in-out infinite;
}

.bubble-a {
  top: 30px;
  left: 2%;
  color: var(--muted);
}

.bubble-b {
  top: 168px;
  right: 0;
  background: var(--rose);
  border-color: var(--rose);
  color: #fff;
  animation-delay: 1.2s;
}

.bubble-c {
  bottom: 34px;
  left: 6%;
  color: var(--rose-deep);
  animation-delay: 2.4s;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

/* ---------- 通用区头 ---------- */

.head {
  max-width: 620px;
  margin-bottom: 38px;
}

.head h2 {
  font-size: clamp(26px, 3.3vw, 38px);
  letter-spacing: -0.8px;
  line-height: 1.28;
}

.head p {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
}

/* ---------- 三步 ---------- */

.start {
  padding: 84px 0 88px;
  background: var(--blush);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.step {
  position: relative;
  padding: 30px 26px;
  background: #fff;
  border-radius: 22px;
  border: 1px solid var(--line);
}

.step-no {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--rose);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
}

.step h3 {
  margin-top: 16px;
  font-size: 20px;
}

.step p {
  margin-top: 8px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 界面 ---------- */

.look { padding: 90px 0; }

.look-grid {
  display: grid;
  grid-template-columns: 0.8fr 0.8fr 1.1fr;
  gap: 22px;
  align-items: start;
}

.shot-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 12px 12px 16px;
  box-shadow: 0 18px 36px rgba(191, 52, 119, 0.08);
}

.shot-card img {
  border-radius: 16px;
  width: 100%;
}

.shot-card figcaption {
  display: flex;
  flex-direction: column;
  padding: 12px 4px 0;
}

.shot-card strong { font-size: 15.5px; }

.shot-card span {
  font-size: 12.5px;
  color: var(--muted);
}

.look-note {
  padding: 26px 28px;
  border-left: 3px solid var(--rose);
  background: #fff;
  border-radius: 0 20px 20px 0;
  align-self: center;
}

.look-note p {
  font-size: 15.5px;
  color: #4d3a45;
}

.look-note .look-quiet {
  margin-top: 16px;
  font-size: 13.5px;
  color: #a58d9b;
}

/* ---------- 气泡问答 ---------- */

.talk {
  padding: 88px 0;
  background: linear-gradient(180deg, #fff4f9, #fffafc);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.thread {
  max-width: 760px;
  display: grid;
  gap: 14px;
}

.msg {
  max-width: 82%;
  padding: 14px 20px;
  border-radius: 20px;
  font-size: 15px;
  line-height: 1.75;
}

.msg-them {
  justify-self: start;
  background: #fff;
  border: 1px solid var(--line);
  color: #5d4652;
  border-bottom-left-radius: 6px;
}

.msg-us {
  justify-self: end;
  background: linear-gradient(135deg, #ef74b3, #d2458b);
  color: #fff;
  border-bottom-right-radius: 6px;
  box-shadow: 0 12px 26px rgba(210, 69, 139, 0.2);
}

/* ---------- 约定 ---------- */

.rules { padding: 88px 0; }

.rule-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.rule {
  padding: 30px 26px;
  border-radius: 22px;
  background: #fff7fa;
  border: 1px dashed #f0c6d9;
}

.rule h3 {
  font-size: 19px;
  color: var(--rose-deep);
}

.rule p {
  margin-top: 10px;
  font-size: 14.5px;
  color: var(--muted);
}

/* ---------- 下载 ---------- */

.get { padding: 48px 0 92px; }

.get-card {
  padding: 40px 38px;
  border-radius: 28px;
  background:
    radial-gradient(420px 220px at 90% 0%, #ffe0ee, transparent 70%),
    #fff;
  border: 1px solid var(--line);
  box-shadow: 0 24px 54px rgba(191, 52, 119, 0.1);
}

.get-copy h2 {
  font-size: clamp(24px, 3vw, 32px);
  letter-spacing: -0.4px;
}

.get-copy p {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14.5px;
}

.get-row {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.get-link {
  flex: 1 1 210px;
  flex-direction: column;
  padding: 16px 20px;
  border-radius: 16px;
  background: #fff8fb;
  border: 1px solid var(--line);
  transition: transform 0.2s, border-color 0.2s;
}

.get-link:not([hidden]) { display: flex; }

.get-link:hover {
  transform: translateY(-3px);
  border-color: var(--rose);
}

.get-key {
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
}

.get-sub {
  font-size: 12.5px;
  color: #a58d9b;
}

.get-tip {
  margin-top: 20px;
  font-size: 12.5px;
  color: #b39aa8;
}

/* ---------- 页脚 ---------- */

.foot {
  padding: 38px 0 42px;
  border-top: 1px solid var(--line);
  background: #fff5f9;
}

.foot-in {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}

.foot-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.foot-brand img {
  width: 32px;
  height: 32px;
  border-radius: 9px;
}

.foot-brand span {
  display: flex;
  flex-direction: column;
  font-size: 14.5px;
  font-weight: 700;
  line-height: 1.3;
}

.foot-brand em {
  font-style: normal;
  font-size: 10.5px;
  font-weight: 400;
  color: #b39aa8;
}

.foot-nav {
  display: flex;
  gap: 18px;
  font-size: 13px;
  color: var(--muted);
}

.foot-nav a:hover { color: var(--rose-deep); }

.foot-copy {
  width: 100%;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 12px;
  color: #b39aa8;
}

/* ---------- 出现动画 ---------- */

.fade {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}

.fade.on {
  opacity: 1;
  transform: none;
}

/* ---------- 响应式 ---------- */

@media (max-width: 940px) {
  .hero-in { grid-template-columns: 1fr; gap: 30px; }
  .hero-visual { padding: 0; }
  .bar-nav { display: none; }
  .bar-btn { margin-left: auto; }
  .look-grid { grid-template-columns: 1fr 1fr; }
  .look-note { grid-column: 1 / -1; border-radius: 20px; border-left: 3px solid var(--rose); }
}

@media (max-width: 700px) {
  .box { padding: 0 18px; }
  .hero { padding: 52px 0 64px; }
  .steps, .rule-grid { grid-template-columns: 1fr; }
  .start, .look, .talk, .rules { padding: 62px 0; }
  .look-grid { grid-template-columns: 1fr; }
  .shot-card { max-width: 320px; }
  .msg { max-width: 90%; }
  .get-card { padding: 28px 22px; border-radius: 22px; }
  .get-link { flex: 1 1 100%; }
  .bubble-b { right: -4px; }
  .foot-in { flex-direction: column; align-items: flex-start; }
  .foot-nav { flex-wrap: wrap; gap: 14px; }
}

/* ---------- 404 ---------- */

.miss {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 24px;
  background:
    radial-gradient(620px 320px at 50% 0%, #ffe1ee, transparent 72%),
    var(--paper);
}

.miss-in { max-width: 440px; }

.miss-code {
  font-size: 12px;
  letter-spacing: 5px;
  color: var(--rose);
  font-weight: 700;
}

.miss h1 {
  margin-top: 18px;
  font-size: clamp(26px, 5vw, 36px);
  line-height: 1.32;
}

.miss p {
  margin-top: 14px;
  color: var(--muted);
  font-size: 14.5px;
}

.miss .btn-rose { margin-top: 30px; }
