/* ============================================================
   糖心vlog - 原创游戏解说网站样式
   品牌色：电竞紫 #6200ea | 霓虹蓝 #00e5ff | 警告红 #ff1744
   ============================================================ */

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  background-color: #0b0c10;
  color: #e0e6ed;
  line-height: 1.6;
  overflow-x: hidden;
}
a { color: #00e5ff; text-decoration: none; transition: all 0.3s ease; }
a:hover { color: #6200ea; text-shadow: 0 0 8px rgba(0,229,255,0.5); }
img { max-width: 100%; height: auto; display: block; border-radius: 8px; }
ul { list-style: none; }

/* 容器与网格 */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 80px 0; }
.section-dark { background-color: #07080a; }
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(400px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

/* 标题样式 */
.section-title {
  font-size: 2.5rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  text-transform: uppercase;
  background: linear-gradient(90deg, #00e5ff, #6200ea);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  position: relative;
}
.section-subtitle {
  text-align: center;
  color: #8a9ba8;
  font-size: 1.1rem;
  margin-bottom: 48px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* 按钮样式 */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  font-size: 1rem;
  font-weight: bold;
  border-radius: 4px;
  cursor: pointer;
  text-transform: uppercase;
  letter-spacing: 1px;
  border: none;
  transition: all 0.3s ease;
}
.btn-primary {
  background: linear-gradient(45deg, #6200ea, #00e5ff);
  color: #fff;
  box-shadow: 0 4px 15px rgba(98, 0, 234, 0.4);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 229, 255, 0.6);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #00e5ff;
  border: 2px solid #00e5ff;
}
.btn-outline:hover {
  background: rgba(0, 229, 255, 0.1);
  box-shadow: 0 0 15px rgba(0, 229, 255, 0.3);
}

/* 头部导航 */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 12, 16, 0.95);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.05);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.5rem;
  font-weight: 900;
  color: #fff;
  letter-spacing: 1px;
}
.logo img { height: 40px; width: auto; border-radius: 4px; }
.main-nav { display: flex; gap: 24px; }
.main-nav a {
  color: #e0e6ed;
  font-weight: 600;
  padding: 8px 0;
  position: relative;
}
.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 0; height: 2px;
  background: #00e5ff;
  transition: width 0.3s;
}
.main-nav a:hover::after, .main-nav a.active::after { width: 100%; }

