/* ==========================================================================
   ky.com 全球体育资讯一站式平台 — 全局样式
   ========================================================================== */

:root {
  --bg: #0b1020;
  --bg-2: #0e1528;
  --surface: #141c33;
  --surface-2: #1a2340;
  --border: rgba(255, 255, 255, 0.08);
  --border-strong: rgba(255, 255, 255, 0.16);
  --text: #eaf0fb;
  --muted: #93a0bd;
  --muted-2: #64708c;

  --accent: #00e5a0;
  --accent-2: #00b4d8;
  --accent-grad: linear-gradient(135deg, #00e5a0 0%, #00b4d8 100%);
  --live: #ff3b5c;
  --gold: #fbbf24;
  --blue: #3b82f6;
  --purple: #a78bfa;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 18px 50px -18px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 1px rgba(0, 229, 160, 0.22), 0 12px 40px -12px rgba(0, 229, 160, 0.35);

  --font: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", -apple-system, BlinkMacSystemFont,
    "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

::selection {
  background: rgba(0, 229, 160, 0.3);
}

/* 背景光晕 */
.glow-bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(900px 500px at 12% -8%, rgba(0, 229, 160, 0.14), transparent 60%),
    radial-gradient(900px 600px at 100% 0%, rgba(0, 180, 216, 0.12), transparent 55%),
    var(--bg);
}

/* ==========================================================================
   顶栏 / 导航
   ========================================================================== */
.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  backdrop-filter: blur(14px);
  background: rgba(11, 16, 32, 0.72);
  border-bottom: 1px solid var(--border);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 22px;
  letter-spacing: 0.5px;
}

.brand .logo {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--accent-grad);
  display: grid;
  place-items: center;
  font-size: 18px;
  font-weight: 900;
  color: #04121c;
  box-shadow: var(--shadow-glow);
}

.brand .logo span {
  font-style: italic;
}

.brand .brand-txt em {
  font-style: normal;
  color: var(--accent);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  padding: 8px 15px;
  border-radius: 10px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 500;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.05);
}

.nav-links a.active {
  color: var(--accent);
  background: rgba(0, 229, 160, 0.1);
}

.nav-cta {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-cta .lang {
  font-size: 13px;
  color: var(--muted);
  border: 1px solid var(--border);
  padding: 6px 12px;
  border-radius: 8px;
}

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  color: var(--text);
  width: 42px;
  height: 42px;
  border-radius: 10px;
  cursor: pointer;
  font-size: 20px;
}

/* ==========================================================================
   按钮
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s, box-shadow 0.2s, background 0.2s;
}

.btn-primary {
  background: var(--accent-grad);
  color: #04121c;
  box-shadow: 0 10px 30px -10px rgba(0, 229, 160, 0.6);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px -10px rgba(0, 229, 160, 0.7);
}

.btn-ghost {
  background: transparent;
  border-color: var(--border-strong);
  color: var(--text);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.06);
}

.btn-sm {
  padding: 9px 16px;
  font-size: 14px;
}

/* ==========================================================================
   Hero 区
   ========================================================================== */
.hero {
  position: relative;
  padding: 88px 0 72px;
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 48px;
  align-items: center;
}

.hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.25);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 22px;
}

.hero h1 {
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.12;
  font-weight: 900;
  letter-spacing: -0.5px;
  margin-bottom: 20px;
}

.hero h1 .grad {
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  color: var(--muted);
  font-size: 17px;
  max-width: 520px;
  margin-bottom: 32px;
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.hero-stats {
  display: flex;
  gap: 28px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.hero-stats .stat b {
  display: block;
  font-size: 28px;
  font-weight: 900;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-stats .stat span {
  color: var(--muted-2);
  font-size: 13px;
}

.hero-visual {
  position: relative;
}

.score-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: 22px;
  padding: 22px;
  box-shadow: var(--shadow);
}

/* ==========================================================================
   实时比分
   ========================================================================== */
.section {
  padding: 72px 0;
}

.section-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  margin-bottom: 34px;
  gap: 20px;
  flex-wrap: wrap;
}

.section-head .eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head h2 {
  font-size: clamp(26px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.section-head p.sub {
  color: var(--muted);
  max-width: 560px;
}

.live-ticker {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255, 59, 92, 0.1);
  border: 1px solid rgba(255, 59, 92, 0.3);
  color: var(--live);
  font-weight: 800;
  font-size: 13px;
  padding: 7px 14px;
  border-radius: 100px;
}

.live-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--live);
  animation: pulse 1.2s infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255, 59, 92, 0.6); }
  50% { box-shadow: 0 0 0 6px rgba(255, 59, 92, 0); }
}

