/* JiuYou Sport Theme - Main CSS */
:root {
  --clr-primary:   #2563eb;
  --clr-primary-d: #1d4ed8;
  --clr-android:   #3ddc84;
  --clr-ios:       #555;
  --clr-orange:    #f97316;
  --clr-purple:    #7c3aed;
  --clr-dark:      #0a1628;
  --clr-dark2:     #162035;
  --clr-text:      #1e293b;
  --clr-muted:     #64748b;
  --clr-border:    #e2e8f0;
  --clr-bg:        #f8fafc;
  --radius:        10px;
  --shadow:        0 2px 12px rgba(0,0,0,.08);
  --shadow-lg:     0 8px 32px rgba(0,0,0,.12);
}
*,*::before,*::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: -apple-system,BlinkMacSystemFont,'PingFang SC','Microsoft YaHei',sans-serif; font-size: 15px; color: var(--clr-text); background: var(--clr-bg); line-height: 1.7; }
a { color: var(--clr-primary); text-decoration: none; }
a:hover { color: var(--clr-primary-d); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ── Layout ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding: 60px 0; }
.section:nth-child(even) { background: #fff; }
.section-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.section-title::after { content: ''; display: block; width: 40px; height: 3px; background: var(--clr-primary); border-radius: 2px; margin-top: 8px; }
.section-sub { color: var(--clr-muted); margin-bottom: 32px; }
.section-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 24px; }
.view-all { font-size: .85rem; color: var(--clr-muted); }
.view-all:hover { color: var(--clr-primary); }

