/* ============================================
   皇冠体育 - 游戏解说与视频社区 主样式表
   域名: enxbywg.cn
   ============================================ */

/* === 基础重置与变量 === */
:root {
  --primary: #1a56db;
  --primary-dark: #1340a8;
  --accent: #e85d04;
  --accent-light: #ff8c38;
  --bg-dark: #0b1120;
  --bg-card: #111827;
  --bg-section: #0f172a;
  --text-main: #e2e8f0;
  --text-muted: #94a3b8;
  --text-heading: #f8fafc;
  --border-color: #1e293b;
  --gradient-primary: linear-gradient(135deg, #1a56db 0%, #7c3aed 100%);
  --gradient-accent: linear-gradient(135deg, #e85d04 0%, #dc2626 100%);
  --shadow-card: 0 4px 24px rgba(0,0,0,0.3);
  --shadow-hover: 0 8px 40px rgba(26,86,219,0.25);
  --radius: 12px;
  --radius-sm: 8px;
  --transition: all 0.3s ease;
  --max-width: 1280px;
}

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

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }

img { max-width: 100%; height: auto; display: block; }

.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* === 顶部导航 === */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(11,17,32,0.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: var(--transition);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 20px;
  height: 68px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-heading);
}

.site-logo img {
  height: 40px;
  width: auto;
}

.site-logo span { color: var(--accent); }

.main-nav { display: flex; align-items: center; gap: 6px; }

.main-nav a {
  color: var(--text-main);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  font-weight: 500;
  transition: var(--transition);
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: var(--primary);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* === 搜索框 === */
.search-bar {
  background: var(--bg-section);
  padding: 14px 0;
  border-bottom: 1px solid var(--border-color);
  margin-top: 68px;
}

.search-bar .container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.search-bar .breadcrumb {
  font-size: 0.85rem;
  color: var(--text-muted);
  white-space: nowrap;
}

.search-bar .breadcrumb a { color: var(--text-muted); }
.search-bar .breadcrumb a:hover { color: var(--accent); }

.search-input-wrap {
  flex: 1;
  max-width: 520px;
  margin-left: auto;
  position: relative;
}

.search-input-wrap input {
  width: 100%;
  padding: 10px 44px 10px 16px;
  border: 1px solid var(--border-color);
  border-radius: 24px;
  background: var(--bg-card);
  color: var(--text-main);
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.search-input-wrap input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(26,86,219,0.2);
}

.search-input-wrap button {
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  background: var(--gradient-primary);
  border: none;
  color: #fff;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === Banner区域 === */
.hero-banner {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--bg-dark);
}

.hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
}

.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,17,32,0.3) 0%, rgba(11,17,32,0.85) 100%);
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 60px 20px;
  max-width: 800px;
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  color: #fff;
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}

.hero-content p {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.85);
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}

.btn-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(26,86,219,0.4);
  color: #fff;
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.4);
}

.btn-outline:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}

/* === 通用区块 === */
.section {
  padding: 70px 0;
}

.section-alt {
  background: var(--bg-section);
}

.section-title {
  text-align: center;
  margin-bottom: 48px;
}

.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.section-title h2 em {
  font-style: normal;
  color: var(--accent);
}

.section-title p {
  color: var(--text-muted);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0 auto;
}

/* === 视频卡片 === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.video-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-color);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
  border-color: var(--primary);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.video-card:hover .video-thumb img {
  transform: scale(1.05);
}

.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.4);
  opacity: 0;
  transition: var(--transition);
}

.video-card:hover .video-play-btn {
  opacity: 1;
}

.video-play-btn span {
  width: 60px;
  height: 60px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: #fff;
  box-shadow: 0 4px 20px rgba(232,93,4,0.5);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: 600;
}

.video-info {
  padding: 16px;
}

.video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.video-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.video-meta span { display: flex; align-items: center; gap: 4px; }

.video-tags {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  flex-wrap: wrap;
}

.video-tags span {
  background: rgba(26,86,219,0.15);
  color: var(--primary);
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
}

/* === 模块卡片网格 === */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.module-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  transition: var(--transition);
}

.module-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-hover);
}

.module-card .icon {
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 16px;
}

.module-card .icon-blue { background: rgba(26,86,219,0.15); color: var(--primary); }
.module-card .icon-orange { background: rgba(232,93,4,0.15); color: var(--accent); }
.module-card .icon-purple { background: rgba(124,58,237,0.15); color: #7c3aed; }
.module-card .icon-green { background: rgba(16,185,129,0.15); color: #10b981; }

.module-card h3 {
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.module-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === 专家展示 === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 28px;
}

.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
  transition: var(--transition);
}

.expert-card:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-hover);
}

.expert-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--primary);
}

.expert-card h3 {
  font-size: 1.1rem;
  color: var(--text-heading);
  margin-bottom: 4px;
}

.expert-card .role {
  color: var(--accent);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 12px;
}

.expert-card p {
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}

.expert-card .awards {
  display: flex;
  gap: 6px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.expert-card .awards span {
  background: rgba(232,93,4,0.12);
  color: var(--accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.78rem;
}

.expert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

.expert-btns a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 500;
}

.expert-btns .btn-sm-primary {
  background: var(--gradient-primary);
  color: #fff;
}

.expert-btns .btn-sm-outline {
  border: 1px solid var(--border-color);
  color: var(--text-muted);
}

.expert-btns .btn-sm-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === FAQ === */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

.faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--text-heading);
  font-size: 1rem;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: var(--transition);
}

.faq-question:hover { color: var(--accent); }

.faq-question .arrow {
  font-size: 0.8rem;
  transition: transform 0.3s;
}

