/* ============================================================
   GME-sport 拾忆竞技 双端网站 公共样式
   主色：#EEEEEE（浅灰） / #E3E2E2（深灰） / 黑色渐变导航
   ============================================================ */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --gray-light: #EEEEEE;
  --gray-dark: #E3E2E2;
  --ink: #1c1c1f;
  --muted: #6f6f76;
  --line: #d9d9dd;
  --accent: #e60012;
  --max-w: 1200px;
}

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "SimHei", "Helvetica Neue", Arial, sans-serif;
  color: var(--ink);
  background: #fafafa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; }
ul, ol { list-style: none; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 20px; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ================= 顶部导航 ================= */
.site-header {
  background: linear-gradient(180deg, #2b2b30 0%, #17171a 100%);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: 0 1px 0 rgba(255,255,255,.06);
}
.site-header-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  height: 76px;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
}
.site-logo img { height: 44px; width: auto; }
.site-nav {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 80px;
}
.site-nav a {
  color: rgba(255,255,255,.82);
  font-size: 18px;
  letter-spacing: 2px;
  position: relative;
  padding: 6px 0;
  transition: color .2s ease;
}
.site-nav a:hover { color: #fff; }
.site-nav a.on { color: #fff; }
.site-nav a.on::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
/* 汉堡按钮 */
.site-menu-btn { display: none; background: none; border: 0; width: 30px; height: 22px; flex-direction: column; justify-content: space-between; padding: 0; }
.site-menu-btn span { display: block; height: 2px; background: #fff; width: 100%; border-radius: 2px; transition: transform .25s, opacity .25s; }
.site-menu-btn.active span:nth-child(1) { transform: translateY(10px) rotate(45deg); }
.site-menu-btn.active span:nth-child(2) { opacity: 0; }
.site-menu-btn.active span:nth-child(3) { transform: translateY(-10px) rotate(-45deg); }

/* 移动端抽屉 */
.site-nav-mask { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 98; }
.site-nav-mask.show { display: block; }
.site-drawer {
  display: none;
  position: fixed;
  top: 0; left: 0; bottom: 0;
  width: 260px;
  background: #17171a;
  z-index: 99;
  padding: 90px 30px 20px;
  transform: translateX(-100%);
  transition: transform .28s ease;
}
.site-drawer.open { transform: translateX(0); }
.site-drawer a {
  display: block;
  color: rgba(255,255,255,.85);
  font-size: 17px;
  padding: 16px 0;
  border-bottom: 1px solid rgba(255,255,255,.08);
  letter-spacing: 2px;
}
.site-drawer a.on { color: #fff; }

/* ================= 页脚 ================= */
.site-footer {
  background: var(--gray-dark);
  padding: 40px 20px 50px;
  text-align: center;
}
.site-footer-links { display: flex; justify-content: center; flex-wrap: wrap; gap: 10px 34px; margin-bottom: 28px; }
.site-footer-links a { font-size: 15px; color: #4a4a50; letter-spacing: 1px; transition: color .2s; }
.site-footer-links a:hover { color: var(--accent); }
.site-footer-brand { margin-bottom: 22px; }
.site-footer-brand img { height: 44px; margin: 0 auto; opacity: .85; }
.site-footer-text p { font-size: 13px; color: #7a7a80; line-height: 2; letter-spacing: .5px; }
.site-footer-text a { color: #6f6f76; transition: color .2s; }
.site-footer-text a:hover { color: var(--accent); }
.site-footer-text .ft-sep { margin: 0 10px; color: #b0b0b6; }

/* ================= 通用区块标题 ================= */
.sec-title { font-size: 22px; font-weight: 700; letter-spacing: 2px; margin-bottom: 18px; position: relative; padding-left: 14px; }
.sec-title::before { content: ''; position: absolute; left: 0; top: 4px; bottom: 4px; width: 4px; border-radius: 2px; background: var(--accent); }

/* ================= 首页 Hero / 主视觉 ================= */
/* 文档规范:1920 × 800 (12:5),单图固定展示,无前台轮播 */
.hero-wrap { position: relative; background: #17171a; }
.hero-slide {
  position: relative;
  width: 100%;
  aspect-ratio: 1920 / 800;
  overflow: hidden;
  background: #000;
  max-height: 70vh;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
/* 首页大图下方信息条 */
.hero-meta {
  background: linear-gradient(90deg, #17171a 0%, #2b2b30 100%);
  color: #fff;
  padding: 14px 0;
}
.hero-meta-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
.hero-meta-tag { display: inline-block; background: var(--accent); color: #fff; font-size: 12px; padding: 2px 10px; border-radius: 3px; letter-spacing: 1px; margin-right: 10px; }
.hero-meta-text { font-size: 15px; color: rgba(255,255,255,.9); letter-spacing: 1px; }
.hero-meta-btn { font-size: 14px; color: #fff; border: 1px solid rgba(255,255,255,.4); padding: 6px 18px; border-radius: 20px; letter-spacing: 1px; transition: all .2s; }
.hero-meta-btn:hover { background: var(--accent); border-color: var(--accent); }

/* ================= 首页主体两栏：活动 + 信息公示 ================= */
.home-main { display: flex; gap: 24px; padding: 30px 0 10px; }
.home-col-activity { flex: 0 0 55%; }
.home-col-news { flex: 1; }

/* --- 活动展示轮播 --- */
.act-slider { background: #fff; }
.act-slide-wrap { position: relative; overflow: hidden; }
.act-slide { display: none; width: 100%; }
.act-slide.active { display: block; }
.act-slide img { width: 100%; }
.act-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(0,0,0,.35); border: 0; color: #fff; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  transition: background .2s; z-index: 2;
}
.act-arrow:hover { background: rgba(0,0,0,.6); }
.act-arrow.prev { left: 12px; }
.act-arrow.next { right: 12px; }
/* 活动名称入口 */
.act-tabs { display: flex; background: #f3f3f4; border-top: 1px solid var(--line); }
.act-tab {
  flex: 1; min-width: 0;
  padding: 13px 6px; font-size: 14px; color: #55555b; letter-spacing: .5px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  transition: all .2s;
}
.act-tab:hover { color: var(--ink); background: #ececee; }
.act-tab.on { color: var(--accent); border-bottom-color: var(--accent); background: #fff; font-weight: 600; }

/* --- 信息公示 --- */
.news-panel { background: #fff; height: 100%; }
.news-tabs { display: flex; border-bottom: 1px solid var(--line); }
.news-tab {
  flex: 1; padding: 11px 0; font-size: 14px; color: #55555b; letter-spacing: 1px;
  background: none; border: 0; border-bottom: 3px solid transparent;
  transition: all .2s;
}
.news-tab:hover { color: var(--ink); background: #f5f5f6; }
.news-tab.on { color: var(--accent); border-bottom-color: var(--accent); background: #fff; font-weight: 600; }
.news-list { padding: 6px 0; }
.news-item {
  display: flex; align-items: center; gap: 10px;
  padding: 13px 18px;
  font-size: 14px;
  border-bottom: 1px dashed #ececef;
  transition: background .15s;
}
.news-item:last-child { border-bottom: 0; }
.news-item:hover { background: #f7f7f8; }
.news-item:hover .news-item-title { color: var(--accent); }
.news-item-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); flex: 0 0 auto; }
.news-item-title { color: #3a3a40; flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .15s; }
.news-item-time { flex: 0 0 auto; font-size: 12px; color: #a0a0a6; }
.news-more { display: block; text-align: center; padding: 14px 0; font-size: 14px; color: var(--accent); letter-spacing: 1px; }
.news-more:hover { background: #fafafa; }

/* ================= 首页关于我们 ================= */
.about-section { background: #fff; border-top: 1px solid var(--line); padding: 46px 0; }
.about-grid { display: flex; gap: 44px; align-items: center; }
.about-brand { flex: 0 0 240px; text-align: center; }
.about-brand img { margin: 0 auto 14px; }
.about-brand-name { font-size: 20px; font-weight: 700; letter-spacing: 2px; }
.about-brand-en { font-size: 12px; color: #a0a0a6; letter-spacing: 1px; margin-top: 4px; }
.about-text { flex: 1; }
.about-text p { font-size: 14px; color: #55555b; line-height: 2; text-align: justify; }
.about-tags { margin-top: 14px; display: flex; flex-wrap: wrap; gap: 10px; }
.about-tag { font-size: 12px; color: #6f6f76; border: 1px solid var(--line); border-radius: 20px; padding: 3px 14px; }
.about-qrcodes { flex: 0 0 auto; display: flex; gap: 22px; }
.about-qr { text-align: center; }
.about-qr img { width: 110px; height: 110px; border: 1px solid var(--line); padding: 6px; background: #fff; border-radius: 8px; cursor: zoom-in; }
.about-qr-name { font-size: 13px; color: #55555b; margin-top: 8px; letter-spacing: .5px; }
.about-qr-sub { font-size: 11px; color: #a0a0a6; }

/* ================= 合作伙伴条 ================= */
.partners-bar { background: var(--gray-light); padding: 26px 0; }
.partners-inner { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 20px 46px; }
.partner-item { color: #55555b; font-size: 17px; letter-spacing: 1px; filter: grayscale(1); opacity: .7; transition: all .25s; }
.partner-item:hover { filter: none; opacity: 1; color: var(--ink); }

/* ================= 首页广告轮播 ================= */
.ad-section { padding: 24px 0 10px; }
.ad-slider { position: relative; overflow: hidden; background: var(--gray-light); border-radius: 4px; }
.ad-slide { display: none; width: 100%; }
.ad-slide.active { display: block; }
.ad-slide img { width: 100%; }
.ad-dots { display: flex; justify-content: center; gap: 8px; margin-top: 10px; }
.ad-dot { width: 8px; height: 8px; border-radius: 50%; background: #c6c6cb; border: 0; padding: 0; transition: all .2s; }
.ad-dot.on { background: var(--accent); transform: scale(1.2); }

/* ================= 信息中心页 ================= */
.page-head { background: linear-gradient(135deg, #17171a 0%, #2b2b30 100%); color: #fff; padding: 38px 0 34px; }
.page-head h1 { font-size: 30px; letter-spacing: 3px; font-weight: 700; }
.page-head p { font-size: 13px; color: rgba(255,255,255,.6); letter-spacing: 2px; margin-top: 6px; }

.news-layout { display: flex; gap: 26px; padding: 26px 0 50px; }
.news-main { flex: 1; min-width: 0; }
.news-aside { flex: 0 0 200px; }

/* 分类 tab */
.cat-tabs { display: flex; gap: 6px; margin-bottom: 18px; flex-wrap: wrap; }
.cat-tab {
  padding: 7px 22px; font-size: 15px; color: #55555b;
  background: #fff; border: 1px solid var(--line); border-radius: 20px;
  transition: all .2s; letter-spacing: 1px;
}
.cat-tab:hover { color: var(--ink); border-color: #b0b0b6; }
.cat-tab.on { background: var(--ink); border-color: var(--ink); color: #fff; }

/* 文章列表 */
.article-list { background: #fff; }
.article-row {
  display: flex; align-items: center; gap: 12px;
  padding: 17px 20px;
  border-bottom: 1px solid #efeff1;
  transition: background .15s;
}
.article-row:hover { background: #f8f8f9; }
.article-row:hover .article-title { color: var(--accent); }
.article-cat {
  flex: 0 0 auto; font-size: 12px; color: var(--accent);
  border: 1px solid #ffd9dc; background: #fff5f5;
  padding: 2px 9px; border-radius: 3px;
}
.article-title { flex: 1; min-width: 0; font-size: 15px; color: #333338; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.article-date { flex: 0 0 auto; font-size: 13px; color: #a0a0a6; }

/* 分页 */
.pager { display: flex; align-items: center; justify-content: center; gap: 8px; margin-top: 26px; }
.pager a, .pager span {
  min-width: 34px; height: 34px; line-height: 34px;
  text-align: center; font-size: 14px; color: #55555b;
  background: #fff; border: 1px solid var(--line); border-radius: 4px;
  padding: 0 6px;
}
.pager a:hover { border-color: var(--accent); color: var(--accent); }
.pager .on { background: var(--ink); border-color: var(--ink); color: #fff; }
.pager .disabled { color: #c0c0c5; pointer-events: none; }
.pager .gap { border: 0; background: none; }

/* 侧栏二维码 */
.aside-card { background: #fff; padding: 18px; margin-bottom: 18px; }
.aside-card-title { font-size: 15px; font-weight: 700; letter-spacing: 1px; margin-bottom: 14px; padding-left: 10px; border-left: 3px solid var(--accent); }
.aside-qr { text-align: center; }
.aside-qr img { width: 150px; height: 150px; border: 1px solid var(--line); padding: 6px; background: #fff; margin: 0 auto 10px; cursor: zoom-in; }
.aside-qr-name { font-size: 13px; color: #55555b; letter-spacing: .5px; }
.aside-qr-sub { font-size: 11px; color: #a0a0a6; margin-top: 2px; }

/* 空状态 / 状态提示 */
.state-box { text-align: center; padding: 60px 20px; background: #fff; }
.state-box .state-icon { font-size: 44px; color: #d0d0d5; margin-bottom: 12px; }
.state-box p { color: #8a8a90; font-size: 14px; }
.state-box .state-btn { margin-top: 14px; display: inline-block; font-size: 13px; color: #fff; background: var(--ink); padding: 8px 22px; border-radius: 4px; }

/* ================= 文章详情页 ================= */
.article-page { max-width: 860px; margin: 0 auto; padding: 34px 20px 60px; }
.article-page-head { text-align: center; padding: 10px 0 22px; border-bottom: 1px solid var(--line); }
.article-page-head h1 { font-size: 26px; line-height: 1.5; }
.article-page-meta { margin-top: 14px; font-size: 13px; color: #a0a0a6; display: flex; justify-content: center; gap: 18px; flex-wrap: wrap; }
.article-page-meta .cat { color: var(--accent); border: 1px solid #ffd9dc; background: #fff5f5; padding: 1px 8px; border-radius: 3px; font-size: 12px; }
.article-body { padding: 28px 6px 20px; font-size: 16px; color: #333338; line-height: 2; }
.article-body p { margin: 14px 0; text-align: justify; }
.article-body h3 { margin: 22px 0 8px; font-size: 18px; border-left: 3px solid var(--accent); padding-left: 10px; }
.article-body ul { margin: 10px 0; padding-left: 4px; }
.article-body li { padding: 3px 0; padding-left: 18px; position: relative; }
.article-body li::before { content: ''; position: absolute; left: 0; top: .95em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.article-body img { margin: 12px auto; border-radius: 6px; }
.art-figure { text-align: center; }
.art-figure figcaption { font-size: 12px; color: #a0a0a6; margin-top: 6px; }
.article-back { display: inline-block; margin-top: 30px; font-size: 14px; color: #55555b; border: 1px solid var(--line); padding: 8px 20px; border-radius: 4px; transition: all .2s; }
.article-back:hover { border-color: var(--accent); color: var(--accent); }
.article-error { text-align: center; padding: 80px 20px; }
.article-error .code { font-size: 52px; font-weight: 800; color: #d8d8dc; letter-spacing: 4px; }
.article-error p { color: #8a8a90; margin-top: 10px; }

/* ================= 商务合作页 ================= */
.coop-section { padding: 40px 0 60px; }
.coop-card { background: #fff; border: 1px solid var(--line); }
.coop-inner { display: flex; gap: 40px; padding: 44px; }
.coop-left { flex: 1; }
.coop-left h2 { font-size: 26px; letter-spacing: 2px; }
.coop-left .coop-sub { font-size: 13px; color: var(--accent); letter-spacing: 2px; margin: 6px 0 20px; }
.coop-left p { font-size: 14px; color: #55555b; line-height: 2; text-align: justify; }
.coop-contact { margin-top: 26px; background: #f8f8f9; border: 1px solid var(--line); border-radius: 6px; padding: 18px 22px; }
.coop-contact .label { font-size: 12px; color: #a0a0a6; letter-spacing: 2px; margin-bottom: 6px; }
.coop-contact .email { font-size: 22px; font-weight: 700; color: var(--ink); letter-spacing: 1px; }
.coop-contact .email:hover { color: var(--accent); }
.coop-right { flex: 0 0 200px; text-align: center; align-self: flex-start; }
.coop-right img { width: 160px; height: 160px; border: 1px solid var(--line); padding: 6px; margin: 0 auto 10px; cursor: zoom-in; }
.coop-right-name { font-size: 14px; color: #55555b; letter-spacing: .5px; }
.coop-right-sub { font-size: 11px; color: #a0a0a6; margin-top: 2px; }

/* ================= 图片放大查看 ================= */
.img-viewer {
  display: none; position: fixed; inset: 0; background: rgba(0,0,0,.82); z-index: 300;
  align-items: center; justify-content: center; cursor: zoom-out; padding: 30px;
}
.img-viewer.show { display: flex; }
.img-viewer img { max-width: 100%; max-height: 90vh; border-radius: 4px; background: #fff; }

/* ================= 响应式 ================= */
@media (max-width: 1199px) {
  .home-col-activity { flex: 0 0 56%; }
}

@media (max-width: 767px) {
  .site-header-inner { height: 60px; }
  .site-logo img { height: 34px; }
  .site-nav { display: none; }
  .site-menu-btn { display: flex; }
  .site-drawer { display: block; }

  .hero-meta-inner { justify-content: center; text-align: center; }
  .hero-meta-tag { margin-right: 0; }

  .home-main { flex-direction: column; gap: 18px; padding: 18px 0 6px; }
  .home-col-activity, .home-col-news { flex: 1 1 100%; }

  .act-tab { font-size: 12px; padding: 11px 4px; }

  .news-item { padding: 12px 14px; }
  .news-item-time { display: none; }

  .about-grid { flex-direction: column; gap: 26px; }
  .about-brand { flex: none; }
  .about-qrcodes { flex-wrap: wrap; justify-content: center; gap: 18px; }
  .about-qr img { width: 92px; height: 92px; }

  .partners-inner { gap: 14px 26px; }
  .partner-item { font-size: 14px; }

  .news-layout { flex-direction: column; gap: 20px; }
  .news-aside { flex: none; order: 2; }
  .aside-qr { display: inline-block; width: 48%; vertical-align: top; }
  .aside-card { text-align: center; }
  .article-row { padding: 14px 14px; }
  .article-date { display: none; }
  .article-cat { font-size: 11px; }

  .page-head h1 { font-size: 24px; }
  .article-page-head h1 { font-size: 21px; }
  .article-page-meta { gap: 8px; }

  .coop-inner { flex-direction: column; padding: 26px 22px; }
  .coop-right { flex: none; }
  .site-footer-links { gap: 8px 20px; }
  .site-footer-links a { font-size: 13px; }
}

@media (min-width: 768px) and (max-width: 1199px) {
  .about-grid { gap: 26px; }
  .about-brand { flex-basis: 200px; }
  .about-qrcodes { flex-wrap: wrap; justify-content: center; }
}

/* 平板两栏变上下 */
@media (max-width: 900px) and (min-width: 768px) {
  .home-main { flex-direction: column; }
  .home-col-activity, .home-col-news { flex: 1 1 100%; }
  .news-aside { display: none; }
}
