/* ============================================================
   TEMP-09 · 电竞竞技场（NEXUS ARENA · Esports / Sports Tech）
   风格：电光蓝 + 霓虹绿 + 深黑 + 白 + 警报红
   排版：渐变 Hero + 实时滚动条 + 非对称 Featured + 水平统计 + Tab + 赛事卡 + 排行榜 + 图集 + 赞助商
   ============================================================ */
:root {
    --black: #0a0a0a;
    --dark: #1a1a1a;
    --card: #222;
    --blue: #0066ff;
    --green: #39ff14;
    --red: #ff3366;
    --white: #fff;
    --gray: #888;
    --grad-blue: linear-gradient(135deg, #0066ff, #0044aa);
    --grad-green: linear-gradient(135deg, #39ff14, #00cc00);
    --grad-dark: linear-gradient(180deg, #0a0a0a, #1a1a1a);
    --shadow: 0 4px 20px rgba(0, 102, 255, 0.25);
    --shadow-green: 0 4px 20px rgba(57, 255, 20, 0.3);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--black);
    color: var(--white);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    font-size: 16px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--white); text-decoration: none; transition: color .2s, transform .2s; }
a:hover { color: var(--green); }
h1, h2, h3, h4 { font-family: 'Arial Black', 'Helvetica Neue', Arial, sans-serif; font-weight: 900; line-height: 1.2; margin: 0 0 12px; letter-spacing: 1px; color: var(--white); text-transform: uppercase; }
h1 { font-size: 2.5rem; }
h2 { font-size: 1.8rem; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 14px; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; border: 0; background: transparent; color: inherit; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.wrap { width: min(1200px, 92%); margin: 0 auto; }

/* ---------- Header ---------- */
.site-header { background: var(--black); border-bottom: 2px solid var(--blue); position: sticky; top: 0; z-index: 100; }
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 14px 0; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo img { height: 40px; width: auto; }
.logo-text { font-family: 'Arial Black', sans-serif; font-size: 1.3rem; font-weight: 900; letter-spacing: 2px; color: var(--white); }
.logo-text:hover { color: var(--white); }
.main-nav { flex: 1; display: flex; justify-content: center; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav a { display: inline-block; padding: 8px 16px; border-radius: 4px; font-size: .9rem; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--white); }
.main-nav a:hover { background: var(--blue); color: var(--white); }
.header-search { display: flex; align-items: center; }
.header-search input { padding: 8px 14px; border-radius: 4px; border: 1px solid var(--gray); background: var(--dark); color: var(--white); font-size: .85rem; width: 160px; }
.header-search input:focus { outline: none; border-color: var(--green); }
.nav-toggle { display: none; padding: 8px 12px; border-radius: 4px; background: var(--blue); color: var(--white); font-size: 1.2rem; }

/* ---------- Hero ---------- */
.hero { background: var(--grad-dark); padding: 60px 0; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -50%; right: -20%; width: 600px; height: 600px; background: radial-gradient(circle, rgba(0, 102, 255, 0.15), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; bottom: -30%; left: -10%; width: 500px; height: 500px; background: radial-gradient(circle, rgba(57, 255, 20, 0.1), transparent 70%); pointer-events: none; }
.hero-content { position: relative; z-index: 1; display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: center; }
.hero-text h1 { font-size: 3rem; line-height: 1.1; margin-bottom: 16px; }
.hero-text h1 span { color: var(--green); }
.hero-text p { font-size: 1.1rem; color: var(--gray); margin-bottom: 24px; }
.hero-cta { display: inline-block; padding: 14px 32px; background: var(--grad-blue); color: var(--white); border-radius: 6px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; box-shadow: var(--shadow); }
.hero-cta:hover { transform: translateY(-2px); color: var(--white); }
.hero-visual { aspect-ratio: 16/9; border-radius: 8px; overflow: hidden; background: var(--dark); box-shadow: var(--shadow); }
.hero-visual img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Live Ticker ---------- */
.ticker { background: var(--dark); border-top: 2px solid var(--green); border-bottom: 2px solid var(--green); padding: 12px 0; overflow: hidden; }
.ticker-track { display: flex; gap: 40px; animation: ticker-scroll 40s linear infinite; white-space: nowrap; }
.ticker-item { display: flex; align-items: center; gap: 10px; font-size: .9rem; }
.ticker-item .hot { color: var(--red); font-weight: 700; }
.ticker-item .live { color: var(--green); font-weight: 700; }
@keyframes ticker-scroll {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* ---------- Featured Grid ---------- */
.featured { padding: 50px 0; }
.section-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; padding-bottom: 12px; border-bottom: 2px solid var(--blue); }
.section-head h2 { margin: 0; }
.section-head .more { color: var(--green); font-size: .85rem; font-weight: 700; letter-spacing: 2px; }
.featured-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: auto auto; gap: 16px; }
.featured-main { grid-row: 1 / 3; position: relative; aspect-ratio: 16/10; border-radius: 8px; overflow: hidden; background: var(--dark); }
.featured-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s; }
.featured-main:hover img { transform: scale(1.05); }
.featured-main .cap { position: absolute; inset: auto 0 0 0; padding: 20px; background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.9)); color: var(--white); }
.featured-main h3 { font-size: 1.6rem; margin-bottom: 6px; }
.featured-main .tag { display: inline-block; padding: 4px 10px; background: var(--red); color: var(--white); border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: 1px; margin-bottom: 8px; }
.featured-side { position: relative; aspect-ratio: 16/9; border-radius: 6px; overflow: hidden; background: var(--dark); }
.featured-side img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.featured-side:hover img { transform: scale(1.05); }
.featured-side .cap { position: absolute; inset: auto 0 0 0; padding: 12px; background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.85)); color: var(--white); }
.featured-side h3 { font-size: 1rem; margin: 0; }

