/* ============================================
   糖心vlog - 原创样式表
   品牌色：#FF6B35 活力橙 / #1A1A2E 深邃夜蓝
   强调色：#E94560 热情红 / 背景：#0F0F23 暗夜黑
   ============================================ */

/* CSS Reset & Base */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background-color: #0F0F23;
  color: #EAEAEA;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #FF6B35; text-decoration: none; transition: color 0.3s; }
a:hover { color: #E94560; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; line-height: 1.3; }

/* Container */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section-padding { padding: 60px 0; }

/* ============ Header & Navigation ============ */
.site-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #16213E 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
  border-bottom: 2px solid #FF6B35;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 45px; width: auto; }
.site-logo span {
  font-size: 1.4rem;
  font-weight: 700;
  color: #FF6B35;
  white-space: nowrap;
}
.main-nav { display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 5px; flex-wrap: wrap; }
.main-nav li a {
  display: block;
  padding: 8px 14px;
  color: #EAEAEA;
  font-size: 0.9rem;
  border-radius: 6px;
  transition: all 0.3s;
  white-space: nowrap;
}
.main-nav li a:hover,
.main-nav li a.active {
  background: rgba(255,107,53,0.15);
  color: #FF6B35;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: #FF6B35;
  font-size: 1.6rem;
  cursor: pointer;
}

/* ============ Search Bar ============ */
.search-bar {
  background: linear-gradient(180deg, #16213E 0%, #0F0F23 100%);
  padding: 15px 0;
  border-bottom: 1px solid rgba(255,107,53,0.2);
}
.search-wrapper {
  max-width: 600px;
  margin: 0 auto;
  position: relative;
}
.search-wrapper input {
  width: 100%;
  padding: 12px 50px 12px 20px;
  border: 2px solid rgba(255,107,53,0.3);
  border-radius: 30px;
  background: rgba(26,26,46,0.8);
  color: #EAEAEA;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.3s;
}
.search-wrapper input:focus { border-color: #FF6B35; }
.search-wrapper input::placeholder { color: #888; }
.search-wrapper button {
  position: absolute;
  right: 5px;
  top: 50%;
  transform: translateY(-50%);
  background: linear-gradient(135deg, #FF6B35, #E94560);
  border: none;
  color: #fff;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.2s;
}
.search-wrapper button:hover { transform: translateY(-50%) scale(1.05); }

/* ============ Banner Hero ============ */
.hero-banner {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-banner .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.45);
  z-index: 1;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  padding: 0 20px;
}
.hero-content h1 {
  font-size: 2.8rem;
  color: #fff;
  margin-bottom: 15px;
  text-shadow: 0 3px 15px rgba(0,0,0,0.6);
}
.hero-content h1 span { color: #FF6B35; }
.hero-content p {
  font-size: 1.15rem;
  color: #ddd;
  max-width: 700px;
  margin: 0 auto 25px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}
.hero-btn {
  display: inline-block;
  padding: 12px 35px;
  background: linear-gradient(135deg, #FF6B35, #E94560);
  color: #fff;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform 0.3s, box-shadow 0.3s;
}
.hero-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,53,0.4);
  color: #fff;
}

/* ============ Breadcrumb ============ */
.breadcrumb {
  padding: 12px 0;
  font-size: 0.85rem;
  color: #888;
}
.breadcrumb a { color: #FF6B35; }
.breadcrumb span { margin: 0 6px; }

/* ============ Section Titles ============ */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 2rem;
  color: #FF6B35;
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}
.section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #FF6B35, #E94560);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-title p {
  color: #aaa;
  font-size: 0.95rem;
  max-width: 600px;
  margin: 0 auto;
}

/* ============ Video Card Grid ============ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.video-card {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  border: 1px solid rgba(255,107,53,0.1);
}
.video-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(255,107,53,0.15);
}
.video-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
  cursor: pointer;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(255,107,53,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s, transform 0.3s;
  z-index: 3;
}
.video-play-btn::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: 3px;
}
.video-card:hover .video-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1.05);
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}
.video-info { padding: 15px; }
.video-info h3 {
  font-size: 1rem;
  color: #EAEAEA;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  gap: 15px;
  font-size: 0.8rem;
  color: #888;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.video-tags span {
  background: rgba(255,107,53,0.12);
  color: #FF6B35;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
}

/* ============ Module Cards (游戏传媒/AI赋能等) ============ */
.module-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}
.module-card {
  background: linear-gradient(145deg, #1A1A2E, #0F0F23);
  border: 1px solid rgba(255,107,53,0.15);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  transition: all 0.3s;
}
.module-card:hover {
  border-color: #FF6B35;
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(255,107,53,0.1);
}
.module-card .icon {
  width: 60px;
  height: 60px;
  margin: 0 auto 15px;
  background: linear-gradient(135deg, #FF6B35, #E94560);
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
}
.module-card h3 {
  font-size: 1.1rem;
  color: #FF6B35;
  margin-bottom: 8px;
}
.module-card p {
  font-size: 0.88rem;
  color: #aaa;
  line-height: 1.6;
}

/* ============ Expert Team ============ */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 25px;
}
.expert-card {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
  border: 1px solid rgba(255,107,53,0.1);
  transition: all 0.3s;
}
.expert-card:hover {
  border-color: #FF6B35;
  box-shadow: 0 8px 25px rgba(255,107,53,0.12);
}
.expert-card .avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
  overflow: hidden;
  border: 3px solid #FF6B35;
}
.expert-card .avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h3 { font-size: 1.1rem; color: #EAEAEA; margin-bottom: 5px; }
.expert-card .role { color: #FF6B35; font-size: 0.85rem; margin-bottom: 10px; }
.expert-card p { font-size: 0.85rem; color: #aaa; margin-bottom: 12px; }
.expert-card .awards { font-size: 0.8rem; color: #E94560; margin-bottom: 10px; }
.expert-btn {
  display: inline-block;
  padding: 6px 18px;
  border: 1px solid #FF6B35;
  color: #FF6B35;
  border-radius: 20px;
  font-size: 0.82rem;
  transition: all 0.3s;
  margin: 3px;
}
.expert-btn:hover {
  background: #FF6B35;
  color: #fff;
}

/* ============ FAQ Section ============ */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  border: 1px solid rgba(255,107,53,0.1);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-question {
  padding: 18px 20px;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
  color: #EAEAEA;
  transition: color 0.3s;
}
.faq-question:hover { color: #FF6B35; }
.faq-question .arrow {
  transition: transform 0.3s;
  color: #FF6B35;
  font-size: 1.2rem;
}
.faq-item.active .faq-question .arrow { transform: rotate(180deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
  padding: 0 20px;
  color: #aaa;
  font-size: 0.9rem;
  line-height: 1.7;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 20px 18px;
}

/* ============ Reviews / Testimonials ============ */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  border: 1px solid rgba(255,107,53,0.1);
  border-radius: 12px;
  padding: 22px;
}
.review-card .stars { color: #FF6B35; margin-bottom: 10px; font-size: 0.9rem; }
.review-card .review-text {
  font-size: 0.9rem;
  color: #ccc;
  margin-bottom: 12px;
  line-height: 1.6;
  font-style: italic;
}
.review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
}
.review-card .reviewer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, #FF6B35, #E94560);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.9rem;
}
.review-card .reviewer-info { font-size: 0.82rem; }
.review-card .reviewer-info strong { color: #EAEAEA; display: block; }
.review-card .reviewer-info span { color: #888; }

/* ============ Contact Section ============ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}
.contact-card {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  border: 1px solid rgba(255,107,53,0.1);
  border-radius: 12px;
  padding: 25px;
  text-align: center;
}
.contact-card h3 {
  color: #FF6B35;
  font-size: 1.05rem;
  margin-bottom: 12px;
}
.contact-card p {
  font-size: 0.88rem;
  color: #aaa;
  margin-bottom: 6px;
}
.contact-card img { margin: 10px auto; max-width: 160px; border-radius: 8px; }

/* ============ Share Buttons ============ */
.share-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 20px;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  color: #fff;
  transition: transform 0.2s;
  cursor: pointer;
}
.share-btn:hover { transform: scale(1.05); color: #fff; }
.share-btn.wechat { background: #07C160; }
.share-btn.weibo { background: #E6162D; }
.share-btn.douyin { background: #161823; border: 1px solid #444; }
.share-btn.bilibili { background: #00A1D6; }

/* ============ How-To Guide ============ */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.howto-step {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  border: 1px solid rgba(255,107,53,0.1);
  border-radius: 12px;
  padding: 25px 20px;
  text-align: center;
  position: relative;
  counter-increment: step;
}
.howto-step::before {
  content: counter(step);
  display: block;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #FF6B35, #E94560);
  border-radius: 50%;
  color: #fff;
  font-weight: 700;
  font-size: 1.1rem;
  line-height: 40px;
  margin: 0 auto 12px;
}
.howto-step h4 { color: #FF6B35; font-size: 1rem; margin-bottom: 8px; }
.howto-step p { font-size: 0.85rem; color: #aaa; }

/* ============ Community Cards ============ */
.community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 18px;
}
.community-item {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  border: 1px solid rgba(255,107,53,0.1);
  border-radius: 10px;
  padding: 20px 15px;
  text-align: center;
  transition: all 0.3s;
}
.community-item:hover {
  border-color: #FF6B35;
  transform: translateY(-3px);
}
.community-item .emoji { font-size: 2.2rem; margin-bottom: 8px; }
.community-item h4 { font-size: 0.95rem; color: #EAEAEA; margin-bottom: 5px; }
.community-item p { font-size: 0.8rem; color: #888; }

/* ============ Partner Logos ============ */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
  align-items: center;
}
.partner-wall .partner-item {
  background: rgba(26,26,46,0.6);
  border: 1px solid rgba(255,107,53,0.1);
  border-radius: 10px;
  padding: 15px 25px;
  color: #888;
  font-size: 0.9rem;
  transition: all 0.3s;
}
.partner-wall .partner-item:hover {
  border-color: #FF6B35;
  color: #FF6B35;
}

/* ============ Footer ============ */
.site-footer {
  background: linear-gradient(180deg, #0F0F23 0%, #0A0A1A 100%);
  border-top: 2px solid #FF6B35;
  padding: 40px 0 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}
.footer-col h4 {
  color: #FF6B35;
  font-size: 1rem;
  margin-bottom: 15px;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255,107,53,0.2);
}
.footer-col p, .footer-col li {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 6px;
}
.footer-col a { color: #aaa; }
.footer-col a:hover { color: #FF6B35; }
.footer-col img { max-width: 130px; border-radius: 6px; margin-top: 8px; }
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.82rem;
  color: #666;
}
.footer-bottom a { color: #FF6B35; }

/* ============ Back to Top ============ */
.back-to-top {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 45px;
  height: 45px;
  background: linear-gradient(135deg, #FF6B35, #E94560);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  border: none;
}
.back-to-top.visible { opacity: 1; visibility: visible; }
.back-to-top:hover { transform: translateY(-3px); }

/* ============ Inner Page Styles ============ */
.page-hero {
  position: relative;
  height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
.page-hero .hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.35);
}
.page-hero .hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; color: #fff; }
.page-hero p { color: #ddd; margin-top: 10px; }

.content-section { padding: 40px 0; }
.content-section h2 {
  color: #FF6B35;
  font-size: 1.6rem;
  margin-bottom: 15px;
}
.content-section h3 {
  color: #EAEAEA;
  font-size: 1.2rem;
  margin: 20px 0 10px;
}
.content-section p {
  color: #bbb;
  margin-bottom: 12px;
  font-size: 0.92rem;
}
.content-section ul li {
  color: #aaa;
  padding: 4px 0 4px 18px;
  position: relative;
  font-size: 0.9rem;
}
.content-section ul li::before {
  content: '▸';
  position: absolute;
  left: 0;
  color: #FF6B35;
}

/* ============ Video Modal ============ */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}
.video-modal.active { display: flex; }
.video-modal-inner {
  background: #1A1A2E;
  border-radius: 12px;
  padding: 20px;
  max-width: 800px;
  width: 90%;
  position: relative;
}
.video-modal-close {
  position: absolute;
  top: -15px;
  right: -15px;
  width: 35px;
  height: 35px;
  background: #E94560;
  border: none;
  border-radius: 50%;
  color: #fff;
  font-size: 1.2rem;
  cursor: pointer;
}
.video-modal-inner .video-placeholder {
  background: #0F0F23;
  padding-top: 56.25%;
  border-radius: 8px;
  position: relative;
}
.video-modal-inner .video-placeholder p {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #888;
  font-size: 1rem;
}

/* ============ Responsive ============ */
@media (max-width: 768px) {
  .header-inner { flex-wrap: wrap; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none;
    width: 100%;
    order: 3;
  }
  .main-nav.active { display: block; }
  .main-nav ul {
    flex-direction: column;
    padding: 10px 0;
  }
  .main-nav li a { padding: 10px 15px; }
  .hero-banner { height: 380px; }
  .hero-content h1 { font-size: 1.8rem; }
  .hero-content p { font-size: 0.95rem; }
  .section-title h2 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-banner { height: 300px; }
  .hero-content h1 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* ============ Lazy Load Placeholder ============ */
img[data-src] {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  min-height: 150px;
}

/* ============ Animation ============ */
@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to { opacity: 1; transform: translateY(0); }
}
.animate-in {
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
}

/* ============ MCP Service Frontend (Placeholder) ============ */
.mcp-widget {
  background: linear-gradient(145deg, #1A1A2E, #16213E);
  border: 1px solid rgba(255,107,53,0.15);
  border-radius: 12px;
  padding: 20px;
  text-align: center;
  margin-top: 20px;
}
.mcp-widget h4 { color: #FF6B35; margin-bottom: 10px; }
.mcp-widget .mcp-status {
  display: inline-block;
  padding: 4px 12px;
  background: rgba(7,193,96,0.15);
  color: #07C160;
  border-radius: 12px;
  font-size: 0.82rem;
}
