/* ============================================================
   东方财富 eostmooney.com.cn — 全站共享样式
   配色：紫粉双色调 + 玻璃层次
   字体：圆体亲和 + 宽松行距
   ============================================================ */

/* ---------- 设计变量 ---------- */
:root {
  --violet-900: #2a1548;
  --violet-800: #3a1f63;
  --violet-700: #4b2a80;
  --violet-600: #6238a8;
  --violet-500: #7c4fd1;
  --violet-400: #9b74e8;
  --violet-200: #d6c4f7;
  --violet-100: #ece3fb;

  --pink-700: #b62b6e;
  --pink-600: #d13a86;
  --pink-500: #e8579c;
  --pink-400: #f47cb6;
  --pink-200: #ffcbe3;
  --pink-100: #ffe9f3;

  --ink: #221733;
  --ink-soft: #4a3d5e;
  --ink-mute: #7b6e90;
  --line: rgba(88, 52, 128, 0.14);
  --line-strong: rgba(88, 52, 128, 0.26);

  --paper: #fdfaff;
  --paper-2: #f7f1fd;
  --glass: rgba(255, 255, 255, 0.62);
  --glass-strong: rgba(255, 255, 255, 0.82);

  --grad-brand: linear-gradient(135deg, #7c4fd1 0%, #b25cc9 45%, #e8579c 100%);
  --grad-soft: linear-gradient(150deg, #f7f1fd 0%, #ffe9f3 100%);
  --grad-deep: linear-gradient(160deg, #2a1548 0%, #4b2a80 58%, #7a2f74 100%);

  --radius-xs: 10px;
  --radius-sm: 14px;
  --radius-md: 20px;
  --radius-lg: 28px;
  --radius-xl: 40px;

  --shadow-sm: 0 2px 8px rgba(58, 31, 99, 0.06);
  --shadow-md: 0 10px 30px -12px rgba(58, 31, 99, 0.24);
  --shadow-lg: 0 28px 60px -28px rgba(58, 31, 99, 0.38);
  --shadow-glow: 0 18px 44px -20px rgba(232, 87, 156, 0.55);

  --font-sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Source Han Sans SC", "Noto Sans SC", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-round: "Yuanti SC", "Hiragino Sans GB", "PingFang SC", "Microsoft YaHei", "Noto Sans SC", system-ui, sans-serif;

  --maxw: 1180px;
  --gutter: clamp(18px, 4vw, 44px);
  --ease: cubic-bezier(0.22, 0.68, 0.32, 1);
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 96px;
  overflow-x: clip;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: clamp(15.5px, 1.02vw, 17px);
  line-height: 1.9;
  letter-spacing: 0.012em;
  color: var(--ink);
  background-color: var(--paper);
  background-image:
    radial-gradient(1100px 620px at 12% -6%, rgba(155, 116, 232, 0.20), transparent 62%),
    radial-gradient(940px 560px at 96% 4%, rgba(244, 124, 182, 0.18), transparent 60%),
    radial-gradient(900px 700px at 50% 108%, rgba(124, 79, 209, 0.10), transparent 66%);
  background-repeat: no-repeat;
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}

img { max-width: 100%; height: auto; display: block; }
svg { display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-round);
  line-height: 1.32;
  letter-spacing: 0.01em;
  color: var(--violet-900);
  text-wrap: balance;
  margin: 0 0 0.6em;
  font-weight: 700;
}

h1 { font-size: clamp(2rem, 4.4vw, 3.35rem); line-height: 1.22; }
h2 { font-size: clamp(1.5rem, 2.9vw, 2.3rem); }
h3 { font-size: clamp(1.1rem, 1.7vw, 1.32rem); line-height: 1.45; }
h4 { font-size: clamp(1rem, 1.3vw, 1.1rem); }

p { margin: 0 0 1.05em; }
p:last-child { margin-bottom: 0; }

a {
  color: var(--violet-600);
  text-decoration-color: rgba(98, 56, 168, 0.35);
  text-underline-offset: 3px;
  transition: color 0.22s var(--ease), text-decoration-color 0.22s var(--ease);
}
a:hover { color: var(--pink-600); text-decoration-color: rgba(209, 58, 134, 0.55); }

ul, ol { margin: 0 0 1.05em; padding-left: 1.35em; }
li { margin-bottom: 0.42em; }
li::marker { color: var(--violet-400); }

strong { color: var(--violet-800); font-weight: 700; }

hr {
  border: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line-strong), transparent);
  margin: 0;
}

