/* ============================================================
 * 东北超 · 公共设计系统
 * 配色灵感：官方标识 黑(红)吉(黄)辽(蓝)蒙(绿) + 看台粉
 * ============================================================ */
:root {
  --c-red: #e8332b;
  --c-yellow: #ffb000;
  --c-blue: #1e7be8;
  --c-green: #1fb36b;
  --c-pink: #ff3d8a;
  --c-pink-soft: #ff8ab8;
  --c-gold: #ffd25a;
  --ink: #0a0f1f;
  --ink-2: #101a33;
  --ink-3: #18254a;
  --paper: #fff7ec;
  --text: #eaf0ff;
  --text-dim: #9fb0d4;
  --line: rgba(255, 255, 255, .12);
  --glass: rgba(255, 255, 255, .07);
  --glass-strong: rgba(255, 255, 255, .13);
  --shadow-neon: 0 0 24px rgba(255, 61, 138, .45);
  --radius: 18px;
  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans SC", system-ui, sans-serif;
}

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

html { scroll-behavior: smooth; }

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

::selection { background: var(--c-pink); color: #fff; }

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }

/* ---------- 顶部滚动进度条 ---------- */
#progress-bar {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--c-red), var(--c-yellow), var(--c-green), var(--c-blue), var(--c-pink));
  z-index: 1001; transition: width .12s linear;
}

