@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;700&family=Space+Grotesk:wght@400;500;600;700&display=swap');

:root{
  --rose:#eb879c;
  --blush:#ffb6c1;
  --cocoa:#26171a;
  --paper:#fff7f8;
  --paper-2:#fdeef1;
  --ink:#4a3439;
  --line:rgba(38,23,26,.12);
  --r:28px;
  --shadow-s:0 2px 4px rgba(38,23,26,.06), 0 10px 26px rgba(38,23,26,.07);
  --shadow-m:0 4px 8px rgba(38,23,26,.08), 0 22px 44px rgba(235,135,156,.22);
  --sans:"DM Sans", system-ui, -apple-system, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  --display:"Space Grotesk", "DM Sans", system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", sans-serif;
}

*,*::before,*::after{box-sizing:border-box;}

html{
  scroll-behavior:smooth;
  -webkit-text-size-adjust:100%;
}

body{
  margin:0;
  font-family:var(--sans);
  font-size:17px;
  line-height:1.75;
  color:var(--cocoa);
  background-color:var(--paper);
  background-image:
    radial-gradient(760px 420px at 92% -10%, rgba(255,182,193,.6), transparent 70%),
    radial-gradient(680px 380px at -12% 18%, rgba(235,135,156,.18), transparent 66%);
  background-repeat:no-repeat;
}

img{max-width:100%;}

a{color:var(--cocoa);}

:focus-visible{
  outline:3px solid var(--rose);
  outline-offset:3px;
  border-radius:8px;
}

.sr-only{
  position:absolute;
  width:1px;height:1px;
  padding:0;margin:-1px;
  overflow:hidden;
  clip:rect(0 0 0 0);
  white-space:nowrap;
  border:0;
}

/* ---------- 页头 ---------- */
.masthead{
  position:sticky;
  top:0;
  z-index:30;
  background:rgba(255,247,248,.92);
  backdrop-filter:saturate(140%) blur(16px);
  border-bottom:1px solid var(--line);
}

.masthead-inner{
  max-width:1240px;
  margin:0 auto;
  padding:10px clamp(14px,4vw,44px) 12px;
  display:grid;
  gap:8px;
}

.brand-row{display:flex;align-items:center;}

.brand{
  display:inline-flex;
  align-items:center;
  gap:10px;
  min-height:44px;
  padding:4px 16px 4px 4px;
  border-radius:999px;
  text-decoration:none;
  font-family:var(--display);
  font-size:20px;
  letter-spacing:.02em;
  transition:background 240ms ease, box-shadow 240ms ease;
}

.brand:hover{background:#fff;box-shadow:var(--shadow-s);}

.brand .logo{
  width:34px;height:34px;
  border-radius:12px;
  object-fit:cover;
  box-shadow:var(--shadow-s);
}

.brand span{font-weight:600;}

.menu-row{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:0;
}

.pillnav{flex:1 1 auto;min-width:0;}

.pillnav ol{
  display:flex;
  gap:8px;
  margin:0;
  padding:2px;
  list-style:none;
  overflow-x:auto;
  scrollbar-width:none;
}

.pillnav ol::-webkit-scrollbar{display:none;}

.pillnav a{
  display:inline-flex;
  align-items:center;
  min-height:44px;
  padding:8px 18px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-s);
  text-decoration:none;
  font-size:16px;
  white-space:nowrap;
  transition:transform 240ms ease, box-shadow 240ms ease, background 240ms ease;
}

.pillnav a:hover{
  transform:translateY(-2px);
  background:var(--blush);
  box-shadow:var(--shadow-m);
}

.search{
  flex:0 0 auto;
  display:flex;
  align-items:center;
  gap:6px;
  padding:4px 4px 4px 14px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line);
  box-shadow:var(--shadow-s);
}

.search input{
  width:150px;
  min-height:40px;
  padding:0;
  border:0;
  background:transparent;
  font:inherit;
  font-size:16px;
  color:var(--cocoa);
}

.search input:focus{outline:none;}

.search button{
  min-height:40px;
  padding:0 16px;
  border:0;
  border-radius:999px;
  background:var(--cocoa);
  color:#fff;
  font:inherit;
  font-size:15px;
  cursor:pointer;
  transition:background 240ms ease;
}

.search button:hover{background:var(--rose);color:var(--cocoa);}

/* ---------- Hero ---------- */
.hero{
  max-width:1240px;
  margin:0 auto;
  min-height:100vh;
  min-height:100svh;
  display:grid;
  grid-template-columns:1.02fr .98fr;
  align-items:center;
  gap:clamp(20px,4vw,56px);
  padding:clamp(26px,5vw,64px) clamp(16px,5vw,48px) clamp(40px,8vw,90px);
}

