/* ========================================
   极简白色风 (Minimal White) - Apple风格影视模板
   主色调: 纯白#FFF + 深黑#111 + 红色点缀#FF3B30
   ======================================== */
:root {
  --white: #FFFFFF;
  --off-white: #F7F7F7;
  --light-gray: #EAEAEA;
  --mid-gray: #999;
  --dark-gray: #555;
  --black: #111111;
  --accent: #FF3B30;
  --accent-hover: #E0342B;
  --font: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --shadow-sm: 0 2px 8px rgba(0,0,0,0.06);
  --shadow-md: 0 8px 24px rgba(0,0,0,0.08);
  --shadow-lg: 0 16px 48px rgba(0,0,0,0.12);
  --radius: 12px;
  --transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font); background: var(--white); color: var(--black);
  line-height: 1.65; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--off-white); }
::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #aaa; }
::selection { background: var(--accent); color: var(--white); }
a { color: var(--black); text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }

/* ======== HEADER 极简导航 ======== */
.main-header {
  position: sticky; top: 0; z-index: 1000;
  background: rgba(255,255,255,0.85);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--light-gray);
  padding: 0 24px; height: 56px;
  transition: var(--transition);
}
.main-header.scrolled {
  box-shadow: 0 1px 12px rgba(0,0,0,0.08);
}
.main-header .container {
  display: flex; justify-content: space-between; align-items: center;
  height: 100%; max-width: 1200px; margin: 0 auto;
}
.logo a {
  font-size: 1.3rem; font-weight: 700; color: var(--black);
  letter-spacing: -0.5px;
}
.main-nav ul { list-style: none; display: flex; gap: 28px; }
.main-nav a {
  color: var(--dark-gray); font-size: 0.9rem; font-weight: 500;
  position: relative; padding: 4px 0;
}
.main-nav a::after {
  content: ''; position: absolute; bottom: -2px; left: 0;
  width: 0; height: 2px; background: var(--accent);
  transition: width 0.3s ease;
}
.main-nav a:hover { color: var(--black); }
.main-nav a:hover::after { width: 100%; }

