/* ============================================================
   足坛名人榜 · HALL OF LEGENDS
   设计系统:深墨 + 香槟金 · 数字名人堂
   ============================================================ */

:root {
  /* 表面 */
  --bg: #0b0d0c;            /* 页面基底 */
  --bg-soft: #0e110f;
  --surface: #141715;        /* 卡片面 */
  --surface-2: #191d1b;      /* 悬浮面 */
  /* 金色系 */
  --gold: #c9a962;           /* 页面主金(文本/图标) */
  --gold-bright: #e3c98a;    /* 悬停/高亮 */
  --gold-deep: #8a6d2f;      /* 深金 */
  --gold-wash: rgba(201, 169, 98, 0.07);
  --gold-wash-strong: rgba(201, 169, 98, 0.13);
  /* 图表系列色(经校验:明度带内、对比达标) */
  --series: #b08d3f;
  --series-hi: #d4b04a;
  /* 墨色文字 */
  --ink: #f2efe6;
  --ink-2: #b3b3a9;
  --ink-3: #7d7d74;
  /* 线 */
  --hairline: rgba(201, 169, 98, 0.16);
  --hairline-soft: rgba(242, 239, 230, 0.07);
  /* 字体 */
  --serif: "Noto Serif SC", "Source Han Serif SC", "STZhongsong", "SimSun", serif;
  --sans: "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

::selection { background: var(--gold-deep); color: #fff; }

/* ---------- 布局 ---------- */
.container { max-width: 1180px; margin: 0 auto; padding: 0 28px; }
section { padding: 96px 0; position: relative; }
.section-head { margin-bottom: 56px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 12px; letter-spacing: 0.32em; text-transform: uppercase;
  color: var(--gold); font-weight: 600;
}
.kicker::before { content: ""; width: 28px; height: 1px; background: var(--gold); }
.section-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 44px);
  font-weight: 700; letter-spacing: 0.02em;
  margin-top: 14px; line-height: 1.3;
}
.section-sub { color: var(--ink-2); margin-top: 12px; max-width: 640px; font-size: 15px; }

/* ---------- 顶部导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(11, 13, 12, 0.78);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hairline-soft);
}
.nav-inner {
  max-width: 1180px; margin: 0 auto; padding: 0 28px;
  height: 68px; display: flex; align-items: center; justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand-mark {
  width: 34px; height: 34px; flex: none;
  border: 1px solid var(--gold); border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--serif); font-size: 13px; font-weight: 700; color: var(--gold);
  letter-spacing: 0.05em;
}
.brand-name { font-family: var(--serif); font-size: 16px; font-weight: 700; letter-spacing: 0.14em; }
.brand-sub { font-size: 10px; letter-spacing: 0.3em; color: var(--ink-3); text-transform: uppercase; }
.nav-links { display: flex; gap: 34px; align-items: center; }
.nav-links a {
  color: var(--ink-2); text-decoration: none; font-size: 14px; letter-spacing: 0.06em;
  transition: color 0.25s; position: relative;
}
.nav-links a:hover { color: var(--gold-bright); }
.nav-links a.active { color: var(--gold); }
.nav-links a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold);
}

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 32px; font-size: 14px; letter-spacing: 0.12em; font-weight: 600;
  text-decoration: none; border-radius: 2px; cursor: pointer;
  transition: all 0.3s ease; border: 1px solid transparent;
}
.btn-gold { background: linear-gradient(135deg, #d8bd72, #b3934a); color: #14120a; }
.btn-gold:hover { background: linear-gradient(135deg, #e3c98a, #c9a962); box-shadow: 0 6px 24px rgba(201,169,98,0.25); }
.btn-ghost { border-color: var(--gold); color: var(--gold-bright); background: transparent; }
.btn-ghost:hover { background: var(--gold-wash-strong); }
.btn::after { content: "→"; font-weight: 400; transition: transform 0.3s; }
.btn:hover::after { transform: translateX(4px); }

/* ---------- 首页英雄区 ---------- */
.hero-home {
  min-height: 94vh; position: relative; overflow: hidden;
  display: flex; align-items: flex-end;
  padding: 180px 0 140px;
}
.hero-home-bg { position: absolute; inset: 0; z-index: 0; }
.hero-home-bg img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
.hero-home-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(180deg, rgba(11,13,12,0.55) 0%, rgba(11,13,12,0.25) 40%, rgba(11,13,12,0.92) 82%, var(--bg) 100%),
    linear-gradient(90deg, rgba(11,13,12,0.8) 0%, rgba(11,13,12,0.25) 55%, rgba(11,13,12,0.1) 100%);
}
.hero-home-inner { position: relative; z-index: 1; max-width: 1180px; margin: 0 auto; padding: 0 28px; width: 100%; }
.hero-home h1 {
  font-family: var(--serif); font-weight: 900;
  font-size: clamp(44px, 7.2vw, 92px); line-height: 1.12; letter-spacing: 0.04em;
  margin: 22px 0 18px;
  text-shadow: 0 4px 40px rgba(0,0,0,0.5);
}
.hero-home h1 .accent { color: var(--gold-bright); }
.hero-home .hero-meta { color: var(--ink-2); font-size: 15px; letter-spacing: 0.08em; }
.hero-home .hero-meta b { color: var(--ink); font-weight: 600; }
.hero-cta { display: flex; gap: 18px; margin-top: 40px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); z-index: 2;
  color: var(--ink-3); font-size: 11px; letter-spacing: 0.3em; text-transform: uppercase;
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.hero-scroll::after {
  content: ""; width: 1px; height: 34px;
  background: linear-gradient(var(--gold), transparent);
  animation: scrollpulse 2.2s ease-in-out infinite;
}
@keyframes scrollpulse { 0%,100% { opacity: 0.35; } 50% { opacity: 1; } }