/* 搜索框 */
.search-container {
  background: #1a1c23;
  padding: 16px 0;
  border-bottom: 1px solid #2d3139;
  display: none;
}
.search-container.active { display: block; animation: slideDown 0.3s ease; }
.search-box {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-input {
  flex: 1;
  background: #0b0c10;
  border: 1px solid #2d3139;
  color: #fff;
  padding: 12px 20px;
  border-radius: 4px 0 0 4px;
  font-size: 1rem;
  outline: none;
}
.search-input:focus { border-color: #00e5ff; }
.search-btn {
  background: #6200ea;
  color: #fff;
  border: none;
  padding: 0 24px;
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-weight: bold;
}
.search-icon { cursor: pointer; font-size: 1.2rem; color: #e0e6ed; }

/* 首页大图 */
.hero {
  position: relative;
  min-height: 80vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background-image: url('../images/hero-banner.jpg');
  background-size: cover;
  background-position: center;
  z-index: -2;
}
.hero-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(to right, rgba(11,12,16,0.9) 0%, rgba(11,12,16,0.4) 100%);
  z-index: -1;
}
.hero-content { max-width: 700px; z-index: 1; }
.hero-badge {
  display: inline-block;
  background: rgba(98, 0, 234, 0.3);
  color: #00e5ff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: bold;
  margin-bottom: 24px;
  border: 1px solid rgba(0, 229, 255, 0.3);
}
.hero h1 {
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1.2;
  margin-bottom: 24px;
  color: #fff;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}
.hero p {
  font-size: 1.2rem;
  color: #c5d0db;
  margin-bottom: 32px;
  text-shadow: 0 1px 5px rgba(0,0,0,0.8);
}

/* 视频卡片 */
.video-card {
  background: #1a1c23;
  border-radius: 8px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid #2d3139;
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border-color: #6200ea;
}
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s;
  border-radius: 8px 8px 0 0;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-overlay {
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: rgba(0,0,0,0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s;
}
.video-card:hover .play-overlay { opacity: 1; }
.play-btn {
  width: 60px; height: 60px;
  background: rgba(98, 0, 234, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px rgba(0, 229, 255, 0.5);
}
.play-btn::after {
  content: '';
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}
.video-tag {
  position: absolute;
  top: 12px; left: 12px;
  background: #ff1744;
  color: #fff;
  padding: 4px 10px;
  border-radius: 4px;
  font-size: 0.8rem;
  font-weight: bold;
}
.video-dur {
  position: absolute;
  bottom: 12px; right: 12px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.video-info { padding: 20px; }
.video-title {
  font-size: 1.1rem;
  color: #fff;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  justify-content: space-between;
  color: #8a9ba8;
  font-size: 0.85rem;
}
.video-stats span { margin-right: 12px; }

/* AI赋能卡片 */
.ai-card {
  background: linear-gradient(145deg, #1a1c23, #0b0c10);
  border: 1px solid #2d3139;
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  transition: all 0.3s;
}
.ai-card:hover { border-color: #00e5ff; transform: translateY(-5px); }
.ai-icon {
  font-size: 3rem;
  margin-bottom: 20px;
  background: linear-gradient(45deg, #6200ea, #00e5ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.ai-card h3 { color: #fff; margin-bottom: 16px; font-size: 1.3rem; }

/* 专家卡片 */
.expert-card {
  background: #1a1c23;
  border-radius: 12px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid #2d3139;
}
.expert-avatar {
  width: 120px; height: 120px;
  border-radius: 50%;
  margin: 0 auto 20px;
  border: 3px solid #6200ea;
  padding: 4px;
  object-fit: cover;
}
.expert-name { color: #fff; font-size: 1.4rem; margin-bottom: 4px; }
.expert-role { color: #00e5ff; font-weight: bold; margin-bottom: 16px; font-size: 0.9rem; }
.expert-desc { color: #8a9ba8; font-size: 0.9rem; margin-bottom: 20px; }

/* 评价卡片 */
.review-card {
  background: #1a1c23;
  padding: 24px;
  border-radius: 8px;
  border-left: 4px solid #00e5ff;
}
.stars { color: #ffc107; margin-bottom: 12px; font-size: 1.2rem; }
.review-text { font-style: italic; color: #c5d0db; margin-bottom: 20px; }
.reviewer { display: flex; align-items: center; gap: 12px; }
.reviewer-avatar {
  width: 40px; height: 40px;
  background: #6200ea;
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}
.reviewer-info h4 { color: #fff; font-size: 0.95rem; }
.reviewer-info span { color: #8a9ba8; font-size: 0.8rem; }

/* FAQ */
.faq-item {
  background: #1a1c23;
  border: 1px solid #2d3139;
  border-radius: 8px;
  margin-bottom: 16px;
  overflow: hidden;
}
.faq-q {
  padding: 20px 24px;
  color: #fff;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}
.faq-q::after { content: '+'; color: #00e5ff; font-size: 1.5rem; }
.faq-item.active .faq-q::after { content: '-'; }
.faq-a {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: #8a9ba8;
}
.faq-item.active .faq-a { padding: 0 24px 20px; max-height: 500px; }

/* 合作伙伴墙 */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
}
.partner-logo {
  background: #1a1c23;
  border: 1px solid #2d3139;
  padding: 20px 40px;
  border-radius: 8px;
  color: #fff;
  font-weight: bold;
  font-size: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
  transition: all 0.3s;
}
.partner-logo:hover { background: #6200ea; border-color: #6200ea; }

/* 面包屑 */
.breadcrumb {
  padding: 20px 0;
  color: #8a9ba8;
  font-size: 0.9rem;
}
.breadcrumb a { color: #00e5ff; }
.breadcrumb span { margin: 0 8px; }

/* 页脚 */
.site-footer {
  background: #07080a;
  border-top: 1px solid #2d3139;
  padding: 60px 0 20px;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-about p { color: #8a9ba8; margin: 20px 0; }
.footer-title { color: #fff; font-size: 1.2rem; margin-bottom: 20px; }
.footer-links li { margin-bottom: 12px; }
.footer-links a { color: #8a9ba8; }
.footer-links a:hover { color: #00e5ff; }
.qr-codes { display: flex; gap: 20px; }
.qr-box { text-align: center; }
.qr-img {
  width: 100px; height: 100px;
  background: #fff;
  padding: 5px;
  border-radius: 4px;
  margin-bottom: 8px;
}
.footer-bottom {
  border-top: 1px solid #2d3139;
  padding-top: 20px;
  text-align: center;
  color: #8a9ba8;
  font-size: 0.9rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.social-share { display: flex; gap: 16px; }
.social-icon {
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #1a1c23;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  transition: all 0.3s;
}
.social-icon:hover { background: #6200ea; }

/* 响应式 */
@media (max-width: 992px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .hero h1 { font-size: 2.5rem; }
}
@media (max-width: 768px) {
  .main-nav { display: none; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 16px; }
  .hero h1 { font-size: 2rem; }
}

@keyframes slideDown {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}
