/* ============================================
   国产自拍 - 原创样式表
   品牌：国产自拍 | 域名：153172.cn
   定位：国内影视传媒公司 + 动漫社区
   ============================================ */

/* === CSS变量 - 原创配色方案 === */
:root {
  --primary: #1A0A2E;
  --secondary: #FF6B35;
  --accent: #00D4AA;
  --neon-purple: #7B2FF7;
  --bg-dark: #0D0D1A;
  --bg-card: #1E1E3A;
  --text-light: #E8E8F0;
  --text-muted: #9A9AB0;
  --border-glow: #7B2FF740;
  --gradient-hero: linear-gradient(135deg, #1A0A2E 0%, #2D1B69 50%, #0D0D1A 100%);
  --gradient-card: linear-gradient(145deg, #1E1E3A 0%, #2A1A4E 100%);
  --gradient-btn: linear-gradient(90deg, #FF6B35 0%, #7B2FF7 100%);
  --gradient-accent: linear-gradient(90deg, #00D4AA 0%, #7B2FF7 100%);
  --shadow-card: 0 8px 32px rgba(123, 47, 247, 0.15);
  --shadow-hover: 0 12px 48px rgba(123, 47, 247, 0.3);
  --radius: 12px;
  --radius-lg: 20px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --max-width: 1280px;
}

/* === 重置与基础 === */
*, *::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 SC", sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--secondary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; }

/* === 头部导航 === */
.site-header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border-glow);
  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;
}
.logo-link { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 42px; width: auto; }
.logo-text { font-size: 1.4rem; font-weight: 700; background: var(--gradient-btn); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px; font-size: 0.95rem;
  color: var(--text-light); font-weight: 500; position: relative;
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(123, 47, 247, 0.15); color: var(--secondary);
}
.main-nav a.active::after {
  content: ''; position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%);
  width: 20px; height: 3px; background: var(--gradient-btn); border-radius: 2px;
}

/* === 搜索框 === */
.search-bar {
  background: rgba(30, 30, 58, 0.8); border: 1px solid var(--border-glow);
  padding: 12px 20px; margin: 80px auto 0; max-width: 680px;
  border-radius: 50px; display: flex; align-items: center; gap: 12px;
  backdrop-filter: blur(10px);
}
.search-bar input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text-light); font-size: 1rem;
}
.search-bar input::placeholder { color: var(--text-muted); }
.search-bar button {
  background: var(--gradient-btn); border: none; color: #fff;
  padding: 8px 24px; border-radius: 50px; cursor: pointer;
  font-size: 0.9rem; font-weight: 600; transition: var(--transition);
}
.search-bar button:hover { transform: scale(1.05); box-shadow: 0 4px 20px rgba(255, 107, 53, 0.4); }

/* === Hero区域 === */
.hero-section {
  position: relative; padding: 120px 0 60px; overflow: hidden;
  background: var(--gradient-hero);
}
.hero-section::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(123, 47, 247, 0.12) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(255, 107, 53, 0.08) 0%, transparent 50%);
  pointer-events: none;
}
.hero-banner {
  width: 100%; max-height: 480px; object-fit: cover;
  border-radius: var(--radius-lg); box-shadow: var(--shadow-card);
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: 30px 20px;
}
.hero-content h1 {
  font-size: 2.8rem; font-weight: 800; margin-bottom: 16px;
  background: var(--gradient-btn); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
  line-height: 1.3;
}
.hero-content h2 {
  font-size: 1.3rem; color: var(--text-muted); font-weight: 400;
  margin-bottom: 24px;
}
.hero-tags { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 20px; }
.hero-tags span {
  background: rgba(123, 47, 247, 0.15); border: 1px solid var(--border-glow);
  padding: 6px 16px; border-radius: 50px; font-size: 0.85rem; color: var(--accent);
}

