/* ==========================================================
   久忆电竞 9E ESPORTS — 官网样式（浅色系）
   ========================================================== */
:root {
  --bg: #f3f6fd;
  --bg-alt: #ffffff;
  --panel: #ffffff;
  --panel-soft: #f7faff;
  --line: #dde5f8;
  --line-strong: #c3d0f2;
  --navy: #1d2c5e;
  --blue: #2f55d4;
  --blue-bright: #4b74f0;
  --cyan: #0ea5c4;
  --text: #1b2547;
  --text-dim: #69759c;
  --shadow: 0 18px 45px rgba(47, 85, 212, .10);
  --shadow-hover: 0 26px 60px rgba(47, 85, 212, .20);
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
}

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

html { scroll-behavior: smooth; scroll-padding-top: 90px; }

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

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 90%); margin: 0 auto; }

/* ---------- 通用按钮 ---------- */
.btn {
  display: inline-block;
  padding: 14px 38px;
  font-weight: 700;
  letter-spacing: 2px;
  font-size: 15px;
  clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px);
  transition: transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.btn-primary {
  background: linear-gradient(120deg, var(--blue), var(--blue-bright));
  color: #fff;
  box-shadow: 0 10px 28px rgba(47, 85, 212, .32);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 40px rgba(47, 85, 212, .42); }
.btn-ghost {
  border: 1.5px solid var(--line-strong);
  color: var(--blue);
  background: rgba(255, 255, 255, .7);
}
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); transform: translateY(-3px); }