::selection { background: rgba(232, 87, 156, 0.24); color: var(--violet-900); }

/* ---------- 焦点可见 ---------- */
:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 3px;
  border-radius: 6px;
}
a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 3px solid var(--pink-500);
  outline-offset: 3px;
}

/* ---------- 布局工具 ---------- */
main {
  display: block;
  overflow-x: clip;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.section { padding-block: clamp(56px, 8vw, 108px); }
.section--tight { padding-block: clamp(40px, 5.5vw, 72px); }

/* 单列正文区块的行宽限制 */
.section-head,
.card p,
.faq-body,
.risk-note p {
  overflow-wrap: break-word;
}

.section-head { max-width: 760px; margin-bottom: clamp(28px, 4vw, 46px); }
.section-head p { color: var(--ink-soft); font-size: 1.02em; max-width: 44em; }

/* 正文段落行宽控制：避免长行影响阅读节奏 */
.card p,
.faq-body p,
.scene p,
.step p,
.checklist .ck-desc,
.safety-list li > span,
.site-footer p {
  max-width: 40em;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-round);
  font-size: 0.80rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pink-600);
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(209, 58, 134, 0.22);
  border-radius: 999px;
  padding: 5px 15px;
  margin-bottom: 18px;
}
.eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grad-brand);
}

.lead { font-size: clamp(1rem, 1.3vw, 1.12rem); color: var(--ink-soft); }

.muted { color: var(--ink-mute); }
.small { font-size: 0.88rem; line-height: 1.75; }

.skip-link {
  position: absolute;
  left: 16px;
  top: -80px;
  z-index: 200;
  background: var(--violet-900);
  color: #fff;
  padding: 10px 18px;
  border-radius: var(--radius-xs);
  text-decoration: none;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 14px; color: #fff; }

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 90;
  backdrop-filter: blur(18px) saturate(150%);
  -webkit-backdrop-filter: blur(18px) saturate(150%);
  background: rgba(253, 250, 255, 0.72);
  border-bottom: 1px solid var(--line);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding-block: 10px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--violet-900);
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.08rem;
  letter-spacing: 0.03em;
  white-space: nowrap;
}
.brand:hover { color: var(--violet-700); }
.brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  flex: none;
}
.brand .brand-sub {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.14em;
  color: var(--ink-mute);
  line-height: 1.2;
}

.site-nav ul {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.6vw, 10px);
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav li { margin: 0; }

.site-nav a {
  display: inline-block;
  padding: 8px 14px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 0.94rem;
  font-weight: 600;
  color: var(--ink-soft);
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.22s var(--ease), color 0.22s var(--ease);
}
.site-nav a:hover { background: rgba(124, 79, 209, 0.10); color: var(--violet-700); }
.site-nav a[aria-current="page"] {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--violet-700);
  background: var(--glass-strong);
  border: 1px solid var(--line-strong);
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.header-cta:hover {
  transform: translateY(-1px);
  border-color: rgba(209, 58, 134, 0.5);
  color: var(--pink-600);
  box-shadow: var(--shadow-md);
}

@media (max-width: 860px) {
  .header-inner { flex-wrap: wrap; justify-content: center; row-gap: 6px; }
  .site-nav { order: 3; width: 100%; }
  .site-nav ul { justify-content: center; flex-wrap: wrap; }
  .header-cta { display: none; }
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 30px;
  border-radius: 999px;
  font-family: var(--font-round);
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.3;
  text-decoration: none;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease), color 0.22s var(--ease), border-color 0.22s var(--ease);
  text-align: center;
  max-width: 100%;
}
.btn svg { width: 20px; height: 20px; flex: none; }

.btn--primary {
  color: #fff;
  background: var(--grad-brand);
  box-shadow: var(--shadow-glow);
}
.btn--primary:hover {
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 24px 52px -20px rgba(209, 58, 134, 0.7);
}

