/* ============================================================
   WeEasyCrypto — 官网样式
   方向:私人银行金库 × 终端。曜石黑、香槟金、衬线大标题、
   等宽数据细节。所有动效 CSS 优先,滚动显影由 IntersectionObserver 驱动。
   ============================================================ */

:root {
  --bg: #0b0b0f;
  --bg-raised: #111118;
  --bg-panel: rgba(255, 255, 255, 0.028);
  --line: rgba(212, 184, 130, 0.14);
  --line-soft: rgba(255, 255, 255, 0.07);
  --ink: #ece7dc;
  --ink-dim: #a39d8f;
  --ink-faint: #6d685e;
  --gold: #c9a961;
  --gold-bright: #e6cd93;
  --green: #4fd6a3;
  --serif: "Fraunces", "Noto Serif SC", serif;
  --sans: "Noto Sans SC", sans-serif;
  --mono: "IBM Plex Mono", monospace;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-weight: 300;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

::selection { background: rgba(201, 169, 97, 0.35); color: #fff; }

/* ---------- 颗粒噪点 ---------- */
.grain {
  position: fixed; inset: -50%;
  pointer-events: none; z-index: 999;
  opacity: 0.05;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='3'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain-shift 8s steps(10) infinite;
}
@keyframes grain-shift {
  0%,100% { transform: translate(0,0); }
  20% { transform: translate(-2%,3%); }
  40% { transform: translate(3%,-2%); }
  60% { transform: translate(-3%,-3%); }
  80% { transform: translate(2%,2%); }
}

/* ---------- 通用 ---------- */
.eyebrow {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.32em;
  color: var(--gold);
  text-transform: uppercase;
}

h1, h2 { font-family: var(--serif); font-weight: 400; }
h1 em, h2 em {
  font-style: italic;
  color: var(--gold-bright);
}

.btn {
  display: inline-flex; align-items: center; gap: 0.5em;
  font-family: var(--sans); font-weight: 400;
  font-size: 0.92rem; letter-spacing: 0.04em;
  padding: 0.85em 1.9em;
  border: 1px solid transparent;
  border-radius: 2px;
  text-decoration: none;
  transition: all 0.35s var(--ease);
}
.btn-sm { padding: 0.55em 1.3em; font-size: 0.84rem; }
.btn-gold {
  background: linear-gradient(120deg, #d8ba79, var(--gold) 55%, #a8873f);
  color: #17130a;
  box-shadow: 0 0 0 1px rgba(230, 205, 147, 0.35), 0 8px 32px rgba(201, 169, 97, 0.18);
}
.btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(230, 205, 147, 0.6), 0 14px 44px rgba(201, 169, 97, 0.32);
}
.btn-ghost {
  color: var(--ink);
  border-color: var(--line);
  background: rgba(255,255,255,0.02);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold-bright); }
.btn .arrow { transition: transform 0.35s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ---------- 滚动显影 ---------- */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.12s; }
.d2 { transition-delay: 0.24s; }
.d3 { transition-delay: 0.36s; }
.d4 { transition-delay: 0.48s; }

/* ---------- NAV ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  transition: background 0.4s, border-color 0.4s, backdrop-filter 0.4s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled {
  background: rgba(11, 11, 15, 0.82);
  backdrop-filter: blur(14px);
  border-bottom-color: var(--line-soft);
}
.nav-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 1.1rem 2rem;
  display: flex; align-items: center; gap: 3rem;
}
.brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--gold); text-decoration: none;
}
.brand-mark { width: 30px; height: 30px; }
.brand-name {
  font-family: var(--serif);
  font-size: 1.25rem; letter-spacing: 0.02em;
  color: var(--ink);
}
.nav-links { display: flex; gap: 2.2rem; margin-left: auto; }
.nav-links a {
  color: var(--ink-dim); text-decoration: none;
  font-size: 0.88rem; letter-spacing: 0.06em;
  transition: color 0.3s;
}
.nav-links a:hover { color: var(--gold-bright); }

/* ---------- HERO ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 9rem 2rem 6rem;
  background:
    radial-gradient(1100px 620px at 78% 30%, rgba(201, 169, 97, 0.09), transparent 60%),
    radial-gradient(800px 500px at 12% 85%, rgba(79, 214, 163, 0.045), transparent 60%),
    var(--bg);
  overflow: hidden;
}

/* 金库转盘 */
.vault-rings {
  position: absolute; top: 50%; right: -12vw;
  width: 62vw; height: 62vw; max-width: 900px; max-height: 900px;
  transform: translateY(-50%);
  opacity: 0.5;
}
.ring {
  position: absolute; inset: 0;
  border-radius: 50%;
  border: 1px solid rgba(201, 169, 97, 0.16);
}
.ring-1 { animation: spin 90s linear infinite; border-style: dashed; }
.ring-2 { inset: 12%; border-color: rgba(201, 169, 97, 0.1); animation: spin 140s linear infinite reverse; }
.ring-2::before {
  content: ""; position: absolute; top: -4px; left: 50%;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 18px 4px rgba(201, 169, 97, 0.5);
}
.ring-3 { inset: 26%; border-style: dashed; border-color: rgba(201,169,97,0.08); animation: spin 200s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-inner {
  position: relative;
  max-width: 1240px; margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 5rem;
  align-items: center;
}

.hero-copy h1 {
  font-size: clamp(2.6rem, 5vw, 4.3rem);
  line-height: 1.16;
  margin: 1.4rem 0 1.8rem;
}
.lede {
  color: var(--ink-dim);
  font-size: 1.06rem;
  max-width: 34em;
}
.hero-actions { display: flex; gap: 1.1rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-meta {
  display: flex; align-items: center; gap: 1.1rem; flex-wrap: wrap;
  margin-top: 3.2rem;
  font-family: var(--mono); font-size: 0.76rem;
  color: var(--ink-faint); letter-spacing: 0.04em;
}
.hero-meta b { color: var(--gold-bright); font-weight: 500; }
.hero-meta .dot { width: 3px; height: 3px; border-radius: 50%; background: var(--ink-faint); }

/* ---------- 终端面板 ---------- */
.hero-panel { position: relative; }
.terminal {
  background: linear-gradient(160deg, rgba(22,22,30,0.92), rgba(13,13,18,0.96));
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow:
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(0,0,0,0.4),
    inset 0 1px 0 rgba(255,255,255,0.05);
  overflow: hidden;
}
.terminal-head {
  display: flex; align-items: center; gap: 0.45rem;
  padding: 0.85rem 1.1rem;
  border-bottom: 1px solid var(--line-soft);
}
.t-dot { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,0.12); }
.t-dot:first-child { background: rgba(201,169,97,0.55); }
.terminal-title {
  margin-left: 0.8rem;
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--ink-faint); letter-spacing: 0.08em;
}
.terminal-live {
  margin-left: auto;
  display: flex; align-items: center; gap: 0.45rem;
  font-family: var(--mono); font-size: 0.66rem;
  color: var(--green); letter-spacing: 0.2em;
}
.pulse {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  animation: pulse 1.8s ease-out infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(79, 214, 163, 0.5); }
  70% { box-shadow: 0 0 0 9px rgba(79, 214, 163, 0); }
  100% { box-shadow: 0 0 0 0 rgba(79, 214, 163, 0); }
}
.terminal-body {
  height: 320px;
  padding: 1rem 1.1rem;
  font-family: var(--mono); font-size: 0.74rem;
  display: flex; flex-direction: column; justify-content: flex-end;
  gap: 0.55rem;
  overflow: hidden;
}
.feed-row {
  display: flex; gap: 0.9rem; align-items: baseline;
  color: var(--ink-dim);
  animation: feed-in 0.5s var(--ease);
  white-space: nowrap;
}
@keyframes feed-in {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: none; }
}
.feed-time { color: var(--ink-faint); }
.feed-chain { color: var(--gold); min-width: 3.4em; }
.feed-event { color: var(--ink); min-width: 8.5em; }
.feed-amt { margin-left: auto; color: var(--gold-bright); }
.feed-status { min-width: 6em; text-align: right; }
.feed-status.ok { color: var(--green); }
.feed-status.hold { color: #e0b458; }
.terminal-foot {
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: 0.6rem;
  padding: 0.8rem 1.1rem;
  border-top: 1px solid var(--line-soft);
  font-family: var(--mono); font-size: 0.66rem;
  color: var(--ink-faint); letter-spacing: 0.06em;
}
.terminal-foot .ok { color: var(--green); font-weight: 500; }

/* ---------- STATS ---------- */
.stats { border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }
.stats-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  padding: 0 2rem;
}
.stat {
  padding: 3rem 1.5rem;
  text-align: center;
}
.stat + .stat { border-left: 1px solid var(--line-soft); }
.stat-num {
  display: block;
  font-family: var(--serif);
  font-size: 2.9rem;
  color: var(--gold-bright);
  line-height: 1.1;
}
.stat-label {
  display: block; margin-top: 0.6rem;
  font-size: 0.82rem; color: var(--ink-faint);
  letter-spacing: 0.05em;
}

