/* =============================================
   每日大赛 - 主样式文件
   Brand: 每日大赛 | Domain: gvhoccc.cn
   ============================================= */

/* CSS Reset & Base */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Noto Sans CJK SC", sans-serif;
  background: #0d0d14;
  color: #e8e8f0;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #e8a020; text-decoration: none; transition: color .25s; }
a:hover { color: #f5c842; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* =============================================
   CSS Variables
   ============================================= */
:root {
  --brand-red: #c0392b;
  --brand-gold: #e8a020;
  --brand-gold-light: #f5c842;
  --brand-dark: #0d0d14;
  --brand-dark2: #14141f;
  --brand-dark3: #1a1a2e;
  --brand-card: #1e1e30;
  --brand-border: #2a2a40;
  --brand-text: #e8e8f0;
  --brand-muted: #8888aa;
  --gradient-main: linear-gradient(135deg, #c0392b 0%, #e8a020 100%);
  --gradient-dark: linear-gradient(180deg, #0d0d14 0%, #14141f 100%);
  --shadow-card: 0 4px 24px rgba(0,0,0,.45);
  --radius: 10px;
  --radius-sm: 6px;
}

/* =============================================
   Layout
   ============================================= */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 70px 0; }
.section-title {
  font-size: 2rem;
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-subtitle {
  text-align: center;
  color: var(--brand-muted);
  font-size: 1rem;
  margin-bottom: 48px;
}
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }

/* =============================================
   Header & Navigation
   ============================================= */
#site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(13,13,20,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--brand-border);
  transition: box-shadow .3s;
}
#site-header.scrolled { box-shadow: 0 2px 20px rgba(0,0,0,.6); }

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

/* Logo */
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo img {
  height: 44px;
  width: auto;
  object-fit: contain;
}
.logo-text {
  font-size: 1.35rem;
  font-weight: 800;
  background: var(--gradient-main);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* Nav */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #cccce0;
  font-size: .92rem;
  padding: 6px 14px;
  border-radius: var(--radius-sm);
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(232,160,32,.12);
  color: var(--brand-gold);
}

/* Search Bar */
.header-search {
  display: flex;
  align-items: center;
  background: var(--brand-dark3);
  border: 1px solid var(--brand-border);
  border-radius: 24px;
  overflow: hidden;
  flex: 0 1 260px;
}
.header-search input {
  background: transparent;
  border: none;
  outline: none;
  color: var(--brand-text);
  padding: 8px 14px;
  font-size: .88rem;
  width: 100%;
}
.header-search input::placeholder { color: var(--brand-muted); }
.header-search button {
  background: var(--gradient-main);
  border: none;
  color: #fff;
  padding: 8px 16px;
  cursor: pointer;
  font-size: .88rem;
  white-space: nowrap;
}

/* Search Dropdown */
.search-wrapper { position: relative; flex: 0 1 260px; }
.search-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  z-index: 200;
  padding: 8px 0;
  box-shadow: var(--shadow-card);
}
.search-dropdown.show { display: block; }
.search-dropdown li { padding: 8px 16px; font-size: .88rem; color: var(--brand-muted); cursor: pointer; }
.search-dropdown li:hover { background: rgba(232,160,32,.08); color: var(--brand-gold); }

/* Hamburger */
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 6px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--brand-text); border-radius: 2px; transition: .3s; }

/* =============================================
   Hero / Banner
   ============================================= */
.hero {
  position: relative;
  min-height: 560px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--brand-dark2);
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  opacity: .35;
  transition: opacity .5s;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,13,20,.9) 40%, rgba(13,13,20,.3) 100%);
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.hero-tag {
  display: inline-block;
  background: var(--gradient-main);
  color: #fff;
  font-size: .78rem;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 18px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: #fff;
}
.hero h1 span { background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero p {
  font-size: 1.05rem;
  color: #b0b0cc;
  margin-bottom: 28px;
  max-width: 500px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 28px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  border: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 20px rgba(0,0,0,.4); }
.btn-primary { background: var(--gradient-main); color: #fff; }
.btn-outline { background: transparent; border: 1.5px solid var(--brand-gold); color: var(--brand-gold); }
.btn-outline:hover { background: rgba(232,160,32,.1); }
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* =============================================
   Video Cards
   ============================================= */
.video-card {
  position: relative;
  background: var(--brand-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--brand-border);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-5px); box-shadow: 0 12px 36px rgba(0,0,0,.5); }
.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  background: #111;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.35);
  opacity: 0;
  transition: opacity .25s;
}
.video-card:hover .play-btn { opacity: 1; }
.play-icon {
  width: 56px;
  height: 56px;
  background: rgba(232,160,32,.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transform: scale(.85);
  transition: transform .25s;
}
.video-card:hover .play-icon { transform: scale(1); }
.play-icon::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--brand-red);
  color: #fff;
  font-size: .7rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: .72rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-info { padding: 14px; }