/* === 通用区块 === */
.section { padding: 70px 0; position: relative; }
.section-alt { background: linear-gradient(180deg, var(--bg-dark) 0%, #12122A 50%, var(--bg-dark) 100%); }
.section-title {
  text-align: center; margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem; font-weight: 700; margin-bottom: 12px;
  background: var(--gradient-btn); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.section-title h3 {
  font-size: 1.6rem; font-weight: 700; margin-bottom: 10px; color: var(--text-light);
}
.section-title p { color: var(--text-muted); font-size: 1rem; max-width: 600px; margin: 0 auto; }

/* === 面包屑 === */
.breadcrumb {
  padding: 14px 0; font-size: 0.85rem; color: var(--text-muted);
}
.breadcrumb a { color: var(--accent); }
.breadcrumb span { margin: 0 8px; }

/* === 动漫视频卡片网格 === */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--gradient-card); border-radius: var(--radius);
  overflow: hidden; border: 1px solid var(--border-glow);
  transition: var(--transition); cursor: pointer; position: relative;
}
.video-card:hover {
  transform: translateY(-6px); box-shadow: var(--shadow-hover);
  border-color: var(--neon-purple);
}
.video-thumb {
  position: relative; overflow: hidden; aspect-ratio: 16/10;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.5s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.08); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; background: rgba(255, 107, 53, 0.9);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: var(--transition); box-shadow: 0 4px 20px rgba(255, 107, 53, 0.5);
}
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  border-left: 16px solid #fff; margin-left: 3px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); padding: 2px 8px;
  border-radius: 4px; font-size: 0.75rem; color: #fff;
}
.video-info { padding: 14px 16px; }
.video-info h4 {
  font-size: 0.95rem; font-weight: 600; margin-bottom: 8px;
  color: var(--text-light); line-height: 1.4;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.video-meta {
  display: flex; align-items: center; gap: 14px;
  font-size: 0.8rem; color: var(--text-muted);
}
.video-meta .views::before { content: '▶ '; color: var(--secondary); }
.video-meta .likes::before { content: '♥ '; color: #FF4D6A; }
.video-meta .comments::before { content: '💬 '; }
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.video-tags span {
  background: rgba(0, 212, 170, 0.1); border: 1px solid rgba(0, 212, 170, 0.2);
  padding: 2px 10px; border-radius: 50px; font-size: 0.72rem; color: var(--accent);
}

/* === 模块卡片（影视传媒/娱乐/AI/社区） === */
.module-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.module-card {
  background: var(--gradient-card); border-radius: var(--radius);
  padding: 28px 22px; border: 1px solid var(--border-glow);
  transition: var(--transition); text-align: center;
}
.module-card:hover {
  transform: translateY(-4px); box-shadow: var(--shadow-hover);
  border-color: var(--accent);
}
.module-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  background: var(--gradient-btn); border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
}
.module-card h4 { font-size: 1.05rem; font-weight: 600; margin-bottom: 8px; color: var(--text-light); }
.module-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.6; }

/* === 专家展示 === */
.expert-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--gradient-card); border-radius: var(--radius);
  padding: 28px; border: 1px solid var(--border-glow);
  text-align: center; transition: var(--transition);
}
.expert-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.expert-avatar {
  width: 100px; height: 100px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  border: 3px solid var(--neon-purple);
}
.expert-card h4 { font-size: 1.1rem; font-weight: 600; margin-bottom: 4px; }
.expert-card .role { color: var(--secondary); font-size: 0.85rem; margin-bottom: 10px; }
.expert-card p { font-size: 0.85rem; color: var(--text-muted); margin-bottom: 16px; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.btn-sm {
  padding: 6px 16px; border-radius: 50px; font-size: 0.8rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: none;
}
.btn-primary { background: var(--gradient-btn); color: #fff; }
.btn-outline { background: transparent; border: 1px solid var(--accent); color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--bg-dark); }

/* === 合作品牌Logo墙 === */
.partner-wall {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 30px; align-items: center; padding: 20px 0;
}
.partner-logo {
  height: 48px; opacity: 0.6; filter: grayscale(100%) brightness(1.5);
  transition: var(--transition);
}
.partner-logo:hover { opacity: 1; filter: grayscale(0%) brightness(1); }

/* === 用户评论 === */
.review-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--gradient-card); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border-glow);
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--gradient-btn); display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 1.1rem; color: #fff;
}
.review-name { font-weight: 600; font-size: 0.95rem; }
.review-date { font-size: 0.75rem; color: var(--text-muted); }
.review-stars { color: #FFD700; font-size: 0.9rem; margin-bottom: 10px; }
.review-text { font-size: 0.9rem; color: var(--text-muted); line-height: 1.7; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--gradient-card); border-radius: var(--radius);
  margin-bottom: 12px; border: 1px solid var(--border-glow);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 0.95rem; transition: var(--transition);
}
.faq-question:hover { color: var(--secondary); }
.faq-arrow { transition: transform 0.3s ease; font-size: 1.2rem; }
.faq-item.active .faq-arrow { transform: rotate(180deg); }
.faq-answer {
  padding: 0 24px; max-height: 0; overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.9rem; color: var(--text-muted); line-height: 1.7;
}
.faq-item.active .faq-answer { max-height: 300px; padding: 0 24px 18px; }