/* ---------- 顶部导航 ---------- */
.site-header {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  transition: background .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
.site-header.scrolled {
  background: rgba(255, 255, 255, .9);
  backdrop-filter: blur(14px);
  box-shadow: 0 6px 26px rgba(29, 44, 94, .10);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.brand-logo { height: 62px; width: auto; }
.main-nav { display: flex; align-items: center; gap: 34px; }
.nav-link {
  font-size: 15px; color: var(--text-dim); letter-spacing: 1px;
  position: relative; padding: 6px 2px; transition: color .2s;
}
.nav-link::after {
  content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  transition: width .25s ease;
}
.nav-link:hover, .nav-link.active { color: var(--blue); }
.nav-link:hover::after, .nav-link.active::after { width: 100%; }
.nav-cta {
  border: 1.5px solid var(--blue); color: var(--blue);
  padding: 8px 22px; clip-path: polygon(8px 0,100% 0,100% calc(100% - 8px),calc(100% - 8px) 100%,0 100%,0 8px);
}
.nav-cta::after { display: none; }
.nav-cta:hover { background: var(--blue); color: #fff; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; }
.nav-toggle span { display: block; width: 26px; height: 2px; background: var(--navy); margin: 6px 0; transition: .3s; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 110px;
  background:
    radial-gradient(1100px 650px at 80% -10%, rgba(75, 116, 240, .16), transparent 60%),
    radial-gradient(850px 550px at 8% 110%, rgba(14, 165, 196, .10), transparent 60%),
    var(--bg);
  overflow: hidden;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(47, 85, 212, .07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 85, 212, .07) 1px, transparent 1px);
  background-size: 54px 54px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, #000 40%, transparent 100%);
}
.hero-glow { position: absolute; border-radius: 50%; filter: blur(90px); opacity: .55; }
.glow-1 { width: 420px; height: 420px; background: rgba(75, 116, 240, .35); top: -120px; right: -80px; }
.glow-2 { width: 340px; height: 340px; background: rgba(14, 165, 196, .25); bottom: -140px; left: -100px; }
.hero-inner { position: relative; z-index: 2; }
.hero-kicker {
  color: var(--blue); font-size: 14px; letter-spacing: 5px; font-weight: 700;
  margin-bottom: 22px;
}
.hero-title { line-height: 1.15; margin-bottom: 26px; }
.ht-line {
  display: block;
  font-size: clamp(52px, 8vw, 104px);
  font-weight: 900;
  letter-spacing: 10px;
  background: linear-gradient(120deg, var(--navy) 10%, var(--blue) 60%, var(--blue-bright) 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ht-sub {
  display: block; margin-top: 14px;
  font-size: clamp(17px, 2.2vw, 24px);
  letter-spacing: 8px; color: var(--text-dim); font-weight: 500;
}
.hero-desc { max-width: 640px; color: var(--text-dim); font-size: 16px; margin-bottom: 40px; }
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-scroll {
  position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%);
  color: var(--text-dim); font-size: 12px; letter-spacing: 4px;
  animation: bob 1.8s ease-in-out infinite;
}
@keyframes bob { 0%,100% { transform: translate(-50%, 0); } 50% { transform: translate(-50%, 8px); } }

/* ---------- 通用 Section ---------- */
.section { padding: 110px 0; background: var(--bg); }
.section-alt {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.section-head { text-align: center; margin-bottom: 64px; }
.section-en {
  color: var(--blue); font-size: 13px; font-weight: 700;
  letter-spacing: 6px; margin-bottom: 12px;
}
.section-title {
  font-size: clamp(30px, 4vw, 44px); font-weight: 900; letter-spacing: 6px;
  color: var(--navy);
}
.section-title span {
  background: linear-gradient(120deg, var(--blue), var(--cyan));
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
}
.section-desc { color: var(--text-dim); margin-top: 16px; font-size: 15px; }

/* ---------- 关于我们 ---------- */
.about-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center; }
.about-text h3 { font-size: 24px; margin-bottom: 20px; letter-spacing: 2px; color: var(--navy); }
.about-text p { color: var(--text-dim); margin-bottom: 18px; }
.about-values { display: grid; gap: 18px; margin: 0; }
.about-values li {
  position: relative;
  display: flex; align-items: center; gap: 20px;
  padding: 26px 28px; border: 1px solid var(--line);
  background: var(--panel);
  box-shadow: 0 8px 22px rgba(47, 85, 212, .06);
  overflow: hidden;
  clip-path: polygon(10px 0,100% 0,100% calc(100% - 10px),calc(100% - 10px) 100%,0 100%,0 10px);
  transition: transform .3s ease, box-shadow .3s ease;
}
.about-values li::before {
  content: ""; position: absolute; top: 0; left: 0; width: 3px; height: 100%;
  background: linear-gradient(var(--blue), var(--cyan));
}
.about-values li:hover { transform: translateX(6px); box-shadow: var(--shadow-hover); }
.about-values b {
  color: var(--blue); font-size: 19px; letter-spacing: 4px; min-width: 64px;
}
.about-values span { color: var(--text-dim); font-size: 14.5px; }

/* ---------- 主力队员 ---------- */
.roster-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 26px;
}
.player-card {
  position: relative;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: transform .35s ease, box-shadow .35s ease, border-color .35s ease;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
}
.player-card:hover {
  transform: translateY(-8px);
  border-color: var(--line-strong);
  box-shadow: var(--shadow-hover);
}
.player-photo {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;           /* 正方形形象照 */
  overflow: hidden;
  background: #e8eefa;
}
.player-photo img {
  width: 100%; height: 100%;
  object-fit: cover;             /* 统一裁切为正方形 */
  transition: transform .5s ease;
}
.player-card:hover .player-photo img { transform: scale(1.06); }
.player-photo::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, transparent 62%, rgba(255, 255, 255, .9) 100%);
}
.player-info {
  position: relative;
  padding: 20px 24px 26px;
  margin-top: -40px;
  z-index: 2;
}
.player-id {
  font-size: 27px; font-weight: 900; letter-spacing: 5px;
  color: var(--navy);
  text-shadow: 0 1px 0 rgba(255, 255, 255, .8);
}
.player-role {
  margin-top: 6px;
  color: var(--blue); font-size: 14px; letter-spacing: 1px; font-weight: 600;
}
.player-role em {
  font-style: normal; color: var(--text-dim); font-size: 12px;
  letter-spacing: 2px; margin-left: 8px;
}

