/* ==========================================================================
   首页专用样式 — 每日黑料
   含：焦点轮播、倒计时翻页卡、成绩跑马灯、雷达图、报名进度条、地图轨迹、数据面板
   ========================================================================== */

/* ---------- 焦点轮播 Hero ---------- */
.hero { position: relative; height: 100vh; min-height: 620px; max-height: 920px; overflow: hidden; }
.hero-slide { position: absolute; inset: 0; opacity: 0; transition: opacity 1s var(--ease-out); }
.hero-slide.active { opacity: 1; }
.hero-slide img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-slide::after { content: ""; position: absolute; inset: 0; background: linear-gradient(115deg, rgba(18,18,18,.88) 0%, rgba(18,18,18,.5) 45%, rgba(30,136,229,.25) 100%); }
.hero-content { position: absolute; inset: 0; z-index: 5; display: flex; align-items: center; }
.hero-caption { max-width: 680px; color: #fff; }
.hero-caption { opacity: 0; transform: translateX(-40px); }
.hero-slide.active .hero-caption { animation: slideInLeft .7s var(--ease-out) forwards .2s; }
@keyframes slideInLeft { to { opacity: 1; transform: none; } }
.hero-caption .badge { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,87,34,.18); border: 1px solid var(--orange); color: var(--orange); font-family: var(--ff-title); font-size: 13px; letter-spacing: 2px; text-transform: uppercase; padding: 6px 16px; border-radius: 50px; margin-bottom: 18px; }
.hero-caption h1 { font-size: clamp(40px, 7vw, 82px); line-height: .98; margin-bottom: 18px; text-shadow: 0 4px 30px rgba(0,0,0,.4); }
.hero-caption h1 em { font-style: normal; color: var(--orange); }
.hero-caption p { font-size: 18px; color: #e3e6ea; margin-bottom: 28px; max-width: 540px; }
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-dots { position: absolute; bottom: 36px; left: 0; right: 0; z-index: 6; display: flex; justify-content: center; gap: 12px; }
.hero-dots button { width: 40px; height: 5px; border-radius: 4px; border: none; background: rgba(255,255,255,.35); cursor: pointer; transition: background .3s; }
.hero-dots button.active { background: var(--orange); }
.hero-scroll { position: absolute; bottom: 30px; right: 40px; z-index: 6; color: #fff; font-size: 13px; letter-spacing: 2px; writing-mode: vertical-rl; opacity: .7; }

/* ---------- 数字滚动条统计 ---------- */
.stat-strip { background: var(--ink); color: #fff; padding: 40px 0; }
.stat-strip .grid-4 { gap: 20px; }
.stat-item { text-align: center; }
.stat-item .num { font-family: var(--ff-num); font-size: 56px; line-height: 1; font-weight: 600; color: var(--orange); }
.stat-item:nth-child(2) .num { color: var(--blue); }
.stat-item:nth-child(3) .num { color: var(--green); }
.stat-item:nth-child(4) .num { color: #fff; }
.stat-item .label { color: #9aa0a6; font-size: 14px; letter-spacing: 1px; margin-top: 4px; }

/* ---------- 倒计时卡片（翻页 + 脉冲） ---------- */
.countdown-section { background: linear-gradient(135deg, var(--ink-2), #0d1b2a); color: #fff; }
.cd-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center; }
.cd-card { background: var(--card-dark); border: 1px solid rgba(0,230,118,.3); border-radius: 20px; padding: 36px; position: relative; overflow: hidden; }
.cd-card::before { content: ""; position: absolute; top: -50%; right: -20%; width: 280px; height: 280px; background: radial-gradient(circle, rgba(255,87,34,.25), transparent 70%); animation: pulse 3s ease-in-out infinite; }
@keyframes pulse { 0%,100% { transform: scale(1); opacity: .6; } 50% { transform: scale(1.15); opacity: 1; } }
.cd-card .cd-event { font-family: var(--ff-title); font-size: 26px; position: relative; z-index: 2; }
.cd-card .cd-meta { color: #9aa0a6; font-size: 14px; margin: 6px 0 24px; position: relative; z-index: 2; }
.cd-timer { display: flex; gap: 14px; position: relative; z-index: 2; }
.cd-unit { flex: 1; text-align: center; }
.flip { position: relative; background: var(--ink); border-radius: 12px; padding: 16px 6px; box-shadow: inset 0 -3px 0 rgba(0,230,118,.4); }
.flip .flip-num { font-family: var(--ff-num); font-size: clamp(36px, 7vw, 56px); font-weight: 600; color: var(--green); line-height: 1; display: block; animation: flipIn .5s var(--ease-out); }
@keyframes flipIn { from { transform: rotateX(-90deg); opacity: 0; } to { transform: none; opacity: 1; } }
.cd-unit .u-label { font-size: 12px; color: #9aa0a6; letter-spacing: 2px; margin-top: 8px; text-transform: uppercase; }
.cd-side h2 { font-size: clamp(30px, 4vw, 46px); margin-bottom: 14px; }
.cd-side h2 em { font-style: normal; color: var(--orange); }
.cd-side p { color: #b5bbc2; margin-bottom: 24px; }

/* 报名进度条 */
.signup-box { background: var(--card-dark); border-radius: 16px; padding: 26px; margin-top: 24px; border: 1px solid rgba(255,255,255,.08); }
.progress-row { display: flex; justify-content: space-between; font-size: 14px; margin-bottom: 10px; }
.progress-row .left { color: #fff; font-weight: 600; }
.progress-row .right { color: var(--green); font-family: var(--ff-num); font-size: 20px; }
.progress-track { height: 14px; background: rgba(255,255,255,.1); border-radius: 50px; overflow: hidden; }
.progress-fill { height: 100%; width: 0; border-radius: 50px; background: linear-gradient(90deg, var(--orange), var(--green)); transition: width 1.6s var(--ease-out); position: relative; }
.progress-fill::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent); animation: shimmer 2s infinite; }
@keyframes shimmer { 0% { transform: translateX(-100%); } 100% { transform: translateX(100%); } }
.progress-note { font-size: 13px; color: #9aa0a6; margin-top: 10px; }

/* ---------- 成绩跑马灯 ---------- */
.ticker { background: var(--orange); color: #fff; overflow: hidden; position: relative; padding: 14px 0; }
.ticker-label { position: absolute; left: 0; top: 0; bottom: 0; z-index: 3; background: var(--ink); display: flex; align-items: center; padding: 0 22px; font-family: var(--ff-title); letter-spacing: 2px; text-transform: uppercase; font-size: 14px; }
.ticker-label .dot { width: 9px; height: 9px; border-radius: 50%; background: var(--green); margin-right: 8px; animation: blink 1s infinite; }
@keyframes blink { 50% { opacity: .3; } }
.ticker-track { display: flex; gap: 48px; white-space: nowrap; padding-left: 200px; animation: marquee 32s linear infinite; }
.ticker:hover .ticker-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.ticker-item { font-size: 15px; display: inline-flex; align-items: center; gap: 8px; }
.ticker-item b { font-family: var(--ff-num); font-size: 20px; }

/* ---------- 雷达图 ---------- */
.radar-section .layout-radar { display: grid; grid-template-columns: 420px 1fr; gap: 48px; align-items: center; }
.radar-card { background: #fff; border-radius: 20px; padding: 28px; box-shadow: var(--shadow); }
.radar-card canvas { width: 100%; height: auto; }
.radar-tabs { display: flex; gap: 8px; justify-content: center; margin-top: 18px; flex-wrap: wrap; }
.radar-tabs button { font-family: var(--ff-title); letter-spacing: 1px; font-size: 13px; text-transform: uppercase; padding: 8px 16px; border-radius: 50px; border: 2px solid #e5e7eb; background: #fff; color: var(--muted); cursor: pointer; transition: all .2s; }
.radar-tabs button.active { background: var(--orange); border-color: var(--orange); color: #fff; }
.radar-legend { display: grid; gap: 14px; }
.radar-legend .li { display: flex; align-items: center; justify-content: space-between; background: #fff; border-radius: 12px; padding: 14px 18px; box-shadow: var(--shadow); }
.radar-legend .li .name { font-weight: 600; }
.radar-legend .li .bar { flex: 1; margin: 0 16px; height: 8px; background: #eef1f4; border-radius: 50px; overflow: hidden; }
.radar-legend .li .bar i { display: block; height: 100%; background: linear-gradient(90deg, var(--blue), var(--green)); border-radius: 50px; }
.radar-legend .li .val { font-family: var(--ff-num); font-size: 22px; color: var(--orange); }

/* ---------- 赛事地图轨迹 ---------- */
.routemap-card { background: var(--card-dark); border-radius: 20px; padding: 30px; border: 1px solid rgba(30,136,229,.3); }
.routemap-card svg { width: 100%; height: auto; display: block; }
.route-path { fill: none; stroke: var(--orange); stroke-width: 5; stroke-linecap: round; stroke-dasharray: 1400; stroke-dashoffset: 1400; }
.route-path.draw { animation: drawRoute 3s var(--ease-out) forwards; }
@keyframes drawRoute { to { stroke-dashoffset: 0; } }
.route-marker { fill: var(--green); }
.route-info { display: flex; gap: 26px; flex-wrap: wrap; margin-top: 22px; }
.route-info .ri { color: #fff; }
.route-info .ri .v { font-family: var(--ff-num); font-size: 30px; color: var(--green); line-height: 1; }
.route-info .ri .k { font-size: 12px; color: #9aa0a6; letter-spacing: 1px; }

/* ---------- 明星运动员 ---------- */
.star-card { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3/4; }
.star-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.star-card:hover img { transform: scale(1.07); }
.star-card .overlay { position: absolute; inset: 0; background: linear-gradient(to top, rgba(18,18,18,.92) 0%, transparent 60%); display: flex; flex-direction: column; justify-content: flex-end; padding: 22px; color: #fff; }
.star-card .overlay .role { color: var(--green); font-size: 13px; font-family: var(--ff-title); letter-spacing: 2px; text-transform: uppercase; }
.star-card .overlay h3 { font-size: 24px; margin: 4px 0; }
.star-card .overlay .pb { font-size: 13px; color: #ccc; }
.star-card .overlay .more { color: var(--orange); font-weight: 600; margin-top: 8px; font-size: 14px; }

/* ---------- 数据可视化面板 ---------- */
.dash-section { background: var(--ink-2); color: #fff; }
.dash-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.dash-tile { background: var(--card-dark); border-radius: 16px; padding: 26px; border-left: 4px solid var(--orange); }
.dash-tile:nth-child(2) { border-color: var(--blue); }
.dash-tile:nth-child(3) { border-color: var(--green); }
.dash-tile:nth-child(4) { border-color: #fff; }
.dash-tile .ico { width: 48px; height: 48px; border-radius: 12px; background: rgba(255,87,34,.15); display: grid; place-items: center; color: var(--orange); margin-bottom: 16px; }
.dash-tile:nth-child(2) .ico { background: rgba(30,136,229,.15); color: var(--blue); }
.dash-tile:nth-child(3) .ico { background: rgba(0,230,118,.15); color: var(--green); }
.dash-tile .num { font-family: var(--ff-num); font-size: 46px; font-weight: 600; line-height: 1; }
.dash-tile .label { color: #9aa0a6; font-size: 14px; margin-top: 6px; }
.dash-tile .sub { font-size: 12px; color: var(--green); margin-top: 8px; }

/* CTA Banner */
.cta-banner { position: relative; padding: 96px 0; color: #fff; overflow: hidden; }
.cta-banner img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.cta-banner::before { content: ""; position: absolute; inset: 0; background: linear-gradient(100deg, rgba(18,18,18,.9), rgba(30,136,229,.4)); }
.cta-banner .container { position: relative; z-index: 2; text-align: center; }
.cta-banner h2 { font-size: clamp(30px, 5vw, 52px); margin-bottom: 14px; }
.cta-banner p { max-width: 560px; margin: 0 auto 28px; color: #e3e6ea; }

@media (max-width: 1024px) {
  .cd-wrap, .radar-section .layout-radar { grid-template-columns: 1fr; }
  .dash-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
  .hero { height: 88vh; }
  .hero-scroll { display: none; }
  .dash-grid { grid-template-columns: 1fr; }
  .stat-item .num { font-size: 42px; }
}

/* ---------- 报名弹窗 ---------- */
.modal-overlay { position: fixed; inset: 0; background: rgba(10,10,10,.7); backdrop-filter: blur(6px); z-index: 2000; display: none; align-items: center; justify-content: center; padding: 20px; }
.modal-overlay.open { display: flex; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.modal { background: #fff; border-radius: 18px; max-width: 460px; width: 100%; padding: 32px; position: relative; transform: scale(.95); animation: popIn .3s var(--ease-out) forwards; }
@keyframes popIn { to { transform: scale(1); } }
.modal h3 { font-size: 26px; color: var(--ink); }
.modal p.sub { color: var(--muted); font-size: 14px; margin-bottom: 20px; }
.modal .close { position: absolute; top: 16px; right: 16px; background: #f1f3f5; border: none; width: 36px; height: 36px; border-radius: 50%; font-size: 20px; cursor: pointer; color: #555; }
.modal .close:hover { background: var(--orange); color: #fff; }
.form-field { margin-bottom: 16px; }
.form-field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.form-field input, .form-field select { width: 100%; padding: 12px 14px; border: 2px solid #e5e7eb; border-radius: 10px; font-size: 15px; font-family: var(--ff-body); transition: border .2s; }
.form-field input:focus, .form-field select:focus { outline: none; border-color: var(--orange); }
.form-msg { font-size: 14px; padding: 10px 14px; border-radius: 8px; margin-top: 12px; display: none; }
.form-msg.show { display: block; background: rgba(0,230,118,.12); color: #0a8f4f; }