.hero-copy{
  grid-column:2;
  grid-row:1;
  text-align:right;
}

.hero-title{
  margin:0 0 14px;
  font-family:var(--display);
  font-weight:600;
  font-size:clamp(2rem,4.6vw,3.5rem);
  line-height:1.18;
  letter-spacing:-.01em;
  text-wrap:balance;
}

.hero-lede{
  max-width:32ch;
  margin:0 0 26px auto;
  color:var(--ink);
  font-size:17px;
}

.cta{
  display:inline-flex;
  align-items:center;
  min-height:48px;
  padding:0 26px;
  border-radius:999px;
  background:var(--cocoa);
  color:#fff;
  text-decoration:none;
  font-family:var(--display);
  font-size:16px;
  letter-spacing:.05em;
  box-shadow:var(--shadow-m);
  transition:transform 240ms ease, background 240ms ease, color 240ms ease;
}

.cta:hover{
  transform:translateY(-2px);
  background:var(--rose);
  color:var(--cocoa);
}

.collage{
  grid-column:1;
  grid-row:1;
  position:relative;
  min-height:min(58vh,440px);
}

.collage-card{
  position:absolute;
  margin:0;
  border-radius:var(--r);
  overflow:hidden;
  background:linear-gradient(150deg,var(--blush),#fff);
  box-shadow:var(--shadow-m);
  border:6px solid #fff;
}

.collage-card img{
  display:block;
  width:100%;
  height:100%;
  object-fit:cover;
}

.collage-card-1{
  width:min(72%,340px);
  aspect-ratio:3/4;
  top:0;
  left:0;
  transform:rotate(-4deg) translateY(var(--py,0px));
}

.collage-card-2{
  width:min(56%,270px);
  aspect-ratio:1/1;
  bottom:0;
  right:2%;
  border-radius:calc(var(--r) + 6px);
  transform:rotate(5deg) translateY(var(--py,0px));
}

/* ---------- 正文与侧栏 ---------- */
.content-wrap{
  max-width:1240px;
  margin:0 auto;
  padding:clamp(26px,5vw,56px) clamp(16px,5vw,48px) clamp(20px,4vw,40px);
  display:grid;
  grid-template-columns:minmax(0,1fr) 288px;
  gap:clamp(24px,4vw,56px);
  align-items:start;
}

.content-flow{min-width:0;}

.content-flow section{
  position:relative;
  padding:clamp(20px,3vw,34px);
  border:1px solid var(--line);
  border-radius:var(--r);
  background:#fff;
  box-shadow:var(--shadow-s);
  overflow:hidden;
  scroll-margin-top:132px;
}

.content-flow section + section{margin-top:26px;}

.content-flow section::after{
  content:"";
  position:absolute;
  left:0;right:0;bottom:0;
  height:4px;
  background:linear-gradient(90deg,var(--rose),var(--blush));
}

.content-flow h2{
  margin:0 0 2px;
  font-family:var(--display);
  font-size:clamp(1.35rem,2.8vw,1.8rem);
  line-height:1.34;
  letter-spacing:-.005em;
}

.content-flow h3{
  margin:30px 0 2px;
  font-family:var(--display);
  font-size:1.15rem;
  line-height:1.4;
}

.content-flow hr{
  height:4px;
  width:56px;
  margin:12px 0 18px;
  border:0;
  border-radius:2px;
  background:linear-gradient(90deg,var(--rose),var(--blush));
}

.content-flow p{margin:0 0 16px;color:var(--ink);}

.content-flow ul,.content-flow ol{margin:0 0 18px;padding-left:22px;color:var(--ink);}

.content-flow li{margin:0 0 8px;}

.content-flow a{
  color:var(--cocoa);
  text-decoration:underline;
  text-decoration-color:var(--rose);
  text-underline-offset:3px;
}

.content-flow blockquote{
  margin:22px 0;
  padding:16px 20px;
  border-left:4px solid var(--rose);
  border-radius:0 18px 18px 0;
  background:var(--paper-2);
  color:var(--ink);
}

.content-flow blockquote p:last-child{margin-bottom:0;}

.content-flow figure{
  margin:24px 0;
  border-radius:var(--r);
  overflow:hidden;
  box-shadow:var(--shadow-m);
}

.content-flow img{display:block;width:100%;height:auto;}

.side{
  position:sticky;
  top:132px;
  padding:22px 20px 26px;
  border-radius:var(--r);
  border:1px solid var(--line);
  background:#fff;
  box-shadow:var(--shadow-s);
}

.side h2{
  margin:0 0 2px;
  font-family:var(--display);
  font-size:17px;
  letter-spacing:.06em;
}

.side hr{
  height:3px;
  width:44px;
  margin:10px 0 14px;
  border:0;
  border-radius:2px;
  background:var(--rose);
}

.side ol{list-style:none;margin:0;padding:0;display:grid;gap:2px;}

.side a{
  display:block;
  min-height:44px;
  padding:10px 10px;
  border-radius:14px;
  border-bottom:2px solid transparent;
  text-decoration:none;
  color:var(--ink);
  font-size:16px;
  transition:background 240ms ease, border-color 240ms ease;
}

.side a:hover{background:var(--paper-2);border-bottom-color:var(--blush);}

/* ---------- 页脚 ---------- */
.foot{
  margin-top:56px;
  padding:clamp(34px,6vw,64px) clamp(16px,5vw,48px) 22px;
  background:var(--cocoa);
  color:#f8ecee;
}

.foot-inner{
  max-width:1240px;
  margin:0 auto;
  display:grid;
  gap:38px;
}

.foot h2,.foot h3{
  margin:0 0 2px;
  font-family:var(--display);
  font-size:17px;
  letter-spacing:.05em;
  color:#fff;
}

.foot hr{
  height:3px;
  width:40px;
  margin:8px 0 14px;
  border:0;
  border-radius:2px;
  background:var(--rose);
}

.foot p{margin:0 0 8px;color:#e7d2d7;}

.foot a{
  display:inline-flex;
  align-items:center;
  min-height:40px;
  padding:4px 2px;
  color:#f8ecee;
  text-decoration:none;
  border-bottom:2px solid transparent;
  transition:border-color 240ms ease;
}

.foot a:hover{border-bottom-color:var(--blush);}

.foot-host{font-family:var(--display);font-size:16px;letter-spacing:.02em;overflow-wrap:anywhere;}

.foot-top{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:28px;
  align-items:start;
}

.subscribe{display:grid;gap:6px;}

.subscribe label{font-family:var(--display);font-size:17px;color:#fff;letter-spacing:.05em;}

.sub-row{display:flex;gap:8px;flex-wrap:wrap;}

.subscribe input{
  flex:1 1 160px;
  min-height:44px;
  padding:0 16px;
  border-radius:999px;
  border:1px solid rgba(255,255,255,.24);
  background:rgba(255,255,255,.1);
  color:#fff;
  font:inherit;
  font-size:16px;
}

.subscribe input::placeholder{color:rgba(255,255,255,.62);}

.subscribe button{
  min-height:44px;
  padding:0 22px;
  border:0;
  border-radius:999px;
  background:var(--rose);
  color:var(--cocoa);
  font:inherit;
  font-weight:600;
  cursor:pointer;
  transition:background 240ms ease;
}

.subscribe button:hover{background:var(--blush);}

.foot-cols{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:28px;
}

.foot-cols ol{list-style:none;margin:0;padding:0;}

.foot-base{
  display:flex;
  flex-wrap:wrap;
  justify-content:space-between;
  align-items:center;
  gap:10px;
  padding-top:18px;
  border-top:1px solid rgba(255,255,255,.16);
}

.foot-base p{margin:0;}

.base-links{display:flex;gap:18px;flex-wrap:wrap;}

/* ---------- 动效 ---------- */
.reveal{transition:opacity 280ms ease, transform 280ms ease;}

.js .reveal{opacity:0;transform:translateY(16px);}

.js .reveal.in{opacity:1;transform:none;}

@media (prefers-reduced-motion: reduce){
  html{scroll-behavior:auto;}
  .reveal,
  .js .reveal{opacity:1 !important;transform:none !important;transition:none !important;}
  .collage-card{transform:none !important;}
  .pillnav a:hover,.cta:hover{transform:none;}
}

/* ---------- 窄屏 ---------- */
@media (max-width:860px){
  .hero{
    grid-template-columns:1fr;
    min-height:100svh;
    padding-top:24px;
  }

  .hero-copy{grid-column:1;grid-row:1;}

  .hero-lede{margin-left:0;}

  .collage{
    grid-column:1;
    grid-row:2;
    min-height:238px;
    margin-top:22px;
  }

  .collage-card-1{width:min(62%,216px);}
  .collage-card-2{width:min(48%,176px);right:6%;}

  .content-wrap{grid-template-columns:1fr;}

  .side{position:static;order:2;}

  .foot-top,.foot-cols{grid-template-columns:1fr;}

  .menu-row{flex-wrap:wrap;}

  .search{width:100%;flex:1 1 100%;}

  .search input{width:100%;min-width:0;}
}

@media (max-width:420px){
  body{font-size:16px;}
  .hero-title{font-size:2rem;}
  .content-flow section{padding:18px;border-radius:22px;}
}

button[aria-expanded]{min-width:44px;min-height:44px}
