/* =============================================
   91网 - 主样式文件
   暗黑潮流·霓虹科技风格
   ============================================= */

/* ---- 基础重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --neon-gold: #f0c040;
  --neon-purple: #a855f7;
  --neon-pink: #ec4899;
  --neon-blue: #38bdf8;
  --bg-dark: #050508;
  --bg-card: #0d0d1a;
  --bg-card2: #110f1e;
  --text-main: #e2e0f0;
  --text-muted: #8b8ba8;
  --border-glow: rgba(168, 85, 247, 0.35);
  --gold-grad: linear-gradient(135deg, #f0c040 0%, #a855f7 100%);
  --purple-grad: linear-gradient(135deg, #a855f7 0%, #ec4899 100%);
  --font-main: 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', sans-serif;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  background-color: var(--bg-dark);
  color: var(--text-main);
  font-family: var(--font-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--neon-gold); text-decoration: none; transition: color .25s; }
a:hover { color: var(--neon-purple); }

img { max-width: 100%; height: auto; display: block; }

/* ---- 粒子背景画布 ---- */
#particles-canvas {
  position: fixed; top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none; z-index: 0;
  opacity: .45;
}

/* ---- 容器 ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 1; }
.section { padding: 80px 0; }
.section-sm { padding: 50px 0; }

/* ---- 标题样式 ---- */
.section-title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 700;
  text-align: center;
  margin-bottom: 12px;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .04em;
}
.section-subtitle {
  text-align: center;
  color: var(--text-muted);
  font-size: .95rem;
  margin-bottom: 48px;
}

/* ---- 霓虹分割线 ---- */
.neon-divider {
  width: 80px; height: 3px;
  background: var(--gold-grad);
  margin: 12px auto 0;
  border-radius: 2px;
  box-shadow: 0 0 12px var(--neon-gold);
}

/* ============================================
   导航栏
   ============================================ */
#navbar {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(5,5,8,.88);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border-glow);
  transition: background .3s;
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo {
  font-size: 1.5rem; font-weight: 900;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: .06em;
  white-space: nowrap;
}
.nav-logo span { font-size: .75rem; display: block; color: var(--text-muted); -webkit-text-fill-color: var(--text-muted); }

.nav-menu { display: flex; gap: 6px; list-style: none; align-items: center; }
.nav-menu a {
  display: block; padding: 6px 14px;
  font-size: .88rem; color: var(--text-main);
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(168,85,247,.18);
  color: var(--neon-gold);
}

/* 汉堡菜单 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--neon-gold); border-radius: 2px; transition: .3s; }

/* ============================================
   搜索框
   ============================================ */
.search-bar-wrap {
  background: rgba(13,13,26,.9);
  border-bottom: 1px solid rgba(168,85,247,.2);
  padding: 10px 0;
  position: sticky; top: 64px; z-index: 900;
}
.search-inner {
  display: flex; align-items: center; gap: 10px;
  max-width: 680px; margin: 0 auto; padding: 0 20px;
}
.search-input {
  flex: 1; height: 42px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(168,85,247,.4);
  border-radius: 22px;
  padding: 0 20px;
  color: var(--text-main);
  font-size: .9rem;
  outline: none;
  transition: border-color .25s, box-shadow .25s;
}
.search-input::placeholder { color: var(--text-muted); }
.search-input:focus {
  border-color: var(--neon-gold);
  box-shadow: 0 0 0 3px rgba(240,192,64,.15);
}
.search-btn {
  height: 42px; padding: 0 22px;
  background: var(--gold-grad);
  border: none; border-radius: 22px;
  color: #0a0a12; font-weight: 700; font-size: .88rem;
  cursor: pointer; transition: opacity .2s, transform .15s;
  white-space: nowrap;
}
.search-btn:hover { opacity: .88; transform: translateY(-1px); }

/* ============================================
   Banner 首屏
   ============================================ */