/* ---------- 空状态（荣誉 / 赛事） ---------- */
.empty-tip {
  grid-column: 1 / -1;
  text-align: center;
  color: var(--text-dim);
  letter-spacing: 3px;
  font-size: 15px;
  padding: 50px 0 30px;
}
.honor-list, .event-grid { min-height: 120px; }

/* ---------- 加入我们 ---------- */
.join {
  padding: 120px 0;
  background:
    radial-gradient(800px 420px at 50% 0%, rgba(75, 116, 240, .18), transparent 70%),
    linear-gradient(180deg, #eef3ff 0%, #e4ecff 100%);
  border-top: 1px solid var(--line);
  text-align: center;
}
.join-inner h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 900; letter-spacing: 4px; color: var(--navy); margin-bottom: 18px; }
.join-inner > p { color: var(--text-dim); margin-bottom: 26px; letter-spacing: 1px; }
.join-contact { font-size: 13px; color: var(--text-dim); letter-spacing: 1px; }

/* ---------- 页脚 ---------- */
.site-footer { background: #e9eefa; border-top: 1px solid var(--line); padding: 48px 0 36px; }
.footer-inner { text-align: center; }
.footer-logo { height: 52px; margin: 0 auto 22px; }
.copyright { color: #8a94b8; font-size: 13px; letter-spacing: 1px; }

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .main-nav { gap: 20px; }
  .nav-link { font-size: 14px; letter-spacing: 0; }
  .nav-cta { padding: 7px 16px; }
}
@media (max-width: 960px) {
  .roster-grid, .event-grid { grid-template-columns: repeat(2, 1fr); }
  .about-grid { grid-template-columns: 1fr; gap: 34px; }
}
@media (max-width: 720px) {
  /* 顶栏 */
  .nav-inner { height: 68px; }
  .brand-logo { height: 46px; }
  .main-nav {
    position: fixed; top: 68px; right: 0;
    width: min(300px, 78vw); height: calc(100vh - 68px);
    flex-direction: column; align-items: flex-start; gap: 0;
    background: #fff; border-left: 1px solid var(--line);
    box-shadow: -10px 0 40px rgba(29, 44, 94, .12);
    padding: 24px 30px;
    transform: translateX(100%); transition: transform .3s ease;
  }
  .main-nav.open { transform: translateX(0); }
  .nav-link { width: 100%; padding: 14px 0; font-size: 16px; color: var(--text); border-bottom: 1px solid var(--line); }
  .nav-link::after { display: none; }
  .nav-cta { margin-top: 20px; border: 0; padding: 12px 0; color: var(--blue); }
  .nav-toggle { display: block; }
  .nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
  .nav-toggle.open span:nth-child(2) { opacity: 0; }
  .nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

  /* 首屏 */
  .hero { min-height: auto; padding: 118px 0 72px; }
  .hero-kicker { font-size: 12px; letter-spacing: 3px; margin-bottom: 16px; }
  .ht-line { font-size: clamp(40px, 12vw, 58px); letter-spacing: 5px; }
  .ht-sub { margin-top: 10px; font-size: 16px; letter-spacing: 4px; }
  .hero-desc { font-size: 14.5px; margin-bottom: 30px; }
  .btn { padding: 12px 26px; font-size: 14px; }
  .hero-actions { gap: 12px; }
  .hero-scroll { display: none; }

  /* 区块通用 */
  .section { padding: 60px 0; }
  .section-head { margin-bottom: 36px; }
  .section-en { font-size: 11px; letter-spacing: 4px; margin-bottom: 8px; }
  .section-title { font-size: 27px; letter-spacing: 3px; }

  /* 关于我们 */
  .about-grid { gap: 28px; }
  .about-text h3 { font-size: 20px; margin-bottom: 14px; }
  .about-text p { font-size: 14.5px; margin-bottom: 14px; }
  .about-values { gap: 12px; }
  .about-values li { gap: 14px; padding: 16px 18px; }
  .about-values b { font-size: 16px; letter-spacing: 2px; min-width: 48px; }
  .about-values span { font-size: 13px; }

  /* 主要队员 —— 手机端两列，缩小照片与文字 */
  .roster-grid { grid-template-columns: repeat(2, 1fr); gap: 14px; }
  .player-card { clip-path: polygon(12px 0, 100% 0, 100% calc(100% - 12px), calc(100% - 12px) 100%, 0 100%, 0 12px); }
  .player-info { padding: 12px 14px 16px; margin-top: -26px; }
  .player-id { font-size: 18px; letter-spacing: 2px; }
  .player-role { font-size: 12px; margin-top: 4px; }
  .player-role em { font-size: 10px; letter-spacing: 1px; margin-left: 5px; }

  /* 空状态 / 加入我们 / 页脚 */
  .empty-tip { padding: 30px 0 10px; font-size: 13px; letter-spacing: 2px; }
  .join { padding: 70px 0; }
  .join-inner h2 { letter-spacing: 2px; line-height: 1.4; }
  .join-inner > p { margin-bottom: 20px; font-size: 14px; }
  .join-contact { font-size: 12px; line-height: 2; letter-spacing: 0; }
  .site-footer { padding: 34px 0 26px; }
  .footer-logo { height: 42px; margin-bottom: 14px; }
  .copyright { font-size: 12px; letter-spacing: 0; }
}

@media (max-width: 380px) {
  .container { width: 92%; }
  .ht-line { font-size: 38px; letter-spacing: 3px; }
  .player-info { padding: 10px 11px 14px; }
  .player-id { font-size: 16px; }
  .player-role { font-size: 11px; }
  .player-role em { display: none; }
}

/* ==========================================================
   v2 升级：首屏 / 弹层 / 新模块 / 动效
   ========================================================== */

/* 滚动进度条 */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0;
  background: linear-gradient(90deg, var(--blue), var(--cyan));
  z-index: 200;
}

