/* 收益介绍页 — 暖米白底 + #678efe 正规引导风 */

*, *::before, *::after {
  box-sizing: border-box;
}

:root {
  --sy-theme: #678efe;
  --sy-theme-dark: #5578e8;
  --sy-theme-wash: #eef2ff;
  --sy-theme-soft: #d9e4ff;
  --sy-cream: #fff3e6;
  --sy-cream-deep: #ffead6;
  --sy-cream-soft: #fff8f0;
  --sy-card: #ffffff;
  --sy-text: #1c2434;
  --sy-sub: #6b7280;
  --sy-muted: #9ca3af;
  --sy-border: #ebe4db;
  --sy-border-soft: #f0ebe4;
  --sy-radius: 14px;
  --sy-max: 520px;
}

/* 壁纸就绪后：body 透底；中间壳始终实心，避免卡片飘在灰景上显得乱 */
html.site-wallpaper.spa-wp-ready body.sy-page {
  background: transparent !important;
  background-color: transparent !important;
}
html.site-wallpaper.spa-wp-ready .sy-shell.ga-shell,
html.site-wallpaper.spa-wp-ready .sy-shell {
  background-color: #fff8f0 !important;
  background-image:
    radial-gradient(ellipse 110% 50% at 50% -6%, rgba(255, 255, 255, 0.72) 0%, transparent 58%),
    linear-gradient(180deg, #fff8f0 0%, #fff3e6 48%, #ffefdf 100%) !important;
  box-shadow: 0 0 48px rgba(120, 80, 40, 0.12) !important;
}

html.sy-html,
body.sy-page {
  margin: 0 !important;
  padding: 0 !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100% !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  overflow-x: hidden !important;
}

body.sy-page {
  overflow-x: hidden;
  position: relative;
  z-index: 1;
}

.sy-shell {
  max-width: var(--sy-max);
  margin: 0 auto !important;
  padding: 0 0 calc(28px + env(safe-area-inset-bottom, 0));
  position: relative;
  z-index: 1;
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff8f0 !important;
  background-image:
    radial-gradient(ellipse 110% 50% at 50% -6%, rgba(255, 255, 255, 0.72) 0%, transparent 58%),
    linear-gradient(180deg, #fff8f0 0%, #fff3e6 48%, #ffefdf 100%) !important;
  box-shadow: 0 0 48px rgba(120, 80, 40, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

/* 顶栏 */
.sy-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0;
  padding: max(12px, env(safe-area-inset-top, 0)) 14px 12px;
  border-bottom: 1px solid rgba(235, 228, 219, 0.9);
  background: rgba(255, 243, 230, 0.9);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.sy-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--sy-text);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
}

.sy-back img {
  height: 18px;
  width: auto;
  display: block;
}

.sy-topbar__badge {
  font-size: 11px;
  font-weight: 600;
  color: var(--sy-theme-dark);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(103, 142, 254, 0.28);
  border-radius: 999px;
  padding: 4px 10px;
  letter-spacing: 0.02em;
}

/* 英雄区 */
.sy-hero {
  margin: 14px 14px 0;
  padding: 18px 16px 16px;
  border-radius: 18px;
  background:
    linear-gradient(155deg, rgba(103, 142, 254, 0.12) 0%, rgba(255, 255, 255, 0.92) 42%, #fffdfb 100%);
  border: 1px solid rgba(103, 142, 254, 0.18);
  box-shadow: 0 8px 24px rgba(120, 80, 40, 0.05);
  position: relative;
  overflow: hidden;
}

.sy-hero::before {
  content: "";
  position: absolute;
  right: -28px;
  top: -36px;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: rgba(103, 142, 254, 0.1);
  pointer-events: none;
}

.sy-hero::after {
  content: "";
  position: absolute;
  left: -20px;
  bottom: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: rgba(255, 210, 170, 0.28);
  pointer-events: none;
}

.sy-hero__eyebrow {
  position: relative;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--sy-theme-dark);
  margin-bottom: 8px;
}

.sy-hero__title {
  position: relative;
  margin: 0 0 8px;
  font-size: 22px;
  line-height: 1.3;
  font-weight: 750;
  color: var(--sy-text);
}

.sy-hero__desc {
  position: relative;
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--sy-sub);
}

.sy-hero__stats {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 14px;
}

.sy-stat {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(235, 228, 219, 0.95);
  border-radius: 12px;
  padding: 10px 8px;
  text-align: center;
}

.sy-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 750;
  color: var(--sy-theme-dark);
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
}