/* ---------- SECTION 骨架 ---------- */
.section { padding: 8.5rem 2rem; max-width: 1240px; margin: 0 auto; }
.section-alt {
  max-width: none;
  background: linear-gradient(180deg, var(--bg-raised), var(--bg));
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.section-alt > * { max-width: 1240px; margin-left: auto; margin-right: auto; }
.section-head { max-width: 640px; margin-bottom: 4.5rem; }
.section-head h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.22; margin: 1.2rem 0 1.4rem; }
.section-lede { color: var(--ink-dim); font-size: 1rem; }

/* ---------- 能力卡片 ---------- */
.cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
}
.card {
  position: relative;
  background: var(--bg);
  padding: 2.6rem 2.2rem 2.4rem;
  transition: background 0.45s var(--ease);
  overflow: hidden;
}
.card::after {
  content: "";
  position: absolute; left: 0; right: 0; top: 0; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
  transform: scaleX(0);
  transition: transform 0.6s var(--ease);
}
.card:hover { background: var(--bg-raised); }
.card:hover::after { transform: scaleX(1); }
.card-index {
  font-family: var(--mono); font-size: 0.72rem;
  color: var(--gold); letter-spacing: 0.2em;
}
.card h3 {
  font-family: var(--serif); font-weight: 500;
  font-size: 1.35rem; margin: 1rem 0 0.8rem;
}
.card p { color: var(--ink-dim); font-size: 0.9rem; }
.card-tag {
  display: inline-block; margin-top: 1.6rem;
  font-family: var(--mono); font-size: 0.62rem;
  letter-spacing: 0.22em; color: var(--ink-faint);
  border: 1px solid var(--line-soft);
  padding: 0.35em 0.9em; border-radius: 100px;
}