/* ---------- 核心数字条 ---------- */
.stat-strip { margin-top: -1px; border-top: 1px solid var(--hairline); border-bottom: 1px solid var(--hairline); background: var(--bg-soft); }
.stat-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat-cell { padding: 44px 32px; border-left: 1px solid var(--hairline-soft); }
.stat-cell:first-child { border-left: none; }
.stat-num {
  font-size: clamp(34px, 4.6vw, 56px); font-weight: 700; line-height: 1;
  color: var(--gold-bright); letter-spacing: -0.01em;
  font-variant-numeric: proportional-nums;
}
.stat-num small { font-size: 0.45em; color: var(--gold); margin-left: 4px; font-weight: 600; }
.stat-label { margin-top: 12px; font-size: 14px; color: var(--ink); letter-spacing: 0.05em; font-weight: 500; }
.stat-note { margin-top: 4px; font-size: 12px; color: var(--ink-3); }

/* ---------- 引言 ---------- */
.quote-block { text-align: center; max-width: 860px; margin: 0 auto; }
.quote-mark { font-family: var(--serif); font-size: 72px; color: var(--gold); line-height: 0.6; display: block; margin-bottom: 26px; }
.quote-text {
  font-family: var(--serif); font-size: clamp(22px, 3.2vw, 34px);
  line-height: 1.65; font-weight: 600; letter-spacing: 0.03em;
}
.quote-source { margin-top: 26px; color: var(--ink-3); font-size: 13px; letter-spacing: 0.06em; }

/* ---------- 荣誉墙 ---------- */
.honors-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.honor-card {
  background: var(--surface); border: 1px solid var(--hairline-soft);
  padding: 30px 28px; border-radius: 4px; position: relative; overflow: hidden;
  transition: transform 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.honor-card:hover { transform: translateY(-4px); border-color: var(--hairline); }
.honor-card .h-icon { font-size: 26px; display: block; margin-bottom: 16px; }
.honor-card .h-name { font-size: 15px; color: var(--ink-2); letter-spacing: 0.08em; }
.honor-card .h-count { font-family: var(--serif); font-size: 30px; font-weight: 700; margin-top: 6px; color: var(--ink); }
.honor-card .h-detail { margin-top: 10px; font-size: 12.5px; color: var(--ink-3); }
.honor-card.tier-gold {
  border-color: rgba(201,169,98,0.38);
  background: linear-gradient(160deg, rgba(201,169,98,0.10) 0%, var(--surface) 55%);
}
.honor-card.tier-gold .h-count { color: var(--gold-bright); }
.honor-card.tier-gold::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, var(--gold), var(--gold-bright), var(--gold));
}
.honor-card.tier-record { border-style: dashed; }
.honor-card.tier-record .h-icon { filter: grayscale(0.6); }

