/* ============================================================
   365体育 hcryfgt.cn — 黄白主题
   ============================================================ */

:root {
  --yellow:      #f59e0b;
  --yellow-d:    #d97706;
  --yellow-dd:   #b45309;
  --yellow-light:#fbbf24;
  --yellow-pale: #fef3c7;
  --yellow-ghost:#fffbeb;
  --dark:        #1c1917;
  --dark2:       #44403c;
  --dark3:       #78716c;
  --white:       #ffffff;
  --border:      #fde68a;
  --border2:     #e7e5e4;
  --red:         #dc2626;
  --green:       #16a34a;
  --blue:        #1d4ed8;
  --shadow:      0 2px 12px rgba(245,158,11,.15);
  --shadow-lg:   0 6px 32px rgba(245,158,11,.22);
  --radius:      10px;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--white);
  color: var(--dark);
  line-height: 1.6;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }

.container { max-width: 1100px; margin: 0 auto; padding: 0 1.25rem; }

/* ── Navbar ── */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: var(--dark);
  border-bottom: 3px solid var(--yellow);
  transition: box-shadow .2s;
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 58px;
}
.nav-logo img { display: block; }
.nav-links { display: flex; align-items: center; gap: .25rem; }
.nav-links a {
  padding: .4rem .85rem; border-radius: 6px; font-size: 14px; font-weight: 600;
  color: rgba(255,255,255,.82); transition: background .15s, color .15s;
}
.nav-links a:hover, .nav-links a.active { background: var(--yellow); color: var(--dark); }
.nav-cta {
  background: var(--yellow) !important; color: var(--dark) !important;
  border-radius: 6px; font-weight: 700 !important;
}
.nav-toggle { display: none; background: none; border: none; color: #fff; font-size: 22px; cursor: pointer; padding: .25rem .5rem; }
@media(max-width:768px) {
  .nav-toggle { display: block; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: 58px; left: 0; right: 0; background: var(--dark); padding: 1rem; gap: .5rem; border-bottom: 2px solid var(--yellow); }
  .nav-links.open { display: flex; }
  .hide-sm { display: none; }
}

/* ── Ticker ── */
.ticker-wrap {
  background: var(--yellow); overflow: hidden;
  display: flex; align-items: center; height: 34px; border-bottom: 1px solid var(--yellow-d);
}
.ticker-badge {
  background: var(--dark); color: var(--yellow); font-size: 11px; font-weight: 700;
  padding: 0 12px; white-space: nowrap; height: 100%; display: flex; align-items: center; flex-shrink: 0;
}
.ticker-track { flex: 1; overflow: hidden; position: relative; }
.ticker-inner {
  display: flex; white-space: nowrap;
  animation: ticker 38s linear infinite;
}
.ticker-item { padding: 0 2rem; font-size: 13px; font-weight: 600; color: var(--dark); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, var(--dark) 0%, #292524 50%, #3d2c00 100%);
  padding: 3.5rem 0 3rem; position: relative; overflow: hidden;
}
.hero::before {
  content: '365'; position: absolute; right: -2rem; top: -1rem;
  font-size: 16rem; font-weight: 900; color: rgba(245,158,11,.06);
  line-height: 1; pointer-events: none; user-select: none;
}
.hero-inner { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .5rem;
  background: var(--yellow); color: var(--dark); font-size: 12px; font-weight: 700;
  padding: .25rem .85rem; border-radius: 20px; margin-bottom: 1rem;
}
.hero-text h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 900; color: #fff; line-height: 1.2; margin-bottom: .75rem; }
.hero-text h1 span { color: var(--yellow); }
.hero-desc { color: rgba(255,255,255,.72); font-size: 15px; margin-bottom: 1.5rem; max-width: 540px; }
.hero-btns { display: flex; gap: .75rem; flex-wrap: wrap; margin-bottom: 2rem; }
.btn-primary {
  background: var(--yellow); color: var(--dark); font-weight: 700; font-size: 15px;
  padding: .7rem 1.6rem; border-radius: 8px; transition: background .15s, transform .1s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-primary:hover { background: var(--yellow-light); transform: translateY(-1px); }
.btn-outline {
  border: 2px solid rgba(255,255,255,.35); color: #fff; font-weight: 600; font-size: 15px;
  padding: .68rem 1.4rem; border-radius: 8px; transition: border-color .15s, background .15s;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-outline:hover { border-color: var(--yellow); background: rgba(245,158,11,.1); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; }
.hero-stat-val { font-size: 1.7rem; font-weight: 900; color: var(--yellow); }
.hero-stat-label { font-size: 12px; color: rgba(255,255,255,.55); }
.hero-badge {
  background: linear-gradient(145deg, var(--yellow), var(--yellow-d));
  border-radius: 16px; padding: 1.5rem 2rem; text-align: center;
  box-shadow: 0 8px 32px rgba(245,158,11,.45); min-width: 140px;
}
.hero-badge-icon { font-size: 2.5rem; margin-bottom: .5rem; }
.hero-badge-title { font-size: 1.1rem; font-weight: 900; color: var(--dark); }
.hero-badge-sub { font-size: 12px; color: var(--dark2); margin-top: .25rem; }
@media(max-width:640px) { .hero-inner { grid-template-columns: 1fr; } .hero-badge { display: none; } }

/* ── Section ── */
.section { padding: 3.5rem 0; }
.section-alt { background: var(--yellow-ghost); }
.section-title {
  font-size: 1.35rem; font-weight: 800; margin-bottom: 1.5rem;
  display: flex; align-items: center; gap: .75rem;
}
.section-meta { font-size: 13px; font-weight: 400; color: var(--dark3); }

/* ── Picks Tabs ── */
.pick-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; flex-wrap: wrap; }
.pick-tab {
  padding: .45rem 1.1rem; border-radius: 20px; font-size: 13px; font-weight: 600;
  border: 2px solid var(--border); background: var(--white); color: var(--dark3); cursor: pointer; transition: all .15s;
}
.pick-tab.active { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }

/* ── Picks Grid ── */
.picks-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 1rem; }
.pick-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; transition: box-shadow .15s, border-color .15s;
}
.pick-card:hover { box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.pick-card.vip-card { border-color: var(--yellow); background: var(--yellow-ghost); }
.pick-league { display: flex; justify-content: space-between; align-items: center; margin-bottom: .75rem; font-size: 13px; font-weight: 600; }
.pick-badge { font-size: 11px; font-weight: 700; padding: .15rem .55rem; border-radius: 10px; }
.pick-badge.free { background: #dcfce7; color: #15803d; }
.pick-badge.vip { background: var(--yellow); color: var(--dark); }
.pick-teams { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .6rem; }
.pick-team { font-size: 15px; font-weight: 800; flex: 1; }
.pick-team:last-child { text-align: right; }
.pick-vs { font-size: 12px; color: var(--dark3); font-weight: 600; padding: 0 .25rem; }
.pick-time { font-size: 12px; color: var(--dark3); margin-bottom: .75rem; }
.pick-rec-row { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; flex-wrap: wrap; }
.pick-rec-label { font-size: 11px; color: var(--dark3); }
.pick-rec-val { font-size: 14px; font-weight: 800; color: var(--yellow-dd); background: var(--yellow-pale); padding: .15rem .6rem; border-radius: 6px; }
.pick-conf { font-size: 12px; color: var(--yellow-d); }
.pick-note { font-size: 13px; color: var(--dark2); line-height: 1.5; border-top: 1px solid var(--border); padding-top: .6rem; margin-top: .4rem; }
.hot-banner {
  background: linear-gradient(135deg, var(--dark) 0%, #3d2c00 100%);
  border-radius: var(--radius); padding: 1.25rem 1.5rem; display: flex;
  justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1.25rem; flex-wrap: wrap;
}
.hot-banner h3 { color: var(--yellow); font-size: 1rem; font-weight: 800; margin-bottom: .3rem; }
.hot-banner p { color: rgba(255,255,255,.72); font-size: 13px; }
.hot-banner a {
  background: var(--yellow); color: var(--dark); font-weight: 700; font-size: 13px;
  padding: .55rem 1.2rem; border-radius: 8px; white-space: nowrap; flex-shrink: 0;
}

/* ── News ── */
.news-layout { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
@media(max-width:640px) { .news-layout { grid-template-columns: 1fr; } }
.news-featured {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  overflow: hidden;
}
.news-featured-body { padding: 1.5rem; }
.news-tag {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--yellow); color: var(--dark); font-size: 11px; font-weight: 700;
  padding: .2rem .6rem; border-radius: 10px; margin-bottom: .75rem;
}
.news-featured-title { font-size: 1.1rem; font-weight: 800; color: var(--dark); margin-bottom: .6rem; line-height: 1.4; }
.news-featured-desc { font-size: 13px; color: var(--dark2); line-height: 1.6; margin-bottom: .75rem; }
.news-featured-meta { font-size: 12px; color: var(--dark3); }
.news-list { display: flex; flex-direction: column; gap: .75rem; }
.news-item { background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); padding: 1rem 1.25rem; display: flex; gap: .75rem; align-items: flex-start; transition: border-color .15s; }
.news-item:hover { border-color: var(--yellow); }
.news-item-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--yellow); margin-top: 5px; flex-shrink: 0; }
.news-item-title { font-size: 14px; font-weight: 700; margin-bottom: .25rem; }
.news-item-meta { font-size: 12px; color: var(--dark3); }

