/* assets/home.css — 首页私有样式 */

/* ========== Hero ========== */
.hero {
  background: linear-gradient(160deg, #F3EDE4 0%, #FAF7F2 60%, #EFE7DA 100%);
  border-bottom: 1px solid var(--rule);
  padding: 4.5rem 0 3.5rem;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  top: -120px; right: -120px;
  width: 380px; height: 380px;
  background: radial-gradient(circle, var(--accent-soft) 0%, transparent 70%);
  border-radius: 50%;
}
.hero::after {
  content: "";
  position: absolute;
  bottom: -100px; left: -80px;
  width: 300px; height: 300px;
  background: radial-gradient(circle, var(--accent2-soft) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container { position: relative; z-index: 1; }
.hero .eyebrow {
  display: inline-block;
  font-size: 0.78rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 1rem;
  padding: 0.3rem 0.8rem;
  border: 1px solid var(--accent);
  border-radius: 999px;
}
.hero h1 {
  font-family: 'InstrumentSerif', 'Noto Serif CJK SC', 'Microsoft YaHei', serif;
  font-size: clamp(2.2rem, 5vw, 3.4rem);
  font-weight: 400;
  line-height: 1.15;
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}
.hero h1 .accent { color: var(--accent); font-style: italic; }
.hero .lede {
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 640px;
  margin-bottom: 2rem;
}
.hero-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 2.5rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--rule);
  margin-bottom: 2rem;
}
.hero-stats .stat .num {
  font-family: 'InstrumentSerif', serif;
  font-size: 2.2rem;
  color: var(--accent);
  line-height: 1;
}
.hero-stats .stat .label {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.3rem;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
}
.hero-actions .btn {
  font-size: 0.95rem;
  padding: 0.65rem 1.5rem;
}

/* ========== Why Section (Feature Cards) ========== */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
}
.feature-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.feature-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(42,38,34,0.08), 0 12px 32px rgba(42,38,34,0.08);
}
.feature-card .fc-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: #fff;
}
.feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}
.feature-card p {
  font-size: 0.92rem;
  color: var(--muted);
  line-height: 1.6;
}

/* ========== Advice Grid (Dimension Cards) ========== */
.advice-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.5rem;
}
.advice-card {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-radius: 14px;
  padding: 1.8rem;
  box-shadow: var(--shadow);
  position: relative;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  border-left: 4px solid var(--rule);
}
.advice-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 8px rgba(42,38,34,0.08), 0 12px 32px rgba(42,38,34,0.08);
}
.advice-card .card-num {
  font-family: 'InstrumentSerif', serif;
  font-size: 2.6rem;
  color: var(--accent);
  line-height: 1;
  opacity: 0.5;
  position: absolute;
  top: 1.2rem; right: 1.5rem;
}
.advice-card .tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  margin-bottom: 0.7rem;
}
.advice-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 0.8rem;
  padding-right: 2rem;
}
.advice-card ul {
  list-style: none;
  margin-bottom: 1rem;
}
.advice-card ul li {
  font-size: 0.9rem;
  color: var(--muted);
  padding-left: 1.3rem;
  position: relative;
  margin-bottom: 0.4rem;
  line-height: 1.55;
}
.advice-card ul li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.6em;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
}
.advice-card .warn-line {
  margin-top: 0.9rem;
  padding: 0.7rem 0.9rem;
  background: #FBEEEC;
  border-left: 3px solid var(--warn);
  border-radius: 4px;
  font-size: 0.86rem;
  color: #8C2D22;
  line-height: 1.5;
}

/* ========== Pitfall Grid ========== */
.pitfall-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.2rem;
}
.pitfall {
  background: var(--surface);
  border: 1px solid var(--rule);
  border-left: 4px solid var(--warn);
  border-radius: 10px;
  padding: 1.3rem;
}
.pitfall .ph {
  font-weight: 700;
  color: var(--warn);
  font-size: 0.92rem;
  margin-bottom: 0.5rem;
}
.pitfall .pb {
  font-size: 0.86rem;
  color: var(--muted);
  line-height: 1.5;
}
.pitfall .fix {
  margin-top: 0.6rem;
  font-size: 0.84rem;
  color: var(--accent2);
  font-weight: 600;
}

/* ========== Callout (3-step self-check) ========== */
.callout .steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  margin-top: 1.3rem;
}
.callout .step {
  background: rgba(255,255,255,0.6);
  border-radius: 10px;
  padding: 1rem;
}
.callout .step .sn {
  font-family: 'InstrumentSerif', serif;
  font-size: 1.6rem;
  color: var(--accent);
  line-height: 1;
}
.callout .step .st {
  font-weight: 700;
  font-size: 0.92rem;
  margin: 0.4rem 0 0.2rem;
}
.callout .step .sd {
  font-size: 0.84rem;
  color: var(--muted);
  line-height: 1.5;
}

/* ========== Why Core Point ========== */
.why-core {
  margin-top: 1.5rem;
  padding: 1.2rem 1.5rem;
  background: var(--accent-soft);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--ink);
}

/* ========== Footer ========== */
.site-footer {
  text-align: center;
  color: var(--muted);
  font-size: 0.82rem;
}
.site-footer a {
  color: var(--accent);
  text-decoration: none;
}
.site-footer a:hover {
  text-decoration: underline;
}

/* ========== Responsive ========== */
@media (max-width: 820px) {
  .advice-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .pitfall-grid { grid-template-columns: 1fr; }
  .callout .steps { grid-template-columns: 1fr; }
  .hero-stats { gap: 1.5rem; }
}

@media (max-width: 600px) {
  .hero { padding: 3rem 0 2.5rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; text-align: center; justify-content: center; }
}

/* ========== Print ========== */
@media print {
  .hero { background: none; border-bottom: 2px solid var(--ink); }
  .hero::before, .hero::after { display: none; }
  .advice-card, .feature-card, .pitfall, .callout { box-shadow: none; break-inside: avoid; }
}