.faq-item.active .faq-question .arrow {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === 用户评论 === */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}

.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 24px;
  transition: var(--transition);
}

.review-card:hover {
  border-color: var(--primary);
}

.review-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--gradient-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
}

.review-name {
  font-weight: 600;
  color: var(--text-heading);
  font-size: 0.95rem;
}

.review-date {
  font-size: 0.8rem;
  color: var(--text-muted);
}

.review-stars {
  color: #fbbf24;
  font-size: 0.9rem;
  margin-bottom: 10px;
}

.review-text {
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.7;
}

/* === 联系我们 === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.contact-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  text-align: center;
}

.contact-card h3 {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.contact-card p {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.contact-card img {
  width: 140px;
  height: 140px;
  margin: 12px auto 0;
  border-radius: var(--radius-sm);
}

/* === 社交分享 === */
.share-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.share-bar span {
  color: var(--text-muted);
  font-size: 0.9rem;
}

.share-btn {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}

.share-btn:hover { transform: scale(1.1); }
.share-btn.wechat { background: #07c160; }
.share-btn.weibo { background: #e6162d; }
.share-btn.douyin { background: #161823; border: 1px solid #333; }
.share-btn.bilibili { background: #fb7299; }

/* === 页脚 === */
.site-footer {
  background: var(--bg-section);
  border-top: 1px solid var(--border-color);
  padding: 50px 0 0;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand img {
  height: 36px;
  margin-bottom: 14px;
}

.footer-brand p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-col h4 {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 16px;
  font-weight: 600;
}

.footer-col a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 4px 0;
}

.footer-col a:hover { color: var(--accent); }

.footer-qr {
  display: flex;
  gap: 20px;
}

.footer-qr .qr-item {
  text-align: center;
}

.footer-qr .qr-item img {
  width: 100px;
  height: 100px;
  border-radius: var(--radius-sm);
  margin-bottom: 6px;
}

.footer-qr .qr-item span {
  font-size: 0.78rem;
  color: var(--text-muted);
}

.footer-bottom {
  border-top: 1px solid var(--border-color);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-muted);
}

.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* === How-To指南 === */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.howto-step {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 28px;
  position: relative;
  counter-increment: step;
}

.howto-step::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: var(--gradient-accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}

.howto-step h3 {
  font-size: 1.05rem;
  color: var(--text-heading);
  margin-bottom: 8px;
  margin-top: 4px;
}

.howto-step p {
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.6;
}

/* === 合作品牌墙 === */
.brand-wall {
  display: flex;
  gap: 32px;
  justify-content: center;
  flex-wrap: wrap;
  align-items: center;
}

.brand-wall .brand-item {
  width: 120px;
  height: 60px;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  transition: var(--transition);
}

.brand-wall .brand-item:hover {
  border-color: var(--primary);
  color: var(--primary);
}

/* === 内页通用 === */
.page-hero {
  padding: 100px 0 50px;
  background: var(--bg-section);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  color: var(--text-heading);
  margin-bottom: 12px;
}

.page-hero p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.page-content {
  padding: 50px 0;
}

.page-content h2 {
  font-size: 1.6rem;
  color: var(--text-heading);
  margin-bottom: 16px;
  margin-top: 32px;
}

.page-content h3 {
  font-size: 1.2rem;
  color: var(--text-heading);
  margin-bottom: 12px;
  margin-top: 24px;
}

.page-content p {
  margin-bottom: 16px;
  color: var(--text-main);
  line-height: 1.8;
}

/* === 侧边栏 === */
.page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 40px;
}

.sidebar-widget {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-bottom: 20px;
}

.sidebar-widget h4 {
  font-size: 1rem;
  color: var(--text-heading);
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border-color);
}

.sidebar-widget a {
  display: block;
  color: var(--text-muted);
  font-size: 0.88rem;
  padding: 6px 0;
}

.sidebar-widget a:hover { color: var(--accent); }

/* === SVC服务前端 === */
.jdtva {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
  margin-top: 20px;
}

.jdtva h4 {
  font-size: 0.95rem;
  color: var(--text-heading);
  margin-bottom: 10px;
}

.jdtva .u2q27coz {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.85rem;
  color: #10b981;
  margin-bottom: 8px;
}

.jdtva .u2q27coz::before {
  content: '';
  width: 8px;
  height: 8px;
  background: #10b981;
  border-radius: 50%;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.jdtva .5lzvo184 {
  font-size: 0.82rem;
  color: var(--text-muted);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .page-layout { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  .main-nav {
    display: none;
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    background: var(--bg-dark);
    flex-direction: column;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    gap: 4px;
  }

  .main-nav.open { display: flex; }

  .nav-toggle { display: block; }

  .hero-content h1 { font-size: 1.8rem; }
  .hero-banner { min-height: 400px; }

  .section { padding: 40px 0; }
  .section-title h2 { font-size: 1.5rem; }

  .video-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr; }

  .footer-grid { grid-template-columns: 1fr; gap: 24px; }

  .search-bar .breadcrumb { display: none; }
  .search-input-wrap { max-width: 100%; }

  .hero-btns { flex-direction: column; align-items: center; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.5rem; }
  .section-title h2 { font-size: 1.3rem; }
  .container { padding: 0 15px; }
}

/* === 懒加载 === */
img[data-src] {
  opacity: 0;
  transition: opacity 0.5s;
}

img[data-src].loaded {
  opacity: 1;
}

/* === 回到顶部 === */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 44px;
  height: 44px;
  background: var(--gradient-primary);
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--transition);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 16px rgba(26,86,219,0.4);
}
