/* ============================================================
   香香腐宅 官网 · style.css
   主题：复古桃粉甜点（奶油白 × 桃粉 × 深可可棕）
   ============================================================ */

/* ---------- 变量与基础 ---------- */
:root {
  --ink: #43242e;
  --ink-soft: #8a6a72;
  --bg: #fbf4f1;
  --paper: #ffffff;
  --cream: #f7e9d0;
  --pink: #f27b93;
  --pink-deep: #e05b79;
  --caramel: #c98a4b;
  --blush: #fde9ee;
  --line: #f0dcde;
  --shadow: 0 14px 40px rgba(67, 36, 46, 0.09);
  --radius: 20px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Segoe UI", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-padding-top: 84px; }

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.wrap { max-width: 1160px; margin: 0 auto; padding: 0 24px; }

/* ---------- 通用组件 ---------- */
.section { padding: 92px 0; }

.sec-head { margin-bottom: 52px; }
.sec-head.center { text-align: center; }

.kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: var(--pink-deep);
  background: var(--blush);
  border: 1px solid rgba(240, 91, 121, 0.28);
  padding: 5px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}

.sec-title {
  font-size: 34px;
  font-weight: 800;
  letter-spacing: 0.02em;
  margin-bottom: 12px;
}

.sec-desc { color: var(--ink-soft); font-size: 16px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font);
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 999px;
  padding: 13px 26px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
  white-space: nowrap;
}

.btn svg { width: 18px; height: 18px; }

.btn:focus-visible { outline: 3px solid rgba(201, 138, 75, 0.5); outline-offset: 2px; }

.btn-primary {
  background: linear-gradient(135deg, var(--pink), var(--pink-deep));
  color: #fff;
  box-shadow: 0 10px 26px rgba(240, 123, 147, 0.38);
}

.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(240, 123, 147, 0.5); }

.btn-ghost {
  background: transparent;
  color: var(--pink-deep);
  border: 1.5px solid var(--pink);
}

.btn-ghost:hover { background: var(--blush); transform: translateY(-2px); }

