/* ==========================================
   WhatsApp 品牌落地站 — 全站共享样式
   配色：大地色系 + 自然质感
   ========================================== */

/* --- 设计变量 --- */
:root {
  --color-primary: #4A3728;
  --color-primary-dark: #3A2E26;
  --color-accent: #7A9B57;
  --color-accent-light: #A8C48A;
  --color-warm: #D4A574;
  --color-warm-light: #E8CEB4;
  --color-bg: #FAF5EF;
  --color-bg-alt: #EDE5DA;
  --color-bg-card: #FFFFFF;
  --color-text: #3A2E26;
  --color-text-secondary: #6B5E54;
  --color-border: #D8CFC5;
  --color-white: #FFFFFF;
  --color-hero-overlay: rgba(74, 55, 40, 0.72);

  --font-heading: 'SF Pro Display', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;
  --font-body: 'SF Pro Text', 'PingFang SC', 'Noto Sans SC', system-ui, sans-serif;

  --space-xs: 0.5rem;
  --space-sm: 0.75rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2.5rem;
  --space-2xl: 3.5rem;
  --space-3xl: 5rem;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;

  --shadow-card: 0 2px 12px rgba(58, 46, 38, 0.06);
  --shadow-hover: 0 4px 20px rgba(58, 46, 38, 0.10);

  --max-width: 1180px;
}

/* --- 重置与基础 --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-body);
  font-size: clamp(15px, 1.3vw, 17px);
  line-height: 1.72;
  color: var(--color-text);
  background-color: var(--color-bg);
  overflow-x: hidden;
}

img, svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
}

ul, ol {
  list-style: none;
}

/* --- 排版 --- */
h1, h2, h3, h4 {
  font-family: var(--font-heading);
  font-weight: 700;
  text-wrap: balance;
  color: var(--color-primary-dark);
  line-height: 1.28;
}

h1 {
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  letter-spacing: -0.02em;
}

h2 {
  font-size: clamp(1.4rem, 2.5vw, 2rem);
  letter-spacing: -0.015em;
}

h3 {
  font-size: clamp(1.1rem, 1.6vw, 1.35rem);
}

p {
  margin-bottom: 0.8em;
}

.container {
  width: 100%;
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--space-lg);
  padding-right: var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section--alt {
  background-color: var(--color-bg-alt);
}

.section__label {
  display: inline-block;
  font-size: 0.82rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-accent);
  margin-bottom: var(--space-sm);
}

.section__heading {
  margin-bottom: var(--space-xl);
}

/* --- 通用按钮 --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-xs);
  padding: 0.75rem 1.65rem;
  font-family: var(--font-body);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--radius-md);
  border: 2px solid transparent;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
  white-space: nowrap;
}

.btn:focus-visible {
  outline: 3px solid var(--color-warm);
  outline-offset: 3px;
}

.btn--primary {
  background-color: var(--color-accent);
  color: var(--color-white);
}

.btn--primary:hover,
.btn--primary:focus-visible {
  background-color: #688749;
  box-shadow: 0 2px 10px rgba(122, 155, 87, 0.3);
}

.btn--outline {
  background: transparent;
  color: var(--color-white);
  border-color: var(--color-white);
}

.btn--outline:hover {
  background: rgba(255, 255, 255, 0.12);
}

.btn--warm {
  background-color: var(--color-warm);
  color: var(--color-white);
}

.btn--warm:hover {
  background-color: #C49462;
}

.btn--small {
  padding: 0.5rem 1.1rem;
  font-size: 0.9rem;
}

.btn__icon {
  width: 18px;
  height: 18px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* --- 页头 --- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(250, 245, 239, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--color-border);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}

.header-logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.header-logo img {
  height: 36px;
  width: auto;
}

.header-logo span {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--color-primary);
}

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-lg);
}

.nav a {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
  transition: color 0.2s, border-color 0.2s;
}

.nav a:hover,
.nav a[aria-current="page"] {
  color: var(--color-primary);
  border-bottom-color: var(--color-accent);
}

.nav .btn--small {
  margin-left: var(--space-xs);
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  background: linear-gradient(135deg, #3D2F22 0%, #5C4A37 50%, #7A9B57 100%);
  overflow: hidden;
}

.hero__overlay {
  position: absolute;
  inset: 0;
  background: var(--color-hero-overlay);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2xl);
  align-items: center;
  padding: var(--space-3xl) 0;
}

.hero__content {
  color: var(--color-white);
}

.hero__subtitle {
  font-size: clamp(0.95rem, 1.3vw, 1.1rem);
  opacity: 0.88;
  max-width: 520px;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.hero__actions {
  display: flex;
  gap: var(--space-md);
  flex-wrap: wrap;
}

.hero__svg-wrap {
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__svg-wrap svg {
  width: 100%;
  max-width: 420px;
  height: auto;
}

/* --- 功能卡片 --- */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: var(--space-lg);
}