/* ---------- 导航 ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px clamp(18px, 4vw, 56px);
  transition: all .35s ease;
}
.nav.scrolled {
  background: rgba(10, 15, 31, .82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 30px rgba(0, 0, 0, .35);
}
.nav-brand { display: flex; align-items: center; gap: 12px; font-weight: 900; letter-spacing: 1px; }
.nav-brand .brand-badge {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: conic-gradient(var(--c-red), var(--c-yellow), var(--c-green), var(--c-blue), var(--c-red));
  animation: spin 9s linear infinite;
}
.nav-brand .brand-badge::after {
  content: ""; position: absolute; width: 34px; height: 34px; border-radius: 50%;
  background: var(--ink) url("../images/mascot_official.png") center/78% no-repeat;
}
.nav-brand .brand-badge { position: relative; }
.nav-brand b {
  font-size: 1.25rem;
  background: linear-gradient(90deg, #fff, var(--c-pink-soft), var(--c-gold));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.nav-brand small { display: block; font-size: .6rem; letter-spacing: 2.5px; color: var(--text-dim); font-weight: 600; }
.nav-links { display: flex; gap: 4px; }
.nav-links a {
  position: relative; padding: 9px 16px; border-radius: 999px;
  font-size: .95rem; font-weight: 700; color: var(--text-dim);
  transition: all .25s;
}
.nav-links a:hover { color: #fff; background: var(--glass); }
.nav-links a.active { color: #fff; background: linear-gradient(135deg, rgba(255, 61, 138, .9), rgba(255, 126, 41, .8)); box-shadow: var(--shadow-neon); }
.nav-toggle { display: none; font-size: 1.6rem; color: #fff; }

@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 通用容器 / 标题 ---------- */
.wrap { width: min(1240px, 92vw); margin: 0 auto; }
.section { padding: clamp(64px, 9vw, 120px) 0; position: relative; }
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .82rem; font-weight: 800; letter-spacing: 3px;
  color: var(--c-pink); text-transform: uppercase;
  padding: 6px 16px; border: 1px solid rgba(255, 61, 138, .4); border-radius: 999px;
  background: rgba(255, 61, 138, .08);
}
.sec-title {
  font-size: clamp(1.9rem, 4.2vw, 3.1rem); font-weight: 900; line-height: 1.25;
  margin: 18px 0 14px; letter-spacing: 1px;
}
.sec-title .grad {
  background: linear-gradient(100deg, var(--c-red), var(--c-yellow) 40%, var(--c-green) 65%, var(--c-blue));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.sec-sub { color: var(--text-dim); max-width: 720px; font-size: 1.02rem; }

/* ---------- 按钮 ---------- */
.btn {
  position: relative; display: inline-flex; align-items: center; gap: 10px;
  padding: 14px 30px; border-radius: 999px; font-weight: 800; font-size: 1rem;
  transition: transform .25s, box-shadow .25s; overflow: hidden;
}
.btn:hover { transform: translateY(-3px); }
.btn-pink {
  background: linear-gradient(135deg, var(--c-pink), #ff7a3d);
  color: #fff; box-shadow: 0 10px 30px rgba(255, 61, 138, .4);
}
.btn-ghost { border: 2px solid rgba(255, 255, 255, .35); color: #fff; background: rgba(255,255,255,.05); }
.btn-ghost:hover { border-color: var(--c-pink); box-shadow: var(--shadow-neon); }
.btn .ball-dot { width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 30% 30%, #fff, #cfd8ff); }

/* ---------- 滚动显现 ---------- */
.reveal { opacity: 0; transform: translateY(38px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: .12s; }
.reveal[data-delay="2"] { transition-delay: .24s; }
.reveal[data-delay="3"] { transition-delay: .36s; }
.reveal[data-delay="4"] { transition-delay: .48s; }

/* ---------- 跑马灯 ---------- */
.ticker {
  overflow: hidden; white-space: nowrap;
  background: linear-gradient(90deg, var(--c-pink), #ff6b35, var(--c-yellow));
  padding: 10px 0; font-weight: 900; color: #2a0a18;
  border-top: 2px solid rgba(255,255,255,.25); border-bottom: 2px solid rgba(255,255,255,.25);
}
.ticker .track { display: inline-block; animation: marquee 26s linear infinite; }
.ticker span { margin: 0 26px; font-size: .95rem; letter-spacing: 1px; }
.ticker span::before { content: '⚽'; margin-right: 10px; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- 通用玻璃卡片 ---------- */
.glass {
  background: var(--glass);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

/* ---------- 页脚 ---------- */
.footer {
  position: relative; margin-top: 40px;
  background: radial-gradient(1200px 400px at 50% 0%, rgba(30, 123, 232, .18), transparent), var(--ink-2);
  border-top: 1px solid var(--line);
  padding: 64px 0 30px;
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer h4 { font-size: 1rem; margin-bottom: 16px; color: #fff; }
.footer p, .footer li { color: var(--text-dim); font-size: .9rem; margin-bottom: 9px; }
.footer .src-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.footer .src-tags i {
  font-style: normal; font-size: .76rem; padding: 4px 12px; border-radius: 999px;
  border: 1px solid var(--line); color: var(--text-dim);
}
.footer-bottom {
  margin-top: 44px; padding-top: 20px; border-top: 1px dashed var(--line);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: #6b7ca6; font-size: .82rem;
}
.footer-logo { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.footer-logo img { width: 56px; height: 56px; object-fit: contain; border-radius: 12px; }
.footer-logo b { font-size: 1.2rem; }

/* 页面最下方设计制作署名 */
.footer-credit {
  text-align: center; padding: 26px 20px 2px;
  font-size: .86rem; letter-spacing: 2px; color: var(--text-dim);
}
.footer-credit b { color: var(--c-pink-soft); font-weight: 800; margin: 0 4px; }
.game-credit {
  text-align: center; padding: 0 20px 48px;
  font-size: .86rem; letter-spacing: 2px; color: var(--text-dim);
}
.game-credit b { color: var(--c-pink-soft); font-weight: 800; margin: 0 4px; }

/* ---------- 虎哥悬浮助手 ---------- */
.tiger-assistant {
  position: fixed; right: 22px; bottom: 22px; z-index: 999;
  display: flex; align-items: flex-end; gap: 10px;
}
.tiger-bubble {
  max-width: 0; opacity: 0; overflow: hidden; white-space: nowrap;
  background: #fff; color: #333; font-weight: 700; font-size: .9rem;
  padding: 10px 0; border-radius: 16px 16px 4px 16px;
  transition: all .35s ease; box-shadow: 0 8px 24px rgba(0,0,0,.3);
}
.tiger-bubble.show { max-width: 300px; opacity: 1; padding: 10px 16px; }
.tiger-btn {
  width: 66px; height: 66px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffb84d, #f47c20);
  display: grid; place-items: center; font-size: 2rem;
  box-shadow: 0 10px 26px rgba(244, 124, 32, .55);
  animation: tigerBounce 2.2s ease-in-out infinite;
  border: 3px solid rgba(255,255,255,.8);
}
@keyframes tigerBounce {
  0%,100% { transform: translateY(0) rotate(-3deg); }
  50% { transform: translateY(-9px) rotate(3deg); }
}

/* ---------- 礼花画布 ---------- */
#confetti-canvas { position: fixed; inset: 0; pointer-events: none; z-index: 1200; }

/* ---------- 响应式 ---------- */
@media (max-width: 900px) {
  .nav-links {
    position: fixed; top: 68px; right: 14px; left: 14px;
    flex-direction: column; gap: 6px; padding: 14px;
    background: rgba(10,15,31,.95); border: 1px solid var(--line);
    border-radius: 18px; backdrop-filter: blur(18px);
    transform: translateY(-12px); opacity: 0; pointer-events: none; transition: all .3s;
  }
  .nav-links.open { transform: none; opacity: 1; pointer-events: auto; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: block; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
}

/* 减少动效偏好 */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
