/* ==========================================================================
   东方财富 · eostmomey.com.cn
   全站共享样式：黑金高级感 + 细线描边 / 衬线标题 + 无衬线正文
   ========================================================================== */

/* ---------- 设计变量 ---------- */
:root {
  --ink-0: #07070a;
  --ink-1: #0c0d11;
  --ink-2: #121318;
  --ink-3: #191b21;
  --ink-4: #23252d;
  --line: rgba(214, 180, 110, 0.18);
  --line-soft: rgba(255, 255, 255, 0.08);
  --line-strong: rgba(214, 180, 110, 0.42);

  --gold-1: #f2dfae;
  --gold-2: #d6b46e;
  --gold-3: #a8873f;
  --gold-4: #6f5a29;

  --text-0: #f4f1ea;
  --text-1: #cfcbc2;
  --text-2: #9a978f;
  --text-3: #6f6d68;

  --up: #d9503f;
  --down: #3f8f6f;

  --serif: "Songti SC", "STSong", "Noto Serif SC", "Source Han Serif SC",
    "SimSun", Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei",
    "Noto Sans SC", "Source Han Sans SC", system-ui, -apple-system, sans-serif;
  --mono: "SFMono-Regular", "JetBrains Mono", Consolas, "Courier New", monospace;

  --wrap: 1180px;
  --wrap-narrow: 880px;
  --radius-s: 4px;
  --radius-m: 8px;
  --radius-l: 14px;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow-1: 0 1px 0 rgba(255, 255, 255, 0.04) inset,
    0 18px 40px -24px rgba(0, 0, 0, 0.9);
  --shadow-2: 0 30px 70px -40px rgba(0, 0, 0, 1);

  --header-h: 68px;
}

/* ---------- 基础重置 ---------- */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  margin: 0;
  background-color: var(--ink-0);
  color: var(--text-1);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.78;
  letter-spacing: 0.01em;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* 背景极细网格 + 金色微光，全站统一氛围 */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.022) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.022) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 90% 70% at 50% 0%, #000 20%, transparent 78%);
}

img,
svg {
  display: block;
  max-width: 100%;
}

img {
  height: auto;
}

a {
  color: var(--gold-2);
  text-decoration: none;
  transition: color 0.25s var(--ease), border-color 0.25s var(--ease);
}

a:hover {
  color: var(--gold-1);
}

p {
  margin: 0 0 1.05em;
  max-width: 40em;
}

h1,
h2,
h3,
h4 {
  font-family: var(--serif);
  color: var(--text-0);
  font-weight: 600;
  line-height: 1.24;
  letter-spacing: 0.01em;
  margin: 0 0 0.6em;
  text-wrap: balance;
}

h1 {
  font-size: clamp(2.05rem, 4.4vw, 3.7rem);
  letter-spacing: 0.015em;
}

h2 {
  font-size: clamp(1.6rem, 2.7vw, 2.4rem);
}

h3 {
  font-size: clamp(1.1rem, 1.5vw, 1.32rem);
}

h4 {
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-0);
}

ul,
ol {
  margin: 0 0 1.05em;
  padding-left: 1.35em;
}

li {
  margin-bottom: 0.4em;
}

li::marker {
  color: var(--gold-3);
}

strong {
  color: var(--text-0);
  font-weight: 600;
}

em {
  font-style: normal;
  color: var(--gold-2);
}