/* ======== HERO 全屏大图 ======== */
.hero-section {
  height: 85vh; min-height: 500px;
  background-size: cover; background-position: center;
  display: flex; align-items: center; justify-content: center;
  text-align: center; color: #fff;
  position: relative; overflow: hidden;
}
.hero-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(180deg, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.5) 100%);
}
.hero-content {
  position: relative; z-index: 2;
  animation: heroFadeIn 1.2s ease;
}
.hero-content h1 {
  font-size: 4rem; font-weight: 800; letter-spacing: -2px;
  margin-bottom: 16px; line-height: 1.1;
}
.hero-content p {
  font-size: 1.3rem; font-weight: 300; margin-bottom: 32px;
  opacity: 0.9; max-width: 600px; margin-left: auto; margin-right: auto;
}
.btn-primary {
  display: inline-block; background: var(--accent); color: #fff;
  padding: 14px 36px; border-radius: 30px; font-weight: 600;
  font-size: 0.95rem; letter-spacing: 0.5px;
  transition: var(--transition); border: none; cursor: pointer;
}
.btn-primary:hover {
  background: var(--accent-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(255,59,48,0.3);
}
@keyframes heroFadeIn {
  0% { opacity: 0; transform: translateY(30px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* ======== 公告条 ======== */
.announcement-bar {
  background: var(--black); color: var(--white);
  text-align: center; padding: 10px 1rem;
  font-size: 0.85rem; font-weight: 400;
  position: relative; overflow: hidden;
}
.announcement-bar strong { color: var(--accent); }
.announcement-bar::after {
  content: ''; position: absolute; top: 0; left: -100%;
  width: 50%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.05), transparent);
  animation: sweepLight 4s infinite;
}
@keyframes sweepLight { 0%{left:-50%} 100%{left:150%} }

/* ======== SECTION标题 ======== */
.section-title {
  font-size: 2.2rem; font-weight: 700; text-align: center;
  margin-bottom: 40px; letter-spacing: -1px; color: var(--black);
  position: relative;
}
.section-title::after {
  content: ''; display: block; width: 40px; height: 3px;
  background: var(--accent); margin: 12px auto 0; border-radius: 2px;
}

/* ======== 视频卡片网格 ======== */
.video-grid { padding: 60px 0; }
.card-deck {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px;
}
.video-card {
  background: var(--white); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  border: 1px solid var(--light-gray);
}
.video-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.video-card a { text-decoration: none; color: inherit; display: block; }
.card-image {
  position: relative; overflow: hidden;
  aspect-ratio: 16/10;
}
.card-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.video-card:hover .card-image img { transform: scale(1.06); }
.play-icon {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,59,48,0.9); color: #fff;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition);
}
.play-icon::after { content: '▶'; font-size: 1rem; margin-left: 2px; }
.video-card:hover .play-icon { opacity: 1; transform: translate(-50%, -50%) scale(1); }
.card-content { padding: 16px 18px; }
.card-content h3 {
  font-size: 0.95rem; font-weight: 600; line-height: 1.4;
  margin-bottom: 8px; color: var(--black);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.meta { font-size: 0.8rem; color: var(--mid-gray); display: flex; gap: 12px; }

/* ======== 分类精选横滑 ======== */
.category-showcase { padding: 40px 0 60px; }
.category-section { margin-bottom: 40px; }
.category-section h3 {
  font-size: 1.3rem; font-weight: 600; margin-bottom: 16px;
  padding-left: 12px; border-left: 3px solid var(--accent);
}
.category-section h3 a { color: var(--black); }
.category-section h3 a:hover { color: var(--accent); }
.card-deck-scroll {
  display: flex; gap: 16px; overflow-x: auto;
  padding-bottom: 12px; scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}
.card-deck-scroll::-webkit-scrollbar { height: 4px; }
.card-deck-scroll::-webkit-scrollbar-thumb { background: #ddd; border-radius: 2px; }
.video-card-small {
  flex: 0 0 180px; scroll-snap-align: start;
  border-radius: 8px; overflow: hidden;
  transition: var(--transition);
}
.video-card-small:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.video-card-small a { text-decoration: none; color: inherit; }
.video-card-small img {
  width: 100%; height: 120px; object-fit: cover;
  border-radius: 8px 8px 0 0;
}
.video-card-small h4 {
  padding: 8px 10px; font-size: 0.8rem; font-weight: 500;
  line-height: 1.3; color: var(--black);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* ======== FAQ手风琴 ======== */
.faq-section { padding: 40px 0 60px; }
.faq-accordion { max-width: 720px; margin: 0 auto; }
.faq-item {
  border-bottom: 1px solid var(--light-gray);
  transition: var(--transition);
}
.faq-question {
  width: 100%; padding: 20px 0; background: none; border: none;
  font-family: var(--font); font-size: 1.05rem; font-weight: 600;
  color: var(--black); text-align: left; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: var(--transition);
}
.faq-question::after {
  content: '+'; font-size: 1.5rem; font-weight: 300; color: var(--mid-gray);
  transition: transform 0.3s ease;
}
.faq-item.active .faq-question::after { content: '−'; color: var(--accent); }
.faq-question:hover { color: var(--accent); }
.faq-answer {
  max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}
.faq-item.active .faq-answer { max-height: 200px; padding-bottom: 20px; }
.faq-answer p { color: var(--dark-gray); font-size: 0.95rem; line-height: 1.8; }

/* ======== LIST页 ======== */
.list-page { max-width: 1200px; margin: 0 auto; padding: 2rem 24px; }
.list-header { text-align: center; padding: 2rem 0; margin-bottom: 2rem; }
.list-header h1 { font-size: 2.5rem; font-weight: 800; letter-spacing: -1px; }
.list-header p { color: var(--dark-gray); margin-top: 8px; }
.sub-nav { display: flex; gap: 10px; justify-content: center; margin-top: 1.5rem; flex-wrap: wrap; }
.sub-nav a {
  padding: 6px 18px; border: 1px solid var(--light-gray); color: var(--dark-gray);
  border-radius: 20px; font-size: 0.85rem; transition: var(--transition);
}
.sub-nav a:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ======== SHOW页 ======== */
.show-page { max-width: 1200px; margin: 0 auto; padding: 2rem 24px; display: grid; grid-template-columns: 1fr 320px; gap: 3rem; }
.article-main { min-width: 0; }
.article-header { margin-bottom: 2rem; }
.article-title { font-size: 2rem; font-weight: 800; letter-spacing: -1px; line-height: 1.2; margin-bottom: 12px; }
.article-meta { display: flex; gap: 16px; font-size: 0.85rem; color: var(--mid-gray); }
.article-image {
  width: 100%; border-radius: var(--radius); overflow: hidden;
  margin-bottom: 2rem; position: relative;
}
.article-image img { width: 100%; }
.article-body { font-size: 1rem; line-height: 1.9; color: #333; }
.article-body h2 { font-size: 1.4rem; margin: 2rem 0 1rem; color: var(--black); }
.article-body img { border-radius: 8px; margin: 1.5rem 0; }
.article-body p { margin-bottom: 1.2rem; }

.sidebar { position: sticky; top: 72px; align-self: start; }
.sidebar-box {
  background: var(--off-white); border-radius: var(--radius);
  padding: 20px; margin-bottom: 20px;
}
.sidebar-title {
  font-size: 1rem; font-weight: 700; margin-bottom: 16px;
  padding-bottom: 8px; border-bottom: 2px solid var(--accent);
}
.sidebar-list { list-style: none; }
.sidebar-list li { padding: 10px 0; border-bottom: 1px solid var(--light-gray); }
.sidebar-list li:last-child { border-bottom: none; }
.sidebar-list a { color: var(--dark-gray); font-size: 0.9rem; }
.sidebar-list a:hover { color: var(--accent); }

.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 2rem; }
.related-card { border-radius: 8px; overflow: hidden; background: var(--off-white); transition: var(--transition); }
.related-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.related-card img { width: 100%; height: 100px; object-fit: cover; }
.related-card h4 { padding: 8px 10px; font-size: 0.78rem; font-weight: 500; }

.nav-links { display: flex; justify-content: space-between; gap: 16px; margin-top: 2rem; }
.nav-links a {
  flex: 1; padding: 12px 16px; background: var(--off-white);
  border-radius: 8px; font-size: 0.85rem; color: var(--dark-gray);
  transition: var(--transition); white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.nav-links a:hover { background: var(--black); color: var(--white); }

/* ======== ABOUT/CONTACT/LEGAL ======== */
.about-page, .contact-page, .legal-page, .sitemap-page { max-width: 720px; margin: 0 auto; padding: 3rem 24px; }
.page-title {
  font-size: 2.5rem; font-weight: 800; text-align: center;
  margin-bottom: 2rem; letter-spacing: -1px;
}
.page-content {
  line-height: 1.9; font-size: 0.95rem; color: #444;
}
.page-content h2 {
  font-size: 1.3rem; font-weight: 700; color: var(--black);
  margin: 2rem 0 0.8rem; padding-bottom: 8px;
  border-bottom: 1px solid var(--light-gray);
}
.page-content p { margin-bottom: 1rem; }
.page-content ul { padding-left: 1.5rem; margin-bottom: 1rem; }
.page-content li { margin-bottom: 0.5rem; color: var(--dark-gray); }

.breadcrumb { padding: 1rem 0; font-size: 0.85rem; color: var(--mid-gray); }
.breadcrumb a { color: var(--dark-gray); }
.breadcrumb a:hover { color: var(--accent); }

.sitemap-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 1rem 0 2rem; }
.sitemap-links a {
  padding: 6px 18px; border: 1px solid var(--light-gray); color: var(--dark-gray);
  border-radius: 20px; font-size: 0.85rem; transition: var(--transition);
}
.sitemap-links a:hover { background: var(--black); color: var(--white); border-color: var(--black); }

/* ======== 分页 ======== */
.pagination { text-align: center; padding: 2rem 0; }
.pagination ul { display: flex; justify-content: center; gap: 6px; list-style: none; }
.pagination a {
  display: inline-block; padding: 8px 16px;
  color: var(--dark-gray); background: var(--off-white);
  border-radius: 6px; font-size: 0.85rem; transition: var(--transition);
}
.pagination a:hover { background: var(--black); color: var(--white); }

/* ======== FOOTER ======== */
.main-footer {
  background: var(--off-white); padding: 3rem 0 1.5rem;
  border-top: 1px solid var(--light-gray);
}
.footer-content {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  max-width: 1200px; margin: 0 auto; padding: 0 24px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--light-gray); color: var(--dark-gray);
  font-size: 0.85rem; transition: var(--transition);
}
.footer-social a:hover { background: var(--accent); color: var(--white); transform: translateY(-2px); }
.footer-badges { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.footer-badge {
  display: inline-block; padding: 4px 14px; font-size: 0.8rem;
  border-radius: 20px; transition: var(--transition);
}
.badge-qq { color: var(--dark-gray); border: 1px solid var(--light-gray); }
.badge-qq:hover { background: var(--accent); color: var(--white); border-color: var(--accent); }
.badge-beian { color: var(--mid-gray); border: 1px solid var(--light-gray); }
.badge-beian:hover { color: var(--black); border-color: var(--black); }
.footer-links a { margin: 0 12px; color: var(--dark-gray); font-size: 0.85rem; }
.footer-links a:hover { color: var(--accent); }
.footer-content p { font-size: 0.8rem; color: var(--mid-gray); }
.footer-content img { border-radius: 4px; opacity: 0.5; transition: opacity 0.3s; }
.footer-content img:hover { opacity: 1; }

/* ======== 动画 ======== */
.reveal { opacity: 0; transform: translateY(24px); transition: all 0.6s cubic-bezier(0.25,0.46,0.45,0.94); }
.reveal.visible { opacity: 1; transform: translateY(0); }
@keyframes fadeIn { from{opacity:0} to{opacity:1} }
@keyframes fadeInUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--black); color: var(--white); border: none;
  cursor: pointer; font-size: 1rem;
  display: none; align-items: center; justify-content: center;
  z-index: 999; transition: var(--transition);
  box-shadow: var(--shadow-md);
}
.back-to-top:hover {
  background: var(--accent);
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(255,59,48,0.3);
}

/* ======== 响应式 ======== */
@media (max-width: 1024px) {
  .card-deck { grid-template-columns: repeat(3, 1fr); }
  .show-page { grid-template-columns: 1fr; }
  .sidebar { position: static; }
}
@media (max-width: 768px) {
  .main-header .container { flex-direction: column; gap: 8px; }
  .main-nav ul { gap: 16px; flex-wrap: wrap; justify-content: center; }
  .card-deck { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .hero-content h1 { font-size: 2.5rem; }
  .hero-content p { font-size: 1rem; }
  .hero-section { height: 60vh; }
  .section-title { font-size: 1.8rem; }
  .related-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { flex-direction: column; }
}
@media (max-width: 480px) {
  .card-deck { grid-template-columns: 1fr; }
  .hero-content h1 { font-size: 2rem; }
  .section-title { font-size: 1.5rem; }
  .related-grid { grid-template-columns: 1fr; }
}
