/* ============================================
   同人动漫 - 原创样式表
   brdtewfw.cn | 同人创作 · 动漫天地
   ============================================ */

/* === 变量定义 === */
:root {
  --primary: #6C3CE1;
  --accent: #FF6B35;
  --bg-dark: #0B0E1A;
  --bg-card: #141829;
  --bg-alt: #0F1225;
  --text-main: #E8ECF4;
  --text-sub: #8B92A8;
  --border: rgba(108,60,225,0.2);
  --radius: 12px;
  --shadow: 0 4px 24px rgba(108,60,225,0.15);
  --gradient: linear-gradient(135deg, #6C3CE1, #FF6B35);
  --font: 'PingFang SC','Hiragino Sans GB','Microsoft YaHei','Helvetica Neue',sans-serif;
}

/* === 重置 === */
*,*::before,*::after { margin:0;padding:0;box-sizing:border-box; }
html { scroll-behavior:smooth; }
body {
  font-family: var(--font);
  background: var(--bg-dark);
  color: var(--text-main);
  line-height: 1.7;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--primary); text-decoration: none; transition: color .2s; }
a:hover { color: var(--accent); }
img { max-width:100%; height:auto; display:block; }
ul,ol { list-style:none; }
button { cursor:pointer; border:none; background:none; font-family:var(--font); }

/* === 容器 === */
.container { max-width:1200px; margin:0 auto; padding:0 20px; }

/* === 公告栏 === */
.notice-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  padding: 8px 0;
  overflow: hidden;
  position: relative;
}
.notice-scroll {
  display: flex;
  gap: 60px;
  animation: scrollNotice 30s linear infinite;
  white-space: nowrap;
}
.notice-scroll span {
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  flex-shrink: 0;
}
@keyframes scrollNotice {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* === 顶部信息栏 === */
.topbar {
  background: rgba(11,14,26,0.95);
  border-bottom: 1px solid var(--border);
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-sub);
}
.topbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.topbar a { color: var(--text-sub); font-size: 13px; }
.topbar a:hover { color: var(--accent); }

/* === 头部 === */
.site-header {
  background: rgba(11,14,26,0.97);
  backdrop-filter: blur(12px);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.5);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0;
  gap: 20px;
}
.logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}
.site-logo { width:48px; height:48px; border-radius:10px; }
.logo-text { display:flex; flex-direction:column; }
.brand-name {
  font-size: 20px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.brand-sub { font-size:12px; color:var(--text-sub); }

/* === 导航 === */
.main-nav {
  display: flex;
  gap: 6px;
  align-items: center;
}
.main-nav a {
  color: var(--text-sub);
  font-size: 14px;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: 8px;
  transition: all .25s;
}
.main-nav a:hover,
.main-nav a.active {
  color: #fff;
  background: rgba(108,60,225,0.15);
}
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
}
.nav-toggle span {
  width: 22px;
  height: 2px;
  background: var(--text-main);
  border-radius: 2px;
  transition: .3s;
}

/* === 搜索框 === */
.search-wrap {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}
.search-form {
  display: flex;
  max-width: 600px;
  margin: 0 auto;
  border-radius: 30px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}
.search-form input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}
.search-form input::placeholder { color: var(--text-sub); }
.search-form button {
  padding: 12px 24px;
  background: var(--gradient);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  border: none;
  cursor: pointer;
  transition: opacity .2s;
}
.search-form button:hover { opacity:0.9; }

/* === Hero === */
.hero {
  position: relative;
  padding: 80px 0 60px;
  overflow: hidden;
  min-height: 520px;
  display: flex;
  align-items: center;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('/images/hero-banner.jpg') center/cover no-repeat;
  opacity: 0.3;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(11,14,26,0.6) 0%, var(--bg-dark) 100%);
}
.hero .container { position:relative; z-index:2; }
.hero-content { max-width:680px; }
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(108,60,225,0.2);
  border: 1px solid var(--border);
  border-radius: 30px;
  padding: 6px 16px;
  font-size: 13px;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 20px;
}
.hero-content h1 {
  font-size: 42px;
  font-weight: 900;
  line-height: 1.3;
  margin-bottom: 18px;
}
.hero-content h1 em {
  font-style: normal;
  color: var(--accent);
}
.hero-content p {
  font-size: 16px;
  color: var(--text-sub);
  line-height: 1.8;
  margin-bottom: 28px;
}
.hero-btns { display:flex; gap:14px; flex-wrap:wrap; }