/* ---------- 流水线 ---------- */
.pipeline {
  display: flex; align-items: stretch; gap: 0;
  margin-top: 1rem;
}
.pipe-step {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  padding: 2.2rem 1.8rem;
  position: relative;
  transition: border-color 0.4s;
}
.pipe-step:hover { border-color: var(--line); }
.pipe-no {
  font-family: var(--serif); font-style: italic;
  font-size: 1.6rem; color: var(--gold);
}
.pipe-step h4 { font-family: var(--sans); font-weight: 500; font-size: 1.02rem; margin: 0.9rem 0 0.5rem; }
.pipe-step p { font-size: 0.84rem; color: var(--ink-dim); }
.pipe-mono {
  display: block; margin-top: 1.4rem;
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.26em; color: var(--green);
}
.pipe-link {
  width: 3.4rem; align-self: center; flex-shrink: 0;
  height: 1px;
  background: linear-gradient(90deg, var(--line), var(--gold), var(--line));
  position: relative;
}
.pipe-link::after {
  content: ""; position: absolute; right: -1px; top: -3px;
  border-left: 7px solid var(--gold);
  border-top: 3.5px solid transparent;
  border-bottom: 3.5px solid transparent;
}
.pipeline-note {
  margin-top: 3rem; text-align: center;
  color: var(--ink-faint); font-size: 0.9rem;
  font-style: italic;
}

