html {
  scroll-behavior: auto;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  font-family: "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  font-size: 16px;
  line-height: 1.75;
  color: #2a1f16;
  background: #fff7ef;
}

img,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: #c2410c;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

:focus-visible {
  outline: 3px solid #f4a261;
  outline-offset: 2px;
}

.s4-wrap {
  width: min(1120px, calc(100% - 32px));
  margin: 0 auto;
}

.s4-header {
  background: #fffdfb;
  border-bottom: 1px solid #f0d8c4;
}

.s4-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  min-height: 72px;
}

.s4-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #2a1f16;
  font-weight: 700;
  font-size: 1.125rem;
  letter-spacing: 0.02em;
  text-decoration: none;
}

.s4-brand:hover {
  text-decoration: none;
  color: #c2410c;
}

.s4-logo {
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
}

.s4-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
}

.s4-nav a {
  color: #5c4636;
  font-weight: 600;
  text-decoration: none;
  padding: 6px 0;
  border-bottom: 2px solid transparent;
}

.s4-nav a:hover,
.s4-nav a.is-current,
.s4-nav a[aria-current="page"] {
  color: #c2410c;
  border-bottom-color: #e25a12;
  text-decoration: none;
}

.s4-main {
  padding-bottom: 56px;
}

.s4-hero {
  padding: 40px 0 28px;
  background:
    linear-gradient(180deg, #fff3e6 0%, #fff7ef 72%, #fff7ef 100%);
  border-bottom: 1px solid #f0d8c4;
}

.s4-kicker {
  margin: 0 0 10px;
  color: #c2410c;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.12em;
}

.s4-hero h1,
.s4-section h1 {
  margin: 0 0 16px;
  font-size: clamp(1.6rem, 3vw, 2.15rem);
  line-height: 1.35;
  color: #2a1f16;
}

.s4-lead {
  margin: 0 0 20px;
  max-width: 720px;
  color: #5c4636;
  font-size: 1.05rem;
}

.s4-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 24px;
}

.s4-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid transparent;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.s4-btn:hover {
  text-decoration: none;
}

.s4-btn-primary {
  background: #e25a12;
  color: #fffdfb;
  border-color: #c2410c;
  box-shadow: 0 8px 20px rgba(226, 90, 18, 0.22);
}

.s4-btn-primary:hover {
  background: #c2410c;
  color: #fffdfb;
}

.s4-btn-ghost {
  background: #fffdfb;
  color: #c2410c;
  border-color: #f0b27a;
}

.s4-btn-ghost:hover {
  background: #fff3e6;
  color: #9a3412;
}

.s4-btn-soft {
  width: 100%;
  background: #fff3e6;
  color: #9a3412;
  border-color: #f0d8c4;
}

.s4-btn-soft:hover {
  background: #e25a12;
  color: #fffdfb;
  border-color: #c2410c;
}

.s4-grid {
  display: grid;
  gap: 16px;
}

.s4-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.s4-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.s4-grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.s4-stack {
  margin-top: 16px;
}

.s4-card {
  background: #fffdfb;
  border: 1px solid #f0d8c4;
  border-radius: 14px;
  padding: 18px 18px 16px;
  min-width: 0;
  box-shadow: 0 8px 24px rgba(90, 52, 24, 0.04);
}

.s4-card-accent {
  border-top: 3px solid #e25a12;
}

.s4-card h3,
.s4-card .s4-card-title,
.s4-prose h3 {
  margin: 0 0 8px;
  font-size: 1.05rem;
  line-height: 1.4;
  color: #2a1f16;
}

.s4-card p,
.s4-card-text {
  margin: 0 0 12px;
  color: #5c4636;
  font-size: 0.95rem;
}

.s4-card p:last-child,
.s4-card-text:last-child {
  margin-bottom: 0;
}

.s4-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 10px;
}

.s4-section {
  padding: 40px 0 8px;
}

.s4-section-alt {
  margin-top: 24px;
  padding: 36px 0 16px;
  background: #fff3e6;
  border-top: 1px solid #f0d8c4;
  border-bottom: 1px solid #f0d8c4;
}

