/* ===== 陈美娇 原创样式表 ===== */
/* 配色方案：深空蓝 #0a1628 | 星辰紫 #6c3ce0 | 暖橘 #f97316 | 浅灰 #f1f5f9 */

:root {
  --primary: #6c3ce0;
  --primary-light: #8b5cf6;
  --secondary: #f97316;
  --dark: #0a1628;
  --dark-alt: #111d35;
  --light: #f1f5f9;
  --gray: #64748b;
  --white: #ffffff;
  --radius: 12px;
  --shadow: 0 4px 24px rgba(108,60,224,0.10);
  --transition: all 0.3s cubic-bezier(0.4,0,0.2,1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", "Helvetica Neue", sans-serif;
  background: var(--dark);
  color: var(--light);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--transition); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* ===== 头部导航 ===== */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(10,22,40,0.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(108,60,224,0.15);
  padding: 0 20px;
}

.header-wrap {
  max-width: 1200px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}

.site-logo { display: flex; align-items: center; gap: 10px; }
.site-logo img { height: 38px; width: auto; }
.site-logo .logo-text { font-size: 20px; font-weight: 700; color: var(--white); }

.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  padding: 8px 16px; border-radius: 8px;
  font-size: 14px; font-weight: 500; color: var(--light);
  transition: var(--transition);
}
.main-nav a:hover, .main-nav a.active {
  background: var(--primary); color: var(--white);
}

.nav-search {
  position: relative; width: 200px;
}
.nav-search input {
  width: 100%; padding: 8px 36px 8px 14px;
  border-radius: 20px; border: 1px solid rgba(108,60,224,0.3);
  background: rgba(255,255,255,0.06); color: var(--white);
  font-size: 13px; outline: none; transition: var(--transition);
}
.nav-search input:focus { border-color: var(--primary); background: rgba(255,255,255,0.1); }
.nav-search .search-btn {
  position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  background: none; border: none; color: var(--gray); cursor: pointer; font-size: 16px;
}

.hamburger {
  display: none; flex-direction: column; gap: 5px; cursor: pointer;
  padding: 8px;
}
.hamburger span { width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

/* ===== 轮播Banner ===== */
.hero-section {
  margin-top: 68px; position: relative; overflow: hidden;
  height: 520px;
}
.hero-slides { display: flex; height: 100%; transition: transform 0.6s ease; }
.hero-slide {
  min-width: 100%; height: 100%; position: relative;
}
.hero-slide img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(10,22,40,0.8) 0%, rgba(108,60,224,0.3) 100%);
  display: flex; align-items: center; padding: 0 60px;
}
.hero-content { max-width: 600px; }
.hero-content h1 { font-size: 42px; font-weight: 800; margin-bottom: 16px; line-height: 1.2; }
.hero-content h1 span { color: var(--secondary); }
.hero-content p { font-size: 18px; color: rgba(255,255,255,0.85); margin-bottom: 28px; }
.hero-btn {
  display: inline-block; padding: 14px 36px;
  background: var(--primary); color: var(--white);
  border-radius: 30px; font-weight: 600; font-size: 15px;
  transition: var(--transition);
}
.hero-btn:hover { background: var(--secondary); transform: translateY(-2px); }
.hero-dots {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px;
}
.hero-dots span {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,0.4); cursor: pointer; transition: var(--transition);
}
.hero-dots span.active { background: var(--secondary); width: 28px; border-radius: 5px; }