code {
  font-family: var(--mono);
  font-size: 0.9em;
  color: var(--gold-1);
  background: rgba(214, 180, 110, 0.09);
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 0.08em 0.42em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

hr {
  border: 0;
  height: 1px;
  background: var(--line);
  margin: 3rem 0;
}

::selection {
  background: rgba(214, 180, 110, 0.28);
  color: #fff;
}

/* ---------- 焦点可见 ---------- */
:focus-visible {
  outline: 2px solid var(--gold-2);
  outline-offset: 3px;
  border-radius: 2px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -80px;
  z-index: 200;
  padding: 10px 18px;
  background: var(--gold-2);
  color: var(--ink-0);
  font-weight: 600;
  border-radius: var(--radius-s);
  transition: top 0.2s var(--ease);
}

.skip-link:focus {
  top: 12px;
  color: var(--ink-0);
}

/* ---------- 布局容器 ---------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: clamp(18px, 4vw, 40px);
  position: relative;
  z-index: 1;
}

.wrap-narrow {
  max-width: var(--wrap-narrow);
}

.section {
  position: relative;
  padding-block: clamp(56px, 8vw, 104px);
  border-top: 1px solid var(--line-soft);
  overflow-x: clip;
}

.section:first-of-type {
  border-top: 0;
}

.section-tight {
  padding-block: clamp(40px, 5vw, 64px);
}

/* ---------- 页头 ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(7, 7, 10, 0.82);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid var(--line-soft);
}

.header-inner {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.4vw, 34px);
  min-height: var(--header-h);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  color: var(--text-0);
}

.brand img {
  width: 30px;
  height: 30px;
  object-fit: contain;
  border-radius: 6px;
  background: linear-gradient(150deg, var(--ink-3), var(--ink-1));
  border: 1px solid var(--line);
  padding: 3px;
}

.brand-name {
  font-family: var(--serif);
  font-size: 1.12rem;
  letter-spacing: 0.14em;
  color: var(--text-0);
  line-height: 1;
  white-space: nowrap;
}

.brand-name small {
  display: block;
  font-family: var(--sans);
  font-size: 0.6rem;
  letter-spacing: 0.24em;
  color: var(--text-3);
  margin-top: 5px;
  text-transform: uppercase;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(4px, 1.2vw, 10px);
  margin-left: auto;
  flex-wrap: wrap;
}

.site-nav a {
  position: relative;
  display: inline-block;
  padding: 8px 12px;
  font-size: 0.92rem;
  color: var(--text-1);
  border-radius: var(--radius-s);
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.site-nav a::after {
  content: "";
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 3px;
  height: 1px;
  background: var(--gold-2);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.28s var(--ease);
}

.site-nav a:hover {
  color: var(--text-0);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.site-nav a[aria-current="page"] {
  color: var(--gold-1);
}

.site-nav a[aria-current="page"]::after {
  transform: scaleX(1);
  background: var(--gold-1);
}

.header-cta {
  flex: 0 0 auto;
  margin-left: 6px;
}

/* ---------- 按钮 ---------- */
.btn {
  --btn-bg: transparent;
  --btn-fg: var(--text-0);
  --btn-bd: var(--line-strong);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 12px 22px;
  font-family: var(--sans);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  line-height: 1.2;
  color: var(--btn-fg);
  background: var(--btn-bg);
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius-s);
  cursor: pointer;
  text-align: center;
  transition: background-color 0.28s var(--ease), color 0.28s var(--ease),
    border-color 0.28s var(--ease), transform 0.28s var(--ease),
    box-shadow 0.28s var(--ease);
}

.btn svg {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-gold {
  --btn-bg: linear-gradient(150deg, #f3e2b4, #d6b46e 55%, #b5944b);
  --btn-fg: #14120c;
  --btn-bd: transparent;
  box-shadow: 0 10px 28px -18px rgba(214, 180, 110, 0.9);
}

.btn-gold:hover {
  --btn-fg: #14120c;
  box-shadow: 0 16px 34px -18px rgba(214, 180, 110, 1);
}

.btn-ghost {
  --btn-bg: rgba(255, 255, 255, 0.02);
  --btn-fg: var(--gold-1);
  --btn-bd: var(--line-strong);
}

.btn-ghost:hover {
  --btn-bg: rgba(214, 180, 110, 0.1);
  --btn-fg: var(--gold-1);
  --btn-bd: var(--gold-2);
}

.btn-lg {
  padding: 15px 30px;
  font-size: 1.02rem;
}

.btn-sm {
  padding: 8px 15px;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
}

/* 文字链接箭头 */
.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--gold-2);
}

.link-arrow svg {
  width: 15px;
  height: 15px;
  transition: transform 0.28s var(--ease);
}

.link-arrow:hover svg {
  transform: translateX(3px);
}