/* ---------- 球员英雄区 ---------- */
.hero-profile {
  padding: 170px 0 90px; position: relative; overflow: hidden;
  border-bottom: 1px solid var(--hairline-soft);
}
.hero-profile::before {
  content: "CR7"; position: absolute; top: 40px; right: -30px;
  font-family: var(--serif); font-weight: 900; font-size: clamp(200px, 30vw, 420px);
  color: rgba(201,169,98,0.045); line-height: 1; pointer-events: none; user-select: none;
}
.hero-profile-grid {
  position: relative; display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}
.hp-name { font-family: var(--serif); font-weight: 900; font-size: clamp(38px, 5.4vw, 68px); line-height: 1.18; letter-spacing: 0.03em; }
.hp-name .accent { color: var(--gold-bright); }
.hp-en { color: var(--ink-3); font-size: 14px; letter-spacing: 0.28em; text-transform: uppercase; margin-top: 12px; }
.hp-intro { margin-top: 24px; color: var(--ink-2); max-width: 560px; font-size: 15.5px; }
.hp-facts {
  display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 14px 34px;
  margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--hairline-soft);
}
.hp-fact .f-label { font-size: 11px; letter-spacing: 0.2em; color: var(--ink-3); text-transform: uppercase; }
.hp-fact .f-value { margin-top: 5px; font-size: 15px; color: var(--ink); font-weight: 500; }
.hp-hero-num {
  margin-top: 36px; display: flex; align-items: baseline; gap: 16px;
  padding: 24px 28px; border: 1px solid var(--hairline); border-radius: 4px;
  background: var(--gold-wash); max-width: 560px;
}
.hp-hero-num .num { font-size: 64px; font-weight: 700; color: var(--gold-bright); line-height: 1; font-variant-numeric: proportional-nums; }
.hp-hero-num .cap { color: var(--ink-2); font-size: 13px; letter-spacing: 0.05em; }
.hp-photo { position: relative; }
.hp-photo-frame {
  position: relative; border-radius: 4px; overflow: hidden;
  border: 1px solid var(--hairline);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55);
}
.hp-photo-frame img { display: block; width: 100%; height: auto; }
.hp-photo-frame::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(200deg, rgba(201,169,98,0.10) 0%, transparent 35%, rgba(11,13,12,0.35) 100%);
}
.hp-photo::before {
  content: ""; position: absolute; inset: -16px -16px auto auto;
  width: 60%; height: 60%; border-top: 1px solid var(--gold); border-right: 1px solid var(--gold); opacity: 0.55;
}
.hp-photo-caption { margin-top: 14px; font-size: 11.5px; color: var(--ink-3); text-align: right; }