.sy-stat span {
  display: block;
  margin-top: 4px;
  font-size: 11px;
  color: var(--sy-sub);
}

/* 三步上手 */
.sy-steps {
  margin: 14px 14px 0;
  padding: 14px;
  border-radius: var(--sy-radius);
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--sy-border);
  box-shadow: 0 4px 14px rgba(120, 80, 40, 0.04);
}

.sy-steps__title {
  font-size: 14px;
  font-weight: 700;
  margin-bottom: 12px;
  color: var(--sy-text);
}

.sy-steps__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  position: relative;
}

.sy-steps__list::before {
  content: "";
  position: absolute;
  left: 23px;
  top: 22px;
  bottom: 22px;
  width: 2px;
  background: linear-gradient(180deg, var(--sy-theme-soft, #d9e4ff), var(--sy-cream-deep));
  border-radius: 2px;
  z-index: 0;
}

.sy-steps__list > li {
  position: relative;
  z-index: 1;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 10px;
  border-radius: 12px;
  background: var(--sy-cream-soft);
  border: 1px solid var(--sy-border-soft);
}

.sy-steps__n {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--sy-theme);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(103, 142, 254, 0.28);
}

.sy-steps__list b {
  display: block;
  font-size: 13.5px;
  color: var(--sy-text);
  margin-bottom: 2px;
}

.sy-steps__list p {
  margin: 0;
  font-size: 12px;
  color: var(--sy-sub);
  line-height: 1.5;
}

/* 目录 chips */
.sy-toc {
  margin: 14px 14px 0;
  padding: 12px 14px;
  border-radius: var(--sy-radius);
  background: rgba(255, 255, 255, 0.72);
  border: 1px dashed rgba(103, 142, 254, 0.35);
}

.sy-toc__label {
  font-size: 12px;
  font-weight: 600;
  color: var(--sy-theme-dark);
  margin-bottom: 10px;
}

.sy-toc__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.sy-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  padding: 6px 10px 6px 6px;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(103, 142, 254, 0.22);
  color: var(--sy-text);
  text-decoration: none;
  font-size: 12px;
  line-height: 1.3;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.sy-chip:hover {
  border-color: var(--sy-theme);
  box-shadow: 0 2px 8px rgba(103, 142, 254, 0.18);
  transform: translateY(-1px);
}

.sy-chip i {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--sy-theme);
  color: #fff;
  font-style: normal;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 列表与手风琴卡片 */
.sy-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 14px 14px 8px;
}

.sy-list__head {
  margin-bottom: 2px;
  padding: 0 2px;
}

.sy-list__head h2 {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
}

.sy-list__head p {
  margin: 0;
  font-size: 12px;
  color: var(--sy-sub);
}

.sy-card {
  background: var(--sy-card);
  border: 1px solid var(--sy-border);
  border-radius: var(--sy-radius);
  overflow: hidden;
  box-shadow: 0 3px 12px rgba(120, 80, 40, 0.04);
  animation: sy-card-in 0.34s ease both;
  scroll-margin-top: 64px;
}

.sy-card:nth-child(2) { animation-delay: 0.02s; }
.sy-card:nth-child(3) { animation-delay: 0.06s; }
.sy-card:nth-child(4) { animation-delay: 0.1s; }
.sy-card:nth-child(5) { animation-delay: 0.14s; }
.sy-card:nth-child(6) { animation-delay: 0.18s; }