/* ---------- 通用文本元素 ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--sans);
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin: 0 0 18px;
  max-width: 100%;
  flex-wrap: wrap;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: var(--gold-3);
}

.lead {
  font-size: clamp(1rem, 1.35vw, 1.12rem);
  color: var(--text-1);
  line-height: 1.85;
  max-width: 34em;
}

.section-head {
  max-width: 46em;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head p {
  color: var(--text-2);
  margin-bottom: 0;
}

.muted {
  color: var(--text-2);
}

.small {
  font-size: 0.86rem;
  color: var(--text-3);
}

.nowrap {
  white-space: nowrap;
}

/* ---------- 卡片 ---------- */
.card {
  position: relative;
  background: linear-gradient(170deg, rgba(255, 255, 255, 0.035), rgba(255, 255, 255, 0.008) 60%);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-l);
  padding: clamp(20px, 2.4vw, 30px);
  box-shadow: var(--shadow-1);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease),
    background-color 0.3s var(--ease);
}

.card:hover {
  border-color: var(--line-strong);
  transform: translateY(-2px);
}

.card h3 {
  margin-bottom: 0.55em;
}

.card p:last-child {
  margin-bottom: 0;
}

.card-flat {
  background: transparent;
  box-shadow: none;
}

/* 卡片上的细线角标 */
.card-corners::before,
.card-corners::after {
  content: "";
  position: absolute;
  width: 14px;
  height: 14px;
  border: 1px solid var(--gold-3);
  opacity: 0.55;
  pointer-events: none;
}

.card-corners::before {
  top: -1px;
  left: -1px;
  border-right: 0;
  border-bottom: 0;
}

.card-corners::after {
  bottom: -1px;
  right: -1px;
  border-left: 0;
  border-top: 0;
}

/* 图标 */
.icon-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: radial-gradient(circle at 30% 25%, rgba(214, 180, 110, 0.18), transparent 70%);
  color: var(--gold-2);
  margin-bottom: 16px;
  flex: 0 0 auto;
}

.icon-badge svg {
  width: 22px;
  height: 22px;
}

/* ---------- 网格 ---------- */
.grid {
  display: grid;
  gap: clamp(14px, 2vw, 22px);
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* ---------- 表格 ---------- */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-m);
  background: rgba(255, 255, 255, 0.014);
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.94rem;
  min-width: 560px;
}

caption {
  text-align: left;
  padding: 14px 18px 0;
  color: var(--text-3);
  font-size: 0.84rem;
}

thead th {
  text-align: left;
  font-family: var(--sans);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--gold-3);
  text-transform: uppercase;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(214, 180, 110, 0.045);
  white-space: nowrap;
}

tbody td {
  padding: 15px 18px;
  border-bottom: 1px solid var(--line-soft);
  vertical-align: top;
  color: var(--text-1);
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: rgba(255, 255, 255, 0.022);
}

td strong {
  color: var(--text-0);
}

/* ---------- FAQ ---------- */
.faq {
  border-top: 1px solid var(--line-soft);
}

.faq details {
  border-bottom: 1px solid var(--line-soft);
  padding: 4px 0;
}

.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 40px 20px 4px;
  word-break: break-word;
  cursor: pointer;
  list-style: none;
  position: relative;
  font-family: var(--sans);
  font-size: 1.02rem;
  font-weight: 600;
  color: var(--text-0);
  line-height: 1.6;
  transition: color 0.24s var(--ease);
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary:hover {
  color: var(--gold-1);
}

.faq summary::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 30px;
  width: 9px;
  height: 9px;
  border-right: 1.5px solid var(--gold-2);
  border-bottom: 1.5px solid var(--gold-2);
  transform: rotate(45deg);
  transition: transform 0.28s var(--ease);
}

.faq details[open] summary::after {
  transform: rotate(-135deg);
  top: 34px;
}

.faq details[open] summary {
  color: var(--gold-1);
}

.faq .faq-body {
  padding: 0 40px 22px 4px;
  color: var(--text-2);
  font-size: 0.95rem;
}

.faq .faq-body p:last-child {
  margin-bottom: 0;
}

/* ---------- 徽章 / 标签 ---------- */
.tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--gold-2);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(214, 180, 110, 0.06);
  white-space: nowrap;
}