/* ---------- 时间轴 ---------- */
.filter-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.chip {
  padding: 9px 22px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--hairline-soft); background: transparent;
  color: var(--ink-2); font-size: 13.5px; letter-spacing: 0.1em; font-family: var(--sans);
  transition: all 0.25s ease;
}
.chip:hover { border-color: var(--hairline); color: var(--ink); }
.chip.active {
  border-color: var(--gold); color: #14120a; background: linear-gradient(135deg, #d8bd72, #b3934a);
  font-weight: 600;
}
.timeline { position: relative; padding-left: 56px; }
.timeline::before {
  content: ""; position: absolute; left: 15px; top: 6px; bottom: 6px; width: 1px;
  background: linear-gradient(180deg, var(--gold-deep), rgba(201,169,98,0.18) 60%, transparent);
}
.t-node { position: relative; padding: 0 0 44px; animation: nodeIn 0.45s ease both; }
@keyframes nodeIn { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.t-dot {
  position: absolute; left: -56px; top: 7px; width: 31px; height: 31px;
  border-radius: 50%; display: grid; place-items: center;
  background: var(--bg); border: 1px solid var(--gold-deep);
  font-size: 13px; color: var(--gold); z-index: 1;
}
.t-node[data-tag="milestone"] .t-dot {
  border-color: var(--gold); color: #14120a;
  background: linear-gradient(135deg, #d8bd72, #b3934a); font-size: 14px;
}
.t-period {
  display: inline-block; font-size: 11.5px; letter-spacing: 0.22em; font-weight: 600;
  color: var(--gold); text-transform: uppercase;
  border: 1px solid var(--hairline); border-radius: 2px; padding: 4px 12px;
  background: var(--gold-wash);
}
.t-org { margin-left: 12px; font-size: 13px; color: var(--ink-3); letter-spacing: 0.1em; }
.t-title { font-family: var(--serif); font-size: 22px; font-weight: 700; margin: 12px 0 8px; letter-spacing: 0.02em; }
.t-desc { color: var(--ink-2); font-size: 14.5px; max-width: 760px; }
.t-stat {
  display: inline-block; margin-top: 14px; padding: 7px 18px;
  border: 1px solid var(--hairline); border-radius: 2px;
  font-size: 13px; font-weight: 600; color: var(--gold-bright); letter-spacing: 0.08em;
  background: var(--gold-wash);
  font-variant-numeric: tabular-nums;
}
.t-node.highlight { background: linear-gradient(120deg, rgba(201,169,98,0.06), transparent 70%); border-radius: 6px; padding: 18px 22px; margin: -18px -22px 26px; }
.t-node.highlight .t-title { color: var(--gold-bright); }

/* ---------- 数据面板 / 图表 ---------- */
.panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.panel {
  background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: 6px;
  padding: 34px 34px 26px; display: flex; flex-direction: column;
}
.panel h3 { font-family: var(--serif); font-size: 20px; font-weight: 700; letter-spacing: 0.02em; }
.panel .p-note { font-size: 12.5px; color: var(--ink-3); margin-top: 6px; }
.viz { margin-top: 26px; flex: 1; }
.viz svg { display: block; width: 100%; }
.viz text { font-family: var(--sans); }
.axis-label { fill: var(--ink-3); font-size: 11px; letter-spacing: 0.04em; }
.gridline { stroke: var(--hairline-soft); stroke-width: 1; }
.baseline { stroke: rgba(242,239,230,0.16); stroke-width: 1; }
.bar-fill { fill: var(--series); transition: fill 0.25s ease; }
.bar-hit { fill: transparent; cursor: pointer; }
.bar-fill.hot { fill: var(--series-hi); }
.bar-label { fill: var(--ink-2); font-size: 12.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bar-label.peak { fill: var(--gold-bright); }
/* 图例与工具提示 */
.viz-tooltip {
  position: fixed; z-index: 200; pointer-events: none;
  background: var(--surface-2); border: 1px solid var(--hairline);
  padding: 10px 14px; border-radius: 4px; font-size: 12.5px; color: var(--ink);
  box-shadow: 0 12px 32px rgba(0,0,0,0.5); opacity: 0; transition: opacity 0.18s ease;
  max-width: 280px; line-height: 1.55;
}
.viz-tooltip.show { opacity: 1; }
.viz-tooltip b { color: var(--gold-bright); font-variant-numeric: tabular-nums; }
.viz-tooltip .tt-sub { color: var(--ink-3); font-size: 11.5px; margin-top: 2px; }
/* 数据表视图 */
.data-table { margin-top: 22px; border-top: 1px solid var(--hairline-soft); padding-top: 10px; width: 100%; border-collapse: collapse; }
.data-table th {
  font-size: 10.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 600; text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--hairline-soft);
}
.data-table td { font-size: 13px; color: var(--ink-2); padding: 10px 8px; border-bottom: 1px solid var(--hairline-soft); }
.data-table td:last-child, .data-table th:last-child { text-align: right; }
.data-table .num { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 500; }

/* ---------- 世界杯征程 ---------- */
.wc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.wc-card {
  background: var(--surface); border: 1px solid var(--hairline-soft); border-radius: 4px;
  padding: 28px 26px; position: relative; overflow: hidden;
  transition: transform 0.3s ease, border-color 0.3s ease;
}
.wc-card:hover { transform: translateY(-3px); border-color: var(--hairline); }
.wc-year { font-family: var(--serif); font-size: 34px; font-weight: 700; color: var(--ink); line-height: 1; }
.wc-result {
  position: absolute; top: 26px; right: 22px;
  font-size: 12px; letter-spacing: 0.16em; color: var(--gold-bright);
  border: 1px solid var(--hairline); padding: 5px 14px; border-radius: 999px; background: var(--gold-wash);
}
.wc-desc { margin-top: 16px; font-size: 13.5px; color: var(--ink-2); }

/* ---------- 档案入口卡(首页) ---------- */
.profile-entry {
  display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 0; border: 1px solid var(--hairline);
  border-radius: 8px; overflow: hidden; background: var(--surface);
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}
.profile-entry:hover { border-color: rgba(201,169,98,0.45); box-shadow: 0 24px 70px rgba(0,0,0,0.45); }
.pe-photo { position: relative; min-height: 380px; }
.pe-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 18%; }
.pe-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent 60%, rgba(20,23,21,0.9) 100%); }
.pe-body { padding: 54px 52px; display: flex; flex-direction: column; justify-content: center; }
.pe-body .kicker { margin-bottom: 16px; }
.pe-body h3 { font-family: var(--serif); font-size: 34px; font-weight: 700; }
.pe-body p { margin-top: 14px; color: var(--ink-2); font-size: 14.5px; }
.pe-stats { display: flex; gap: 36px; margin: 28px 0 34px; }
.pe-stats .s { border-left: 1px solid var(--hairline); padding-left: 16px; }
.pe-stats .s b { display: block; font-size: 26px; color: var(--gold-bright); font-weight: 700; font-variant-numeric: proportional-nums; line-height: 1.1; }
.pe-stats .s span { font-size: 11.5px; color: var(--ink-3); letter-spacing: 0.08em; }

