/* 核心功能详情页公共样式（样板：永久免费） */

.fd-hero {
  background: linear-gradient(180deg, #fff 0%, #f4f3ef 100%);
  padding: clamp(40px, 6vw, 72px) clamp(16px, 4vw, 48px) clamp(48px, 7vw, 80px);
}

.fd-hero-inner,
.fd-inner {
  max-width: var(--max);
  margin: 0 auto;
}

.fd-inner--narrow {
  max-width: 760px;
}

.fd-crumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 20px;
  font-size: 14px;
  color: rgba(63, 8, 8, 0.55);
}

.fd-crumb a:hover {
  color: #3f0808;
}

.fd-kicker {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: rgba(63, 8, 8, 0.55);
}

.fd-hero h1 {
  max-width: 18em;
  margin: 0;
  font-size: clamp(28px, 4.5vw, 44px);
  font-weight: 700;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: #3f0808;
}

.fd-hero-lead {
  max-width: 40em;
  margin: 18px 0 0;
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.75;
  color: rgba(26, 23, 20, 0.72);
}

.fd-checks {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 22px 0 0;
  padding: 0;
}

.fd-checks li {
  position: relative;
  padding-left: 22px;
  font-size: 14px;
  font-weight: 600;
  color: #3f0808;
}

.fd-checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.35em;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: inset 0 0 0 3px #fff;
  outline: 1px solid rgba(34, 197, 94, 0.35);
}

.fd-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
  margin-top: 28px;
}

.fd-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 999px;
  background: #3f0808;
  color: #fff !important;
  font-size: 15px;
  font-weight: 650;
}

.fd-btn:hover {
  background: #5a1212;
}

.fd-link {
  font-size: 15px;
  font-weight: 600;
  color: #3f0808;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fd-sec {
  padding: clamp(56px, 7vw, 88px) clamp(16px, 4vw, 48px);
}

.fd-sec--paper {
  background: #f4f3ef;
}

.fd-sec--white {
  background: #fff;
}

.fd-shots {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: clamp(16px, 2.5vw, 28px);
  align-items: end;
  justify-items: center;
  max-width: 980px;
  margin: 0 auto;
}

.fd-shots[data-count="3"] {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 780px;
}

.fd-shots[data-count="2"] {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 520px;
}

.fd-shots[data-count="1"] {
  grid-template-columns: 1fr;
  max-width: 220px;
}

.fd-shots .iphone {
  width: 100%;
  max-width: 200px;
  filter: drop-shadow(0 16px 28px rgba(16, 20, 24, 0.18));
}

.fd-shots .iphone-body {
  max-width: none;
}

.fd-shots .iphone figcaption {
  color: #3f0808;
}

.fd-head {
  max-width: 720px;
  margin: 0 auto clamp(36px, 5vw, 52px);
  text-align: center;
}

.fd-head h2 {
  margin: 0;
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #3f0808;
}

.fd-head p {
  margin: 14px 0 0;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.75;
  color: rgba(26, 23, 20, 0.62);
}

.fd-activity-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 16px;
  counter-reset: fd-act;
}

.fd-activity {
  background: #fff;
  border: 1px solid rgba(26, 23, 20, 0.06);
  border-radius: 24px;
  padding: clamp(22px, 3vw, 28px);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.8) inset;
}

.fd-activity-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.fd-activity-no {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 14px;
  background: linear-gradient(145deg, #ecfdf5, #d1fae5);
  color: #047857;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.fd-activity-no::before {
  counter-increment: fd-act;
  content: counter(fd-act);
}

.fd-activity h3 {
  margin: 2px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 700;
  line-height: 1.35;
  color: #1a1714;
}

.fd-activity-goal {
  margin: 8px 0 0;
  font-size: 15px;
  line-height: 1.6;
  color: rgba(26, 23, 20, 0.62);
}

.fd-steps {
  margin: 18px 0 0;
  padding: 16px 16px 16px 36px;
  background: #faf8f5;
  border-radius: 16px;
  display: grid;
  gap: 10px;
}

.fd-steps li {
  font-size: 14px;
  line-height: 1.65;
  color: rgba(26, 23, 20, 0.78);
}

.fd-groups {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.fd-group {
  background: #f4f3ef;
  border-radius: 24px;
  padding: 24px 22px;
}

.fd-group h3 {
  margin: 0 0 14px;
  font-size: 17px;
  font-weight: 700;
  color: #3f0808;
}

.fd-group ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.fd-group li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(26, 23, 20, 0.72);
}

.fd-group li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
}

.fd-limits {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 12px;
  max-width: 860px;
  margin-inline: auto;
}

.fd-limits li {
  background: #fff;
  border-radius: 16px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.65;
  color: rgba(26, 23, 20, 0.72);
  border: 1px solid rgba(26, 23, 20, 0.06);
}

.fd-more {
  margin: 28px 0 0;
  text-align: center;
  font-size: 15px;
  font-weight: 600;
}

.fd-more a {
  color: #3f0808;
  text-decoration: underline;
  text-underline-offset: 4px;
}

.fd-faq-list {
  display: grid;
  gap: 10px;
}

.fd-faq {
  background: #f4f3ef;
  border-radius: 16px;
  padding: 4px 18px;
}

.fd-faq summary {
  cursor: pointer;
  list-style: none;
  padding: 16px 0;
  font-size: 16px;
  font-weight: 650;
  color: #1a1714;
}

.fd-faq summary::-webkit-details-marker {
  display: none;
}

.fd-faq p {
  margin: 0 0 16px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(26, 23, 20, 0.68);
}

@media (max-width: 900px) {
  .fd-groups {
    grid-template-columns: 1fr;
  }

  .fd-shots,
  .fd-shots[data-count="3"],
  .fd-shots[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 440px;
  }
}

@media (max-width: 640px) {
  .fd-activity-top {
    gap: 12px;
  }

  .fd-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .fd-btn {
    width: 100%;
  }

  .fd-shots,
  .fd-shots[data-count="2"],
  .fd-shots[data-count="3"],
  .fd-shots[data-count="4"] {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 340px;
    gap: 14px;
  }

  .fd-shots .iphone {
    max-width: 150px;
  }
}