.feature-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.feature-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.feature-card__icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-md);
  flex-shrink: 0;
}

.feature-card__icon svg {
  width: 24px;
  height: 24px;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.feature-card__title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-dark);
}

.feature-card__desc {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  line-height: 1.68;
}

/* --- 场景区块 --- */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.scenario-card {
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  position: relative;
  overflow: hidden;
}

.scenario-card--green {
  background: linear-gradient(135deg, #8BA87A 0%, #6B8F4E 100%);
  color: var(--color-white);
}

.scenario-card--brown {
  background: linear-gradient(135deg, #C49462 0%, #A07848 100%);
  color: var(--color-white);
}

.scenario-card--dark {
  background: linear-gradient(135deg, #5C4A37 0%, #4A3728 100%);
  color: var(--color-white);
}

.scenario-card__number {
  font-size: 2.8rem;
  font-weight: 800;
  opacity: 0.2;
  position: absolute;
  top: var(--space-sm);
  right: var(--space-md);
  line-height: 1;
}

.scenario-card__title {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-white);
}

.scenario-card__text {
  font-size: 0.93rem;
  line-height: 1.72;
  opacity: 0.92;
}

/* --- 快速开始 --- */
.steps-list {
  counter-reset: step-counter;
  display: flex;
  flex-direction: column;
  gap: var(--space-lg);
  max-width: 700px;
}

.step-item {
  display: flex;
  gap: var(--space-md);
  align-items: flex-start;
}

.step-item__num {
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--color-accent);
  color: var(--color-white);
  font-size: 1rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-item__content h3 {
  font-size: 1.05rem;
  margin-bottom: 0.2rem;
  color: var(--color-primary);
}

.step-item__content p {
  font-size: 0.93rem;
  color: var(--color-text-secondary);
  margin-bottom: 0;
}

/* --- 界面示意 SVG --- */
.mockup-area {
  background: var(--color-bg-alt);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 340px;
}

.mockup-area svg {
  width: 100%;
  max-width: 800px;
  height: auto;
}

/* --- 表格 --- */
.table-wrap {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg-card);
}

.platform-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.platform-table th {
  background: var(--color-primary);
  color: var(--color-white);
  padding: 0.85rem var(--space-md);
  text-align: left;
  font-weight: 600;
  white-space: nowrap;
}

.platform-table td {
  padding: 0.75rem var(--space-md);
  border-bottom: 1px solid var(--color-border);
  vertical-align: middle;
}

.platform-table tr:last-child td {
  border-bottom: none;
}

.platform-table tr:nth-child(even) {
  background: var(--color-bg-alt);
}

/* --- FAQ --- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
  max-width: 820px;
}

.faq-item {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
}

.faq-item summary {
  padding: var(--space-md) var(--space-lg);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-primary-dark);
  transition: background 0.15s;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: '';
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-left: var(--space-sm);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%236B5E54' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") no-repeat center/contain;
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: rotate(180deg);
}

.faq-item summary:hover {
  background: var(--color-bg-alt);
}

.faq-item summary:focus-visible {
  outline: 3px solid var(--color-warm);
  outline-offset: -3px;
}

.faq-item__answer {
  padding: 0 var(--space-lg) var(--space-md);
  font-size: 0.94rem;
  color: var(--color-text-secondary);
  line-height: 1.72;
}

/* --- 文章卡片 --- */
.articles-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: var(--space-lg);
}

.article-card {
  background: var(--color-bg-card);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.article-card:hover {
  box-shadow: var(--shadow-hover);
  transform: translateY(-3px);
}

.article-card__body {
  padding: var(--space-lg);
}

.article-card__date {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: var(--space-sm);
}

.article-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  margin-bottom: var(--space-sm);
  color: var(--color-primary-dark);
  line-height: 1.45;
}

.article-card__excerpt {
  font-size: 0.9rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin-bottom: var(--space-md);
}

/* --- 相关阅读 --- */
.related-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: var(--space-md);
}