/* 滚动渐入 */
.reveal { opacity: 0; transform: translateY(36px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: none; }
.roster-grid .reveal:nth-child(2), .game-grid .reveal:nth-child(2),
.honor-grid .reveal:nth-child(2), .moment-grid .reveal:nth-child(2) { transition-delay: .08s; }
.roster-grid .reveal:nth-child(3), .game-grid .reveal:nth-child(3),
.honor-grid .reveal:nth-child(3), .moment-grid .reveal:nth-child(3) { transition-delay: .16s; }
.roster-grid .reveal:nth-child(4), .honor-grid .reveal:nth-child(4) { transition-delay: .24s; }
.roster-grid .reveal:nth-child(5) { transition-delay: .32s; }
.roster-grid .reveal:nth-child(6) { transition-delay: .40s; }
.roster-grid .reveal:nth-child(7) { transition-delay: .16s; }
.roster-grid .reveal:nth-child(8) { transition-delay: .24s; }

/* ---------- 首屏视觉 ---------- */
.hero-bgimg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .95; }
.hero-bg::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(90deg, rgba(243,246,253,.96) 0%, rgba(243,246,253,.78) 42%, rgba(243,246,253,.35) 100%),
    linear-gradient(180deg, rgba(243,246,253,.75) 0%, rgba(243,246,253,0) 30%, rgba(243,246,253,.85) 100%);
}
.hero-inner { display: grid; grid-template-columns: 1.08fr .92fr; gap: 30px; align-items: center; }
.hero-desc { color: var(--text-dim); font-size: 16px; margin-bottom: 38px; line-height: 2; }

.hero-copy > * { opacity: 0; animation: fadeUp .9s cubic-bezier(.2,.7,.2,1) forwards; }
.hero-copy .hero-kicker { animation-delay: .1s; }
.hero-copy .hero-title { animation-delay: .25s; }
.hero-copy .hero-desc { animation-delay: .4s; }
.hero-copy .hero-actions { animation-delay: .55s; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(34px); } to { opacity: 1; transform: none; } }