.video-title {
  font-size: .95rem;
  font-weight: 600;
  color: var(--brand-text);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: .78rem;
  color: var(--brand-muted);
}
.video-meta span { display: flex; align-items: center; gap: 4px; }

/* =============================================
   Section Cards (Feature / Module)
   ============================================= */
.feature-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 28px 24px;
  transition: border-color .25s, transform .25s;
}
.feature-card:hover { border-color: var(--brand-gold); transform: translateY(-4px); }
.feature-icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}
.feature-card h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: var(--brand-text); }
.feature-card p { font-size: .88rem; color: var(--brand-muted); line-height: 1.6; }

/* =============================================
   Expert Cards
   ============================================= */
.expert-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  overflow: hidden;
  text-align: center;
  transition: transform .25s;
}
.expert-card:hover { transform: translateY(-5px); }
.expert-avatar {
  width: 100%;
  padding-top: 100%;
  position: relative;
  overflow: hidden;
}
.expert-avatar img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.expert-info { padding: 18px 16px; }
.expert-name { font-size: 1.05rem; font-weight: 700; margin-bottom: 4px; }
.expert-title { font-size: .82rem; color: var(--brand-gold); margin-bottom: 10px; }
.expert-desc { font-size: .82rem; color: var(--brand-muted); margin-bottom: 14px; line-height: 1.5; }
.expert-btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.btn-sm {
  padding: 6px 14px;
  font-size: .78rem;
  border-radius: 20px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: .2s;
}
.btn-sm-primary { background: var(--gradient-main); color: #fff; }
.btn-sm-outline { background: transparent; border: 1px solid var(--brand-gold); color: var(--brand-gold); }
.btn-sm-outline:hover { background: rgba(232,160,32,.1); }

/* =============================================
   Review Cards
   ============================================= */
.review-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 22px 20px;
}
.review-stars { color: var(--brand-gold); font-size: 1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { font-size: .9rem; color: #c0c0d8; line-height: 1.65; margin-bottom: 14px; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .9rem;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-name { font-size: .88rem; font-weight: 600; }
.review-date { font-size: .75rem; color: var(--brand-muted); }

/* =============================================
   FAQ
   ============================================= */
.faq-item {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  margin-bottom: 10px;
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-size: .95rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  user-select: none;
  transition: background .2s;
}
.faq-question:hover { background: rgba(232,160,32,.06); }
.faq-question .faq-icon { font-size: 1.2rem; color: var(--brand-gold); transition: transform .3s; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .3s;
  padding: 0 20px;
  font-size: .88rem;
  color: var(--brand-muted);
  line-height: 1.7;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* =============================================
   Partners Logo Wall
   ============================================= */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.partner-logo {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius-sm);
  padding: 14px 24px;
  font-size: .9rem;
  font-weight: 700;
  color: var(--brand-muted);
  transition: border-color .2s, color .2s;
}
.partner-logo:hover { border-color: var(--brand-gold); color: var(--brand-gold); }

/* =============================================
   Contact Section
   ============================================= */
.contact-card {
  background: var(--brand-card);
  border: 1px solid var(--brand-border);
  border-radius: var(--radius);
  padding: 28px 24px;
}
.contact-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 16px; color: var(--brand-gold); }
.contact-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; font-size: .9rem; }
.contact-icon { font-size: 1.1rem; flex-shrink: 0; margin-top: 2px; }
.contact-label { color: var(--brand-muted); font-size: .8rem; }
.contact-value { color: var(--brand-text); }

/* =============================================
   How-To Steps
   ============================================= */
.step-list { counter-reset: step; }
.step-item {
  display: flex;
  gap: 18px;
  margin-bottom: 24px;
  align-items: flex-start;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--gradient-main);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: .95rem;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
}
.step-content h4 { font-size: .98rem; font-weight: 700; margin-bottom: 4px; }
.step-content p { font-size: .85rem; color: var(--brand-muted); }

/* =============================================
   Stats Bar
   ============================================= */
.stats-bar {
  background: var(--brand-dark3);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
  padding: 30px 0;
}
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; background: var(--gradient-main); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.stat-label { font-size: .82rem; color: var(--brand-muted); margin-top: 4px; }

/* =============================================
   Share Bar
   ============================================= */
