/* =============================================
   萝莉岛 - 主样式文件
   品牌色: 深紫 #5B21B6 / 金色 #D97706 / 浅紫 #7C3AED
   ============================================= */

/* === 基础重置 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif;
  background: #0F0A1E;
  color: #E2D9F3;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #A78BFA; text-decoration: none; transition: color .25s; }
a:hover { color: #D97706; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === 顶部公告栏 === */
.top-bar {
  background: linear-gradient(90deg, #5B21B6, #7C3AED, #5B21B6);
  color: #fff;
  text-align: center;
  font-size: .82rem;
  padding: 6px 16px;
  letter-spacing: .04em;
}
.top-bar a { color: #FDE68A; }

/* === 头部 Header === */
.site-header {
  background: rgba(15,10,30,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(124,58,237,.3);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0 5%;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1280px;
  margin: 0 auto;
}
.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.site-logo img {
  height: 44px;
  width: auto;
}
.site-logo .logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, #A78BFA, #D97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

/* === 导航 === */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  color: #C4B5FD;
  font-size: .92rem;
  padding: 6px 14px;
  border-radius: 6px;
  transition: background .2s, color .2s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  background: rgba(124,58,237,.25);
  color: #D97706;
}
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  flex-direction: column;
  gap: 5px;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #A78BFA;
  border-radius: 2px;
  transition: transform .3s;
}

/* === 搜索栏 === */
.search-bar-wrap {
  background: rgba(91,33,182,.15);
  border-bottom: 1px solid rgba(124,58,237,.2);
  padding: 10px 5%;
}
.search-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.search-bar-inner form {
  display: flex;
  flex: 1;
  max-width: 640px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(124,58,237,.4);
  border-radius: 24px;
  overflow: hidden;
}
.search-bar-inner input {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  color: #E2D9F3;
  padding: 8px 18px;
  font-size: .9rem;
}
.search-bar-inner input::placeholder { color: #7C6FA0; }
.search-bar-inner button {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  border: none;
  color: #fff;
  padding: 8px 20px;
  cursor: pointer;
  font-size: .88rem;
  transition: opacity .2s;
}
.search-bar-inner button:hover { opacity: .85; }
.search-tips { font-size: .78rem; color: #7C6FA0; }
.search-tips a { color: #A78BFA; font-size: .78rem; }

/* === 面包屑 === */
.breadcrumb {
  padding: 10px 5%;
  font-size: .82rem;
  color: #7C6FA0;
  max-width: 1280px;
  margin: 0 auto;
}
.breadcrumb a { color: #A78BFA; }
.breadcrumb span { margin: 0 6px; }

/* === Hero 首屏 === */
.hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 60px 5%;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background: url('../images/hero-banner.jpg') center/cover no-repeat;
  filter: brightness(.35);
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 1;
  max-width: 680px;
}
.hero-tag {
  display: inline-block;
  background: rgba(217,119,6,.2);
  border: 1px solid #D97706;
  color: #FDE68A;
  font-size: .78rem;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  letter-spacing: .06em;
}
.hero h1 {
  font-size: clamp(1.8rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.25;
  color: #fff;
  margin-bottom: 16px;
}
.hero h1 em {
  font-style: normal;
  background: linear-gradient(135deg, #A78BFA, #D97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero p {
  font-size: 1rem;
  color: #C4B5FD;
  margin-bottom: 28px;
  line-height: 1.8;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }
.btn-primary {
  background: linear-gradient(135deg, #7C3AED, #5B21B6);
  color: #fff;
  padding: 12px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s;
  display: inline-block;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(124,58,237,.5);
  color: #fff;
}
.btn-outline {
  background: transparent;
  color: #A78BFA;
  padding: 11px 28px;
  border-radius: 8px;
  font-size: .95rem;
  font-weight: 600;
  border: 1.5px solid #7C3AED;
  cursor: pointer;
  transition: background .2s, color .2s;
  display: inline-block;
}
.btn-outline:hover {
  background: rgba(124,58,237,.2);
  color: #D97706;
}
.hero-stats {
  display: flex;
  gap: 32px;
  margin-top: 36px;
  flex-wrap: wrap;
}
.hero-stat { text-align: center; }
.hero-stat .num {
  font-size: 1.6rem;
  font-weight: 800;
  color: #D97706;
}
.hero-stat .label { font-size: .78rem; color: #9CA3AF; }

/* === 通用区块 === */
.section { padding: 64px 5%; }
.section-inner { max-width: 1280px; margin: 0 auto; }
.section-header { text-align: center; margin-bottom: 40px; }
.section-tag {
  display: inline-block;
  background: rgba(124,58,237,.2);
  border: 1px solid rgba(124,58,237,.5);
  color: #A78BFA;
  font-size: .75rem;
  padding: 3px 12px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.section-header h2 {
  font-size: clamp(1.4rem, 3vw, 2rem);
  font-weight: 700;
  color: #fff;
  margin-bottom: 10px;
}
.section-header p { color: #9CA3AF; font-size: .95rem; max-width: 560px; margin: 0 auto; }
.section-divider {
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, #7C3AED, #D97706);
  border-radius: 2px;
  margin: 12px auto 0;
}

/* === 视频卡片 === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.video-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 12px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124,58,237,.3);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #1A1030;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .25s;
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,.6));
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.75);
  color: #fff;
  font-size: .72rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-info { padding: 14px; }
.video-info h3 {
  font-size: .92rem;
  font-weight: 600;
  color: #E2D9F3;
  margin-bottom: 6px;
  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: 10px;
  font-size: .75rem;
  color: #7C6FA0;
  flex-wrap: wrap;
}
.video-meta .views::before { content: '▶ '; }
.video-meta .likes::before { content: '♥ '; color: #F87171; }
.video-meta .comments::before { content: '💬 '; }
.video-tags { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; }
.video-tag {
  background: rgba(124,58,237,.2);
  color: #A78BFA;
  font-size: .68rem;
  padding: 2px 8px;
  border-radius: 10px;
}

/* === 专家卡片 === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}
.expert-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 16px;
  padding: 24px 20px;
  text-align: center;
  transition: transform .25s, box-shadow .25s;
}
.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124,58,237,.25);
}
.expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 12px;
  border: 3px solid #7C3AED;
}
.expert-name { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 4px; }
.expert-title { font-size: .8rem; color: #A78BFA; margin-bottom: 8px; }
.expert-desc { font-size: .8rem; color: #9CA3AF; margin-bottom: 14px; line-height: 1.6; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.btn-sm {
  font-size: .75rem;
  padding: 5px 12px;
  border-radius: 6px;
  border: 1px solid #7C3AED;
  color: #A78BFA;
  background: transparent;
  cursor: pointer;
  transition: background .2s;
  text-decoration: none;
  display: inline-block;
}
.btn-sm:hover { background: rgba(124,58,237,.25); color: #D97706; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 10px;
  margin-bottom: 12px;
  overflow: hidden;
}
.faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: #E2D9F3;
  user-select: none;
}
.faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: #7C3AED;
  transition: transform .3s;
  flex-shrink: 0;
  margin-left: 10px;
}
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  display: none;
  padding: 0 20px 16px;
  font-size: .88rem;
  color: #9CA3AF;
  line-height: 1.8;
}
.faq-item.open .faq-a { display: block; }

/* === 评论 === */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 12px;
  padding: 20px;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7C3AED, #D97706);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  color: #fff;
  font-weight: 700;
  flex-shrink: 0;
}
.review-name { font-size: .9rem; font-weight: 600; color: #E2D9F3; }
.review-stars { color: #D97706; font-size: .85rem; }
.review-text { font-size: .85rem; color: #9CA3AF; line-height: 1.7; }
.review-date { font-size: .75rem; color: #5B4E7A; margin-top: 8px; }

/* === 合作品牌 === */
.partner-logos {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.partner-logo {
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 10px;
  padding: 14px 24px;
  font-size: .88rem;
  color: #9CA3AF;
  transition: background .2s, color .2s;
  font-weight: 600;
}
.partner-logo:hover { background: rgba(124,58,237,.2); color: #A78BFA; }

/* === 联系区块 === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.contact-card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 14px;
  padding: 24px;
  text-align: center;
}
.contact-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}
.contact-card h3 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 8px; }
.contact-card p { font-size: .85rem; color: #9CA3AF; line-height: 1.7; }
.qr-img { width: 120px; height: 120px; margin: 12px auto 0; border-radius: 8px; }

/* === 社交分享 === */
.share-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: center;
  padding: 20px 0;
}
.share-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .82rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: opacity .2s, transform .2s;
}
.share-btn:hover { opacity: .85; transform: translateY(-2px); }
.share-wechat { background: #07C160; color: #fff; }
.share-weibo { background: #E6162D; color: #fff; }
.share-douyin { background: #000; color: #fff; border: 1px solid #333; }
.share-bilibili { background: #00A1D6; color: #fff; }

/* === 页脚 === */
.site-footer {
  background: #080514;
  border-top: 1px solid rgba(124,58,237,.2);
  padding: 48px 5% 24px;
}
.footer-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .logo-text {
  font-size: 1.3rem;
  font-weight: 700;
  background: linear-gradient(135deg, #A78BFA, #D97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.footer-brand p { font-size: .85rem; color: #7C6FA0; line-height: 1.8; margin-bottom: 16px; }
.footer-col h4 { font-size: .9rem; font-weight: 700; color: #E2D9F3; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .83rem; color: #7C6FA0; }
.footer-col ul li a:hover { color: #A78BFA; }
.footer-bottom {
  border-top: 1px solid rgba(124,58,237,.15);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}
.footer-bottom p { font-size: .8rem; color: #5B4E7A; }
.footer-bottom a { color: #7C6FA0; }
.footer-update { font-size: .78rem; color: #5B4E7A; }

/* === 内页 Banner === */
.page-banner {
  background: linear-gradient(135deg, #1A0A3A 0%, #0F0A1E 100%);
  border-bottom: 1px solid rgba(124,58,237,.3);
  padding: 48px 5%;
  text-align: center;
}
.page-banner h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: #fff;
  margin-bottom: 10px;
}
.page-banner p { font-size: .95rem; color: #9CA3AF; max-width: 600px; margin: 0 auto; }

/* === 卡片通用 === */
.card {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 14px;
  overflow: hidden;
  transition: transform .25s, box-shadow .25s;
}
.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 32px rgba(124,58,237,.25);
}
.card-img { aspect-ratio: 16/9; overflow: hidden; }
.card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card:hover .card-img img { transform: scale(1.05); }
.card-body { padding: 18px; }
.card-body h3 { font-size: .95rem; font-weight: 700; color: #E2D9F3; margin-bottom: 8px; }
.card-body p { font-size: .83rem; color: #9CA3AF; line-height: 1.7; }

/* === 标签云 === */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag {
  background: rgba(124,58,237,.15);
  border: 1px solid rgba(124,58,237,.3);
  color: #A78BFA;
  font-size: .78rem;
  padding: 4px 12px;
  border-radius: 14px;
  transition: background .2s;
}
.tag:hover { background: rgba(124,58,237,.35); }

/* === 统计数字 === */
.stats-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-item {
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(124,58,237,.2);
  border-radius: 12px;
  padding: 20px;
}
.stat-item .num {
  font-size: 2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #A78BFA, #D97706);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat-item .label { font-size: .8rem; color: #9CA3AF; margin-top: 4px; }

/* === 分页 === */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
  flex-wrap: wrap;
}
.pagination a, .pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  font-size: .88rem;
  border: 1px solid rgba(124,58,237,.3);
  color: #A78BFA;
  transition: background .2s;
}
.pagination a:hover, .pagination .current {
  background: rgba(124,58,237,.3);
  color: #D97706;
}

/* === 加载动画 === */
.skeleton {
  background: linear-gradient(90deg, rgba(255,255,255,.05) 25%, rgba(255,255,255,.1) 50%, rgba(255,255,255,.05) 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 6px;
}
@keyframes skeleton-loading {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* === 通知条 === */
.notice-bar {
  background: rgba(217,119,6,.1);
  border: 1px solid rgba(217,119,6,.3);
  border-radius: 8px;
  padding: 12px 18px;
  font-size: .85rem;
  color: #FDE68A;
  margin-bottom: 24px;
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: rgba(15,10,30,.98); padding: 16px; border-bottom: 1px solid rgba(124,58,237,.3); gap: 4px; }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 10px 16px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .hero { min-height: 400px; padding: 40px 5%; }
  .hero h1 { font-size: 1.6rem; }
  .hero-stats { gap: 20px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .video-grid { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
  .review-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
}
@media (max-width: 480px) {
  .section { padding: 40px 4%; }
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-outline { text-align: center; }
  .video-grid { grid-template-columns: 1fr; }
}

/* === 懒加载占位 === */
img[data-src] { opacity: 0; transition: opacity .4s; }
img.loaded { opacity: 1; }

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #0F0A1E; }
::-webkit-scrollbar-thumb { background: #5B21B6; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #7C3AED; }
