﻿/* ================= landing page ================= */
:root {
  --bg: #f7f4ee;
  --bg2: #ffffff;
  --ink: #241f18;
  --ink-dim: #6f675b;
  --ink-faint: #a49a8a;
  --gold: #a8843f;
  --gold-deep: #8a6a2f;
  --ember: #c77f4a;
  --line: #eae3d4;
  --card-shadow: 0 6px 24px rgba(60, 45, 20, 0.07);
  --radius: 18px;
  --font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  background-image: radial-gradient(circle at 15% 0%, rgba(168, 132, 63, 0.08), transparent 40%),
                    radial-gradient(circle at 85% 30%, rgba(199, 127, 74, 0.08), transparent 42%);
  font-family: var(--font);
  color: var(--ink);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
a { text-decoration: none; color: inherit; }

/* ---- header ---- */
.lp-header {
  position: sticky; top: 0; z-index: 50;
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 1px solid var(--line);
}
.lp-brand { display: flex; align-items: center; gap: 9px; font-size: 17px; font-weight: 800; letter-spacing: 3px; color: var(--gold-deep); }
.lp-brand .logo {
  width: 30px; height: 30px; border-radius: 50%;
  border: 2px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 700; color: var(--gold);
}
.lp-nav { display: flex; gap: 2px; flex: 1; }
.lp-nav a { padding: 8px 13px; border-radius: 999px; color: var(--ink-dim); font-size: 14px; transition: background .15s ease, color .15s ease; }
.lp-nav a:hover { background: #f3ede1; color: var(--gold-deep); }
.lp-login {
  padding: 8px 20px; border: 1px solid var(--gold); border-radius: 999px;
  color: var(--gold-deep); font-size: 14px; font-weight: 600;
  transition: background .15s ease, color .15s ease, transform .15s ease;
}
.lp-login:hover { background: var(--gold); color: #1a1206; transform: translateY(-1px); }

/* ---- hero ---- */
.lp-hero { position: relative; overflow: hidden; padding: 60px 20px 48px; }
.lp-hero-inner { max-width: 1020px; margin: 0 auto; display: grid; grid-template-columns: 1.1fr 1fr; gap: 36px; align-items: center; }
.lp-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px; border-radius: 999px;
  background: #f0e7d5; color: var(--gold-deep);
  font-size: 13px; font-weight: 600; letter-spacing: 1px;
}
.lp-eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(168, 132, 63, 0.18); }
.lp-hero h1 { margin-top: 0; font-size: 54px; font-weight: 800; letter-spacing: 4px; line-height: 1.12; }
.lp-hero h1 em { font-style: normal; background: linear-gradient(120deg, var(--gold) 0%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .sub { margin-top: 16px; font-size: 17px; color: var(--ink-dim); max-width: 30em; }
.lp-hero .sub b { color: var(--ink); }
.lp-hero .slogan-main {
  margin-top: 16px; font-size: 34px; font-weight: 800; letter-spacing: 2px; line-height: 1.3;
  color: transparent;
  background: linear-gradient(120deg, var(--gold) 0%, var(--ember) 100%);
  -webkit-background-clip: text; background-clip: text;
}
.lp-cta { margin-top: 30px; display: flex; gap: 12px; flex-wrap: wrap; }
.lp-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px;
  font-size: 15px; font-weight: 600;
  border: 1px solid var(--line); color: var(--ink-dim); background: var(--bg2);
  box-shadow: var(--card-shadow);
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.lp-btn:hover { transform: translateY(-2px); }
.lp-btn.primary {
  background: linear-gradient(120deg, var(--gold), var(--ember)); color: #fff; border: none;
  box-shadow: 0 10px 24px rgba(168, 132, 63, 0.35);
}
.lp-btn.primary:hover { box-shadow: 0 14px 30px rgba(168, 132, 63, 0.45); }
.lp-stats { margin-top: 28px; display: flex; gap: 26px; flex-wrap: wrap; }
.lp-stats .s b { display: block; font-size: 19px; color: var(--gold-deep); line-height: 1.25; }
.lp-stats .s span { font-size: 13px; color: var(--ink-faint); letter-spacing: 1px; }

/* hero visual */
.lp-visual { position: relative; display: flex; align-items: center; justify-content: center; min-height: 320px; }
.ring-svg { width: 260px; height: 260px; filter: drop-shadow(0 16px 32px rgba(60, 45, 20, 0.16)); }
.ring-track { fill: none; stroke: #ece4d2; stroke-width: 16; }
.ring-prog { fill: none; stroke: url(#goldGrad); stroke-width: 16; stroke-linecap: round;
  stroke-dasharray: 553; stroke-dashoffset: 553; animation: draw 1.8s ease .3s forwards; }
@keyframes draw { to { stroke-dashoffset: 348; } }
.ring-num { font-size: 58px; font-weight: 800; fill: var(--gold-deep); letter-spacing: 2px; }
.ring-day { font-size: 14px; fill: var(--ink-faint); letter-spacing: 3px; }

/* ---- sections ---- */
.lp-section { max-width: 1020px; margin: 0 auto; padding: 54px 20px; }
.lp-section .sec-head { text-align: center; margin-bottom: 34px; }
.lp-section h2 { font-size: 31px; font-weight: 800; letter-spacing: 3px; margin-top: 14px; }
.lp-section .lead { color: var(--ink-dim); margin-top: 10px; font-size: 15px; }

.lp-grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.lp-card {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .5s ease both;
}
.lp-card:nth-child(2) { animation-delay: .06s; }
.lp-card:nth-child(3) { animation-delay: .12s; }
.lp-card:nth-child(4) { animation-delay: .18s; }
.lp-card:nth-child(5) { animation-delay: .24s; }
.lp-card:nth-child(6) { animation-delay: .3s; }
.lp-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(60, 45, 20, 0.12); }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
.card-ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 700; color: var(--gold-deep);
  background: linear-gradient(135deg, #f3ebdb, #e9d8b4);
  margin-bottom: 14px;
}
.lp-card h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: 1px; }
.lp-card p { font-size: 14px; color: var(--ink-dim); }

/* ---- plans ---- */
.plan-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; }
.plan-card {
  position: relative; overflow: hidden;
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 20px 20px; box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .5s ease both;
}
.plan-card:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(60, 45, 20, 0.12); }
.plan-card::after {
  content: "100天"; position: absolute; top: 15px; right: -30px;
  transform: rotate(38deg); background: var(--gold); color: #fff;
  font-size: 11px; font-weight: 700; padding: 3px 34px; letter-spacing: 1px;
}
.plan-ico {
  width: 48px; height: 48px; border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700; color: var(--gold-deep);
  background: linear-gradient(135deg, #f3ebdb, #e9d8b4); margin-bottom: 12px;
}
.plan-card h3 { font-size: 16px; letter-spacing: 1px; }
.plan-card .tagline { font-size: 12px; color: var(--gold-deep); font-weight: 600; margin: 3px 0 8px; }
.plan-card p { font-size: 13.5px; color: var(--ink-dim); }
.plan-group { margin-bottom: 28px; }
.plan-group .cat-title { margin: 0 0 10px; color: var(--gold-deep); letter-spacing: 2px; font-size: 14px; font-weight: 600; }
.plan-group .plan-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.plan-card .custom-badge {
  display: inline-block; vertical-align: middle; margin-left: 6px;
  font-size: 11px; color: #fff; background: var(--ember);
  padding: 1px 8px; border-radius: 999px; font-weight: 600; letter-spacing: 0;
}
.plans-dynamic .plans-loading { text-align: center; color: var(--ink-faint); font-size: 14px; padding: 28px 0; }
.lp-center { text-align: center; margin-top: 32px; }
.plans-featured { margin-bottom: 8px; }
.plan-card-featured {
  background: linear-gradient(135deg, #fdf8ec, #f3e9d2);
  border-color: var(--gold);
  padding: 26px 24px 22px;
}
.plan-card-featured::after { content: "推荐"; background: var(--ember); }
.plan-card-featured .plan-ico { background: linear-gradient(135deg, #f6e2b0, #e3c079); }
.plan-card-featured p { margin-bottom: 14px; }
.plan-card-featured .featured-btn { margin-top: 2px; }

/* ---- coach ---- */
.lp-coach {
  position: relative;
  margin: 14px auto 0;
  padding: 54px 30px;
  border-radius: 24px;
  background:
    radial-gradient(420px 180px at 88% 0%, rgba(199, 127, 74, 0.12), transparent 65%),
    linear-gradient(165deg, #fbf6ea, #f3e9d2);
  border: 1px solid #eadec2;
}
.lp-coach .lp-card { background: #fffdf7; }
.lp-coach .lp-btn.primary { box-shadow: 0 10px 24px rgba(168, 132, 63, 0.3); }

/* ---- faq ---- */
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
  background: var(--bg2); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--card-shadow);
  margin-bottom: 10px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; padding: 15px 18px;
  font-size: 15px; font-weight: 600; color: var(--ink);
  list-style: none; display: flex; align-items: center; justify-content: space-between;
  transition: background .15s ease;
}
.faq-item summary:hover { background: rgba(168, 132, 63, 0.06); }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--gold-deep); font-size: 18px; font-weight: 700; line-height: 1; transition: transform .2s ease; }
.faq-item[open] summary::after { transform: rotate(45deg); }
.faq-item p { padding: 0 18px 16px; font-size: 14px; color: var(--ink-dim); line-height: 1.75; }
.faq-item p b { color: var(--gold-deep); }



/* ---- steps ---- */
.lp-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.lp-step {
  background: var(--bg2); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; box-shadow: var(--card-shadow);
  transition: transform .18s ease, box-shadow .18s ease;
  animation: rise .5s ease both;
}
.lp-step:hover { transform: translateY(-4px); box-shadow: 0 16px 36px rgba(60, 45, 20, 0.12); }
.step-num {
  width: 46px; height: 46px; border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 19px; font-weight: 800; color: #fff;
  background: linear-gradient(120deg, var(--gold), var(--ember));
  margin-bottom: 14px; box-shadow: 0 8px 18px rgba(168, 132, 63, 0.35);
}
.lp-step h3 { font-size: 16px; margin-bottom: 6px; letter-spacing: 1px; }
.lp-step p { font-size: 14px; color: var(--ink-dim); }

/* ---- CTA band ---- */
.lp-band { max-width: 1020px; margin: 0 auto; padding: 0 20px 56px; }
.lp-band .inner {
  background: linear-gradient(120deg, #2b2417, #46381f);
  border-radius: 24px; padding: 46px 30px; text-align: center;
  box-shadow: 0 18px 44px rgba(43, 36, 23, 0.28);
}
.lp-band h2 { color: #f6efdf; font-size: 27px; letter-spacing: 3px; }
.lp-band p { color: #cfc3a8; margin-top: 12px; font-size: 15px; }
.lp-band .lp-btn.primary { margin-top: 24px; background: linear-gradient(120deg, var(--gold), var(--ember)); }
.lp-band-new { padding-bottom: 8px; }
.lp-band-new .inner { background: linear-gradient(120deg, #3a2f1c, #52402a); }
.lp-band-new .new-eyebrow { color: var(--gold); letter-spacing: 3px; font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.lp-band-new h2 { font-size: 22px; letter-spacing: 2px; }
.lp-band-new .new-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.lp-band-new .new-tags span { padding: 6px 14px; border: 1px solid rgba(246, 239, 223, 0.28); border-radius: 999px; color: #e9dfc8; font-size: 13px; letter-spacing: 1px; }

/* ---- footer ---- */
.lp-footer { border-top: 1px solid var(--line); text-align: center; padding: 28px 20px; color: var(--ink-faint); font-size: 13px; }
.lp-footer .slogan { display: block; margin-top: 8px; letter-spacing: 3px; color: var(--gold-deep); font-weight: 600; }

/* ---- invite banner ---- */
.hidden { display: none !important; }
.muted { color: var(--ink-dim); font-size: 14px; }
.invite-banner {
  background: linear-gradient(120deg, #3a2f1c, #52402a);
  color: #f3ecd9; padding: 34px 20px;
}
.invite-banner .inner {
  max-width: 1020px; margin: 0 auto;
  display: grid; grid-template-columns: 1.3fr 1fr; gap: 34px; align-items: center;
}
.ib-eyebrow { color: var(--gold); letter-spacing: 3px; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.invite-banner h2 { font-size: 26px; letter-spacing: 2px; margin-bottom: 10px; }
.ib-sub { color: #cfc6ad; font-size: 15px; margin-bottom: 20px; }
.invite-banner .lp-btn.primary { background: linear-gradient(120deg, var(--gold), var(--ember)); color: #1a1206; }
.ib-cheer {
  background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(246, 239, 223, 0.22);
  border-radius: 16px; padding: 22px; backdrop-filter: blur(6px);
}
.ib-cheer h3 { font-size: 17px; letter-spacing: 1px; margin-bottom: 4px; }
.ib-cheer .muted { color: #b9af95; margin-bottom: 14px; }
.ib-cheer input, .ib-cheer textarea {
  width: 100%; padding: 10px 12px; margin-bottom: 10px;
  background: rgba(255, 255, 255, 0.08); color: #f3ecd9;
  border: 1px solid rgba(246, 239, 223, 0.25); border-radius: 10px; font-family: inherit; font-size: 14px;
}
.ib-cheer input::placeholder, .ib-cheer textarea::placeholder { color: #9a9078; }
.ib-cheer input:focus, .ib-cheer textarea:focus { outline: none; border-color: var(--gold); }
.ib-cheer .lp-btn { width: 100%; border: none; cursor: pointer; }
.ib-err { color: #f2b8a5; font-size: 13px; margin-top: 8px; min-height: 18px; }
.ib-done { text-align: center; font-size: 16px; letter-spacing: 1px; color: #f0dfb4; }

@media (max-width: 820px) {
  .invite-banner .inner { grid-template-columns: 1fr; gap: 20px; text-align: center; }
  .invite-banner h2 { font-size: 22px; }
}

/* ---- responsive ---- */
@media (max-width: 820px) {
  .lp-hero-inner { grid-template-columns: 1fr; gap: 24px; text-align: center; }
  .lp-hero { padding: 44px 20px 12px; }
  .lp-hero .sub { margin-left: auto; margin-right: auto; }
  .lp-cta { justify-content: center; }
  .lp-visual { min-height: 270px; }
  .lp-nav { display: none; }
  .lp-grid3 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .lp-hero h1 { font-size: 42px; letter-spacing: 2px; }
  .lp-hero .sub { font-size: 15px; }
  .ring-svg { width: 210px; height: 210px; }
  .lp-section h2 { font-size: 24px; letter-spacing: 2px; }
  .lp-grid3, .plan-grid, .lp-steps { grid-template-columns: 1fr; }
}

/* 钀藉湴椤电洰褰曚笌鍒嗚妭 */
.plan-lp-link { display: block; margin-top: 14px; text-align: center; }
.sec-points { margin: 18px auto 0; max-width: 640px; text-align: left; list-style: disc; padding-left: 22px; color: var(--ink-dim); font-size: 14px; }
.sec-points li + li { margin-top: 8px; }


.lp-landing-links { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; align-items: center; margin-top: 22px; font-size: 14px; }
.lp-landing-links span { color: var(--ink-dim); }
.lp-landing-links a { color: var(--gold-deep); border: 1px solid var(--gold-soft, rgba(168,132,63,.35)); padding: 5px 12px; border-radius: 999px; transition: background .15s ease, color .15s ease; }
.lp-landing-links a:hover { background: #f3ede1; color: var(--gold-deep); }

/* ================= pet theme (爱宠养护 / 犬训 / 养猫) ================= */
.theme-pet {
  --bg: #f2f7ec;
  --bg2: #fbfffa;
  --ink: #24302a;
  --ink-dim: #61725f;
  --ink-faint: #9db19a;
  --gold: #5ea345;
  --gold-deep: #3d7a31;
  --ember: #a5cc76;
  --line: #e2ead6;
  --card-shadow: 0 6px 24px rgba(45, 100, 40, 0.08);
}
.theme-pet body,
.theme-pet {
  background-image: radial-gradient(circle at 15% 0%, rgba(94, 163, 69, 0.10), transparent 40%),
                    radial-gradient(circle at 85% 30%, rgba(165, 204, 118, 0.12), transparent 42%);
}
.theme-pet .lp-brand { color: var(--gold-deep); }
.theme-pet .lp-brand .logo { border-color: var(--gold); color: var(--gold); }
.theme-pet .lp-nav a:hover { background: #e9f2df; color: var(--gold-deep); }
.theme-pet .lp-login { border-color: var(--gold); color: var(--gold-deep); }
.theme-pet .lp-login:hover { background: var(--gold); }
.theme-pet .lp-eyebrow { background: #e4f0d8; color: var(--gold-deep); }
.theme-pet .lp-eyebrow::before { background: var(--gold); box-shadow: 0 0 0 4px rgba(94, 163, 69, 0.18); }
.theme-pet .lp-hero h1 em { background: linear-gradient(120deg, var(--gold) 0%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; }
.theme-pet .slogan-main { background: linear-gradient(120deg, var(--gold) 0%, var(--ember) 100%); -webkit-background-clip: text; background-clip: text; }
.theme-pet .lp-btn.primary { background: linear-gradient(120deg, var(--gold), var(--ember)); box-shadow: 0 10px 24px rgba(94, 163, 69, 0.35); }
.theme-pet .lp-btn.primary:hover { box-shadow: 0 14px 30px rgba(94, 163, 69, 0.45); }
.theme-pet .lp-stats .s b { color: var(--gold-deep); }
.theme-pet .card-ico, .theme-pet .plan-ico { background: linear-gradient(135deg, #e4f0d5, #c9e2ac); color: var(--gold-deep); }
.theme-pet .lp-card, .theme-pet .plan-card, .theme-pet .lp-step, .theme-pet .faq-item { background: var(--bg2); }
.theme-pet .plan-card .tagline { color: var(--gold-deep); }
.theme-pet .step-num { background: linear-gradient(120deg, var(--gold), var(--ember)); box-shadow: 0 8px 18px rgba(94, 163, 69, 0.35); }
.theme-pet .lp-band .inner { background: linear-gradient(120deg, #20361c, #2f5226); box-shadow: 0 18px 44px rgba(32, 54, 28, 0.30); }
.theme-pet .lp-band-new .inner { background: linear-gradient(120deg, #26411f, #3a612c); }
.theme-pet .lp-coach { background: radial-gradient(420px 180px at 88% 0%, rgba(165, 204, 118, 0.18), transparent 65%), linear-gradient(165deg, #f3f8eb, #e3efd2); border-color: #d6e6c2; }
.theme-pet .lp-coach .lp-card { background: #fbfffa; }
.theme-pet .plan-card-featured { background: linear-gradient(135deg, #eef6e0, #dcecc4); border-color: var(--gold); }
.theme-pet .plan-card-featured .plan-ico { background: linear-gradient(135deg, #c9e2a8, #8fbf6b); }
.theme-pet .lp-footer .slogan { color: var(--gold-deep); }
.theme-pet .faq-item summary:hover { background: rgba(94, 163, 69, 0.07); }
.theme-pet .faq-item summary::after { color: var(--gold-deep); }
.theme-pet .faq-item p b { color: var(--gold-deep); }
.theme-pet .lp-landing-links a { color: var(--gold-deep); border-color: rgba(61, 122, 49, .35); }
.theme-pet .lp-landing-links a:hover { background: #e9f2df; }

/* 宠物主题：h2 爪印前缀 */
.theme-pet .sec-head h2::before { content: "🐾 "; font-size: .85em; }
.theme-pet .lp-hero h1 { letter-spacing: 2px; }

/* 宠物主题：100 天环换宠物色 */
.theme-pet .ring-prog { stroke: url(#petGrad); }
.theme-pet .ring-num { fill: var(--gold-deep); }
.theme-pet .ring-day { fill: var(--ink-faint); }

/* 宠物 hero 视觉 */
.pet-visual { position: relative; display: flex; align-items: center; justify-content: center; width: 100%; }
.pet-visual .pet-ring { position: relative; z-index: 1; }
.paw-svg { position: absolute; width: 62px; height: 62px; fill: var(--gold-deep); opacity: 0.16; }
.paw-a { top: 2px; left: -4px; transform: rotate(-18deg); width: 52px; }
.paw-b { top: 16px; right: -16px; transform: rotate(16deg); }
.paw-c { bottom: 2px; left: -34px; transform: rotate(8deg); width: 44px; }
.pet-emoji { position: absolute; bottom: -8px; right: 4px; font-size: 42px; filter: drop-shadow(0 6px 12px rgba(30, 60, 28, 0.18)); }

@media (max-width: 820px) {
  .paw-b { right: -6px; }
  .paw-c { left: -10px; }
}