.banner {
  position: relative; min-height: 100vh;
  display: flex; align-items: center;
  overflow: hidden;
  padding-top: 120px;
}
.banner-bg {
  position: absolute; inset: 0;
  background-image: url('../img/banner.jpg');
  background-size: cover; background-position: center;
  filter: brightness(.45) saturate(1.3);
  transform: scale(1.04);
  transition: transform 8s ease;
}
.banner-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg,
    rgba(5,5,8,.85) 0%,
    rgba(10,5,25,.6) 50%,
    rgba(5,5,8,.8) 100%);
}
.banner-content {
  position: relative; z-index: 2;
  max-width: 720px;
}
.banner-badge {
  display: inline-block;
  background: rgba(168,85,247,.22);
  border: 1px solid var(--neon-purple);
  color: var(--neon-purple);
  font-size: .78rem; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
  margin-bottom: 20px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.banner h1 {
  font-size: clamp(2.2rem, 5vw, 4rem);
  font-weight: 900; line-height: 1.15;
  margin-bottom: 18px;
  background: linear-gradient(135deg, #fff 0%, var(--neon-gold) 50%, var(--neon-purple) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.banner-sub {
  font-size: clamp(1rem, 2vw, 1.25rem);
  color: rgba(226,224,240,.8);
  margin-bottom: 32px;
  max-width: 560px;
}
.banner-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 32px;
  background: var(--gold-grad);
  color: #0a0a12; font-weight: 700; font-size: 1rem;
  border-radius: 30px; border: none; cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 24px rgba(240,192,64,.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 8px 32px rgba(240,192,64,.5); color: #0a0a12; }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 30px;
  background: transparent;
  border: 2px solid var(--neon-purple);
  color: var(--neon-purple); font-weight: 700; font-size: 1rem;
  border-radius: 30px; cursor: pointer;
  transition: background .2s, color .2s, transform .2s;
}
.btn-outline:hover { background: var(--neon-purple); color: #fff; transform: translateY(-3px); }

.banner-stats {
  display: flex; gap: 40px; margin-top: 48px;
  flex-wrap: wrap;
}
.stat-item { text-align: left; }
.stat-num {
  font-size: 1.8rem; font-weight: 900;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-label { font-size: .8rem; color: var(--text-muted); margin-top: 2px; }

/* ============================================
   视频卡片
   ============================================ */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--bg-card);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .3s, box-shadow .3s, border-color .3s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(168,85,247,.3);
  border-color: var(--neon-purple);
}
.video-thumb {
  position: relative; aspect-ratio: 16/9; overflow: hidden;
  background: #0d0d1a;
}
.video-thumb img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }

/* 播放按钮覆盖层 */
.video-play-overlay {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(5,5,8,.0);
  transition: background .3s;
}
.video-card:hover .video-play-overlay { background: rgba(5,5,8,.45); }
.play-btn {
  width: 56px; height: 56px;
  background: rgba(240,192,64,.9);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  opacity: 0; transform: scale(.7);
  transition: opacity .3s, transform .3s;
  box-shadow: 0 0 24px rgba(240,192,64,.6);
}
.video-card:hover .play-btn { opacity: 1; transform: scale(1); }
.play-btn svg { width: 22px; height: 22px; fill: #0a0a12; margin-left: 3px; }

/* 视频标签 */
.video-tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--neon-purple);
  color: #fff; font-size: .7rem; font-weight: 700;
  padding: 3px 10px; border-radius: 10px;
  letter-spacing: .04em;
}
.video-tag.hot { background: linear-gradient(90deg, #f0c040, #ec4899); color: #0a0a12; }

.video-info { padding: 14px 16px; }
.video-title {
  font-size: .95rem; font-weight: 600;
  color: var(--text-main); margin-bottom: 10px;
  display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
  line-height: 1.45;
}
.video-meta {
  display: flex; gap: 14px;
  font-size: .78rem; color: var(--text-muted);
  align-items: center;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }

/* ============================================
   社区模块
   ============================================ */
.community-section { background: rgba(13,13,26,.6); }
.topics-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px; margin-bottom: 32px;
}
.topic-card {
  background: var(--bg-card2);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 12px; padding: 18px 20px;
  transition: border-color .25s, transform .25s;
}
.topic-card:hover { border-color: var(--neon-gold); transform: translateY(-3px); }
.topic-tag {
  font-size: .82rem; color: var(--neon-purple);
  font-weight: 700; margin-bottom: 6px;
}
.topic-title { font-size: .92rem; color: var(--text-main); margin-bottom: 8px; }
.topic-meta { font-size: .75rem; color: var(--text-muted); }

/* 弹幕滚动 */
.danmaku-wrap {
  overflow: hidden; height: 40px;
  background: rgba(168,85,247,.08);
  border-radius: 8px; position: relative;
  border: 1px solid rgba(168,85,247,.2);
}
.danmaku-track {
  display: flex; gap: 60px;
  white-space: nowrap;
  animation: danmaku-scroll 20s linear infinite;
  position: absolute; top: 50%; transform: translateY(-50%);
}
.danmaku-item {
  font-size: .85rem; color: var(--neon-gold);
  padding: 0 12px;
}
@keyframes danmaku-scroll {
  0% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(-50%); }
}