/* ---------- 页脚 ---------- */
footer { border-top: 1px solid var(--hairline-soft); background: var(--bg-soft); padding: 72px 0 48px; margin-top: 40px; }
.foot-grid { display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; }
.foot-brand { font-family: var(--serif); font-size: 18px; font-weight: 700; letter-spacing: 0.14em; }
.foot-brand small { display: block; margin-top: 6px; font-size: 10.5px; letter-spacing: 0.3em; color: var(--ink-3); text-transform: uppercase; font-family: var(--sans); }
.foot-sources h4, .foot-credit h4 {
  font-size: 11px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--ink-3);
  font-weight: 600; margin-bottom: 16px;
}
.foot-sources li { list-style: none; font-size: 12.5px; color: var(--ink-3); padding: 4px 0; }
.foot-sources li::before { content: "— "; color: var(--gold-deep); }
.foot-credit p { font-size: 12.5px; color: var(--ink-3); }
.foot-bottom {
  margin-top: 56px; padding-top: 26px; border-top: 1px solid var(--hairline-soft);
  display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap;
  font-size: 12px; color: var(--ink-3); letter-spacing: 0.05em;
}

/* ---------- 通用动效 ---------- */
.reveal { opacity: 0; transform: translateY(16px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
a:focus-visible, button:focus-visible, [tabindex]:focus-visible {
  outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 2px;
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1020px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-cell:nth-child(odd) { border-left: none; }
  .stat-cell:nth-child(n+3) { border-top: 1px solid var(--hairline-soft); }
  .honors-grid { grid-template-columns: repeat(2, 1fr); }
  .wc-grid { grid-template-columns: repeat(2, 1fr); }
  .panel-grid { grid-template-columns: 1fr; }
  .profile-entry { grid-template-columns: 1fr; }
  .pe-photo { min-height: 300px; }
  .pe-photo::after { background: linear-gradient(0deg, rgba(20,23,21,0.95) 0%, transparent 50%); }
  .hero-profile-grid { grid-template-columns: 1fr; gap: 44px; }
  .hp-photo { max-width: 480px; }
}
@media (max-width: 640px) {
  section { padding: 68px 0; }
  .nav-links { gap: 18px; }
  .nav-links a { font-size: 12.5px; }
  .brand-name { font-size: 14px; }
  .stat-grid { grid-template-columns: 1fr; }
  .stat-cell { border-left: none; border-top: 1px solid var(--hairline-soft); padding: 30px 26px; }
  .stat-cell:first-child { border-top: none; }
  .honors-grid, .wc-grid { grid-template-columns: 1fr; }
  .timeline { padding-left: 44px; }
  .t-dot { left: -44px; width: 27px; height: 27px; }
  .timeline::before { left: 13px; }
  .t-node.highlight { padding: 14px 16px; margin: -14px -16px 22px; }
  .hero-cta .btn { width: 100%; justify-content: center; }
  .foot-grid { grid-template-columns: 1fr; }
  .hero-home { padding: 150px 0 110px; }
}