.s4-section h2 {
  margin: 0 0 14px;
  font-size: clamp(1.25rem, 2.2vw, 1.55rem);
  line-height: 1.4;
  color: #2a1f16;
}

.s4-prose p {
  margin: 0 0 14px;
  color: #3d2d22;
}

.s4-prose h3 {
  margin: 22px 0 10px;
}

.s4-note {
  margin: 0 0 16px;
  padding: 12px 14px;
  background: #fffdfb;
  border-left: 4px solid #e25a12;
  color: #5c4636;
}

.s4-table-wrap {
  overflow-x: auto;
  margin: 8px 0 18px;
  border: 1px solid #f0d8c4;
  border-radius: 12px;
  background: #fffdfb;
}

.s4-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

.s4-table th,
.s4-table td {
  padding: 12px 14px;
  text-align: left;
  border-bottom: 1px solid #f0d8c4;
  vertical-align: top;
}

.s4-table th {
  background: #fff3e6;
  color: #7c2d12;
  font-weight: 700;
}

.s4-table tr:last-child td {
  border-bottom: 0;
}

.s4-steps {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 8px 0 16px;
}

.s4-step {
  background: #fffdfb;
  border: 1px solid #f0d8c4;
  border-radius: 14px;
  padding: 16px;
}

.s4-step-num {
  display: inline-block;
  min-width: 28px;
  height: 28px;
  margin-bottom: 8px;
  border-radius: 8px;
  background: #e25a12;
  color: #fffdfb;
  font-weight: 700;
  font-size: 0.875rem;
  line-height: 28px;
  text-align: center;
}

.s4-quote {
  margin: 0;
  padding: 16px 16px 14px;
}

.s4-quote p {
  margin: 0 0 10px;
  color: #3d2d22;
}

.s4-quote footer {
  color: #7c2d12;
  font-size: 0.875rem;
  font-weight: 700;
  background: none;
  border: 0;
  padding: 0;
}

.s4-faq {
  display: grid;
  gap: 10px;
}

.s4-faq-item {
  background: #fffdfb;
  border: 1px solid #f0d8c4;
  border-radius: 12px;
  padding: 4px 14px 4px;
}

.s4-faq-item summary {
  cursor: pointer;
  font-weight: 700;
  padding: 12px 0;
  color: #2a1f16;
  list-style: none;
}

.s4-faq-item summary::-webkit-details-marker {
  display: none;
}

.s4-faq-item summary::after {
  content: "+";
  float: right;
  color: #e25a12;
  font-weight: 700;
}

.s4-faq-item[open] summary::after {
  content: "–";
}

.s4-faq-item p {
  margin: 0 0 14px;
  color: #5c4636;
}

.s4-cta-band {
  margin: 28px 0 8px;
  padding: 22px;
  background: #fffdfb;
  border: 1px solid #f0d8c4;
  border-radius: 16px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.s4-cta-band p {
  margin: 0;
  max-width: 680px;
  color: #3d2d22;
}

.s4-footer {
  background: #2a1f16;
  color: #f6e7d8;
  padding: 28px 0 32px;
}

.s4-footer p {
  margin: 0 0 10px;
  font-size: 0.925rem;
}

.s4-footer p:last-child {
  margin-bottom: 0;
  color: #d7c0aa;
}

.s4-meta {
  margin: 0 0 16px;
  color: #8a6a54;
  font-size: 0.875rem;
}

@media (max-width: 900px) {
  .s4-grid-4,
  .s4-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s4-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .s4-header-inner {
    flex-direction: column;
    align-items: flex-start;
    padding: 14px 0;
    min-height: 0;
  }
}

@media (max-width: 640px) {
  .s4-grid-2,
  .s4-grid-3,
  .s4-grid-4,
  .s4-steps {
    grid-template-columns: 1fr;
  }

  .s4-hero {
    padding-top: 28px;
  }

  .s4-btn {
    width: 100%;
  }

  .s4-cta-band {
    padding: 16px;
  }
}