/* ── Match Table ── */
.match-tabs { display: flex; gap: .5rem; margin-bottom: 1.25rem; border-bottom: 2px solid var(--border); padding-bottom: .75rem; }
.match-tab {
  padding: .45rem 1.2rem; border-radius: 6px 6px 0 0; font-size: 13px; font-weight: 700;
  border: 2px solid transparent; background: transparent; color: var(--dark3); cursor: pointer; transition: all .15s;
}
.match-tab.active { background: var(--yellow); border-color: var(--yellow); color: var(--dark); }
.table-wrap { overflow-x: auto; }
.match-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.match-table th { background: var(--dark); color: var(--yellow); font-weight: 700; padding: .75rem 1rem; text-align: left; font-size: 12px; }
.match-table td { padding: .7rem 1rem; border-bottom: 1px solid var(--border2); }
.match-table tr:hover td { background: var(--yellow-ghost); }
.score-cell { font-size: 1.1rem; font-weight: 900; color: var(--dark); text-align: center; }
.score-upcoming { color: var(--dark3); font-weight: 600; text-align: center; }
.win-badge { font-size: 12px; font-weight: 700; padding: .2rem .55rem; border-radius: 8px; }
.win-badge.w { background: #dcfce7; color: #15803d; }
.win-badge.l { background: #fee2e2; color: #dc2626; }

/* ── 世界杯观看 ── */
.watch-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 1rem; }
.watch-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  padding: 1.25rem; display: flex; flex-direction: column; gap: .6rem;
  transition: box-shadow .15s, border-color .15s;
}
.watch-card:hover { box-shadow: var(--shadow-lg); border-color: var(--yellow); }
.watch-card-hot { border-color: var(--yellow); background: var(--yellow-ghost); }
.watch-badge {
  display: inline-flex; align-items: center; gap: .3rem;
  font-size: 11px; font-weight: 700; padding: .2rem .6rem; border-radius: 10px;
}
.watch-badge.live { background: #fee2e2; color: var(--red); }
.watch-badge.soon { background: var(--yellow-pale); color: var(--yellow-dd); }
.watch-badge.replay { background: #f1f5f9; color: #64748b; }
.watch-teams { font-size: 1.05rem; font-weight: 800; }
.watch-meta { font-size: 12px; color: var(--dark3); }
.watch-btn {
  display: inline-flex; align-items: center; gap: .35rem; justify-content: center;
  background: var(--yellow); color: var(--dark); font-weight: 700; font-size: 13px;
  padding: .5rem 1rem; border-radius: 8px; margin-top: .25rem; transition: background .15s;
}
.watch-btn:hover { background: var(--yellow-light); }
.watch-btn.replay-btn { background: var(--dark); color: var(--yellow); }

/* ── 跟单专题聊天 ── */
.chat-wrap { display: grid; grid-template-columns: 1fr 340px; gap: 1.5rem; }
@media(max-width:768px) { .chat-wrap { grid-template-columns: 1fr; } }
.chat-panel {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); overflow: hidden;
}
.chat-header {
  background: var(--dark); padding: .85rem 1.25rem; display: flex; align-items: center; justify-content: space-between;
}
.chat-header-title { color: var(--yellow); font-weight: 800; font-size: 15px; display: flex; align-items: center; gap: .5rem; }
.chat-online { font-size: 12px; color: rgba(255,255,255,.55); }
.chat-body { padding: 1rem; display: flex; flex-direction: column; gap: .85rem; max-height: 520px; overflow-y: auto; }
.chat-msg { display: flex; gap: .75rem; align-items: flex-start; }
.chat-avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--yellow);
  display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0;
}
.chat-bubble-wrap { flex: 1; }
.chat-name { font-size: 12px; font-weight: 700; color: var(--dark3); margin-bottom: .25rem; display: flex; gap: .4rem; align-items: center; }
.chat-lv { font-size: 10px; background: var(--yellow); color: var(--dark); padding: .05rem .35rem; border-radius: 4px; font-weight: 700; }
.chat-bubble {
  background: var(--yellow-ghost); border: 1px solid var(--border); border-radius: 0 10px 10px 10px;
  padding: .65rem .9rem; font-size: 13.5px; color: var(--dark); line-height: 1.55;
}
.chat-bubble.pick-bubble { background: var(--yellow-pale); border-color: var(--yellow); }
.chat-pick-tag { display: inline-block; background: var(--yellow); color: var(--dark); font-size: 11px; font-weight: 700; padding: .1rem .5rem; border-radius: 4px; margin-bottom: .35rem; }
.chat-time { font-size: 11px; color: var(--dark3); margin-top: .3rem; }
.chat-input-bar {
  border-top: 2px solid var(--border); padding: .85rem 1.25rem;
  display: flex; gap: .75rem; align-items: center;
}
.chat-input {
  flex: 1; border: 2px solid var(--border); border-radius: 8px; padding: .55rem .9rem;
  font-size: 13px; outline: none; background: var(--yellow-ghost);
}
.chat-input:focus { border-color: var(--yellow); }
.chat-send {
  background: var(--yellow); color: var(--dark); font-weight: 700; font-size: 13px;
  border: none; padding: .55rem 1.1rem; border-radius: 8px; cursor: pointer; transition: background .15s;
}
.chat-send:hover { background: var(--yellow-light); }
.chat-sidebar { display: flex; flex-direction: column; gap: 1rem; }
.expert-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius); padding: 1.25rem;
}
.expert-card-title { font-size: 14px; font-weight: 800; margin-bottom: 1rem; display: flex; align-items: center; gap: .4rem; }
.expert-list { display: flex; flex-direction: column; gap: .75rem; }
.expert-item { display: flex; align-items: center; gap: .75rem; }
.expert-avatar {
  width: 38px; height: 38px; border-radius: 50%; background: var(--yellow);
  display: flex; align-items: center; justify-content: center; font-size: 18px; flex-shrink: 0;
}
.expert-name { font-size: 13px; font-weight: 700; }
.expert-rate { font-size: 12px; color: var(--yellow-dd); font-weight: 600; }
.expert-follow {
  margin-left: auto; background: var(--dark); color: var(--yellow); font-size: 11px; font-weight: 700;
  padding: .25rem .65rem; border-radius: 6px; cursor: pointer; white-space: nowrap;
}
.stats-card {
  background: var(--dark); border-radius: var(--radius); padding: 1.25rem;
}
.stats-card-title { color: var(--yellow); font-size: 14px; font-weight: 800; margin-bottom: 1rem; }
.stats-row { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid rgba(255,255,255,.08); }
.stats-row:last-child { border-bottom: none; }
.stats-label { font-size: 13px; color: rgba(255,255,255,.65); }
.stats-val { font-size: 14px; font-weight: 800; color: var(--yellow); }