.btn--ghost {
  color: var(--violet-700);
  background: var(--glass-strong);
  border-color: var(--line-strong);
}
.btn--ghost:hover {
  color: var(--pink-600);
  border-color: rgba(209, 58, 134, 0.45);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn--quiet {
  padding: 10px 20px;
  font-size: 0.9rem;
  color: var(--violet-700);
  background: rgba(124, 79, 209, 0.08);
  border-color: transparent;
}
.btn--quiet:hover { background: rgba(232, 87, 156, 0.14); color: var(--pink-600); }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; max-width: 100%; }

/* ---------- 卡片通用 ---------- */
.card {
  position: relative;
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.75);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  padding: clamp(20px, 2.6vw, 30px);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: transform 0.26s var(--ease), box-shadow 0.26s var(--ease), border-color 0.26s var(--ease);
  min-width: 0;
}
.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232, 87, 156, 0.32);
}
.card h3 { margin-bottom: 0.4em; }
.card p { color: var(--ink-soft); font-size: 0.97em; }

/* 图标框 */
.icon-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 15px;
  color: var(--violet-600);
  background: linear-gradient(145deg, rgba(214, 196, 247, 0.62), rgba(255, 203, 227, 0.55));
  border: 1px solid rgba(255, 255, 255, 0.9);
  margin-bottom: 16px;
  flex: none;
}
.icon-box svg { width: 24px; height: 24px; }

/* ---------- 表格 ---------- */
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-md);
  border: 1px solid var(--line);
  background: var(--glass-strong);
  box-shadow: var(--shadow-sm);
  -webkit-overflow-scrolling: touch;
}
table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
  font-size: 0.95rem;
}
caption {
  caption-side: top;
  text-align: left;
  padding: 16px 20px 6px;
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--violet-800);
  font-size: 0.98rem;
}
th, td {
  padding: 15px 20px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
  line-height: 1.75;
}
thead th {
  font-family: var(--font-round);
  font-size: 0.88rem;
  letter-spacing: 0.05em;
  color: var(--violet-700);
  background: rgba(124, 79, 209, 0.08);
  border-bottom: 1px solid var(--line-strong);
  white-space: nowrap;
}
tbody tr:last-child th,
tbody tr:last-child td { border-bottom: 0; }
tbody th {
  font-family: var(--font-round);
  font-weight: 700;
  color: var(--violet-900);
  white-space: nowrap;
}
tbody tr:hover { background: rgba(255, 203, 227, 0.16); }

/* ---------- FAQ ---------- */
.faq-list {
  display: grid;
  gap: 12px;
  max-width: 900px;
}
details.faq {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  transition: border-color 0.22s var(--ease), box-shadow 0.22s var(--ease), background 0.22s var(--ease);
}
details.faq[open] {
  background: var(--glass-strong);
  border-color: rgba(232, 87, 156, 0.35);
  box-shadow: var(--shadow-md);
}
details.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px 22px;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1rem;
  color: var(--violet-900);
  border-radius: var(--radius-sm);
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "";
  flex: none;
  width: 11px;
  height: 11px;
  margin-left: auto;
  margin-top: 8px;
  border-right: 2px solid var(--violet-500);
  border-bottom: 2px solid var(--violet-500);
  transform: rotate(45deg);
  transition: transform 0.24s var(--ease);
}
details.faq[open] summary::after { transform: rotate(-135deg); }
details.faq summary:hover { color: var(--pink-600); }
.faq-body {
  padding: 0 22px 20px;
  color: var(--ink-soft);
  font-size: 0.96rem;
}
.faq-body p { margin-bottom: 0.7em; }