.team-row .score.pop {
  animation: scorePop 0.4s ease;
  color: var(--accent);
}

@keyframes scorePop {
  0% { transform: scale(1); }
  50% { transform: scale(1.5); }
  100% { transform: scale(1); }
}

/* 公告滚动条 */
.ticker-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 10px 20px;
  margin-bottom: 26px;
}

.ticker-bar .ticker-label {
  font-weight: 800;
  font-size: 13px;
  color: var(--accent);
  white-space: nowrap;
}

.ticker-bar [data-ticker-text] {
  color: var(--muted);
  font-size: 14px;
  transition: opacity 0.25s;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

/* Tab 按钮 */
.tab-bar {
  display: inline-flex;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 5px;
}

.tab-bar button {
  border: none;
  background: transparent;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
  padding: 9px 20px;
  border-radius: 100px;
  cursor: pointer;
  font-family: inherit;
  transition: all 0.2s;
}

.tab-bar button.active {
  background: var(--accent-grad);
  color: #04121c;
}

.score-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.match-card {
  background: linear-gradient(160deg, var(--surface-2), var(--surface));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 18px;
  transition: transform 0.2s, border-color 0.2s;
}

.match-card:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 229, 160, 0.4);
}

.match-card .meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: var(--muted-2);
  margin-bottom: 14px;
}

.match-card .meta .league {
  font-weight: 700;
  color: var(--muted);
}

.match-card .status {
  font-weight: 800;
  color: var(--accent);
}

.match-card .status.live {
  color: var(--live);
}

.teams {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.team-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.team-row .flag {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 16px;
  background: rgba(255, 255, 255, 0.06);
}

.team-row .name {
  font-weight: 600;
  font-size: 15px;
  flex: 1;
}

.team-row .score {
  font-size: 22px;
  font-weight: 900;
  min-width: 34px;
  text-align: center;
}

.match-card .clock {
  text-align: center;
  margin-top: 12px;
  font-size: 12px;
  color: var(--muted-2);
  border-top: 1px solid var(--border);
  padding-top: 12px;
}

/* ==========================================================================
   卡片网格 / 赛事覆盖
   ========================================================================== */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.feature-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
  transition: transform 0.2s, border-color 0.2s, box-shadow 0.2s;
}

.feature-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 160, 0.4);
  box-shadow: var(--shadow);
}

.feature-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  font-size: 24px;
  margin-bottom: 18px;
  background: rgba(0, 229, 160, 0.12);
  border: 1px solid rgba(0, 229, 160, 0.22);
}

.feature-card h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 10px;
}

.feature-card p {
  color: var(--muted);
  font-size: 14.5px;
}