.share-bar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: .2s;
}
.share-wechat { background: #07c160; color: #fff; }
.share-weibo { background: #e6162d; color: #fff; }
.share-douyin { background: #010101; color: #fff; border: 1px solid #333; }
.share-bilibili { background: #00a1d6; color: #fff; }

/* =============================================
   Footer
   ============================================= */
#site-footer {
  background: var(--brand-dark2);
  border-top: 1px solid var(--brand-border);
  padding: 50px 0 24px;
}
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 40px; }
.footer-brand p { font-size: .85rem; color: var(--brand-muted); margin-top: 12px; line-height: 1.7; }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: var(--brand-text); margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .85rem; color: var(--brand-muted); transition: color .2s; }
.footer-col ul li a:hover { color: var(--brand-gold); }
.footer-qrcodes { display: flex; gap: 20px; margin-top: 16px; }
.footer-qr { text-align: center; }
.footer-qr img { width: 90px; height: 90px; object-fit: cover; border-radius: var(--radius-sm); border: 1px solid var(--brand-border); }
.footer-qr span { display: block; font-size: .72rem; color: var(--brand-muted); margin-top: 6px; }
.footer-bottom {
  border-top: 1px solid var(--brand-border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: .82rem;
  color: var(--brand-muted);
}
.footer-bottom a { color: var(--brand-muted); }
.footer-bottom a:hover { color: var(--brand-gold); }

/* =============================================
   Breadcrumb
   ============================================= */
.breadcrumb {
  padding: 12px 0;
  font-size: .82rem;
  color: var(--brand-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.breadcrumb a { color: var(--brand-muted); }
.breadcrumb a:hover { color: var(--brand-gold); }
.breadcrumb .sep { color: var(--brand-border); }
.breadcrumb .current { color: var(--brand-gold); }

/* =============================================
   Inner Page Hero
   ============================================= */
.inner-hero {
  background: var(--brand-dark3);
  border-bottom: 1px solid var(--brand-border);
  padding: 40px 0 30px;
}
.inner-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 10px; }
.inner-hero p { font-size: .95rem; color: var(--brand-muted); max-width: 680px; line-height: 1.7; }

/* =============================================
   Tabs
   ============================================= */
.tab-bar { display: flex; gap: 4px; border-bottom: 1px solid var(--brand-border); margin-bottom: 28px; flex-wrap: wrap; }
.tab-btn {
  padding: 10px 20px;
  font-size: .9rem;
  font-weight: 600;
  color: var(--brand-muted);
  cursor: pointer;
  border: none;
  background: transparent;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: .2s;
}
.tab-btn.active, .tab-btn:hover { color: var(--brand-gold); border-bottom-color: var(--brand-gold); }

/* =============================================
   Pagination
   ============================================= */
.pagination { display: flex; gap: 6px; justify-content: center; margin-top: 36px; flex-wrap: wrap; }
.page-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: .88rem;
  cursor: pointer;
  border: 1px solid var(--brand-border);
  background: var(--brand-card);
  color: var(--brand-muted);
  transition: .2s;
}
.page-btn.active, .page-btn:hover { background: var(--gradient-main); color: #fff; border-color: transparent; }

/* =============================================
   Tag Badges
   ============================================= */
.tag { display: inline-block; background: rgba(232,160,32,.12); color: var(--brand-gold); border: 1px solid rgba(232,160,32,.25); border-radius: 4px; padding: 2px 8px; font-size: .75rem; margin: 2px; }

/* =============================================
   Notice Bar
   ============================================= */
.notice-bar {
  background: linear-gradient(90deg, var(--brand-red), #a93226);
  color: #fff;
  font-size: .82rem;
  padding: 8px 0;
  text-align: center;
  overflow: hidden;
}
.notice-bar .notice-inner { display: inline-block; white-space: nowrap; animation: marquee 30s linear infinite; }
@keyframes marquee { 0% { transform: translateX(100vw); } 100% { transform: translateX(-100%); } }

/* =============================================
   Scroll to Top
   ============================================= */
#scroll-top {
  position: fixed;
  bottom: 28px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-main);
  color: #fff;
  border: none;
  cursor: pointer;
  font-size: 1.2rem;
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 999;
  box-shadow: 0 4px 16px rgba(0,0,0,.4);
  transition: transform .2s;
}
#scroll-top:hover { transform: scale(1.1); }
#scroll-top.show { display: flex; }

/* =============================================
   Lazy Load
   ============================================= */
img[data-src] { opacity: 0; transition: opacity .4s; }
img.loaded { opacity: 1; }

/* =============================================
   Responsive
   ============================================= */
@media (max-width: 1024px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .section { padding: 48px 0; }
  .section-title { font-size: 1.55rem; }
  .hero h1 { font-size: 1.9rem; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(13,13,20,.98); padding: 16px 20px; border-bottom: 1px solid var(--brand-border); gap: 4px; }
  .main-nav.open { display: flex; }
  .hamburger { display: flex; }
  .header-search { display: none; }
  .header-inner { position: relative; }
  .hero { min-height: 420px; }
  .hero-btns .btn { padding: 10px 20px; font-size: .88rem; }
}
@media (max-width: 480px) {
  .hero h1 { font-size: 1.5rem; }
  .stat-num { font-size: 1.5rem; }
  .footer-qrcodes { flex-direction: column; align-items: center; }
}