.related-link {
  display: flex;
  flex-direction: column;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.2s, border-color 0.2s;
}

.related-link:hover {
  background: var(--color-bg-alt);
  border-color: var(--color-border);
}

.related-link__title {
  font-size: 0.98rem;
  font-weight: 600;
  color: var(--color-primary);
  margin-bottom: 0.25rem;
}

.related-link__desc {
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
}

/* --- 下载引导 --- */
.download-area {
  text-align: center;
}

.download-area__inner {
  max-width: 700px;
  margin: 0 auto;
}

.download-area__file {
  margin-top: var(--space-lg);
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  background: var(--color-bg-alt);
  padding: var(--space-sm) var(--space-md);
  border-radius: var(--radius-sm);
  display: inline-block;
}

.download-area__requirements {
  margin-top: var(--space-xl);
  text-align: left;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

.requirements-list {
  padding-left: var(--space-lg);
  list-style: decimal;
  color: var(--color-text-secondary);
  font-size: 0.93rem;
  line-height: 1.8;
}

/* --- CTA Banner --- */
.cta-banner {
  background: linear-gradient(135deg, #4A3728 0%, #6B8F4E 100%);
  color: var(--color-white);
  border-radius: var(--radius-lg);
  padding: var(--space-2xl);
  text-align: center;
  margin-top: var(--space-2xl);
}

.cta-banner h3 {
  color: var(--color-white);
  margin-bottom: var(--space-md);
}

.cta-banner p {
  opacity: 0.9;
  max-width: 560px;
  margin: 0 auto var(--space-lg);
}

/* --- 页脚 --- */
.site-footer {
  background: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.78);
  padding: var(--space-2xl) 0 var(--space-lg);
  font-size: 0.9rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  gap: var(--space-xl);
  margin-bottom: var(--space-xl);
}

.footer-brand img {
  height: 32px;
  width: auto;
  margin-bottom: var(--space-sm);
}

.footer-brand p {
  font-size: 0.88rem;
  line-height: 1.68;
  max-width: 340px;
  color: rgba(255, 255, 255, 0.6);
}

.footer-col h4 {
  color: var(--color-white);
  font-size: 0.95rem;
  margin-bottom: var(--space-md);
}

.footer-col ul {
  display: flex;
  flex-direction: column;
  gap: var(--space-sm);
}

.footer-col a {
  color: rgba(255, 255, 255, 0.65);
  transition: color 0.15s;
}

.footer-col a:hover {
  color: var(--color-warm-light);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  padding-top: var(--space-md);
  font-size: 0.82rem;
  color: rgba(255, 255, 255, 0.45);
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: var(--space-sm);
}

/* ==========================================
   SVG 动效
   ========================================== */

/* 描边自绘动画 */
@keyframes draw-stroke {
  0% {
    stroke-dashoffset: 1;
  }
  50% {
    stroke-dashoffset: 0;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes breathe {
  0%, 100% {
    opacity: 0.82;
    transform: scale(1);
  }
  50% {
    opacity: 1;
    transform: scale(1.015);
  }
}

@keyframes float-up {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulse-ring {
  0% {
    opacity: 0.6;
    transform: scale(1);
  }
  50% {
    opacity: 0.2;
    transform: scale(1.08);
  }
  100% {
    opacity: 0.6;
    transform: scale(1);
  }
}

.draw-path {
  pathLength: 1;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-stroke 5s ease-in-out infinite alternate;
}

.breathe-el {
  animation: breathe 6s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

.float-el {
  animation: float-up 7s ease-in-out infinite;
}

.pulse-ring-el {
  animation: pulse-ring 4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    animation: none !important;
  }
}

/* ==========================================
   响应式
   ========================================== */
@media (max-width: 900px) {
  .hero__grid {
    grid-template-columns: 1fr;
    text-align: center;
  }
  .hero__subtitle {
    margin-left: auto;
    margin-right: auto;
  }
  .hero__actions {
    justify-content: center;
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 600px) {
  :root {
    --space-3xl: 3rem;
  }
  .header-inner {
    height: 56px;
  }
  .nav {
    gap: var(--space-sm);
  }
  .nav a {
    font-size: 0.88rem;
  }
  .features-grid {
    grid-template-columns: 1fr;
  }
  .scenarios-grid {
    grid-template-columns: 1fr;
  }
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }
}

/* 兜底：裁掉横向溢出 */
body > * {
  overflow-x: clip;
}