/* ===== 区块通用 ===== */
.section { padding: 70px 0; }
.section-header { text-align: center; margin-bottom: 48px; }
.section-header h2 { font-size: 32px; font-weight: 700; margin-bottom: 12px; }
.section-header h2 span { color: var(--primary-light); }
.section-header p { color: var(--gray); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ===== 视频卡片网格 ===== */
.video-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: var(--dark-alt); border-radius: var(--radius);
  overflow: hidden; transition: var(--transition);
  border: 1px solid rgba(108,60,224,0.1);
}
.video-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--primary); }
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-thumb img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
  transition: var(--transition);
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgba(10,22,40,0.5); opacity: 0; transition: var(--transition);
}
.video-card:hover .video-play { opacity: 1; }
.video-play i {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 22px; color: var(--white);
}
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,0.75); color: var(--white);
  padding: 2px 8px; border-radius: 4px; font-size: 12px;
}
.video-info { padding: 16px; }
.video-info h3 { font-size: 15px; font-weight: 600; margin-bottom: 8px; line-height: 1.4; }
.video-meta { display: flex; align-items: center; gap: 12px; color: var(--gray); font-size: 13px; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag {
  display: inline-block; padding: 3px 10px; border-radius: 12px;
  background: rgba(108,60,224,0.15); color: var(--primary-light);
  font-size: 12px; margin-top: 8px;
}

/* ===== 直播区 ===== */
.live-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.live-card {
  background: var(--dark-alt); border-radius: var(--radius); overflow: hidden;
  border: 1px solid rgba(108,60,224,0.1); transition: var(--transition);
}
.live-card:hover { border-color: var(--secondary); }
.live-thumb { position: relative; padding-top: 56.25%; }
.live-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.live-badge {
  position: absolute; top: 10px; left: 10px;
  background: #ef4444; color: var(--white); padding: 3px 10px;
  border-radius: 4px; font-size: 12px; font-weight: 600;
  animation: pulse-live 1.5s infinite;
}
@keyframes pulse-live { 0%,100%{opacity:1} 50%{opacity:0.7} }
.live-viewers {
  position: absolute; top: 10px; right: 10px;
  background: rgba(0,0,0,0.7); color: var(--white); padding: 3px 8px;
  border-radius: 4px; font-size: 12px;
}
.live-info { padding: 14px; }
.live-info h4 { font-size: 14px; font-weight: 600; margin-bottom: 6px; }
.live-info p { font-size: 13px; color: var(--gray); }

/* ===== AI功能区 ===== */
.ai-features {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 24px;
}
.ai-card {
  background: linear-gradient(145deg, var(--dark-alt), rgba(108,60,224,0.08));
  border: 1px solid rgba(108,60,224,0.2); border-radius: var(--radius);
  padding: 28px; text-align: center; transition: var(--transition);
}
.ai-card:hover { transform: translateY(-4px); border-color: var(--primary); }
.ai-icon {
  width: 60px; height: 60px; margin: 0 auto 16px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  border-radius: 16px; display: flex; align-items: center; justify-content: center;
  font-size: 28px;
}
.ai-card h4 { font-size: 16px; font-weight: 600; margin-bottom: 10px; }
.ai-card p { font-size: 13px; color: var(--gray); line-height: 1.6; }

/* ===== 专家区 ===== */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 28px; }
.expert-card {
  background: var(--dark-alt); border-radius: var(--radius);
  padding: 28px; text-align: center;
  border: 1px solid rgba(108,60,224,0.1); transition: var(--transition);
}
.expert-card:hover { border-color: var(--primary); }
.expert-avatar {
  width: 90px; height: 90px; border-radius: 50%; margin: 0 auto 16px;
  overflow: hidden; border: 3px solid var(--primary);
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h4 { font-size: 17px; font-weight: 600; margin-bottom: 6px; }
.expert-card .role { color: var(--primary-light); font-size: 13px; margin-bottom: 10px; }
.expert-card .desc { font-size: 13px; color: var(--gray); margin-bottom: 14px; line-height: 1.6; }
.expert-btns { display: flex; gap: 10px; justify-content: center; }
.expert-btns a {
  padding: 7px 18px; border-radius: 20px; font-size: 13px; font-weight: 500;
}
.btn-primary { background: var(--primary); color: var(--white); }
.btn-outline { border: 1px solid var(--primary); color: var(--primary-light); }
.btn-primary:hover { background: var(--secondary); }
.btn-outline:hover { background: var(--primary); color: var(--white); }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--dark-alt); border-radius: var(--radius);
  margin-bottom: 12px; border: 1px solid rgba(108,60,224,0.1);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
  font-weight: 600; font-size: 15px; transition: var(--transition);
}
.faq-question:hover { color: var(--primary-light); }
.faq-icon { font-size: 20px; transition: var(--transition); color: var(--primary); }
.faq-item.active .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0; overflow: hidden; transition: max-height 0.3s ease;
}
.faq-item.active .faq-answer { max-height: 300px; }
.faq-answer-inner { padding: 0 24px 18px; color: var(--gray); font-size: 14px; line-height: 1.8; }

/* ===== 用户评论 ===== */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.review-card {
  background: var(--dark-alt); border-radius: var(--radius);
  padding: 24px; border: 1px solid rgba(108,60,224,0.1);
}
.review-stars { color: var(--secondary); font-size: 14px; margin-bottom: 12px; }
.review-text { font-size: 14px; color: var(--light); margin-bottom: 14px; line-height: 1.7; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author .avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--primary); display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
}
.review-author .name { font-size: 13px; font-weight: 500; }
.review-author .date { font-size: 12px; color: var(--gray); }