/* ── Guide Grid ── */
.guide-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .75rem; }
.guide-card {
  background: var(--white); border: 2px solid var(--border); border-radius: var(--radius);
  padding: .85rem 1rem; font-size: 14px; font-weight: 600; text-align: center;
  transition: border-color .15s, background .15s, transform .1s;
}
.guide-card:hover { border-color: var(--yellow); background: var(--yellow-ghost); transform: translateY(-2px); }

/* ── Footer ── */
footer { background: var(--dark); padding: 3rem 0 1.5rem; color: rgba(255,255,255,.72); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
@media(max-width:768px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media(max-width:480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-brand { font-size: 1.1rem; font-weight: 900; color: var(--yellow); margin-bottom: .75rem; }
.footer-desc { font-size: 13px; line-height: 1.7; color: rgba(255,255,255,.55); margin-bottom: .5rem; }
.footer-kw { font-size: 11px; color: rgba(255,255,255,.3); }
.footer-col h4 { color: var(--yellow); font-size: 13px; font-weight: 700; margin-bottom: .85rem; }
.footer-col a { display: block; font-size: 13px; color: rgba(255,255,255,.55); padding: .25rem 0; transition: color .15s; }
.footer-col a:hover { color: var(--yellow); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.1); padding-top: 1.25rem;
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: 12px; color: rgba(255,255,255,.35);
}