/* ============================================
   AI模块
   ============================================ */
.ai-tools-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.ai-tool-card {
  background: var(--bg-card);
  border: 1px solid rgba(56,189,248,.2);
  border-radius: 14px; padding: 28px 24px;
  text-align: center;
  transition: border-color .3s, transform .3s, box-shadow .3s;
  position: relative; overflow: hidden;
}
.ai-tool-card::before {
  content: '';
  position: absolute; top: -40%; left: -40%;
  width: 180%; height: 180%;
  background: radial-gradient(circle, rgba(168,85,247,.08) 0%, transparent 70%);
  pointer-events: none;
}
.ai-tool-card:hover {
  border-color: var(--neon-blue);
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(56,189,248,.2);
}
.ai-icon {
  font-size: 2.4rem; margin-bottom: 14px;
  display: block;
}
.ai-tool-name {
  font-size: 1rem; font-weight: 700;
  color: var(--neon-blue); margin-bottom: 8px;
}
.ai-tool-desc { font-size: .85rem; color: var(--text-muted); }

/* ============================================
   专家模块
   ============================================ */
.experts-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.expert-card {
  background: var(--bg-card);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 16px; padding: 28px 24px;
  text-align: center;
  transition: transform .3s, box-shadow .3s;
}
.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 36px rgba(168,85,247,.25);
}
.expert-avatar {
  width: 88px; height: 88px; border-radius: 50%;
  object-fit: cover; margin: 0 auto 16px;
  border: 3px solid var(--neon-purple);
  box-shadow: 0 0 18px rgba(168,85,247,.4);
}
.expert-name { font-size: 1.05rem; font-weight: 700; color: var(--text-main); margin-bottom: 4px; }
.expert-role { font-size: .82rem; color: var(--neon-gold); margin-bottom: 10px; }
.expert-desc { font-size: .85rem; color: var(--text-muted); }

/* ============================================
   用户评价
   ============================================ */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.review-card {
  background: var(--bg-card2);
  border: 1px solid rgba(168,85,247,.18);
  border-radius: 14px; padding: 24px;
  transition: border-color .25s, transform .25s;
}
.review-card:hover { border-color: var(--neon-gold); transform: translateY(-3px); }
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-avatar {
  width: 48px; height: 48px; border-radius: 50%;
  object-fit: cover; border: 2px solid var(--neon-purple);
  flex-shrink: 0;
}
.review-user { font-size: .9rem; font-weight: 600; color: var(--text-main); }
.review-stars { color: var(--neon-gold); font-size: .85rem; }
.review-text { font-size: .88rem; color: var(--text-muted); line-height: 1.65; }

/* ============================================
   FAQ
   ============================================ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item {
  background: var(--bg-card);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 12px; margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  padding: 18px 22px;
  font-size: .95rem; font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  transition: background .2s;
}
.faq-q:hover { background: rgba(168,85,247,.1); }
.faq-q .arrow {
  width: 20px; height: 20px; flex-shrink: 0;
  border-right: 2px solid var(--neon-gold);
  border-bottom: 2px solid var(--neon-gold);
  transform: rotate(45deg);
  transition: transform .3s;
  margin-left: 12px;
}
.faq-item.open .faq-q .arrow { transform: rotate(-135deg); }
.faq-a {
  padding: 0 22px;
  max-height: 0; overflow: hidden;
  font-size: .88rem; color: var(--text-muted);
  transition: max-height .35s ease, padding .35s;
}
.faq-item.open .faq-a { max-height: 200px; padding: 0 22px 18px; }

/* ============================================
   合作伙伴
   ============================================ */