/* ---------- 页脚 ---------- */
.site-footer {
  position: relative;
  border-top: 1px solid var(--line);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.012), transparent 40%);
  padding-top: clamp(44px, 6vw, 72px);
  margin-top: clamp(24px, 5vw, 60px);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: clamp(24px, 4vw, 48px);
  padding-bottom: clamp(32px, 4vw, 48px);
}

.footer-brand p {
  font-size: 0.9rem;
  color: var(--text-3);
  max-width: 34ch;
}

.footer-brand .brand {
  margin-bottom: 14px;
}

.footer-col h4 {
  font-size: 0.78rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-3);
  margin-bottom: 16px;
  font-family: var(--sans);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 10px;
}

.footer-col a {
  color: var(--text-2);
  font-size: 0.9rem;
}

.footer-col a:hover {
  color: var(--gold-1);
}

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-block: 22px 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 24px;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  color: var(--text-3);
  overflow-wrap: anywhere;
}

.footer-bottom p {
  margin: 0;
}

.footer-risk {
  color: var(--text-3);
  font-size: 0.8rem;
}

/* ---------- SVG 动效：星点明灭与连线 ---------- */
@keyframes starTwinkle {
  0%,
  100% {
    opacity: 0.28;
  }
  50% {
    opacity: 1;
  }
}

@keyframes starTwinkleSlow {
  0%,
  100% {
    opacity: 0.18;
  }
  45% {
    opacity: 0.85;
  }
  70% {
    opacity: 0.42;
  }
}

@keyframes lineBreath {
  0%,
  100% {
    opacity: 0.14;
  }
  50% {
    opacity: 0.62;
  }
}

@keyframes drawLine {
  0% {
    stroke-dashoffset: 1;
  }
  100% {
    stroke-dashoffset: 0;
  }
}

@keyframes floatSoft {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pulseRing {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.55;
  }
  50% {
    transform: scale(1.14);
    opacity: 0.22;
  }
}

@keyframes driftX {
  0%,
  100% {
    transform: translateX(0);
  }
  50% {
    transform: translateX(10px);
  }
}

@keyframes tickerRun {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}

/* 动效类 */
.star {
  animation: starTwinkle 6s var(--ease) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.star-slow {
  animation: starTwinkleSlow 11s var(--ease) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.star-d1 {
  animation-delay: -1.6s;
}

.star-d2 {
  animation-delay: -3.4s;
}

.star-d3 {
  animation-delay: -5.1s;
}

.star-d4 {
  animation-delay: -7.2s;
}

.star-d5 {
  animation-delay: -9.1s;
}

.link-line {
  animation: lineBreath 9s var(--ease) infinite;
}

.link-line-d1 {
  animation-delay: -2.8s;
}

.link-line-d2 {
  animation-delay: -5.6s;
}

.draw {
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
  animation: drawLine 6s var(--ease) infinite alternate;
}

.float-soft {
  animation: floatSoft 8s var(--ease) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.float-soft-d1 {
  animation-delay: -3s;
}

.pulse-ring {
  animation: pulseRing 7s var(--ease) infinite;
  transform-box: fill-box;
  transform-origin: center;
}

.drift-x {
  animation: driftX 12s var(--ease) infinite;
}

/* 减少动态效果 */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition-duration: 0.001ms !important;
  }
}

/* ---------- 响应式 ---------- */
@media (max-width: 980px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 760px) {
  :root {
    --header-h: 60px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding-block: 10px;
    row-gap: 6px;
  }

  .site-nav {
    order: 3;
    width: 100%;
    margin-left: 0;
    justify-content: flex-start;
    gap: 2px;
  }

  .site-nav a {
    padding: 6px 10px;
    font-size: 0.86rem;
  }

  .header-cta {
    margin-left: auto;
  }

  .grid-2,
  .grid-3,
  .grid-4 {
    grid-template-columns: minmax(0, 1fr);
  }

  .footer-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 26px;
  }

  .faq summary {
    padding-right: 34px;
    font-size: 0.98rem;
  }
}

@media (max-width: 420px) {
  .btn {
    padding: 11px 16px;
    font-size: 0.9rem;
  }

  .btn-lg {
    padding: 13px 18px;
    font-size: 0.95rem;
  }

  .brand-name {
    font-size: 1rem;
  }

  .eyebrow {
    letter-spacing: 0.2em;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }
}