/* ---------- Stats Bar ---------- */
.stats { background: var(--dark); padding: 30px 0; border-top: 1px solid var(--blue); border-bottom: 1px solid var(--blue); }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-item .num { font-family: 'Arial Black', sans-serif; font-size: 2.5rem; font-weight: 900; color: var(--green); line-height: 1; }
.stat-item .label { font-size: .85rem; color: var(--gray); letter-spacing: 2px; text-transform: uppercase; margin-top: 6px; }

/* ---------- Category Tabs ---------- */
.tabs { padding: 40px 0; }
.tab-nav { display: flex; gap: 8px; margin-bottom: 20px; overflow-x: auto; scrollbar-width: none; }
.tab-nav::-webkit-scrollbar { display: none; }
.tab-btn { padding: 10px 20px; background: var(--dark); border: 2px solid var(--gray); border-radius: 6px; color: var(--white); font-weight: 700; letter-spacing: 1px; white-space: nowrap; }
.tab-btn.active, .tab-btn:hover { background: var(--blue); border-color: var(--blue); }
.tab-content { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tab-card { background: var(--card); border-radius: 8px; overflow: hidden; border: 1px solid var(--dark); transition: transform .3s, box-shadow .3s; }
.tab-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tab-card img { aspect-ratio: 16/9; object-fit: cover; }
.tab-card-body { padding: 14px; }
.tab-card h3 { font-size: 1rem; margin-bottom: 6px; }
.tab-card .meta { font-size: .75rem; color: var(--gray); }

/* ---------- Match Cards ---------- */
.matches { padding: 40px 0; background: var(--dark); }
.match-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.match-card { background: var(--card); border-radius: 8px; padding: 18px; border-left: 4px solid var(--blue); display: flex; justify-content: space-between; align-items: center; }
.match-card.live { border-left-color: var(--red); }
.match-card .teams { flex: 1; }
.match-card .teams h3 { font-size: 1rem; margin-bottom: 4px; }
.match-card .teams .vs { color: var(--gray); font-size: .85rem; }
.match-card .time { text-align: right; }
.match-card .time .date { font-size: .75rem; color: var(--gray); }
.match-card .time .status { display: inline-block; padding: 4px 10px; background: var(--blue); color: var(--white); border-radius: 4px; font-size: .7rem; font-weight: 700; letter-spacing: 1px; margin-top: 4px; }
.match-card.live .time .status { background: var(--red); }

/* ---------- Leaderboard ---------- */
.leaderboard { padding: 40px 0; }
.leader-list { display: grid; grid-template-columns: 1fr; gap: 10px; }
.leader-item { display: grid; grid-template-columns: 50px 1fr 100px; gap: 16px; align-items: center; padding: 14px 18px; background: var(--card); border-radius: 6px; border-left: 3px solid var(--green); }
.leader-item:nth-child(1) { border-left-color: #ffd700; }
.leader-item:nth-child(2) { border-left-color: #c0c0c0; }
.leader-item:nth-child(3) { border-left-color: #cd7f32; }
.leader-rank { font-family: 'Arial Black', sans-serif; font-size: 1.5rem; font-weight: 900; color: var(--green); text-align: center; }
.leader-item:nth-child(1) .leader-rank { color: #ffd700; }
.leader-item:nth-child(2) .leader-rank { color: #c0c0c0; }
.leader-item:nth-child(3) .leader-rank { color: #cd7f32; }
.leader-info h3 { font-size: 1rem; margin: 0; }
.leader-info .team { font-size: .8rem; color: var(--gray); }
.leader-score { font-family: 'Arial Black', sans-serif; font-size: 1.3rem; font-weight: 900; color: var(--green); text-align: right; }

/* ---------- Gallery Carousel ---------- */
.gallery { padding: 40px 0; background: var(--dark); }
.gallery-track { display: flex; gap: 14px; overflow-x: auto; scroll-behavior: smooth; scrollbar-width: none; padding: 6px 0; }
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { flex: 0 0 280px; aspect-ratio: 4/3; border-radius: 8px; overflow: hidden; background: var(--card); position: relative; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item .cap { position: absolute; inset: auto 0 0 0; padding: 10px; background: linear-gradient(180deg, transparent, rgba(10, 10, 10, 0.9)); color: var(--white); font-size: .85rem; }

/* ---------- Sponsors ---------- */
.sponsors { padding: 40px 0; }
.sponsor-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.sponsor-item { aspect-ratio: 3/1; background: var(--card); border-radius: 6px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--dark); font-size: .8rem; color: var(--gray); letter-spacing: 2px; }

/* ---------- Footer ---------- */
.site-footer { background: var(--dark); padding: 40px 0 20px; border-top: 2px solid var(--blue); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; padding-bottom: 24px; }
.footer-brand h4 { font-size: 1.2rem; margin-bottom: 10px; }
.footer-brand p { color: var(--gray); font-size: .85rem; line-height: 1.6; }
.footer-links h4 { font-size: .9rem; margin-bottom: 10px; color: var(--green); }
.footer-links li { padding: 4px 0; font-size: .85rem; }
.footer-links a { color: var(--gray); }
.footer-links a:hover { color: var(--white); }
.footer-bottom { padding: 20px 0 0; border-top: 1px solid var(--card); text-align: center; font-size: .8rem; color: var(--gray); }
.footer-bottom a { color: var(--green); margin: 0 6px; }

/* ---------- Article Detail ---------- */
.detail-wrap { padding: 30px 0 50px; }
.breadcrumb { padding: 14px 0; font-size: .8rem; color: var(--gray); }
.breadcrumb ol { display: inline-flex; gap: 6px; }
.breadcrumb li + li::before { content: '/'; margin-right: 6px; }
.article-head { margin-bottom: 24px; }
.article-head .cat { display: inline-block; padding: 6px 14px; background: var(--blue); color: var(--white); border-radius: 4px; font-size: .75rem; font-weight: 700; letter-spacing: 2px; margin-bottom: 12px; }
.article-head h1 { font-size: 2.2rem; line-height: 1.2; margin-bottom: 10px; }
.article-head .meta { font-size: .85rem; color: var(--gray); }
.article-hero { aspect-ratio: 16/7; border-radius: 8px; overflow: hidden; background: var(--dark); margin-bottom: 24px; }
.article-hero img { width: 100%; height: 100%; object-fit: cover; }
.article-body { max-width: 720px; margin: 0 auto; font-size: 1.05rem; line-height: 1.9; color: var(--white); }
.article-body p { margin-bottom: 18px; }
.article-body h2 { margin-top: 32px; padding-bottom: 8px; border-bottom: 2px solid var(--blue); font-size: 1.4rem; }
.article-body h3 { margin-top: 24px; font-size: 1.2rem; }
.article-body img { border-radius: 6px; margin: 22px 0; }
.article-body a { color: var(--green); text-decoration: underline; }
.article-body blockquote { margin: 24px 0; padding: 16px 22px; background: var(--card); border-left: 4px solid var(--green); font-style: italic; }
.article-tags { max-width: 720px; margin: 26px auto; display: flex; flex-wrap: wrap; gap: 8px; }
.article-tags a { padding: 6px 14px; background: var(--card); border-radius: 999px; font-size: .85rem; color: var(--green); }
.updown { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 720px; margin: 30px auto; }
.updown a { display: block; padding: 14px 18px; background: var(--card); border-radius: 6px; border-left: 3px solid var(--blue); font-size: .9rem; }
.updown a:hover { border-left-color: var(--green); }
.updown span { display: block; font-size: .7rem; color: var(--gray); letter-spacing: 2px; margin-bottom: 4px; }
.related { max-width: 720px; margin: 30px auto 0; padding: 26px 0; border-top: 1px solid var(--card); }
.related h3 { text-align: center; margin-bottom: 18px; }
.related ul { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.related li { padding: 10px 14px; background: var(--card); border-radius: 6px; font-size: .9rem; }

/* ---------- Category / Tag / Search ---------- */
.cat-head { padding: 30px 0; background: var(--grad-dark); border-bottom: 2px solid var(--blue); }
.cat-head h1 { font-size: 2rem; margin-bottom: 8px; }
.cat-head p { color: var(--gray); margin: 0; }
.cat-grid { padding: 30px 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.cat-card { background: var(--card); border-radius: 8px; overflow: hidden; border: 1px solid var(--dark); }
.cat-card img { aspect-ratio: 16/9; object-fit: cover; }
.cat-card-body { padding: 14px; }
.cat-card h3 { font-size: 1rem; margin-bottom: 6px; }
.cat-card .meta { font-size: .75rem; color: var(--gray); }
.pagination { display: flex; justify-content: center; gap: 6px; margin-top: 30px; }
.pagination a, .pagination span { padding: 8px 16px; background: var(--card); border-radius: 4px; font-size: .85rem; }
.pagination .current { background: var(--blue); color: var(--white); }
.search-form { display: flex; gap: 10px; max-width: 620px; margin: 20px auto; }
.search-form input[type=text] { flex: 1; padding: 12px 18px; border-radius: 6px; border: 1px solid var(--gray); background: var(--dark); color: var(--white); font-size: .95rem; }
.search-form input[type=submit] { padding: 12px 26px; border-radius: 6px; background: var(--blue); color: var(--white); font-weight: 700; letter-spacing: 2px; }
.no-data { padding: 40px 20px; text-align: center; color: var(--gray); background: var(--card); border-radius: 6px; }

/* ---------- 404 ---------- */
.error-404 { text-align: center; padding: 80px 20px; }
.error-404 .code { font-family: 'Arial Black', sans-serif; font-size: 8rem; color: var(--red); line-height: 1; }
.error-404 h2 { font-size: 1.5rem; margin: 12px 0; }
.error-404 p { color: var(--gray); margin: 12px 0 22px; }
.error-404 a { display: inline-block; padding: 12px 30px; background: var(--blue); color: var(--white); border-radius: 6px; font-weight: 700; letter-spacing: 2px; }

/* ---------- Back to top ---------- */
.back-to-top { position: fixed; right: 22px; bottom: 22px; width: 44px; height: 44px; border-radius: 50%; background: var(--blue); color: var(--white); display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: opacity .3s; z-index: 95; box-shadow: var(--shadow); font-size: 1.2rem; font-weight: 700; }
.back-to-top.show { opacity: .9; pointer-events: auto; }
.back-to-top:hover { background: var(--green); color: var(--black); opacity: 1; }

/* ---------- Fade in ---------- */
.fade-in { opacity: 0; transform: translateY(12px); transition: opacity .5s, transform .5s; }
.fade-in.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fade-in { transition: none; opacity: 1; transform: none; }
    html { scroll-behavior: auto; }
    .ticker-track { animation: none; }
}

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
    .hero-content { grid-template-columns: 1fr; }
    .hero-visual { max-width: 500px; margin: 0 auto; }
    .featured-grid { grid-template-columns: 1fr 1fr; }
    .featured-main { grid-row: auto; grid-column: 1 / 3; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); }
    .tab-content { grid-template-columns: repeat(2, 1fr); }
    .match-grid { grid-template-columns: 1fr; }
    .leader-item { grid-template-columns: 40px 1fr 80px; }
    .sponsor-grid { grid-template-columns: repeat(3, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .cat-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 720px) {
    .site-header { position: sticky; top: 0; }
    .header-inner { flex-wrap: wrap; }
    .main-nav { order: 3; width: 100%; display: none; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; }
    .main-nav a { display: block; padding: 12px 0; border-bottom: 1px solid var(--dark); }
    .nav-toggle { display: block; }
    .header-search { display: none; }
    .hero-text h1 { font-size: 2rem; }
    .featured-grid { grid-template-columns: 1fr; }
    .featured-main { grid-column: auto; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .tab-content { grid-template-columns: 1fr; }
    .leader-item { grid-template-columns: 1fr; gap: 8px; text-align: center; }
    .leader-rank { font-size: 1.2rem; }
    .leader-score { text-align: center; }
    .sponsor-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr; }
    .cat-grid { grid-template-columns: 1fr; }
    .updown { grid-template-columns: 1fr; }
    .related ul { grid-template-columns: 1fr; }
    .article-head h1 { font-size: 1.6rem; }
}

/* ---------- Print ---------- */
@media print {
    .site-header, .site-footer, .back-to-top, .ticker, .sponsors { display: none !important; }
    body { background: #fff; color: #000; }
    a { color: #000; }
}