.btn-lg { padding: 16px 34px; font-size: 17px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

.btn-white {
  background: #fff;
  color: var(--pink-deep);
  box-shadow: 0 12px 30px rgba(67, 36, 46, 0.18);
}

.btn-white:hover { transform: translateY(-2px); box-shadow: 0 16px 36px rgba(67, 36, 46, 0.24); }

/* ---------- 导航 ---------- */
.nav {
  position: fixed;
  inset: 0 0 auto 0;
  z-index: 100;
  background: rgba(251, 244, 241, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}

.nav.is-scrolled { border-bottom-color: var(--line); }

.nav-inner {
  display: flex;
  align-items: center;
  gap: 32px;
  height: 72px;
}

.nav-logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 19px; }

.nav-logo img {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(67, 36, 46, 0.16);
}

.nav-links { display: flex; gap: 28px; margin-left: auto; }

.nav-links a {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
  position: relative;
  padding: 6px 2px;
  transition: color 0.2s ease;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  border-radius: 2px;
  background: var(--pink);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.25s ease;
}

.nav-links a:hover,
.nav-links a.active { color: var(--ink); }

.nav-links a.active::after,
.nav-links a:hover::after { transform: scaleX(1); }

.nav-toggle {
  display: none;
  margin-left: auto;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}

.nav-toggle span {
  width: 24px;
  height: 2px;
  border-radius: 2px;
  background: var(--ink);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.nav-panel {
  position: fixed;
  top: 72px;
  left: 0;
  right: 0;
  z-index: 99;
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 24px 40px rgba(67, 36, 46, 0.12);
  padding: 18px 24px 26px;
  display: none;
  flex-direction: column;
  gap: 6px;
}

.nav-panel.open { display: flex; }

.nav-panel a { display: block; padding: 12px 6px; font-size: 16px; font-weight: 600; border-bottom: 1px solid var(--line); }
.nav-panel .btn { margin-top: 14px; justify-content: center; border-bottom: none; }

/* ---------- Hero（大图模式） ---------- */
.hero {
  position: relative;
  padding: 148px 0 96px;
  overflow: hidden;
  background:
    radial-gradient(760px 380px at 8% -8%, rgba(247, 233, 208, 0.9), transparent 60%),
    radial-gradient(760px 400px at 94% 10%, rgba(253, 233, 238, 0.95), transparent 60%),
    linear-gradient(160deg, #fdf6f2 0%, #fbf4f1 50%, #fdeef1 100%);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: 52px;
  align-items: center;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--pink-deep);
  background: var(--paper);
  border: 1px solid rgba(240, 123, 147, 0.3);
  padding: 7px 15px;
  border-radius: 999px;
  box-shadow: 0 6px 18px rgba(67, 36, 46, 0.06);
  margin-bottom: 22px;
}

.hero-badge svg { width: 15px; height: 15px; }

.hero-title {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 0.03em;
  line-height: 1.12;
  background: linear-gradient(120deg, var(--pink-deep), var(--pink) 55%, var(--caramel));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: var(--pink-deep);
}

.hero-sub {
  margin-top: 14px;
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: 0.06em;
}

.hero-desc { margin-top: 18px; color: var(--ink-soft); font-size: 16.5px; max-width: 34em; }

.hero-ctas { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 30px; }

.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}

.stat { display: flex; flex-direction: column; }

.stat-num {
  font-size: 30px;
  font-weight: 900;
  color: var(--pink-deep);
  font-variant-numeric: tabular-nums;
}

.stat-label { font-size: 13.5px; color: var(--ink-soft); margin-top: 2px; }

/* Hero 大图 */
.hero-visual { position: relative; }

.hero-frame {
  position: relative;
  margin: 0 auto;
  max-width: 480px;
}

.hero-frame img {
  border-radius: 26px;
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
  box-shadow: 0 30px 64px rgba(67, 36, 46, 0.24);
  border: 8px solid #fff;
}

.hero-tag {
  position: absolute;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  background: var(--paper);
  border-radius: 14px;
  padding: 10px 16px;
  box-shadow: 0 12px 26px rgba(67, 36, 46, 0.16);
  animation: floaty 5s ease-in-out infinite;
}

.hero-tag svg { width: 16px; height: 16px; color: var(--pink-deep); }

.hero-tag-1 { top: 7%; left: -8px; animation-delay: 0s; }
.hero-tag-2 { top: 33%; right: -10px; animation-delay: 0.9s; }
.hero-tag-3 { bottom: 22%; left: -14px; animation-delay: 1.8s; }

.hero-deco {
  position: absolute;
  bottom: -22px;
  right: -16px;
  z-index: -1;
  width: 130px;
  height: 130px;
  border-radius: 50%;
  background: linear-gradient(135deg, rgba(247, 233, 208, 0.9), rgba(253, 233, 238, 0.9));
}

@keyframes floaty {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (prefers-reduced-motion: reduce) {
  .hero-tag { animation: none; }
}

/* ---------- 功能四宫格 ---------- */
.features { background: var(--bg); }

.feat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

.feat-card {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 20px;
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.feat-card:hover { transform: translateY(-6px); box-shadow: 0 22px 48px rgba(67, 36, 46, 0.14); }

.feat-art { padding: 14px 0 14px 14px; }

.feat-art img {
  border-radius: 14px;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  width: 100%;
}

.feat-body { padding: 10px 18px 10px 0; }

.feat-body h3 { font-size: 19px; font-weight: 800; margin-bottom: 7px; }

.feat-body p { color: var(--ink-soft); font-size: 14px; }

.feat-body .feat-tag {
  display: inline-block;
  margin-top: 10px;
  font-size: 12px;
  font-weight: 700;
  color: var(--pink-deep);
  background: var(--blush);
  border-radius: 999px;
  padding: 3px 11px;
}

/* ---------- 内容分区 ---------- */
.agents { background: var(--paper); }

.agent-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.agent-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 24px;
  transition: transform 0.25s ease, border-color 0.25s ease;
}

.agent-card:hover { transform: translateY(-4px); border-color: rgba(240, 123, 147, 0.5); }

.agent-icon {
  width: 50px;
  height: 50px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: var(--blush);
  color: var(--pink-deep);
}

.agent-icon svg { width: 25px; height: 25px; }

.agent-card h3 { font-size: 18px; font-weight: 800; margin-bottom: 6px; }

.agent-card p { color: var(--ink-soft); font-size: 14px; }

.agent-tags { display: flex; gap: 8px; margin-top: 12px; }

.tag {
  font-size: 12px;
  font-weight: 600;
  color: var(--caramel);
  background: rgba(201, 138, 75, 0.1);
  border: 1px solid rgba(201, 138, 75, 0.3);
  border-radius: 999px;
  padding: 3px 10px;
}

/* ---------- 玩法步骤 ---------- */
.steps { background: linear-gradient(180deg, var(--bg), #fdeef1); }

.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.step {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 28px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.step::before {
  content: "";
  position: absolute;
  top: -42px;
  right: -42px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: var(--blush);
}

.step-num {
  display: inline-block;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--pink-deep);
  background: var(--blush);
  border-radius: 999px;
  padding: 5px 13px;
  margin-bottom: 16px;
  position: relative;
}

.step h3 { font-size: 19px; font-weight: 800; margin-bottom: 8px; position: relative; }

.step p { color: var(--ink-soft); font-size: 14.5px; position: relative; }

/* ---------- 用户评价 ---------- */
.reviews { background: var(--bg); }

.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.review-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
}

.review-stars { display: flex; gap: 3px; color: var(--caramel); margin-bottom: 16px; }

.review-stars svg { width: 17px; height: 17px; }

.review-text { font-size: 15px; color: var(--ink-soft); flex: 1; }

.review-person { display: flex; align-items: center; gap: 12px; margin-top: 22px; }

.avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}

.avatar-1 { background: linear-gradient(135deg, var(--pink), var(--pink-deep)); }
.avatar-2 { background: linear-gradient(135deg, var(--caramel), #a96c33); }
.avatar-3 { background: linear-gradient(135deg, #b98ab5, #8a6a72); }

.review-person strong { display: block; font-size: 15px; }
.review-person span:not(.avatar) { display: block; font-size: 12.5px; color: var(--ink-soft); }

.quote-banner {
  margin-top: 34px;
  text-align: center;
  background: linear-gradient(120deg, var(--pink-deep), var(--pink) 55%, var(--caramel));
  color: #fff;
  border-radius: var(--radius);
  padding: 42px 24px;
  box-shadow: 0 18px 44px rgba(240, 123, 147, 0.34);
}

.quote-text { font-size: 22px; font-weight: 800; letter-spacing: 0.03em; }

.quote-from { margin-top: 12px; font-size: 13.5px; opacity: 0.9; }

/* ---------- FAQ ---------- */
.faq { background: var(--paper); }

.faq-list { max-width: 780px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }

.faq-item {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}

.faq-item.open { border-color: rgba(240, 123, 147, 0.5); }

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: none;
  border: none;
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  color: var(--ink);
  text-align: left;
  padding: 20px 24px;
  cursor: pointer;
}

.faq-q:hover { color: var(--pink-deep); }

.faq-q .icon { flex-shrink: 0; color: var(--pink-deep); transition: transform 0.3s ease; }

.faq-q .icon svg { width: 16px; height: 16px; display: block; }

.faq-item.open .faq-q .icon { transform: rotate(45deg); }

.faq-a {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.3s ease;
}

.faq-a > div { overflow: hidden; }

.faq-item.open .faq-a { grid-template-rows: 1fr; }

.faq-a p { padding: 0 24px 20px; color: var(--ink-soft); font-size: 14.5px; }

/* ---------- 下载区 ---------- */
.download {
  padding: 70px 0 92px;
  background: linear-gradient(160deg, #fdeef1, var(--bg));
}

.download-banner {
  position: relative;
  text-align: center;
  overflow: hidden;
  background:
    radial-gradient(600px 300px at 85% -20%, rgba(247, 233, 208, 0.6), transparent 60%),
    radial-gradient(700px 360px at 10% 110%, rgba(253, 233, 238, 0.9), transparent 60%),
    linear-gradient(140deg, var(--pink-deep), var(--pink));
  border-radius: 28px;
  color: #fff;
  padding: 64px 24px;
  box-shadow: 0 24px 60px rgba(240, 123, 147, 0.4);
}

.download-app { width: 92px; height: 92px; margin: 0 auto 22px; }

.download-app img {
  width: 92px;
  height: 92px;
  border-radius: 22px;
  box-shadow: 0 14px 30px rgba(67, 36, 46, 0.3);
}

.download-title { font-size: 36px; font-weight: 900; letter-spacing: 0.03em; }

.download-desc { margin-top: 12px; font-size: 16px; opacity: 0.94; }

.download-btn-row { display: flex; align-items: center; justify-content: center; gap: 20px; margin-top: 30px; flex-wrap: wrap; }

.download-note { font-size: 13.5px; opacity: 0.9; }

/* ---------- 页脚 ---------- */
.footer {
  background: var(--ink);
  color: #d9bcc3;
  padding: 60px 0 32px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-brand .nav-logo { color: #fff; }

.footer-brand .nav-logo img { box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4); }

.footer-brand p { margin-top: 16px; font-size: 14px; line-height: 1.9; max-width: 30em; }

.footer-col h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }

.footer-col ul { display: flex; flex-direction: column; gap: 9px; }

.footer-col a { font-size: 14px; color: #d9bcc3; transition: color 0.2s ease; }

.footer-col a:hover { color: #fff; }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding-top: 26px;
  font-size: 13px;
  color: #a9848d;
  flex-wrap: wrap;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 28px; }
  .hero-visual { order: -1; }
  .hero-frame { max-width: 400px; }
  .feat-grid { grid-template-columns: 1fr; }
  .feat-card { grid-template-columns: 0.7fr 1.3fr; }
  .agent-grid { grid-template-columns: 1fr 1fr; }
  .steps-grid { grid-template-columns: 1fr; gap: 18px; }
  .review-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 680px) {
  .section { padding: 64px 0; }
  .sec-head { margin-bottom: 36px; }
  .sec-title { font-size: 26px; }
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
  .hero { padding: 118px 0 64px; }
  .hero-title { font-size: 42px; }
  .hero-sub { font-size: 18px; }
  .hero-stats { gap: 24px; }
  .stat-num { font-size: 24px; }
  .feat-card { grid-template-columns: 1fr; }
  .feat-art { padding: 14px 14px 0; }
  .feat-body { padding: 4px 18px 18px; }
  .agent-grid { grid-template-columns: 1fr; }
  .download-banner { padding: 48px 20px; }
  .download-title { font-size: 28px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; }
}