/* === 联系我们 === */
.contact-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.contact-card {
  background: var(--gradient-card); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border-glow);
  text-align: center;
}
.contact-card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 10px; color: var(--secondary); }
.contact-card p { font-size: 0.85rem; color: var(--text-muted); line-height: 1.8; }

/* === 社交分享 === */
.share-bar {
  display: flex; justify-content: center; gap: 16px;
  padding: 20px 0; flex-wrap: wrap;
}
.share-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 50px; font-size: 0.85rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: 1px solid var(--border-glow); color: var(--text-light);
  background: var(--bg-card);
}
.share-btn:hover { transform: translateY(-2px); box-shadow: var(--shadow-card); }
.share-btn.wechat:hover { border-color: #07C160; color: #07C160; }
.share-btn.weibo:hover { border-color: #E6162D; color: #E6162D; }
.share-btn.douyin:hover { border-color: #FE2C55; color: #FE2C55; }
.share-btn.bilibili:hover { border-color: #00A1D6; color: #00A1D6; }

/* === 页脚 === */
.site-footer {
  background: linear-gradient(180deg, var(--bg-dark) 0%, #080816 100%);
  border-top: 1px solid var(--border-glow); padding: 50px 0 20px;
}
.footer-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px; margin-bottom: 30px;
}
.footer-col h4 {
  font-size: 1rem; font-weight: 600; margin-bottom: 16px;
  color: var(--secondary);
}
.footer-col a {
  display: block; padding: 4px 0; font-size: 0.85rem;
  color: var(--text-muted); transition: var(--transition);
}
.footer-col a:hover { color: var(--accent); padding-left: 6px; }
.footer-qr { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.footer-qr-item { text-align: center; }
.footer-qr-item img { width: 120px; height: 120px; border-radius: 8px; margin-bottom: 8px; }
.footer-qr-item p { font-size: 0.8rem; color: var(--text-muted); }
.footer-bottom {
  text-align: center; padding-top: 20px;
  border-top: 1px solid rgba(123, 47, 247, 0.1);
  font-size: 0.8rem; color: var(--text-muted);
}
.footer-bottom p { margin-bottom: 4px; }

/* === 按钮通用 === */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 28px; border-radius: 50px; font-size: 0.95rem;
  font-weight: 600; cursor: pointer; transition: var(--transition);
  border: none; text-decoration: none;
}
.btn-gradient { background: var(--gradient-btn); color: #fff; }
.btn-gradient:hover { transform: translateY(-2px); box-shadow: 0 8px 30px rgba(255, 107, 53, 0.4); color: #fff; }
.btn-ghost { background: transparent; border: 2px solid var(--accent); color: var(--accent); }
.btn-ghost:hover { background: var(--accent); color: var(--bg-dark); }

/* === How-To指南 === */
.howto-steps {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px; counter-reset: step;
}
.howto-step {
  background: var(--gradient-card); border-radius: var(--radius);
  padding: 24px; border: 1px solid var(--border-glow);
  position: relative; counter-increment: step;
}
.howto-step::before {
  content: counter(step); position: absolute; top: -12px; left: 20px;
  width: 32px; height: 32px; background: var(--gradient-btn);
  border-radius: 50%; display: flex; align-items: center;
  justify-content: center; font-weight: 700; font-size: 0.9rem; color: #fff;
}
.howto-step h4 { font-size: 0.95rem; font-weight: 600; margin-bottom: 8px; margin-top: 8px; }
.howto-step p { font-size: 0.85rem; color: var(--text-muted); }

/* === MCP前端代码区域 === */
.mcp-widget {
  background: var(--gradient-card); border-radius: var(--radius);
  padding: 20px; border: 1px solid var(--border-glow);
  margin-top: 20px; font-family: "Courier New", monospace;
  font-size: 0.8rem; color: var(--accent);
}

/* === 懒加载占位 === */
img.lazy {
  background: linear-gradient(90deg, var(--bg-card) 25%, #2A2A4E 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  min-height: 160px;
}
img.loaded { animation: none; background: none; min-height: auto; }
.lazy-placeholder {
  background: linear-gradient(90deg, var(--bg-card) 25%, #2A2A4E 50%, var(--bg-card) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}
@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 内页Banner === */
.page-banner {
  padding: 100px 0 40px; background: var(--gradient-hero);
  text-align: center; position: relative;
}
.page-banner h1 {
  font-size: 2.2rem; font-weight: 700;
  background: var(--gradient-btn); -webkit-background-clip: text;
  -webkit-text-fill-color: transparent; background-clip: text;
}
.page-banner p { color: var(--text-muted); margin-top: 10px; }

/* === 移动端汉堡菜单 === */
.menu-toggle {
  display: none; background: none; border: none; cursor: pointer;
  width: 30px; height: 24px; position: relative; z-index: 1001;
}
.menu-toggle span {
  display: block; width: 100%; height: 3px; background: var(--text-light);
  border-radius: 2px; transition: var(--transition);
  position: absolute; left: 0;
}
.menu-toggle span:nth-child(1) { top: 0; }
.menu-toggle span:nth-child(2) { top: 10px; }
.menu-toggle span:nth-child(3) { top: 20px; }
.menu-toggle.active span:nth-child(1) { top: 10px; transform: rotate(45deg); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { top: 10px; transform: rotate(-45deg); }

/* === 响应式 === */
@media (max-width: 992px) {
  .hero-content h1 { font-size: 2rem; }
  .section { padding: 50px 0; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 768px) {
  .menu-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -100%; width: 280px; height: 100vh;
    background: rgba(13, 13, 26, 0.98); flex-direction: column;
    padding: 80px 20px 20px; gap: 4px;
    transition: right 0.3s ease; z-index: 1000;
  }
  .main-nav.active { right: 0; }
  .main-nav a { width: 100%; padding: 12px 16px; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero-content h2 { font-size: 1rem; }
  .search-bar { margin: 76px 16px 0; }
  .section-title h2 { font-size: 1.5rem; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
  .video-info { padding: 10px 12px; }
  .video-info h4 { font-size: 0.85rem; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .header-inner { height: 58px; }
  .logo-img { height: 34px; }
  .container { padding: 0 16px; }
}

@media (max-width: 480px) {
  .hero-content h1 { font-size: 1.3rem; }
  .video-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .module-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .share-bar { gap: 8px; }
  .share-btn { padding: 8px 14px; font-size: 0.8rem; }
  .footer-grid { grid-template-columns: 1fr; }
}

/* === 动画 === */
.fade-in {
  opacity: 1; transform: translateY(0);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.animate {
  opacity: 0; transform: translateY(30px);
}
.fade-in.animate.visible { opacity: 1; transform: translateY(0); }

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 8px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: var(--neon-purple); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--secondary); }

/* === 回到顶部 === */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px; width: 44px; height: 44px;
  background: var(--gradient-btn); border-radius: 50%; border: none;
  cursor: pointer; display: none; align-items: center; justify-content: center;
  z-index: 999; transition: var(--transition); box-shadow: var(--shadow-card);
  color: #fff; font-size: 1.2rem;
}
.back-to-top.show { display: flex; }
.back-to-top:hover { transform: translateY(-4px); }