/* 右侧选手照片组合 */
.hero-visual { position: relative; height: 480px; opacity: 0; animation: fadeIn 1s ease .5s forwards; }
@keyframes fadeIn { to { opacity: 1; } }
.hv-photo {
  position: absolute; margin: 0;
  border: 3px solid #fff;
  box-shadow: 0 24px 60px rgba(29, 44, 94, .25);
  background: #e8eefa; overflow: hidden;
  clip-path: polygon(18px 0, 100% 0, 100% calc(100% - 18px), calc(100% - 18px) 100%, 0 100%, 0 18px);
  will-change: transform;
}
.hv-photo img { width: 100%; height: 100%; object-fit: cover; }
.hv-main {
  width: 320px; height: 320px; right: 90px; top: 40px; z-index: 3;
  animation: floatY 5.5s ease-in-out infinite;
}
.hv-main figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 34px 20px 16px;
  background: linear-gradient(180deg, transparent, rgba(13,22,54,.78));
  color: #fff;
}
.hv-main figcaption b { display: block; font-size: 22px; letter-spacing: 4px; }
.hv-main figcaption span { font-size: 12px; letter-spacing: 2px; opacity: .85; }
.hv-sub-a { width: 150px; height: 150px; left: 10px; top: 26px; z-index: 4; animation: floatY 6.5s ease-in-out .6s infinite; }
.hv-sub-b { width: 170px; height: 170px; right: 0; bottom: 8px; z-index: 2; animation: floatY 7s ease-in-out 1.1s infinite; }
.hv-sub-a img, .hv-sub-b img { transition: opacity .28s ease; }

/* 副图轮播按钮（主图下方空白带） */
.hv-switch {
  position: absolute; left: 160px; top: 408px; z-index: 6;
  display: inline-flex; align-items: center; gap: 7px;
  height: 42px; padding: 0 18px;
  font-size: 13px; font-weight: 600; letter-spacing: 2px;
  color: var(--blue); background: rgba(255,255,255,.95);
  border: 1.5px solid var(--line-strong);
  clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
  cursor: pointer;
  box-shadow: 0 10px 26px rgba(29, 44, 94, .22);
  transition: background .25s, color .25s, transform .25s, box-shadow .25s;
}
.hv-switch svg { width: 18px; height: 18px; transition: transform .45s cubic-bezier(.2,.7,.2,1); }
.hv-switch:hover { background: var(--blue); color: #fff; transform: translateY(-3px); box-shadow: 0 14px 32px rgba(47,85,212,.4); }
.hv-switch:hover svg { transform: rotate(180deg); }
.hv-switch:active { transform: translateY(0) scale(.97); }
@keyframes floatY { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
.hv-ring {
  position: absolute; right: 30px; top: -8px; width: 330px; height: 330px; border-radius: 50%;
  border: 1.5px dashed rgba(47,85,212,.35); z-index: 1;
  animation: spin 30s linear infinite;
}
.hv-ring.ring-2 { right: auto; left: -30px; bottom: -20px; top: auto; width: 200px; height: 200px; border-color: rgba(14,165,196,.35); animation-duration: 22s; animation-direction: reverse; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ---------- 比赛项目 ---------- */
.game-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.game-card {
  position: relative; padding: 40px 32px; text-align: center;
  background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow); overflow: hidden;
  clip-path: polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px);
  transition: transform .3s ease, box-shadow .3s ease, border-color .3s ease;
}
.game-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at 50% -40px, rgba(75,116,240,.14), transparent 70%);
}
.game-card:hover { transform: translateY(-8px); border-color: var(--line-strong); box-shadow: var(--shadow-hover); }
.game-ico {
  width: 72px; height: 72px; margin: 0 auto 20px; border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 12px 26px rgba(29, 44, 94, .22);
}
.game-ico img { width: 100%; height: 100%; display: block; object-fit: cover; border-radius: 18px; }
.game-card h3 { font-size: 22px; letter-spacing: 3px; color: var(--navy); margin-bottom: 12px; }
.game-card p { color: var(--text-dim); font-size: 14px; line-height: 1.9; }

