/* Cougarly 首页样式（只被 index.html 使用）
 * 版式参考 samples/healthtogether.webp：深色首屏 + 彩色丝带、居中超粗标题、立体装饰、照片填字、拼贴卡片、圆角收尾卡片。
 * 配色取自 App 截图（samples/cougarly）：暖黄→橙→珊瑚粉渐变、淡粉 / 淡紫色块、深色文字。 */
:root {
  --h-night: #1c1016;
  --h-night-2: #2a1820;
  --h-ink: #1f1d24;
  --h-muted: #6f6c76;
  --h-blush: #fff3f5;
  --h-pink: #ffe4ec;
  --h-lilac: #f3eeff;
  --h-lilac-ink: #8e6cf2;
  --h-peach: #fff1e3;
  --h-peach-ink: #f5821f;
  --h-coral: #ff5a5f;
  --h-rose-ink: #ec4880;
  --h-grad: linear-gradient(120deg, #ffc061 0%, #ff8c5a 45%, #ff4f7b 100%);
  --h-font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --h-radius: 32px;
  --tk-primary: #ff5a5f;
  --tk-font: var(--h-font);
  --tk-bg: #fff;
  --tk-text: var(--h-ink);
}

body.home { font-family: var(--h-font); color: var(--h-ink); background: #fff; overflow-x: hidden; }
.home h1, .home h2, .home h3 { font-weight: 800; letter-spacing: -0.045em; line-height: 1.02; text-wrap: balance; }
.h-grad-text { background: var(--h-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-center { text-align: center; }
.h-wrap { width: min(100% - 2.5rem, 1180px); margin-inline: auto; }
.h-sec-title { font-size: clamp(2.2rem, 4.6vw + 0.5rem, 4.4rem); margin: 0 auto 1rem; max-width: 16ch; }
.h-sec-lead { font-size: clamp(1.05rem, 0.4vw + 1rem, 1.25rem); color: var(--h-muted); margin: 0 auto; max-width: 40ch; }

/* 按钮：胶囊形 */
.h-btn { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 52px; padding: 0 1.6rem; border-radius: 999px;
  font: 700 1rem/1 var(--h-font); text-decoration: none; white-space: nowrap; border: 1.5px solid transparent;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease; }
.h-btn:hover { text-decoration: none; transform: translateY(-2px); }
.h-btn:active { transform: none; }
.h-btn.light { background: #fff; color: var(--h-ink); }
.h-btn.grad { background: var(--h-grad); color: #fff; box-shadow: 0 12px 28px -10px rgb(255 79 123 / .7); }
.h-btn.ghost { color: #fff; border-color: rgb(255 255 255 / .35); background: rgb(255 255 255 / .06); cursor: default; }
.h-btn.ghost:hover { transform: none; }
.h-btn small { font-weight: 500; opacity: .75; }

/* 导航：首屏上的深色版本 */
.home .navbar { background: rgb(28 16 22 / .82); border-bottom: 0; box-shadow: none; }
.home .brand { color: #fff; font-size: 1.2rem; }
.home .brand img { border-radius: 9px; }
.home .nav-menu a { color: rgb(255 255 255 / .75); font-weight: 600; }
.home .nav-menu a:hover, .home .nav-menu a.active { color: #fff; background: rgb(255 255 255 / .08); }
.home .nav-menu .h-btn { color: var(--h-ink); background: #fff; min-height: 38px; padding: 0 1.1rem; margin-left: .5rem; font-size: .9rem; }
.home .nav-menu .h-btn:hover { background: #fff; color: var(--h-ink); }
.home .nav-toggle { color: #fff; }
@media (max-width: 768px) {
  .home .nav-menu { background: var(--h-night-2); border-bottom: 0; }
  .home .nav-menu .h-btn { margin: .5rem 0 0; }
}

/* 首屏：深色背景，居中标题，一条彩色丝带横穿 */
.h-hero { position: relative; isolation: isolate; overflow: hidden; background: var(--h-night); color: #fff; text-align: center;
  padding: clamp(3.5rem, 8vw, 6.5rem) 0 0; }
.h-hero h1 { font-size: clamp(2.8rem, 6.4vw + 0.6rem, 6.2rem); margin: 0 auto 1.25rem; }
.h-hero-lead { font-size: clamp(1.1rem, 0.6vw + 1rem, 1.4rem); color: rgb(255 255 255 / .8); margin: 0 auto 2rem; }
.h-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem; }
.h-note { font-size: .78rem; color: rgb(255 255 255 / .55); margin: 1.1rem auto 0; max-width: 46ch; }
.h-ribbon { position: absolute; z-index: -1; left: -5%; width: 110%; top: 46%; height: auto; pointer-events: none; }
@media (max-width: 640px) { .h-ribbon { top: 64%; left: -30%; width: 160%; } }
.h-hero-stage { position: relative; margin-top: clamp(2rem, 5vw, 3.5rem); }
.h-hero-phone { display: block; margin: 0 auto; width: min(64vw, 400px); height: auto; filter: drop-shadow(0 40px 60px rgb(0 0 0 / .55)); }
.h-hero-floor { position: absolute; left: 0; right: 0; bottom: 0; height: 22%; background: linear-gradient(transparent, var(--h-night)); pointer-events: none; }

/* 立体装饰（球、圆环、胶囊） */
.h-orb { position: absolute; border-radius: 50%; pointer-events: none; }
.h-orb.sun { background: radial-gradient(circle at 32% 28%, #ffe7b8 0%, #ffb35c 30%, #ff7a3d 62%, #c93a2a 100%); }
.h-orb.rose { background: radial-gradient(circle at 32% 28%, #ffd1e0 0%, #ff7aa5 35%, #ec4880 65%, #8c1d4f 100%); }
.h-orb.lilac { background: radial-gradient(circle at 32% 28%, #ece4ff 0%, #b79cff 38%, #8e6cf2 68%, #4b2fa8 100%); }
.h-orb.dark { background: radial-gradient(circle at 32% 28%, #6b5a63 0%, #2a1820 55%, #0d070a 100%); }
.h-ring { position: absolute; border-radius: 50%; border: 10px solid transparent; pointer-events: none;
  background: var(--h-grad) border-box; -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; transform: rotate(-24deg) scaleY(.45); }
.h-pill { position: absolute; border-radius: 999px; pointer-events: none; background: linear-gradient(160deg, #ffb35c, #ff4f7b); transform: rotate(-35deg); }

/* 功能：浅粉底，手机图被立体元素包围，下面四列功能 */
.h-features { background: var(--h-blush); padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.h-showcase { position: relative; display: grid; place-items: center; margin: clamp(2.5rem, 5vw, 4rem) auto; width: min(100%, 720px); aspect-ratio: 16 / 11; }
.h-showcase-blob { position: absolute; inset: 12% 18%; border-radius: 46% 54% 52% 48% / 55% 45% 55% 45%; background: var(--h-grad); opacity: .9; }
.h-showcase img { position: relative; z-index: 1; height: 100%; width: auto; filter: drop-shadow(0 30px 40px rgb(31 29 36 / .28)); }
.h-showcase .sun { width: 15%; aspect-ratio: 1; left: 6%; top: 10%; }
.h-showcase .lilac { width: 11%; aspect-ratio: 1; right: 9%; top: 4%; }
.h-showcase .rose { width: 9%; aspect-ratio: 1; right: 5%; bottom: 14%; }
.h-showcase .h-ring { width: 26%; aspect-ratio: 1; left: 2%; bottom: 8%; }
.h-showcase .h-pill { width: 6%; height: 22%; right: 22%; bottom: 0; }
.h-feature-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.75rem, 3vw, 2.75rem) clamp(1.25rem, 2.5vw, 2rem); text-align: center; }
.h-feature svg { width: 30px; height: 30px; margin: 0 auto .9rem; display: block; }
.h-feature:nth-child(4n+1) svg { color: var(--h-coral); } .h-feature:nth-child(4n+2) svg { color: var(--h-lilac-ink); }
.h-feature:nth-child(4n+3) svg { color: var(--h-peach-ink); } .h-feature:nth-child(4n) svg { color: var(--h-rose-ink); }
.h-feature h3 { font-size: clamp(1.25rem, 0.6vw + 1.05rem, 1.55rem); margin: 0 0 .5rem; }
.h-feature p { margin: 0 auto; color: var(--h-muted); font-size: .98rem; max-width: 26ch; }
@media (max-width: 960px) { .h-feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 520px) { .h-feature-grid { grid-template-columns: 1fr; } }

/* 照片填字：深色底上的巨大品牌名 */
.h-word { background: var(--h-night); color: #fff; text-align: center; padding: clamp(4rem, 9vw, 7rem) 0 clamp(4.5rem, 9vw, 7rem); overflow: hidden; }
.h-word-big { display: block; margin: 0 auto; padding-block: .04em; font-size: clamp(5rem, 21vw, 19rem); font-weight: 900; letter-spacing: -0.06em; line-height: 1;
  background: linear-gradient(rgb(255 236 220 / .18), rgb(255 236 220 / .18)),
    url("../blog/wp-content/uploads/2023/02/cougar-women-1024x683.jpg") center 30% / cover;
  -webkit-background-clip: text; background-clip: text; color: transparent; }
.h-word h2 { font-size: clamp(2rem, 3.6vw + 0.6rem, 3.8rem); margin: clamp(1.5rem, 3vw, 2.5rem) auto 2rem; max-width: 16ch; }

/* FAQ：淡紫底，拼贴卡片 */
.h-faq { background: var(--h-lilac); padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.h-bento { display: grid; grid-template-columns: 1fr 1fr 1.25fr; gap: 1.25rem; margin-top: clamp(2.5rem, 5vw, 3.5rem); align-items: stretch; }
.h-card { border-radius: var(--h-radius); padding: clamp(1.5rem, 3vw, 2.25rem); display: flex; flex-direction: column; gap: .9rem; }
.h-card h3 { font-size: clamp(1.5rem, 1vw + 1.2rem, 2rem); margin: 0; }
.h-card p { margin: 0; font-size: 1rem; line-height: 1.6; }
.h-card .h-tag { align-self: flex-start; font-size: .8rem; font-weight: 700; padding: .3rem .8rem; border-radius: 999px; }
.h-card.white { background: #fff; color: var(--h-ink); }
.h-card.white .h-tag { background: var(--h-pink); color: var(--h-rose-ink); }
.h-card.grad { background: var(--h-grad); color: #fff; }
.h-card.grad .h-tag { background: rgb(255 255 255 / .22); color: #fff; }
.h-card.grad h3 { font-size: clamp(2.4rem, 2vw + 1.8rem, 3.4rem); }
.h-card.dark { background: var(--h-night); color: #fff; }
.h-card.dark p { color: rgb(255 255 255 / .82); }
.h-card.dark .h-tag { background: rgb(255 255 255 / .1); color: #ffb35c; }
@media (max-width: 900px) { .h-bento { grid-template-columns: 1fr; } }

/* 联系：珊瑚色整条，白色表单卡片 */
.h-contact { background: var(--h-coral); color: #fff; padding: clamp(4.5rem, 9vw, 7rem) 0; position: relative; overflow: hidden; isolation: isolate; }
.h-contact .h-sec-title { color: #fff; }
.h-contact .h-sec-lead { color: rgb(255 255 255 / .9); }
.h-contact .h-orb.sun { width: 220px; aspect-ratio: 1; left: -60px; bottom: -40px; z-index: -1; }
.h-contact .h-orb.dark { width: 120px; aspect-ratio: 1; right: 6%; top: 14%; z-index: -1; }
@media (max-width: 760px) { .h-contact .h-orb.dark { top: auto; bottom: 3%; right: -30px; width: 90px; } }
.h-form { width: min(100%, 620px); margin: clamp(2rem, 4vw, 3rem) auto 0; background: #fff; color: var(--h-ink); border-radius: var(--h-radius);
  padding: clamp(1.5rem, 3vw, 2.25rem); display: grid; gap: .9rem; box-shadow: 0 30px 60px -30px rgb(80 10 20 / .5); }
.h-form input, .h-form textarea { background: #f6f6f8; border: 1.5px solid transparent; border-radius: 18px; padding: .95rem 1.1rem; font: inherit; }
.h-form input:focus, .h-form textarea:focus { background: #fff; border-color: #ff8c5a; box-shadow: 0 0 0 4px rgb(255 140 90 / .18); outline: none; }
.h-form .h-btn { width: 100%; margin-top: .25rem; }
.h-form .h-hint { margin: 0; text-align: center; font-size: .85rem; color: var(--h-muted); }

/* 收尾卡片：圆角渐变卡 + App 图标 + 商店徽章 */
.h-end { background: var(--h-blush); padding: clamp(4rem, 8vw, 6rem) 0; }
.h-end-card { position: relative; overflow: hidden; isolation: isolate; display: grid; grid-template-columns: 1.2fr 1fr; align-items: center; gap: 2rem;
  background: var(--h-grad); color: #fff; border-radius: 40px; padding: clamp(2rem, 5vw, 4rem); }
.h-end-card h2 { font-size: clamp(2.2rem, 3.4vw + 0.8rem, 4rem); margin: 0 0 .75rem; max-width: 12ch; }
.h-end-card p { margin: 0 0 1.75rem; font-size: clamp(1.05rem, .4vw + 1rem, 1.25rem); color: rgb(255 255 255 / .92); }
.h-badges { display: flex; flex-wrap: wrap; gap: .75rem; align-items: center; }
.h-badges img { height: 48px; width: auto; display: block; }
.h-badges .soon img { opacity: .55; }
.h-end-art { position: relative; height: 100%; min-height: 240px; }
.h-end-art .h-icon { position: absolute; left: 50%; top: 50%; width: min(60%, 200px); transform: translate(-50%, -50%) rotate(-10deg);
  border-radius: 22%; box-shadow: 0 30px 50px -16px rgb(80 10 20 / .55); }
.h-end-art .h-orb.dark { width: 26%; aspect-ratio: 1; right: 6%; top: 4%; }
.h-end-art .h-orb.lilac { width: 18%; aspect-ratio: 1; left: 8%; bottom: 6%; }
.h-end-art .h-ring { width: 46%; aspect-ratio: 1; right: 0; bottom: 0; border-color: transparent; background: linear-gradient(#fff, #fff) border-box; opacity: .55; }
@media (max-width: 760px) {
  .h-end-card { grid-template-columns: 1fr; text-align: left; }
  .h-end-art { min-height: 200px; }
}

/* 页脚：分栏 */
.h-footer { background: #fff; padding: clamp(3rem, 6vw, 4.5rem) 0 2rem; font-size: .95rem; }
.h-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 2rem; }
.h-foot-grid h4 { font-size: .95rem; margin: 0 0 .9rem; letter-spacing: -0.01em; }
.h-foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: .55rem; }
.h-foot-grid a { color: var(--h-muted); text-decoration: none; }
.h-foot-grid a:hover { color: var(--h-coral); }
.h-foot-brand p { color: var(--h-muted); max-width: 30ch; margin: .75rem 0 0; }
.h-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 1rem; margin-top: 3rem; padding-top: 1.5rem;
  border-top: 1px solid #ecebf0; color: var(--h-muted); font-size: .88rem; }
.h-foot-bottom a { color: inherit; font-weight: 700; }
.h-foot-bottom .h-badges img { height: 40px; }
@media (max-width: 760px) { .h-foot-grid { grid-template-columns: 1fr 1fr; } .h-foot-brand { grid-column: 1 / -1; } }

/* 入场：只在支持动效时，标题和卡片轻微上浮（tk.js 负责 .reveal） */
@media (prefers-reduced-motion: no-preference) {
  .h-hero h1, .h-hero-lead, .h-actions { animation: h-rise .8s cubic-bezier(.16, 1, .3, 1) both; }
  .h-hero-lead { animation-delay: .12s; } .h-actions { animation-delay: .22s; }
  .h-hero-phone { animation: h-rise 1s cubic-bezier(.16, 1, .3, 1) .3s both; }
}
@keyframes h-rise { from { opacity: 0; transform: translateY(24px); } }