.sport-tile {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 20px 14px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.sport-tile:hover {
  transform: translateY(-4px);
  border-color: rgba(0, 180, 216, 0.5);
}

.sport-tile .emoji {
  font-size: 32px;
  margin-bottom: 10px;
}

.sport-tile .name {
  font-weight: 700;
  font-size: 15px;
}

.sport-tile .count {
  color: var(--muted-2);
  font-size: 12.5px;
  margin-top: 4px;
}

/* ==========================================================================
   数据区块
   ========================================================================== */
.data-strip {
  background: linear-gradient(135deg, rgba(0, 229, 160, 0.08), rgba(0, 180, 216, 0.08));
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 46px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.data-strip .cell {
  text-align: center;
}

.data-strip .cell b {
  display: block;
  font-size: 40px;
  font-weight: 900;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.data-strip .cell span {
  color: var(--muted);
  font-size: 14px;
}

/* ==========================================================================
   新闻
   ========================================================================== */
.news-list {
  display: grid;
  gap: 16px;
}

.news-item {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: border-color 0.2s, transform 0.2s;
}

.news-item:hover {
  border-color: rgba(0, 229, 160, 0.4);
  transform: translateX(4px);
}

.news-item .tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 12px;
  border-radius: 100px;
  margin-bottom: 12px;
}

.tag.green { background: rgba(0, 229, 160, 0.12); color: var(--accent); }
.tag.cyan { background: rgba(0, 180, 216, 0.12); color: var(--accent-2); }
.tag.gold { background: rgba(251, 191, 36, 0.12); color: var(--gold); }
.tag.red { background: rgba(255, 59, 92, 0.12); color: var(--live); }

.news-item h3 {
  font-size: 19px;
  font-weight: 800;
  margin-bottom: 8px;
}

.news-item .excerpt {
  color: var(--muted);
  font-size: 14.5px;
}

.news-item .date {
  color: var(--muted-2);
  font-size: 13px;
  white-space: nowrap;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: center;
}

.news-item .date b {
  font-size: 26px;
  color: var(--text);
  font-weight: 900;
}

/* ==========================================================================
   时间线（公司历史）
   ========================================================================== */
.timeline {
  position: relative;
  padding-left: 28px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 4px;
  bottom: 4px;
  width: 2px;
  background: linear-gradient(var(--accent), var(--accent-2));
}

.timeline-item {
  position: relative;
  padding: 0 0 34px;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -26px;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--bg);
  border: 3px solid var(--accent);
  box-shadow: 0 0 0 4px rgba(0, 229, 160, 0.15);
}

.timeline-item .year {
  font-size: 24px;
  font-weight: 900;
  background: var(--accent-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.timeline-item h4 {
  font-size: 17px;
  font-weight: 800;
  margin: 4px 0 6px;
}

.timeline-item p {
  color: var(--muted);
  font-size: 14.5px;
  max-width: 640px;
}

/* ==========================================================================
   客户端下载
   ========================================================================== */
.platform-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 30px 24px;
  text-align: center;
  transition: transform 0.2s, border-color 0.2s;
}

.platform-card:hover {
  transform: translateY(-5px);
  border-color: rgba(0, 229, 160, 0.45);
}

.platform-card .icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  border-radius: 18px;
  display: grid;
  place-items: center;
  font-size: 30px;
  background: rgba(0, 229, 160, 0.1);
  border: 1px solid rgba(0, 229, 160, 0.22);
}

.platform-card h3 {
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
}

.platform-card .ver {
  color: var(--muted-2);
  font-size: 13px;
  margin-bottom: 18px;
}

/* ==========================================================================
   页脚
   ========================================================================== */
.footer {
  border-top: 1px solid var(--border);
  padding: 56px 0 32px;
  margin-top: 40px;
  background: var(--bg-2);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 36px;
  margin-bottom: 40px;
}

.footer h5 {
  font-size: 15px;
  font-weight: 800;
  margin-bottom: 16px;
}

.footer a {
  display: block;
  color: var(--muted);
  font-size: 14px;
  padding: 5px 0;
  transition: color 0.2s;
}

.footer a:hover {
  color: var(--accent);
}

.footer .brand-desc {
  color: var(--muted);
  font-size: 14px;
  margin-top: 14px;
  max-width: 300px;
}

.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--muted-2);
  font-size: 13px;
}

/* ==========================================================================
   响应式
   ========================================================================== */
@media (max-width: 960px) {
  .hero-inner { grid-template-columns: 1fr; }
  .score-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .data-strip { grid-template-columns: repeat(2, 1fr); padding: 34px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links {
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    background: rgba(11, 16, 32, 0.98);
    border-bottom: 1px solid var(--border);
    padding: 12px;
    gap: 6px;
    display: none;
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 16px; }
  .nav-toggle { display: grid; place-items: center; }
  .nav-cta .lang { display: none; }
  .score-grid { grid-template-columns: 1fr; }
  .grid-3 { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: 1fr 1fr; }
  .data-strip { grid-template-columns: 1fr 1fr; padding: 26px; }
  .news-item { grid-template-columns: 1fr; }
  .news-item .date { flex-direction: row; align-items: center; gap: 8px; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .hero { padding: 56px 0 48px; }
}

/* 图表容器 */
.chart-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}

.chart-box canvas {
  width: 100% !important;
  height: 260px !important;
}

/* 页面头部（内页） */
.page-hero {
  padding: 72px 0 48px;
  text-align: center;
  border-bottom: 1px solid var(--border);
  background:
    radial-gradient(700px 320px at 50% -20%, rgba(0, 229, 160, 0.1), transparent 60%);
}

.page-hero .eyebrow {
  font-size: 13px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 2px;
  text-transform: uppercase;
  margin-bottom: 14px;
}

.page-hero h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  font-weight: 900;
  letter-spacing: -0.5px;
}

.page-hero p {
  color: var(--muted);
  max-width: 620px;
  margin: 16px auto 0;
  font-size: 16px;
}