/* === 按钮 === */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 700;
  transition: all .3s;
}
.btn-primary {
  background: var(--gradient);
  color: #fff;
  box-shadow: 0 4px 20px rgba(108,60,225,0.4);
}
.btn-primary:hover { transform:translateY(-2px); box-shadow:0 8px 30px rgba(108,60,225,0.5); color:#fff; }
.btn-outline {
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background:var(--primary); color:#fff; }

/* === 统计条 === */
.hero-stats {
  position: relative;
  z-index: 2;
  margin-top: 40px;
}
.hero-stats .container {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 30px;
}
.stat-item { text-align:center; min-width:100px; }
.stat-num {
  font-size: 28px;
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size:12px; color:var(--text-sub); margin-top:4px; }

/* === 通用段落 === */
.section { padding:70px 0; }
.section-alt { background:var(--bg-alt); }
.section-header { text-align:center; margin-bottom:48px; }
.section-tag {
  display: inline-block;
  background: rgba(108,60,225,0.15);
  border: 1px solid var(--border);
  color: var(--primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 14px;
}
.section-title {
  font-size: 30px;
  font-weight: 900;
  margin-bottom: 14px;
}
.section-title em { font-style:normal; color:var(--accent); }
.section-desc {
  font-size: 15px;
  color: var(--text-sub);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.8;
}

/* === 动漫卡片 === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: var(--primary);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: var(--bg-alt);
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform:scale(1.05); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(11,14,26,0.5);
  opacity: 0;
  transition: opacity .3s;
}
.video-card:hover .play-btn { opacity:1; }
.play-btn svg {
  width: 52px;
  height: 52px;
  fill: #fff;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.5));
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
}
.video-info { padding:16px; }
.video-tag {
  display: inline-block;
  background: rgba(108,60,225,0.15);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 12px;
  margin-bottom: 8px;
}
.video-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  line-height: 1.5;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  gap: 14px;
  font-size: 12px;
  color: var(--text-sub);
}

/* === 分类Tab === */
.cat-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 30px;
  flex-wrap: wrap;
  justify-content: center;
}
.cat-tab {
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  border: 1px solid var(--border);
  transition: all .25s;
}
.cat-tab:hover,
.cat-tab.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
}

/* === 特性卡片 === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
  transition: all .3s;
}
.feature-card:hover {
  border-color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow);
}
.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  background: rgba(108,60,225,0.12);
  border-radius: 14px;
  margin-bottom: 16px;
}
.feature-title {
  font-size: 17px;
  font-weight: 800;
  margin-bottom: 10px;
}
.feature-desc {
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.7;
}

/* === 专家卡片 === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all .3s;
}
.expert-card:hover { border-color:var(--primary); box-shadow:var(--shadow); }
.expert-photo {
  width: 100%;
  aspect-ratio: 4/3;
  object-fit: cover;
}
.expert-body { padding:20px; }
.expert-name { font-size:18px; font-weight:800; margin-bottom:4px; }
.expert-role { font-size:13px; color:var(--accent); margin-bottom:12px; }
.expert-desc { font-size:13px; color:var(--text-sub); line-height:1.7; margin-bottom:14px; }
.expert-tags { display:flex; gap:6px; flex-wrap:wrap; margin-bottom:14px; }
.expert-tag {
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 12px;
  background: rgba(108,60,225,0.1);
  color: var(--primary);
  border: 1px solid var(--border);
}
.expert-btns { display:flex; gap:10px; }
.btn-sm {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  transition: all .2s;
}
.btn-sm-primary { background:var(--primary); color:#fff; }
.btn-sm-primary:hover { background:#7d4ff0; }
.btn-sm-outline { border:1px solid var(--border); color:var(--text-sub); }
.btn-sm-outline:hover { border-color:var(--primary); color:var(--primary); }

/* === 合作品牌 === */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 14px;
}
.partner-item {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 16px;
  text-align: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-sub);
  transition: all .25s;
}
.partner-item:hover { border-color:var(--primary); color:var(--text-main); }

