/* 扁平风 - 蜘蛛直播网 */
:root{
  --c-primary:#00a651;
  --c-primary-dark:#008f45;
  --c-accent:#ff6b00;
  --c-bg:#f5f7f6;
  --c-surface:#ffffff;
  --c-text:#222;
  --c-muted:#666;
  --c-line:#e5ebe7;
  --c-live:#e53935;
  --radius:4px;
  --wrap:1180px;
  --font:"Lato","PingFang SC","Microsoft YaHei","WenQuanYi Micro Hei",sans-serif;
}
*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:var(--font);background:var(--c-bg);color:var(--c-text);line-height:1.6;min-height:100vh}
a{color:var(--c-primary);text-decoration:none}
a:hover{color:var(--c-primary-dark)}
img{max-width:100%;height:auto;vertical-align:middle}
.wrap{max-width:var(--wrap);margin:0 auto;padding:0 16px}

/* Header */
.site-header{background:var(--c-surface);border-bottom:2px solid var(--c-primary);position:sticky;top:0;z-index:100}
.header-inner{display:flex;align-items:center;justify-content:space-between;min-height:64px;gap:16px}
.logo img{display:block;height:48px;width:auto}
.main-nav{display:flex;gap:4px;flex-wrap:wrap}
.main-nav a{padding:8px 14px;color:var(--c-text);font-weight:600;border-radius:var(--radius);font-size:15px}
.main-nav a:hover,.main-nav a.active{background:var(--c-primary);color:#fff}
.nav-toggle{display:none;background:var(--c-primary);color:#fff;border:0;font-size:22px;padding:6px 12px;border-radius:var(--radius);cursor:pointer}

/* Hero */
.hero{background:linear-gradient(135deg,#00a651 0%,#007a3d 55%,#0b5c8a 100%);color:#fff;padding:36px 0 28px;overflow:hidden}
.hero-inner{display:flex;align-items:center;justify-content:space-between;gap:24px}
.hero h1{font-size:32px;font-weight:800;letter-spacing:1px;margin-bottom:8px}
.hero p{opacity:.95;font-size:15px;max-width:520px}
.hero-badge{display:inline-block;background:rgba(255,255,255,.2);padding:4px 12px;border-radius:var(--radius);font-size:13px;margin-bottom:10px}

/* Sections */
.section{padding:28px 0}
.section-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:16px;gap:12px}
.section-head h2{font-size:22px;display:flex;align-items:center;gap:8px}
.section-head h2 img{width:28px;height:28px}
.section-head .more{font-size:14px;color:var(--c-muted)}

/* League tabs flat */
.league-tabs{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px}
.league-tabs a{display:flex;align-items:center;gap:6px;background:var(--c-surface);border:1px solid var(--c-line);padding:8px 14px;border-radius:var(--radius);color:var(--c-text);font-weight:600;font-size:14px}
.league-tabs a:hover,.league-tabs a.active{border-color:var(--c-primary);background:var(--c-primary);color:#fff}
.league-tabs a img{width:22px;height:22px;border-radius:50%}

/* Match list - flat rows */
.match-list{background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--radius);overflow:hidden}
.match-row{display:grid;grid-template-columns:160px 110px 1fr 140px;gap:10px;align-items:center;padding:14px 16px;border-bottom:1px solid var(--c-line)}
.match-row:last-child{border-bottom:0}
.match-row:hover{background:#f0faf4}
.match-time{font-size:13px;color:var(--c-muted);font-weight:600}
.match-league{display:flex;align-items:center;gap:6px;font-size:13px;color:var(--c-muted)}
.match-league img{border-radius:50%}
.match-teams{display:flex;align-items:center;justify-content:center;gap:12px;flex-wrap:wrap}
.team{display:inline-flex;align-items:center;gap:6px;font-weight:700;min-width:90px}
.team.away{justify-content:flex-start}
.team.home{justify-content:flex-end}
.team img{border-radius:50%;background:#f3f3f3}
.vs,.score{font-weight:800;color:var(--c-primary);min-width:48px;text-align:center}
.match-action{display:flex;align-items:center;justify-content:flex-end;gap:8px}
.status{font-size:12px;padding:2px 8px;border-radius:var(--radius);background:#eee;color:var(--c-muted)}
.st-live{background:#ffebee;color:var(--c-live);font-weight:700}
.st-upcoming{background:#e8f5e9;color:var(--c-primary)}
.st-finished,.st-replay{background:#eceff1;color:#546e7a}
.btn-watch{background:var(--c-primary);color:#fff!important;padding:6px 14px;border-radius:var(--radius);font-size:13px;font-weight:700}
.btn-watch:hover{background:var(--c-primary-dark);color:#fff!important}
.btn-line{display:inline-block;background:var(--c-accent);color:#fff!important;padding:10px 18px;border-radius:var(--radius);font-weight:700;margin:4px}

/* Panels */
.panel{background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--radius);padding:20px}
.grid-2{display:grid;grid-template-columns:1.4fr 1fr;gap:20px}
.news-list{list-style:none}
.news-list li{border-bottom:1px solid var(--c-line);padding:12px 0}
.news-list li:last-child{border-bottom:0}
.news-list a{color:var(--c-text);font-weight:600}
.news-list a:hover{color:var(--c-primary)}
.news-meta{font-size:12px;color:var(--c-muted);margin-top:4px}

/* FAQ / About */
.faq-item{border-bottom:1px solid var(--c-line);padding:14px 0}
.faq-item h3{font-size:16px;margin-bottom:6px;color:var(--c-primary-dark)}
.faq-item p{color:var(--c-muted);font-size:14px}
.about-box h2{margin-bottom:12px}
.about-box h3{margin:16px 0 8px;font-size:16px}
.about-box p,.about-box li{font-size:14px;color:var(--c-muted);margin-bottom:6px}
.about-box ul{padding-left:18px}

/* Article */
.article{background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--radius);padding:28px}
.article h1{font-size:26px;margin-bottom:12px;line-height:1.4}
.article-meta{font-size:13px;color:var(--c-muted);margin-bottom:18px;display:flex;flex-wrap:wrap;gap:10px}
.article-body{font-size:16px;line-height:1.85}
.article-body p{margin-bottom:14px}
.article-nav{display:flex;justify-content:space-between;gap:12px;margin-top:28px;padding-top:16px;border-top:1px solid var(--c-line);font-size:14px}
.article-nav a{color:var(--c-text)}
.article-nav a:hover{color:var(--c-primary)}

/* Match detail */
.match-hero{background:var(--c-surface);border:1px solid var(--c-line);border-radius:var(--radius);padding:28px;text-align:center}
.match-hero .vs-line{display:flex;align-items:center;justify-content:center;gap:24px;flex-wrap:wrap;margin:16px 0}
.match-hero .team-big{display:flex;flex-direction:column;align-items:center;gap:8px;font-weight:800;font-size:18px}
.match-hero .team-big img{width:72px;height:72px;border-radius:50%}
.match-hero .big-score{font-size:36px;font-weight:900;color:var(--c-primary)}
.signals{margin-top:20px}

/* Footer */
.site-footer{background:#1e2a24;color:#c8d5cc;padding:28px 0;margin-top:40px;font-size:13px}
.site-footer a{color:#c8d5cc}
.site-footer a:hover{color:#fff}
.friend-links{display:flex;flex-wrap:wrap;gap:12px;align-items:center;margin-bottom:12px}
.copyright{margin-bottom:6px}
.footer-note{opacity:.75}

.page-title{padding:20px 0 0;font-size:24px}
.empty{padding:40px;text-align:center;color:var(--c-muted)}
.breadcrumb{font-size:13px;color:var(--c-muted);padding:14px 0 0}
.breadcrumb a{color:var(--c-muted)}

@media (max-width:900px){
  .match-row{grid-template-columns:1fr;gap:8px}
  .match-action{justify-content:flex-start}
  .grid-2{grid-template-columns:1fr}
  .team.home,.team.away{justify-content:flex-start;min-width:0}
  .hero h1{font-size:24px}
}
@media (max-width:720px){
  .nav-toggle{display:block}
  .main-nav{display:none;position:absolute;left:0;right:0;top:64px;background:#fff;flex-direction:column;padding:10px;border-bottom:1px solid var(--c-line);box-shadow:0 8px 16px rgba(0,0,0,.06)}
  .main-nav.open{display:flex}
  .header-inner{position:relative}
  .league-tabs a{padding:6px 10px;font-size:13px}
}