.partners-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 16px;
}
.partner-item {
  background: var(--bg-card);
  border: 1px solid rgba(168,85,247,.15);
  border-radius: 10px; padding: 18px;
  text-align: center;
  font-size: .88rem; font-weight: 600;
  color: var(--text-muted);
  transition: border-color .25s, color .25s;
}
.partner-item:hover { border-color: var(--neon-gold); color: var(--neon-gold); }

/* ============================================
   联系模块
   ============================================ */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: var(--bg-card);
  border: 1px solid rgba(168,85,247,.2);
  border-radius: 14px; padding: 28px 24px;
}
.contact-card h3 { font-size: 1rem; color: var(--neon-gold); margin-bottom: 14px; }
.contact-card p { font-size: .88rem; color: var(--text-muted); margin-bottom: 8px; }
.qr-img { width: 120px; height: 120px; border-radius: 8px; margin-top: 10px; }

/* ============================================
   页脚
   ============================================ */
footer {
  background: rgba(5,5,8,.97);
  border-top: 1px solid rgba(168,85,247,.25);
  padding: 48px 0 24px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo-text {
  font-size: 1.6rem; font-weight: 900;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.footer-brand p { font-size: .85rem; color: var(--text-muted); line-height: 1.7; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: var(--text-main); margin-bottom: 16px; }
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .85rem; color: var(--text-muted); transition: color .2s; }
.footer-col ul li a:hover { color: var(--neon-gold); }

.footer-bottom {
  border-top: 1px solid rgba(168,85,247,.15);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: .8rem; color: var(--text-muted); }
.footer-social { display: flex; gap: 12px; }
.social-link {
  width: 34px; height: 34px;
  background: rgba(168,85,247,.15);
  border: 1px solid rgba(168,85,247,.3);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: .8rem; color: var(--text-muted);
  transition: background .2s, color .2s;
}
.social-link:hover { background: var(--neon-purple); color: #fff; }

/* ============================================
   内页 Hero
   ============================================ */
.inner-hero {
  padding: 140px 0 60px;
  background: linear-gradient(135deg, rgba(5,5,8,1) 0%, rgba(20,10,40,.9) 100%);
  border-bottom: 1px solid rgba(168,85,247,.2);
  position: relative; overflow: hidden;
}
.inner-hero::before {
  content: '';
  position: absolute; top: -100px; right: -100px;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(168,85,247,.12) 0%, transparent 70%);
  pointer-events: none;
}
.inner-hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 900;
  background: var(--gold-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.inner-hero p { font-size: 1rem; color: var(--text-muted); max-width: 600px; }
.breadcrumb {
  font-size: .82rem; color: var(--text-muted);
  margin-bottom: 16px;
}
.breadcrumb a { color: var(--neon-gold); }
.breadcrumb span { margin: 0 6px; }

/* ============================================
   响应式
   ============================================ */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .nav-menu { display: none; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(5,5,8,.98); padding: 16px; border-bottom: 1px solid var(--border-glow); }
  .nav-menu.open { display: flex; }
  .nav-toggle { display: flex; }
  .banner { min-height: 80vh; padding-top: 100px; }
  .banner h1 { font-size: 2rem; }
  .banner-stats { gap: 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .section { padding: 50px 0; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
}

@media (max-width: 480px) {
  .banner-btns { flex-direction: column; }
  .btn-primary, .btn-outline { width: 100%; justify-content: center; }
  .search-inner { flex-direction: column; }
  .search-btn { width: 100%; }
}

/* ============================================
   工具类
   ============================================ */
.text-gold { color: var(--neon-gold); }
.text-purple { color: var(--neon-purple); }
.text-muted { color: var(--text-muted); }
.mt-4 { margin-top: 16px; }
.mt-8 { margin-top: 32px; }
.mb-4 { margin-bottom: 16px; }
.text-center { text-align: center; }

/* 懒加载占位 */
img[loading="lazy"] { background: var(--bg-card); }

/* 滚动条美化 */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: var(--bg-dark); }
::-webkit-scrollbar-thumb { background: rgba(168,85,247,.5); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--neon-purple); }

/* 选中文字颜色 */
::selection { background: rgba(168,85,247,.35); color: #fff; }