/* ===== How-To ===== */
.howto-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 24px; }
.howto-step {
  text-align: center; padding: 24px;
  background: var(--dark-alt); border-radius: var(--radius);
  border: 1px solid rgba(108,60,224,0.1);
}
.howto-num {
  width: 48px; height: 48px; border-radius: 50%; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 700;
}
.howto-step h4 { font-size: 15px; font-weight: 600; margin-bottom: 8px; }
.howto-step p { font-size: 13px; color: var(--gray); }

/* ===== 联系区 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 24px; }
.contact-item {
  background: var(--dark-alt); border-radius: var(--radius);
  padding: 24px; display: flex; align-items: flex-start; gap: 14px;
  border: 1px solid rgba(108,60,224,0.1);
}
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px;
  background: rgba(108,60,224,0.15); display: flex; align-items: center; justify-content: center;
  font-size: 20px; flex-shrink: 0;
}
.contact-item .label { font-size: 12px; color: var(--gray); margin-bottom: 4px; }
.contact-item .value { font-size: 14px; font-weight: 500; }

/* ===== 底部 ===== */
.site-footer {
  background: var(--dark-alt); border-top: 1px solid rgba(108,60,224,0.15);
  padding: 50px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px; margin-bottom: 40px;
}
.footer-brand .logo { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand .logo img { height: 32px; }
.footer-brand .logo span { font-size: 18px; font-weight: 700; }
.footer-brand p { font-size: 13px; color: var(--gray); line-height: 1.7; margin-bottom: 16px; }
.footer-col h5 { font-size: 15px; font-weight: 600; margin-bottom: 16px; color: var(--white); }
.footer-col a { display: block; font-size: 13px; color: var(--gray); padding: 5px 0; transition: var(--transition); }
.footer-col a:hover { color: var(--primary-light); }
.footer-qr { display: flex; gap: 16px; }
.footer-qr .qr-item { text-align: center; }
.footer-qr .qr-item img { width: 100px; height: 100px; border-radius: 8px; margin-bottom: 6px; }
.footer-qr .qr-item span { font-size: 11px; color: var(--gray); }
.footer-bottom {
  border-top: 1px solid rgba(108,60,224,0.1);
  padding: 20px 0; text-align: center;
  font-size: 13px; color: var(--gray);
}
.footer-bottom a { color: var(--primary-light); }

/* ===== 分享按钮 ===== */
.share-bar { display: flex; gap: 10px; justify-content: center; margin-top: 24px; }
.share-btn {
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px; transition: var(--transition); cursor: pointer;
}
.share-wechat { background: #07c160; color: #fff; }
.share-weibo { background: #e6162d; color: #fff; }
.share-douyin { background: #111; color: #fff; }
.share-bilibili { background: #00a1d6; color: #fff; }
.share-btn:hover { transform: scale(1.15); }

/* ===== 回到顶部 ===== */
.back-to-top {
  position: fixed; bottom: 30px; right: 30px;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--primary); color: var(--white);
  display: none; align-items: center; justify-content: center;
  font-size: 18px; cursor: pointer; z-index: 999;
  transition: var(--transition); box-shadow: var(--shadow);
}
.back-to-top:hover { background: var(--secondary); }
.back-to-top.show { display: flex; }

/* ===== 内页通用 ===== */
.page-banner {
  margin-top: 68px; padding: 60px 0;
  background: linear-gradient(135deg, var(--dark) 0%, rgba(108,60,224,0.2) 100%);
  text-align: center;
}
.page-banner h1 { font-size: 36px; font-weight: 700; margin-bottom: 12px; }
.page-banner .breadcrumb { font-size: 14px; color: var(--gray); }
.page-banner .breadcrumb a { color: var(--primary-light); }
.page-content { padding: 50px 0; }

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .main-nav { 
    display: none; position: fixed; top: 68px; left: 0; right: 0;
    background: var(--dark); flex-direction: column; padding: 20px;
    border-bottom: 1px solid rgba(108,60,224,0.2);
  }
  .main-nav.active { display: flex; }
  .hamburger { display: flex; }
  .nav-search { display: none; }
  .hero-section { height: 360px; }
  .hero-content h1 { font-size: 26px; }
  .hero-overlay { padding: 0 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-header h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .header-wrap { height: 56px; }
  .hero-section { height: 280px; margin-top: 56px; }
  .page-banner { margin-top: 56px; padding: 40px 0; }
}