/* ── Header ── */
.site-header { position: fixed; top: 0; left: 0; right: 0; z-index: 100; background: rgba(10,22,40,.95); backdrop-filter: blur(8px); border-bottom: 1px solid rgba(255,255,255,.08); transition: box-shadow .3s; }
.site-header.sticky { box-shadow: 0 2px 20px rgba(0,0,0,.3); }
.header-inner { display: flex; align-items: center; gap: 24px; height: 64px; }
.site-logo { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.logo-text { font-size: 1.3rem; font-weight: 700; color: #fff; letter-spacing: .5px; }
.logo-text em { color: var(--clr-primary); font-style: normal; }
.nav-primary { flex: 1; }
.nav-list { display: flex; gap: 4px; }
.nav-list li a { display: block; padding: 6px 12px; color: rgba(255,255,255,.8); font-size: .88rem; border-radius: 6px; transition: all .2s; }
.nav-list li a:hover, .nav-list li.current-menu-item a { color: #fff; background: rgba(255,255,255,.1); }
.header-actions { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.btn-download-sm { background: var(--clr-primary); color: #fff !important; padding: 7px 16px; border-radius: 6px; font-size: .82rem; font-weight: 600; }
.btn-download-sm:hover { background: var(--clr-primary-d); }
.menu-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.menu-toggle span { display: block; width: 22px; height: 2px; background: #fff; border-radius: 2px; transition: all .3s; }
.menu-toggle.active span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ── Buttons ── */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 11px 24px; border-radius: 8px; font-weight: 600; font-size: .92rem; cursor: pointer; border: 2px solid transparent; transition: all .2s; text-decoration: none; }
.btn-primary { background: var(--clr-primary); color: #fff; }
.btn-primary:hover { background: var(--clr-primary-d); color: #fff; }
.btn-android { background: var(--clr-android); color: #000; }
.btn-android:hover { background: #2bc96e; color: #000; }
.btn-ios { background: var(--clr-ios); color: #fff; }
.btn-ios:hover { background: #333; color: #fff; }
.btn-outline-white { border-color: rgba(255,255,255,.5); color: #fff; background: transparent; }
.btn-outline-white:hover { background: rgba(255,255,255,.1); color: #fff; }

/* ── Hero ── */
.hero { background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-dark2) 60%, #1a2f55 100%); min-height: 540px; display: flex; align-items: center; padding: 100px 0 60px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; top: -60%; right: -20%; width: 700px; height: 700px; background: radial-gradient(circle, rgba(37,99,235,.25) 0%, transparent 70%); pointer-events: none; }
.hero-eyebrow { color: var(--clr-primary); font-size: .82rem; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 16px; }
.hero-title { font-size: clamp(1.8rem, 4vw, 3rem); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 16px; }
.hero-title span { color: var(--clr-primary); }
.hero-sub { color: rgba(255,255,255,.7); font-size: 1rem; margin-bottom: 32px; }
.hero-btns { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.hero-stats { display: flex; gap: 32px; flex-wrap: wrap; }
.stat { text-align: center; }
.stat strong { display: block; font-size: 1.5rem; font-weight: 800; color: #fff; }
.stat span { font-size: .78rem; color: rgba(255,255,255,.5); }

/* ── Download Cards ── */
.dl-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.dl-card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 32px; box-shadow: var(--shadow); }
.dl-icon { width: 72px; height: 72px; border-radius: 16px; display: flex; align-items: center; justify-content: center; margin-bottom: 20px; }
.android-icon { background: #e8f5e9; color: #2e7d32; }
.ios-icon { background: #f3f4f6; color: #374151; }
.dl-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: 8px; }
.dl-card p { color: var(--clr-muted); font-size: .9rem; margin-bottom: 16px; }
.dl-features { margin-bottom: 20px; }
.dl-features li { font-size: .88rem; padding: 4px 0; color: var(--clr-text); }

/* ── Hot Matches — .section.hot-matches for higher specificity than .section:nth-child(even) ── */
.section.hot-matches { background: var(--clr-dark); }
.section.hot-matches .section-header { margin-bottom: 24px; }
.section.hot-matches .section-title { color: #fff; }
.section.hot-matches .section-title::after { background: var(--clr-primary); }
.section.hot-matches .view-all { color: rgba(255,255,255,.6); }
.section.hot-matches .view-all:hover { color: #fff; }
.matches-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .matches-grid { grid-template-columns: repeat(4, 1fr); } }
.match-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.1); border-radius: var(--radius); padding: 16px; transition: all .2s; }
.match-card:hover { background: rgba(255,255,255,.1); transform: translateY(-2px); }
.match-sport { display: inline-block; font-size: .72rem; font-weight: 700; padding: 3px 10px; border-radius: 50px; margin-bottom: 10px; }
.sport-football  { background: rgba(22,163,74,.2);  color: #4ade80; }
.sport-basketball{ background: rgba(249,115,22,.2); color: #fb923c; }
.sport-esports   { background: rgba(124,58,237,.2); color: #a78bfa; }
.sport-news      { background: rgba(37,99,235,.2);  color: #60a5fa; }
.match-title { font-size: .88rem; font-weight: 600; color: #fff; margin-bottom: 8px; line-height: 1.4; }
.match-title a { color: inherit; }
.match-title a:hover { color: var(--clr-primary); }
.match-meta { font-size: .75rem; color: rgba(255,255,255,.4); }

/* ── Sports Triple ── */
.sports-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.sport-panel { border: 1px solid var(--clr-border); border-radius: var(--radius); overflow: hidden; background: #fff; }
.sport-panel-header { display: flex; align-items: center; gap: 10px; padding: 14px 18px; background: var(--sport-color, var(--clr-primary)); color: #fff; }
.sport-icon { font-size: 1.2rem; }
.sport-panel-header h3 { flex: 1; font-size: .95rem; font-weight: 700; }
.sport-panel-header a { color: rgba(255,255,255,.8); font-size: .8rem; }
.sport-panel-header a:hover { color: #fff; }
.sport-post-list { padding: 8px 0; }
.sport-post-list li { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 8px 18px; border-bottom: 1px solid var(--clr-border); font-size: .85rem; }
.sport-post-list li:last-child { border-bottom: none; }
.sport-post-list a { color: var(--clr-text); flex: 1; line-height: 1.4; }
.sport-post-list a:hover { color: var(--clr-primary); }
.sport-post-list span { color: var(--clr-muted); font-size: .78rem; white-space: nowrap; }
.no-posts { color: var(--clr-muted); font-size: .85rem; }

/* ── Cards ── */
.card-grid { display: grid; gap: 20px; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card-grid--4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: all .2s; }
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-3px); }
.card-img-link { display: block; overflow: hidden; aspect-ratio: 16/9; }
.card-img-link img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.card:hover .card-img-link img { transform: scale(1.04); }
.card-img-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--clr-dark) 0%, var(--clr-dark2) 100%); display: flex; align-items: center; justify-content: center; }
.card-img-placeholder span { color: rgba(255,255,255,.6); font-size: .85rem; font-weight: 600; }
.card-body { padding: 16px; }
.card-cat { display: inline-block; font-size: .72rem; font-weight: 700; color: var(--clr-primary); background: rgba(37,99,235,.1); padding: 2px 8px; border-radius: 4px; margin-bottom: 8px; }
.card-title { font-size: .95rem; font-weight: 600; line-height: 1.4; margin-bottom: 6px; }
.card-title a { color: var(--clr-text); }
.card-title a:hover { color: var(--clr-primary); }
.card-excerpt { font-size: .82rem; color: var(--clr-muted); line-height: 1.5; margin-bottom: 8px; }
.card-meta { font-size: .78rem; color: var(--clr-muted); }

/* ── FAQ ── */
.faq-list { max-width: 780px; margin: 0 auto; }
.faq-item { border: 1px solid var(--clr-border); border-radius: var(--radius); margin-bottom: 10px; overflow: hidden; }
.faq-q { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 16px 20px; background: #fff; border: none; cursor: pointer; font-size: .95rem; font-weight: 600; color: var(--clr-text); text-align: left; }
.faq-q:hover { background: var(--clr-bg); }
.faq-icon { flex-shrink: 0; transition: transform .25s; }
.faq-item.open .faq-icon { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-item.open .faq-a { max-height: 200px; }
.faq-a p { padding: 0 20px 16px; color: var(--clr-muted); font-size: .9rem; line-height: 1.7; }

/* ── Single Article ── */
.layout-single { display: grid; grid-template-columns: 1fr 300px; gap: 40px; padding: 40px 0; }
.article-cats { margin-bottom: 12px; display: flex; gap: 8px; flex-wrap: wrap; }
.cat-badge { background: rgba(37,99,235,.1); color: var(--clr-primary); padding: 3px 10px; border-radius: 20px; font-size: .78rem; font-weight: 600; }
.article-title { font-size: clamp(1.3rem, 3vw, 2rem); font-weight: 700; line-height: 1.3; margin-bottom: 16px; }
.article-meta { display: flex; align-items: center; gap: 8px; color: var(--clr-muted); font-size: .82rem; margin-bottom: 24px; flex-wrap: wrap; }
.article-thumb { border-radius: var(--radius); overflow: hidden; margin-bottom: 28px; aspect-ratio: 16/9; }
.article-thumb img { width: 100%; height: 100%; object-fit: cover; }
.article-content { font-size: .95rem; line-height: 1.9; color: var(--clr-text); }
.article-content h2 { font-size: 1.3rem; font-weight: 700; margin: 32px 0 12px; color: var(--clr-text); }
.article-content h3 { font-size: 1.1rem; font-weight: 600; margin: 24px 0 10px; }
.article-content p { margin-bottom: 16px; }
.article-content ul, .article-content ol { padding-left: 24px; margin-bottom: 16px; }
.article-content li { margin-bottom: 6px; }
.article-content blockquote { border-left: 4px solid var(--clr-primary); padding: 12px 20px; background: rgba(37,99,235,.05); border-radius: 0 var(--radius) var(--radius) 0; margin: 20px 0; color: var(--clr-muted); }
.article-tags { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--clr-border); font-size: .85rem; color: var(--clr-muted); }
.related-posts { margin-top: 48px; padding-top: 32px; border-top: 1px solid var(--clr-border); }
.related-title { font-size: 1.1rem; font-weight: 700; margin-bottom: 20px; }

/* ── Sidebar ── */
.sidebar { display: flex; flex-direction: column; gap: 24px; }
.widget { background: #fff; border: 1px solid var(--clr-border); border-radius: var(--radius); padding: 20px; }
.widget-title { font-size: 1rem; font-weight: 700; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 2px solid var(--clr-primary); }
.widget-posts li, .widget-cats li { padding: 6px 0; border-bottom: 1px solid var(--clr-border); font-size: .85rem; }
.widget-posts li:last-child, .widget-cats li:last-child { border-bottom: none; }
.widget-posts a, .widget-cats a { color: var(--clr-text); }
.widget-posts a:hover, .widget-cats a:hover { color: var(--clr-primary); }
.widget-download { background: linear-gradient(135deg, var(--clr-dark), var(--clr-dark2)); color: #fff; }
.widget-download .widget-title { color: #fff; border-color: var(--clr-primary); }
.widget-download p { color: rgba(255,255,255,.7); font-size: .85rem; }

/* ── Archive ── */
.archive-header { margin-bottom: 28px; }
.archive-title { font-size: 1.6rem; font-weight: 700; margin-bottom: 8px; }
.archive-desc { color: var(--clr-muted); }
.no-posts { color: var(--clr-muted); padding: 40px 0; text-align: center; }
.pagination { margin-top: 40px; display: flex; justify-content: center; }
.pagination .nav-links { display: flex; gap: 8px; }
.pagination a, .pagination span { display: flex; align-items: center; justify-content: center; min-width: 36px; height: 36px; padding: 0 10px; border: 1px solid var(--clr-border); border-radius: 6px; font-size: .85rem; color: var(--clr-text); background: #fff; }
.pagination .current { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }
.pagination a:hover { background: var(--clr-primary); color: #fff; border-color: var(--clr-primary); }

/* ── Breadcrumb ── */
.breadcrumb { margin-bottom: 20px; font-size: .82rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.breadcrumb li { display: flex; align-items: center; color: var(--clr-muted); }
.breadcrumb li + li::before { content: '/'; margin-right: 4px; }
.breadcrumb a { color: var(--clr-muted); }
.breadcrumb a:hover { color: var(--clr-primary); }
.breadcrumb .current { color: var(--clr-text); }

/* ── Footer ── */
.site-footer { background: var(--clr-dark); color: rgba(255,255,255,.75); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 40px; }
.footer-logo { font-size: 1.3rem; font-weight: 700; color: #fff; margin-bottom: 12px; }
.footer-desc { font-size: .85rem; line-height: 1.7; margin-bottom: 16px; }
.footer-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.badge { background: rgba(255,255,255,.1); padding: 4px 10px; border-radius: 20px; font-size: .75rem; color: rgba(255,255,255,.8); }
.footer-heading { font-size: .9rem; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-links li { margin-bottom: 8px; }
.footer-links a { color: rgba(255,255,255,.6); font-size: .85rem; }
.footer-links a:hover { color: #fff; }
.disclaimer-box { border: 1px solid rgba(255,255,255,.12); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; font-size: .8rem; line-height: 1.6; color: rgba(255,255,255,.45); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 20px 0; display: flex; justify-content: space-between; font-size: .8rem; color: rgba(255,255,255,.4); flex-wrap: wrap; gap: 8px; }
.footer-bottom a { color: rgba(255,255,255,.4); }
.footer-bottom a:hover { color: rgba(255,255,255,.8); }

/* ── Scroll Top ── */
.scroll-top { position: fixed; bottom: 28px; right: 24px; width: 42px; height: 42px; background: var(--clr-primary); color: #fff; border: none; border-radius: 50%; cursor: pointer; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: all .3s; z-index: 90; box-shadow: 0 4px 16px rgba(37,99,235,.4); }
.scroll-top.visible { opacity: 1; pointer-events: auto; }
.scroll-top:hover { background: var(--clr-primary-d); transform: translateY(-2px); }

/* ── Responsive ── */
@media (max-width: 1024px) {
  .sports-grid { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .menu-toggle { display: flex; }
  .nav-primary { position: fixed; top: 64px; left: 0; right: 0; background: rgba(10,22,40,.98); padding: 16px 20px 24px; max-height: 0; overflow: hidden; transition: max-height .35s ease; }
  .nav-primary.open { max-height: 80vh; }
  .nav-list { flex-direction: column; gap: 2px; }
  .nav-list li a { padding: 10px 14px; font-size: .95rem; }
  .dl-grid { grid-template-columns: 1fr; }
  .layout-single { grid-template-columns: 1fr; gap: 28px; }
  .sidebar { display: none; }
  .card-grid--3 { grid-template-columns: repeat(2, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(2, 1fr); }
  .sports-grid { grid-template-columns: 1fr; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 24px; }
}
@media (max-width: 480px) {
  .card-grid--3, .card-grid--4 { grid-template-columns: 1fr; }
  .matches-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .section { padding: 40px 0; }
}