/* === 联系信息 === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-info-block {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info-block h3 { font-size:18px; font-weight:800; margin-bottom:18px; }
.contact-row {
  display: flex;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.6;
}
.contact-row strong { display:block; color:var(--text-main); font-size:13px; margin-bottom:2px; }
.contact-icon { font-size:18px; flex-shrink:0; }
.qr-row { display:flex; gap:20px; margin-top:20px; }
.qr-item { text-align:center; }
.qr-item img { width:100px; height:100px; border-radius:8px; margin-bottom:6px; }
.qr-item p { font-size:12px; color:var(--text-sub); }

/* === 用户评价 === */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
  transition: all .3s;
}
.review-card:hover { border-color:var(--primary); }
.review-stars { color:#FFD700; font-size:14px; margin-bottom:12px; }
.review-text { font-size:13px; color:var(--text-sub); line-height:1.7; margin-bottom:16px; font-style:italic; }
.review-author { display:flex; align-items:center; gap:12px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
.review-name { font-size:13px; font-weight:700; }
.review-date { font-size:11px; color:var(--text-sub); }

/* === FAQ === */
.faq-list { max-width:800px; margin:0 auto; }
.faq-item {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--bg-card);
}
.faq-q {
  width: 100%;
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
  font-weight: 700;
  color: var(--text-main);
  text-align: left;
  transition: background .2s;
}
.faq-q:hover { background:rgba(108,60,225,0.05); }
.faq-icon {
  font-size: 20px;
  color: var(--primary);
  transition: transform .3s;
}
.faq-item.open .faq-icon { transform:rotate(45deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease, padding .4s;
  padding: 0 24px;
  font-size: 13px;
  color: var(--text-sub);
  line-height: 1.8;
}
.faq-item.open .faq-a {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* === 分享栏 === */
.share-bar {
  background: var(--bg-card);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
}
.share-bar .container { display:flex; align-items:center; gap:16px; flex-wrap:wrap; }
.share-label { font-size:13px; font-weight:700; color:var(--text-sub); }
.share-btns { display:flex; gap:10px; }
.share-btn {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 12px;
  font-weight: 600;
  color: var(--text-sub);
  border: 1px solid var(--border);
  transition: all .25s;
}
.share-btn:hover { border-color:var(--primary); color:var(--primary); }

/* === 页脚 === */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--border);
  padding: 50px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand p { font-size:13px; color:var(--text-sub); line-height:1.7; margin-top:14px; }
.footer-social { display:flex; gap:10px; margin-top:14px; }
.social-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid var(--border);
  font-size: 16px;
  transition: all .25s;
}
.social-btn:hover { border-color:var(--primary); background:rgba(108,60,225,0.1); }
.footer-col h4 { font-size:14px; font-weight:800; margin-bottom:14px; color:var(--text-main); }
.footer-col ul li { margin-bottom:8px; }
.footer-col ul li a { font-size:13px; color:var(--text-sub); }
.footer-col ul li a:hover { color:var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--text-sub);
}
.footer-bottom a { color:var(--text-sub); }
.footer-bottom a:hover { color:var(--accent); }

/* === 模态框 === */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all .3s;
}
.modal-overlay.active { opacity:1; visibility:visible; }
.modal-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: 90%;
  max-width: 800px;
  overflow: hidden;
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}
.modal-title { font-size:15px; font-weight:700; }
.modal-close {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 18px;
  color: var(--text-sub);
  transition: all .2s;
}
.modal-close:hover { background:rgba(255,107,53,0.1); color:var(--accent); }
.modal-video {
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* === 干扰标签隐藏 === */
.GZFY55 {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
  font-size: 0;
  line-height: 0;
  color: transparent;
  z-index: -1;
}

/* === 面包屑 === */
.breadcrumb {
  padding: 16px 0;
  font-size: 13px;
  color: var(--text-sub);
}
.breadcrumb a { color:var(--text-sub); }
.breadcrumb a:hover { color:var(--accent); }
.breadcrumb span { margin:0 8px; }

/* === 响应式 === */
@media (max-width: 768px) {
  .main-nav {
    position: fixed;
    top: 0;
    right: -100%;
    width: 260px;
    height: 100vh;
    background: var(--bg-card);
    flex-direction: column;
    padding: 80px 20px 20px;
    transition: right .3s;
    z-index: 999;
    border-left: 1px solid var(--border);
  }
  .main-nav.open { right:0; }
  .nav-toggle { display:flex; }
  .hero-content h1 { font-size:28px; }
  .hero { min-height:400px; padding:50px 0 40px; }
  .footer-grid { grid-template-columns:1fr; gap:24px; }
  .contact-grid { grid-template-columns:1fr; }
  .expert-grid { grid-template-columns:1fr; }
  .feature-grid { grid-template-columns:1fr; }
  .hero-stats .container { flex-direction:row; flex-wrap:wrap; padding:16px; gap:16px; }
  .stat-item { min-width:80px; }
  .stat-num { font-size:22px; }
  .section { padding:50px 0; }
  .section-title { font-size:24px; }
}
@media (max-width: 480px) {
  .hero-content h1 { font-size:24px; }
  .btn { padding:12px 20px; font-size:13px; }
  .video-grid { grid-template-columns:1fr; }
}