/* ---------- 多链 ---------- */
.chains {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 1.6rem; align-items: stretch;
}
.chain {
  border: 1px solid var(--line-soft);
  background: var(--bg-panel);
  padding: 2.8rem 2.4rem;
  border-radius: 6px;
  transition: transform 0.5s var(--ease), border-color 0.5s, box-shadow 0.5s;
}
.chain:hover {
  transform: translateY(-6px);
  border-color: var(--line);
  box-shadow: 0 24px 60px rgba(0,0,0,0.45);
}
.chain-feature {
  border-color: rgba(201, 169, 97, 0.35);
  background: linear-gradient(170deg, rgba(201,169,97,0.07), var(--bg-panel) 55%);
}
.chain-glyph {
  font-family: var(--serif);
  font-size: 2.4rem; color: var(--gold-bright);
  width: 68px; height: 68px;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line);
  border-radius: 50%;
  margin-bottom: 1.8rem;
}
.chain h3 { font-family: var(--serif); font-weight: 500; font-size: 1.5rem; margin-bottom: 0.9rem; }
.chain p { color: var(--ink-dim); font-size: 0.9rem; margin-bottom: 1.6rem; }
.chain ul { list-style: none; }
.chain li {
  font-size: 0.86rem; color: var(--ink-dim);
  padding: 0.55rem 0 0.55rem 1.5rem;
  border-top: 1px solid var(--line-soft);
  position: relative;
}
.chain li::before {
  content: "◆"; position: absolute; left: 0;
  color: var(--gold); font-size: 0.5rem; top: 1em;
}

/* ---------- 安全 ---------- */
.section-security {
  max-width: none;
  background:
    radial-gradient(900px 500px at 85% 15%, rgba(201,169,97,0.07), transparent 60%),
    var(--bg-raised);
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
}
.security-inner {
  max-width: 1240px; margin: 0 auto;
  display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 5rem;
}
.security-copy h2 { font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.22; margin: 1.2rem 0 1.4rem; }
.security-copy .btn { margin-top: 1.6rem; }
.security-list { list-style: none; display: flex; flex-direction: column; }
.security-list li {
  display: flex; gap: 1.8rem;
  padding: 2.1rem 0;
  border-top: 1px solid var(--line);
}
.security-list li:last-child { border-bottom: 1px solid var(--line); }
.sec-no {
  font-family: var(--serif); font-style: italic;
  color: var(--gold); font-size: 1.15rem;
  flex-shrink: 0; width: 2.2em;
}
.security-list h4 { font-weight: 500; font-size: 1.05rem; margin-bottom: 0.5rem; }
.security-list p { color: var(--ink-dim); font-size: 0.88rem; }

/* ---------- 架构 ---------- */
.arch {
  display: flex; align-items: stretch; gap: 1.4rem;
}
.arch-col {
  flex: 1;
  display: flex; flex-direction: column; gap: 1rem;
}
.arch-col-label {
  font-family: var(--mono); font-size: 0.66rem;
  letter-spacing: 0.3em; color: var(--ink-faint);
  margin-bottom: 0.3rem;
}
.arch-node {
  background: var(--bg-panel);
  border: 1px solid var(--line-soft);
  border-radius: 4px;
  padding: 1.3rem 1.4rem;
  font-weight: 400; font-size: 0.98rem;
  flex: 1;
  transition: border-color 0.4s;
}
.arch-node:hover { border-color: var(--line); }
.arch-node span {
  display: block; margin-top: 0.4rem;
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--ink-faint); letter-spacing: 0.05em;
}
.arch-node-gold {
  border-color: rgba(201,169,97,0.4);
  background: linear-gradient(150deg, rgba(201,169,97,0.09), var(--bg-panel) 60%);
}
.arch-flow {
  align-self: center; flex-shrink: 0;
  display: flex; flex-direction: column; gap: 0.5rem;
  padding-top: 1.4rem;
}
.arch-flow span {
  display: block; width: 2.6rem; height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold));
  animation: flow 2.4s ease-in-out infinite;
  opacity: 0.35;
}
.arch-flow span:nth-child(2) { animation-delay: 0.4s; }
.arch-flow span:nth-child(3) { animation-delay: 0.8s; }
@keyframes flow {
  0%, 100% { opacity: 0.2; }
  50% { opacity: 0.9; }
}