/* ---------- 精彩瞬间 ---------- */
.moment-grid { display: grid; grid-template-columns: repeat(2, 1fr); grid-auto-rows: 260px; gap: 22px; }
.moment-card {
  position: relative; margin: 0; overflow: hidden; border: 1px solid var(--line);
  box-shadow: var(--shadow);
  clip-path: polygon(16px 0,100% 0,100% calc(100% - 16px),calc(100% - 16px) 100%,0 100%,0 16px);
}
.moment-card.m-wide { grid-row: span 2; }
.moment-card img { width: 100%; height: 100%; object-fit: cover; transition: transform .55s ease; }
.moment-card:hover img { transform: scale(1.07); }
.moment-card figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 40px 22px 18px;
  display: flex; align-items: center; gap: 12px;
  background: linear-gradient(180deg, transparent, rgba(10,16,40,.82));
  color: #fff;
}
.mc-tag {
  flex: none; font-size: 11px; letter-spacing: 2px; font-weight: 700;
  padding: 3px 10px; background: rgba(75,116,240,.9); border-radius: 3px;
}
.moment-card figcaption b { font-size: 16px; letter-spacing: 1px; }

/* ---------- 荣誉墙 ---------- */
.honor-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.honor-card {
  position: relative; text-align: center; padding: 34px 20px 28px;
  background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow);
  clip-path: polygon(14px 0,100% 0,100% calc(100% - 14px),calc(100% - 14px) 100%,0 100%,0 14px);
}
.honor-empty { border-style: dashed; background: var(--panel-soft); box-shadow: none; opacity: .85; }
.hn-medal { font-size: 42px; display: block; margin-bottom: 12px; filter: grayscale(.5); }
.honor-card h3 { font-size: 17px; color: var(--navy); letter-spacing: 2px; margin-bottom: 8px; }
.hn-rank { color: var(--blue); font-weight: 700; font-size: 14px; letter-spacing: 1px; margin-bottom: 6px; }
.hn-year { color: var(--text-dim); font-size: 13px; }
.honor-card.h-gold { background: linear-gradient(180deg, #fffdf5, #fff7e0); border-color: #ecd9a4; }

/* ---------- 赛程表 ---------- */
.match-list { display: grid; gap: 14px; max-width: 960px; margin: 0 auto; }
.match-row {
  display: grid; grid-template-columns: 150px 1fr auto 96px; align-items: center; gap: 18px;
  padding: 20px 28px; background: var(--panel); border: 1px solid var(--line);
  box-shadow: 0 8px 22px rgba(47,85,212,.06);
  clip-path: polygon(12px 0,100% 0,100% calc(100% - 12px),calc(100% - 12px) 100%,0 100%,0 12px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.match-row:hover { transform: translateX(6px); box-shadow: var(--shadow); }
.m-date { color: var(--text-dim); font-size: 13px; letter-spacing: 1px; }
.m-name { color: var(--navy); font-weight: 700; font-size: 15.5px; letter-spacing: 1px; }
.m-vs { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.m-vs b { color: var(--blue); letter-spacing: 2px; }
.m-vs em { font-style: normal; color: var(--text-dim); letter-spacing: 1px; }
.m-vs i { font-style: normal; font-size: 11px; color: #fff; background: var(--navy); padding: 3px 8px; border-radius: 3px; }
.m-state { justify-self: end; font-size: 12px; font-weight: 700; letter-spacing: 1px; padding: 5px 12px; border-radius: 3px; }
.state-tbd { color: var(--text-dim); background: #eef1fb; }
.state-soon { color: #b8640a; background: #fdf1df; }
.state-live { color: #fff; background: #e04747; animation: pulse 1.4s ease-in-out infinite; }
.state-done { color: #2a7d52; background: #e3f5ec; }
@keyframes pulse { 50% { opacity: .65; } }

/* ---------- 合作伙伴 ---------- */
.partner-row { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.partner-logo {
  height: 90px; display: flex; align-items: center; justify-content: center;
  border: 1.5px dashed var(--line-strong); border-radius: 8px;
  color: #9aa6cc; font-size: 14px; letter-spacing: 2px;
  background: var(--panel-soft); transition: border-color .25s, color .25s;
}
.partner-logo:hover { border-color: var(--blue); color: var(--blue); }
.partner-logo img { max-height: 60px; max-width: 80%; filter: grayscale(1); opacity: .75; transition: .3s; }
.partner-logo img:hover { filter: grayscale(0); opacity: 1; }

/* ---------- 社区入口 ---------- */
.community { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; max-width: 860px; margin: 10px auto 30px; }
.cm-card {
  display: flex; flex-direction: column; align-items: center; gap: 10px;
  padding: 26px 14px; border: 1px solid var(--line); border-radius: 10px;
  background: rgba(255,255,255,.75); color: var(--blue);
  font-size: 13.5px; font-weight: 600; letter-spacing: 1px;
  transition: transform .25s ease, box-shadow .25s ease, background .25s, color .25s;
}
.cm-ico {
  width: 50px; height: 50px; border-radius: 50%;
  background: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(29, 44, 94, .14);
  transition: transform .25s ease;
}
.cm-ico img { width: 32px; height: 32px; display: block; }
.cm-card:hover .cm-ico { transform: scale(1.08); }
.cm-card:hover { transform: translateY(-5px); background: var(--blue); color: #fff; box-shadow: 0 16px 36px rgba(47,85,212,.3); }

/* ---------- 二维码弹层 ---------- */
.qr-modal {
  position: fixed; inset: 0; z-index: 1000;
  background: rgba(13, 22, 54, .58);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; visibility: hidden;
  transition: opacity .28s ease, visibility .28s ease;
}
.qr-modal.active { opacity: 1; visibility: visible; }
.qr-box {
  position: relative;
  background: #fff; border-radius: 20px;
  padding: 36px 36px 30px;
  width: 300px;
  box-shadow: 0 30px 80px rgba(13, 22, 54, .35);
  transform: scale(.88) translateY(12px);
  transition: transform .32s cubic-bezier(.2,.7,.2,1);
}
.qr-modal.active .qr-box { transform: none; }
.qr-close {
  position: absolute; right: 12px; top: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  border: none; background: #f0f3fa; color: var(--navy);
  font-size: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s, transform .2s;
}
.qr-close:hover { background: var(--blue); color: #fff; transform: rotate(90deg); }
.qr-title { text-align: center; margin: 0 0 18px; color: var(--navy); }
.qr-plat { display: block; font-size: 20px; font-weight: 800; letter-spacing: 3px; margin-bottom: 4px; }
.qr-title small { font-size: 12px; color: var(--text-dim); letter-spacing: 1px; font-weight: 500; }
.qr-img-wrap {
  width: 228px; height: 228px; margin: 0 auto;
  border-radius: 14px; overflow: hidden;
  border: 1px solid #e8eefa; background: #fafbff;
  display: flex; align-items: center; justify-content: center;
}
.qr-img { width: 100%; height: 100%; display: block; object-fit: contain; }

@media (max-width: 520px) {
  .qr-box { width: 82vw; max-width: 300px; padding: 28px 22px 22px; border-radius: 16px; }
  .qr-img-wrap { width: 180px; height: 180px; }
}

/* ---------- 页脚社交 ---------- */
.footer-social { display: flex; justify-content: center; gap: 14px; margin-bottom: 20px; }
.footer-social a {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  border: 1px solid var(--line-strong); color: var(--text-dim);
  transition: .25s;
}
.footer-social a svg { width: 19px; height: 19px; }
.footer-social a:hover { background: var(--blue); border-color: var(--blue); color: #fff; transform: translateY(-3px); }
.icp { font-size: 12px; color: #9aa4c6; margin-top: 6px; }
.icp a { color: #9aa4c6; }
.icp a:hover { color: var(--blue); }

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed; right: 26px; bottom: 26px; z-index: 150;
  width: 46px; height: 46px; border: 0; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue), var(--blue-bright));
  color: #fff; font-size: 19px; cursor: pointer;
  box-shadow: 0 10px 28px rgba(47,85,212,.4);
  opacity: 0; visibility: hidden; transform: translateY(14px);
  transition: .3s;
}
.back-top.show { opacity: 1; visibility: visible; transform: none; }
.back-top:hover { transform: translateY(-4px); }

/* ---------- v2 响应式 ---------- */
@media (max-width: 1100px) {
  .hv-main { width: 260px; height: 260px; right: 50px; }
  .hv-sub-a { width: 130px; height: 130px; }
  .hv-sub-b { width: 145px; height: 145px; }
  .hv-switch { left: 130px; top: 336px; }
  .hv-ring { width: 280px; height: 280px; }
}
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  /* 移动端迷你版照片拼贴 + 轮播 */
  .hero-visual {
    display: block;
    width: 100%;
    max-width: 400px;
    height: 360px;
    margin: 30px auto 0;
    justify-self: center;
    animation: none;
    opacity: 1;
  }
  .hv-main { width: 210px; height: 210px; right: 18px; top: 26px; }
  .hv-sub-a { width: 100px; height: 100px; left: 4px; top: 8px; }
  .hv-sub-b { width: 112px; height: 112px; right: 0; bottom: 4px; }
  .hv-switch { left: 24px; top: 256px; height: 38px; padding: 0 14px; gap: 6px; font-size: 12px; letter-spacing: 1px; }
  .hv-switch svg { width: 16px; height: 16px; }
  .hv-ring { width: 240px; height: 240px; right: 10px; top: 0; }
  .hv-ring.ring-2 { display: none; }
  .game-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .game-card { padding: 30px 18px; }
  .game-ico { width: 54px; height: 54px; }
  .game-ico svg { width: 26px; height: 26px; }
  .game-ico img { width: 100%; height: 100%; }
  .game-card h3 { font-size: 17px; letter-spacing: 1px; margin-bottom: 8px; }
  .game-card p { font-size: 12.5px; line-height: 1.7; }
  .moment-grid { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .moment-card.m-wide { grid-row: auto; }
  .honor-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-row { grid-template-columns: repeat(3, 1fr); }
  .community { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
  .hero-desc { font-size: 14px; margin-bottom: 28px; line-height: 1.9; }
  .hero-visual { height: 322px; margin-top: 24px; }
  .hv-main { width: 186px; height: 186px; right: 14px; top: 22px; }
  .hv-sub-a { width: 88px; height: 88px; }
  .hv-sub-b { width: 100px; height: 100px; }
  .hv-switch { left: 16px; top: 224px; height: 36px; padding: 0 12px; }
  .hv-ring { width: 210px; height: 210px; }
  .honor-grid { gap: 14px; }
  .honor-card { padding: 24px 12px 20px; }
  .hn-medal { font-size: 32px; margin-bottom: 8px; }
  .honor-card h3 { font-size: 15px; letter-spacing: 1px; }
  .match-row { grid-template-columns: 1fr auto; gap: 6px 14px; padding: 16px 20px; }
  .m-name { grid-column: 1 / 2; }
  .m-vs { grid-column: 1 / 2; }
  .m-state { grid-column: 2; grid-row: 1 / 3; align-self: center; }
  .partner-row { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .partner-logo { height: 70px; font-size: 12px; }
  .back-top { right: 16px; bottom: 16px; width: 42px; height: 42px; }
}