@keyframes sy-card-in {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.sy-card.is-open {
  border-color: rgba(103, 142, 254, 0.42);
  box-shadow: 0 8px 22px rgba(103, 142, 254, 0.12);
}

.sy-card__toggle {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 14px;
  border: 0;
  background: transparent;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
}

.sy-card__num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  margin-top: 2px;
  border-radius: 9px;
  background: var(--sy-theme);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

.sy-card__meta {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.sy-card__tag {
  align-self: flex-start;
  font-size: 11px;
  font-weight: 650;
  color: var(--sy-theme-dark);
  background: var(--sy-theme-wash);
  border-radius: 6px;
  padding: 2px 7px;
}

.sy-card__title {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  color: var(--sy-text);
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
}

.sy-card__tip {
  font-size: 12px;
  color: var(--sy-sub);
  line-height: 1.5;
}

.sy-card__arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 6px;
  position: relative;
}

.sy-card__arrow::before {
  content: "";
  position: absolute;
  left: 4px;
  top: 6px;
  width: 8px;
  height: 8px;
  border-right: 2px solid #9aa3b2;
  border-bottom: 2px solid #9aa3b2;
  transform: rotate(45deg);
  transition: transform 0.2s ease;
}

.sy-card.is-open .sy-card__arrow::before {
  top: 8px;
  transform: rotate(-135deg);
}

.sy-card__panel {
  display: none;
  padding: 0 14px 14px 52px;
  border-top: 1px dashed var(--sy-border-soft);
  background: linear-gradient(180deg, #fffdfb 0%, #ffffff 100%);
}

.sy-card.is-open .sy-card__panel {
  display: block;
  animation: sy-panel-in 0.22s ease;
}

@keyframes sy-panel-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: none; }
}

.sy-card__body {
  padding-top: 12px;
  font-size: 13.5px;
  line-height: 1.8;
  color: #3a4254;
  word-break: break-word;
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif !important;
}

.sy-card__body,
.sy-card__body * {
  font-family: inherit !important;
  animation: none !important;
  text-shadow: none !important;
  filter: none !important;
  -webkit-text-fill-color: unset !important;
  background-clip: border-box !important;
  -webkit-background-clip: border-box !important;
}

.sy-card__body p {
  margin: 0 0 0.65em;
}

.sy-card__body p:last-child {
  margin-bottom: 0;
}

.sy-card__body a {
  color: var(--sy-theme-dark);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.sy-card__body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  display: block;
  margin: 8px 0;
}

.sy-card__body ul,
.sy-card__body ol {
  margin: 0.4em 0 0.6em;
  padding-left: 1.3em;
}

.sy-card__body li {
  margin: 0.2em 0;
}

.sy-card__body table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  margin: 8px 0;
}

.sy-card__body th,
.sy-card__body td {
  border: 1px solid var(--sy-border);
  padding: 6px 8px;
  text-align: left;
}

.sy-empty {
  margin: 24px 14px;
  padding: 28px 16px;
  text-align: center;
  color: var(--sy-sub);
  font-size: 14px;
  border: 1px dashed var(--sy-border);
  border-radius: var(--sy-radius);
  background: rgba(255, 255, 255, 0.7);
}

/* 底部引导 */
.sy-foot {
  margin: 8px 14px 0;
  padding: 16px;
  border-radius: 16px;
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.95) 0%, rgba(255, 243, 230, 0.9) 100%);
  border: 1px solid var(--sy-border);
  box-shadow: 0 6px 18px rgba(120, 80, 40, 0.05);
}

.sy-foot__title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 6px;
}

.sy-foot__desc {
  margin: 0 0 14px;
  font-size: 13px;
  color: var(--sy-sub);
  line-height: 1.65;
}

.sy-foot__actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.sy-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 650;
  text-decoration: none;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.sy-btn:active {
  transform: scale(0.98);
}

.sy-btn--primary {
  background: var(--sy-theme);
  color: #fff;
  box-shadow: 0 6px 14px rgba(103, 142, 254, 0.28);
}

.sy-btn--ghost {
  background: #fff;
  color: var(--sy-theme-dark);
  border: 1px solid rgba(103, 142, 254, 0.35);
}

@media (prefers-reduced-motion: reduce) {
  .sy-shell,
  .sy-card,
  .sy-card.is-open .sy-card__panel {
    animation: none !important;
  }
}