/* ---------- CTA ---------- */
.cta {
  padding: 10rem 2rem;
  text-align: center;
  background:
    radial-gradient(700px 420px at 50% 0%, rgba(201,169,97,0.1), transparent 65%),
    var(--bg);
}
.cta h2 { font-size: clamp(2.2rem, 4.4vw, 3.6rem); line-height: 1.2; margin: 1.4rem 0 1.2rem; }
.cta-lede { color: var(--ink-dim); }
.cta-actions {
  display: flex; gap: 1.1rem; justify-content: center; flex-wrap: wrap;
  margin-top: 2.8rem;
}

/* ---------- FOOTER ---------- */
.footer { border-top: 1px solid var(--line-soft); }
.footer-inner {
  max-width: 1240px; margin: 0 auto;
  padding: 3.2rem 2rem;
  display: flex; align-items: center; gap: 3rem; flex-wrap: wrap;
}
.footer-brand {
  display: flex; align-items: center; gap: 0.7rem;
  color: var(--gold);
  font-family: var(--serif); font-size: 1.1rem;
}
.footer-brand .brand-mark { width: 24px; height: 24px; }
.footer-brand span { color: var(--ink); }
.footer-links { display: flex; gap: 1.8rem; }
.footer-links a {
  color: var(--ink-dim); text-decoration: none; font-size: 0.84rem;
  transition: color 0.3s;
}
.footer-links a:hover { color: var(--gold-bright); }
.footer-fine {
  margin-left: auto;
  font-family: var(--mono); font-size: 0.68rem;
  color: var(--ink-faint); letter-spacing: 0.06em;
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .hero-inner { grid-template-columns: minmax(0, 1fr); gap: 3.5rem; }
  .hero-panel { min-width: 0; }
  .vault-rings { opacity: 0.25; }
  .stats-inner { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(3) { border-left: none; }
  .stat:nth-child(n+3) { border-top: 1px solid var(--line-soft); }
  .cards { grid-template-columns: 1fr 1fr; }
  .chains { grid-template-columns: 1fr; }
  .security-inner { grid-template-columns: 1fr; gap: 3rem; }
  .pipeline { flex-direction: column; gap: 0.9rem; }
  .pipe-link { width: 1px; height: 2.2rem; align-self: center; background: linear-gradient(180deg, var(--line), var(--gold)); }
  .pipe-link::after { display: none; }
  .arch { flex-direction: column; }
  .arch-flow { flex-direction: row; padding: 0; align-self: flex-start; }
  .arch-flow span { transform: rotate(90deg); width: 1.6rem; }
}
@media (max-width: 680px) {
  .nav-links { display: none; }
  .cards { grid-template-columns: 1fr; }
  .stats-inner { grid-template-columns: 1fr 1fr; padding: 0 1rem; }
  .section { padding: 6rem 1.4rem; }
  .hero { padding: 8rem 1.4rem 4.5rem; }
  .terminal-body { height: 260px; font-size: 0.62rem; gap: 0.5rem; padding: 0.9rem 0.8rem; }
  .feed-row { gap: 0.55rem; }
  .feed-event { min-width: 0; }
  .feed-status { min-width: 4.5em; }
  .terminal-foot { font-size: 0.58rem; }
  .footer-fine { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