/* ---------- 页脚 ---------- */
.site-footer {
  margin-top: clamp(40px, 6vw, 80px);
  background: var(--grad-deep);
  color: rgba(255, 255, 255, 0.78);
  padding-block: clamp(40px, 6vw, 68px) 28px;
  position: relative;
  overflow: hidden;
}
.site-footer::before {
  content: "";
  position: absolute;
  inset: -40% -10% auto auto;
  width: 620px;
  height: 620px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(244, 124, 182, 0.28), transparent 66%);
  pointer-events: none;
}
.footer-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.4fr repeat(2, 1fr);
  gap: clamp(24px, 4vw, 54px);
}
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: #fff;
  text-decoration: none;
  font-family: var(--font-round);
  font-weight: 700;
  font-size: 1.06rem;
  margin-bottom: 14px;
}
.footer-brand:hover { color: #ffd7ea; }
.footer-brand img {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.1);
  flex: none;
}
.site-footer p { font-size: 0.9rem; line-height: 1.85; color: rgba(255, 255, 255, 0.7); }
.footer-col h4 {
  color: #fff;
  font-size: 0.92rem;
  letter-spacing: 0.08em;
  margin-bottom: 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a {
  color: rgba(255, 255, 255, 0.76);
  text-decoration: none;
  font-size: 0.92rem;
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: #ffd0e6; }

.footer-bottom {
  position: relative;
  margin-top: clamp(28px, 4vw, 46px);
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  justify-content: space-between;
  font-size: 0.84rem;
  color: rgba(255, 255, 255, 0.6);
}
.footer-bottom p { font-size: 0.84rem; color: rgba(255, 255, 255, 0.6); margin: 0; }

@media (max-width: 820px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ---------- 玻璃面板 ---------- */
.glass-panel {
  background: var(--glass);
  border: 1px solid rgba(255, 255, 255, 0.8);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

/* ---------- 动效：同心轨道呼吸 ---------- */
.orbit-svg {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  overflow: hidden;
}
.orbit-svg .ring {
  transform-box: fill-box;
  transform-origin: center;
  animation: ring-breathe 12s var(--ease) infinite;
}
.orbit-svg .ring--b { animation-duration: 9s; animation-delay: -2.5s; }
.orbit-svg .ring--c { animation-duration: 15s; animation-delay: -5s; }
.orbit-svg .ring--d { animation-duration: 18s; animation-delay: -8s; }

@keyframes ring-breathe {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.045); opacity: 0.72; }
}

.orbit-svg .spark {
  transform-box: fill-box;
  transform-origin: center;
  animation: spark-pulse 8s var(--ease) infinite;
}
.orbit-svg .spark--b { animation-duration: 11s; animation-delay: -3s; }
.orbit-svg .spark--c { animation-duration: 6.5s; animation-delay: -1.5s; }

@keyframes spark-pulse {
  0%, 100% { transform: scale(1); opacity: 0.95; }
  50% { transform: scale(1.28); opacity: 0.6; }
}

.orbit-svg .sweep {
  transform-box: fill-box;
  transform-origin: center;
  animation: sweep-turn 20s linear infinite;
}
@keyframes sweep-turn {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* ---------- 动效：描边自绘 ---------- */
.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: draw-in 9s var(--ease) infinite;
}
.draw--slow { animation-duration: 14s; animation-delay: -4s; }
@keyframes draw-in {
  0% { stroke-dashoffset: 1; }
  45%, 100% { stroke-dashoffset: 0; }
}

/* ---------- 动效：条柱起伏 ---------- */
.bar-pulse {
  transform-box: fill-box;
  transform-origin: center bottom;
  animation: bar-rise 7s var(--ease) infinite;
}
.bar-pulse--2 { animation-duration: 9s; animation-delay: -1.6s; }
.bar-pulse--3 { animation-duration: 8s; animation-delay: -3.1s; }
.bar-pulse--4 { animation-duration: 11s; animation-delay: -4.6s; }
@keyframes bar-rise {
  0%, 100% { transform: scaleY(1); opacity: 1; }
  50% { transform: scaleY(0.72); opacity: 0.78; }
}

/* ---------- 动效：横向流动 ---------- */
.flow-line {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: flow-move 10s linear infinite;
}
.flow-line--b { animation-duration: 13s; animation-delay: -4s; }
@keyframes flow-move {
  0% { stroke-dashoffset: 1; }
  100% { stroke-dashoffset: 0; }
}

/* ---------- 动效：浮层漂移 ---------- */
.float-soft {
  transform-box: fill-box;
  transform-origin: center;
  animation: float-drift 14s var(--ease) infinite;
}
.float-soft--b { animation-duration: 17s; animation-delay: -6s; }
@keyframes float-drift {
  0%, 100% { transform: translateY(0); opacity: 1; }
  50% { transform: translateY(-7px); opacity: 0.86; }
}

/* ---------- 减少动态效果 ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .orbit-svg .ring,
  .orbit-svg .spark,
  .orbit-svg .sweep,
  .draw,
  .draw--slow,
  .bar-pulse,
  .flow-line,
  .float-soft {
    animation: none !important;
  }
  .draw { stroke-dashoffset: 0; }
  .flow-line { stroke-dashoffset: 0; }
}
