/* ============================================
   校花 - 校园影视传媒社区 原创样式表
   品牌：校花 | 域名：859518.cn
   配色：樱花粉红 + 深紫 + 暖橙
   ============================================ */

/* === CSS变量定义 === */
:root {
  --xh-primary: #E8436F;
  --xh-primary-dark: #C7325A;
  --xh-secondary: #2D1B4E;
  --xh-accent: #FF8C42;
  --xh-bg: #FFF5F7;
  --xh-bg-alt: #FDF0F3;
  --xh-text: #1A1A2E;
  --xh-text-light: #5A5A7A;
  --xh-card: #FFFFFF;
  --xh-border: #F0D4DC;
  --xh-gradient: linear-gradient(135deg, #E8436F, #FF8C42);
  --xh-gradient-dark: linear-gradient(135deg, #2D1B4E, #E8436F);
  --xh-shadow: 0 4px 20px rgba(232, 67, 111, 0.12);
  --xh-shadow-hover: 0 8px 32px rgba(232, 67, 111, 0.22);
  --xh-radius: 12px;
  --xh-radius-sm: 8px;
  --xh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === 全局重置 === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  background-color: var(--xh-bg);
  color: var(--xh-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--xh-primary);
  text-decoration: none;
  transition: var(--xh-transition);
}

a:hover {
  color: var(--xh-accent);
}

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

ul, ol {
  list-style: none;
}

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

/* === 顶部导航 === */
.xh-header {
  background: var(--xh-card);
  box-shadow: 0 2px 12px rgba(45, 27, 78, 0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 2px solid var(--xh-primary);
}

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

.xh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xh-logo img {
  height: 42px;
  width: auto;
}

.xh-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  background: var(--xh-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xh-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}

.xh-nav a {
  padding: 8px 16px;
  border-radius: var(--xh-radius-sm);
  color: var(--xh-text);
  font-weight: 500;
  font-size: 0.95rem;
  transition: var(--xh-transition);
  white-space: nowrap;
}

.xh-nav a:hover,
.xh-nav a.active {
  background: var(--xh-gradient);
  color: #fff;
}

.xh-mobile-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.xh-mobile-toggle span {
  width: 24px;
  height: 2px;
  background: var(--xh-text);
  border-radius: 2px;
  transition: var(--xh-transition);
}

/* === 搜索框 === */
.xh-search-bar {
  background: var(--xh-gradient);
  padding: 14px 0;
}

.xh-search-wrap {
  max-width: 680px;
  margin: 0 auto;
  display: flex;
  gap: 0;
  padding: 0 20px;
}

.xh-search-wrap input {
  flex: 1;
  padding: 12px 20px;
  border: none;
  border-radius: var(--xh-radius) 0 0 var(--xh-radius);
  font-size: 1rem;
  outline: none;
  background: #fff;
  color: var(--xh-text);
}

.xh-search-wrap input::placeholder {
  color: #aaa;
}

.xh-search-wrap button {
  padding: 12px 28px;
  background: var(--xh-secondary);
  color: #fff;
  border: none;
  border-radius: 0 var(--xh-radius) var(--xh-radius) 0;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--xh-transition);
  white-space: nowrap;
}

.xh-search-wrap button:hover {
  background: #3D2B5E;
}

/* === 面包屑导航 === */
.xh-breadcrumb {
  padding: 12px 0;
  font-size: 0.88rem;
  color: var(--xh-text-light);
}

.xh-breadcrumb a {
  color: var(--xh-primary);
}

.xh-breadcrumb span {
  margin: 0 6px;
  color: #ccc;
}

/* === Hero轮播 === */
.xh-hero {
  position: relative;
  overflow: hidden;
  max-height: 480px;
  background: var(--xh-secondary);
}

.xh-hero-slide {
  display: none;
  position: relative;
}

.xh-hero-slide.active {
  display: block;
}

.xh-hero-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
}

.xh-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(45, 27, 78, 0.85));
  color: #fff;
}

.xh-hero-overlay h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.xh-hero-overlay p {
  font-size: 1.1rem;
  opacity: 0.92;
  max-width: 600px;
}

.xh-hero-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.xh-hero-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--xh-transition);
}

.xh-hero-dots span.active {
  background: var(--xh-primary);
  width: 28px;
  border-radius: 5px;
}

/* === 通用区块标题 === */
.xh-section {
  padding: 60px 0;
}

.xh-section:nth-child(even) {
  background: var(--xh-bg-alt);
}

.xh-section-header {
  text-align: center;
  margin-bottom: 40px;
}

.xh-section-header h2 {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--xh-secondary);
  margin-bottom: 10px;
  position: relative;
  display: inline-block;
}

.xh-section-header h2::after {
  content: '';
  position: absolute;
  bottom: -6px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: var(--xh-gradient);
  border-radius: 2px;
}

.xh-section-header p {
  color: var(--xh-text-light);
  font-size: 1rem;
  margin-top: 14px;
}

/* === 视频卡片网格 === */
.xh-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.xh-video-card {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  overflow: hidden;
  box-shadow: var(--xh-shadow);
  transition: var(--xh-transition);
  cursor: pointer;
}

.xh-video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--xh-shadow-hover);
}

.xh-video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/10;
}

.xh-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--xh-transition);
}

.xh-video-card:hover .xh-video-thumb img {
  transform: scale(1.06);
}

.xh-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 60px;
  height: 60px;
  background: rgba(232, 67, 111, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--xh-transition);
  opacity: 0;
}

.xh-video-card:hover .xh-video-play {
  transform: translate(-50%, -50%) scale(1);
  opacity: 1;
}

.xh-video-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.xh-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.8rem;
}

.xh-video-info {
  padding: 16px;
}

.xh-video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--xh-text);
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xh-video-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.82rem;
  color: var(--xh-text-light);
}

.xh-video-meta span {
  display: flex;
  align-items: center;
  gap: 4px;
}

.xh-video-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.xh-tag {
  display: inline-block;
  padding: 3px 10px;
  background: var(--xh-bg);
  color: var(--xh-primary);
  border-radius: 20px;
  font-size: 0.78rem;
  border: 1px solid var(--xh-border);
  transition: var(--xh-transition);
}

.xh-tag:hover {
  background: var(--xh-primary);
  color: #fff;
  border-color: var(--xh-primary);
}

/* === 功能模块网格 === */
.xh-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.xh-feature-card {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--xh-shadow);
  transition: var(--xh-transition);
  border-top: 3px solid transparent;
}

.xh-feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--xh-shadow-hover);
  border-top-color: var(--xh-primary);
}

.xh-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 16px;
  background: var(--xh-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
}

.xh-feature-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--xh-secondary);
}

.xh-feature-card p {
  font-size: 0.92rem;
  color: var(--xh-text-light);
  line-height: 1.6;
}

/* === 专家展示 === */
.xh-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}

.xh-expert-card {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  overflow: hidden;
  box-shadow: var(--xh-shadow);
  transition: var(--xh-transition);
  text-align: center;
}

.xh-expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--xh-shadow-hover);
}

.xh-expert-avatar {
  width: 100%;
  aspect-ratio: 1;
  overflow: hidden;
}

.xh-expert-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--xh-transition);
}

.xh-expert-card:hover .xh-expert-avatar img {
  transform: scale(1.05);
}

.xh-expert-info {
  padding: 20px;
}

.xh-expert-info h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--xh-secondary);
  margin-bottom: 4px;
}

.xh-expert-info .xh-expert-role {
  color: var(--xh-primary);
  font-size: 0.88rem;
  font-weight: 500;
  margin-bottom: 10px;
}

.xh-expert-info p {
  font-size: 0.88rem;
  color: var(--xh-text-light);
  line-height: 1.5;
  margin-bottom: 14px;
}

.xh-expert-btns {
  display: flex;
  gap: 8px;
  justify-content: center;
}

/* === 按钮 === */
.xh-btn {
  display: inline-block;
  padding: 10px 24px;
  border-radius: var(--xh-radius-sm);
  font-weight: 600;
  font-size: 0.92rem;
  cursor: pointer;
  border: none;
  transition: var(--xh-transition);
  text-align: center;
}

.xh-btn-primary {
  background: var(--xh-gradient);
  color: #fff;
}

.xh-btn-primary:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  color: #fff;
}

.xh-btn-outline {
  background: transparent;
  color: var(--xh-primary);
  border: 2px solid var(--xh-primary);
}

.xh-btn-outline:hover {
  background: var(--xh-primary);
  color: #fff;
}

.xh-btn-sm {
  padding: 6px 16px;
  font-size: 0.82rem;
}

/* === 合作品牌 === */
.xh-partners-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
  align-items: center;
}

.xh-partners-wall img {
  max-height: 60px;
  opacity: 0.6;
  transition: var(--xh-transition);
  filter: grayscale(100%);
}

.xh-partners-wall img:hover {
  opacity: 1;
  filter: grayscale(0%);
}

/* === FAQ === */
.xh-faq-list {
  max-width: 800px;
  margin: 0 auto;
}

.xh-faq-item {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  margin-bottom: 12px;
  box-shadow: var(--xh-shadow);
  overflow: hidden;
}

.xh-faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: var(--xh-transition);
}

.xh-faq-question:hover {
  color: var(--xh-primary);
}

.xh-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  font-weight: 300;
  color: var(--xh-primary);
  transition: var(--xh-transition);
}

.xh-faq-item.open .xh-faq-question::after {
  content: '−';
}

.xh-faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s ease;
  color: var(--xh-text-light);
  font-size: 0.94rem;
  line-height: 1.7;
}

.xh-faq-item.open .xh-faq-answer {
  padding: 0 24px 18px;
  max-height: 300px;
}

/* === 用户评论 === */
.xh-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.xh-review-card {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  padding: 24px;
  box-shadow: var(--xh-shadow);
  position: relative;
}

.xh-review-card::before {
  content: '\201C';
  position: absolute;
  top: 12px;
  left: 18px;
  font-size: 3rem;
  color: var(--xh-border);
  font-family: Georgia, serif;
  line-height: 1;
}

.xh-review-text {
  font-size: 0.94rem;
  color: var(--xh-text-light);
  line-height: 1.7;
  margin-bottom: 16px;
  padding-top: 20px;
}

.xh-review-author {
  display: flex;
  align-items: center;
  gap: 10px;
}

.xh-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--xh-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
}

.xh-review-name {
  font-weight: 600;
  font-size: 0.92rem;
}

.xh-review-stars {
  color: var(--xh-accent);
  font-size: 0.82rem;
}

/* === 联系信息 === */
.xh-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.xh-contact-card {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  padding: 28px;
  box-shadow: var(--xh-shadow);
  text-align: center;
}

.xh-contact-card h4 {
  font-size: 1.05rem;
  color: var(--xh-secondary);
  margin-bottom: 12px;
}

.xh-contact-card p {
  font-size: 0.92rem;
  color: var(--xh-text-light);
  line-height: 1.7;
}

/* === How-To指南 === */
.xh-howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 24px;
  counter-reset: step;
}

.xh-howto-step {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  padding: 28px 24px;
  box-shadow: var(--xh-shadow);
  position: relative;
  counter-increment: step;
}

.xh-howto-step::before {
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 24px;
  width: 32px;
  height: 32px;
  background: var(--xh-gradient);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.92rem;
}

.xh-howto-step h4 {
  font-size: 1.05rem;
  color: var(--xh-secondary);
  margin-bottom: 8px;
  margin-top: 8px;
}

.xh-howto-step p {
  font-size: 0.9rem;
  color: var(--xh-text-light);
  line-height: 1.6;
}

/* === 社区功能 === */
.xh-community-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 16px;
}

.xh-community-item {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  padding: 24px 16px;
  text-align: center;
  box-shadow: var(--xh-shadow);
  transition: var(--xh-transition);
}

.xh-community-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--xh-shadow-hover);
}

.xh-community-icon {
  font-size: 2rem;
  margin-bottom: 10px;
}

.xh-community-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--xh-secondary);
  margin-bottom: 6px;
}

.xh-community-item p {
  font-size: 0.82rem;
  color: var(--xh-text-light);
}

/* === 社交分享 === */
.xh-share-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 20px 0;
}

.xh-share-btn {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: var(--xh-transition);
  cursor: pointer;
}

.xh-share-btn:hover {
  transform: translateY(-3px);
  opacity: 0.85;
}

.xh-share-wechat { background: #07C160; }
.xh-share-weibo { background: #E6162D; }
.xh-share-douyin { background: #161823; }
.xh-share-bilibili { background: #FB7299; }

/* === 页脚 === */
.xh-footer {
  background: var(--xh-secondary);
  color: rgba(255,255,255,0.8);
  padding: 48px 0 0;
}

.xh-footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 32px;
  margin-bottom: 32px;
}

.xh-footer h4 {
  color: #fff;
  font-size: 1.1rem;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 10px;
}

.xh-footer h4::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 36px;
  height: 2px;
  background: var(--xh-primary);
}

.xh-footer a {
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  display: block;
  margin-bottom: 8px;
}

.xh-footer a:hover {
  color: var(--xh-accent);
}

.xh-footer p {
  font-size: 0.9rem;
  line-height: 1.7;
}

.xh-footer-qr {
  display: flex;
  gap: 16px;
}

.xh-footer-qr img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 2px solid rgba(255,255,255,0.2);
}

.xh-footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding: 20px 0;
  text-align: center;
  font-size: 0.85rem;
}

.xh-footer-bottom a {
  display: inline;
}

/* === 内页通用 === */
.xh-page-hero {
  background: var(--xh-gradient-dark);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}

.xh-page-hero h1 {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.xh-page-hero p {
  font-size: 1.05rem;
  opacity: 0.9;
}

.xh-page-content {
  padding: 40px 0;
}

/* === AI赋能区 === */
.xh-ai-section {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: center;
}

.xh-ai-text h3 {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--xh-secondary);
  margin-bottom: 16px;
}

.xh-ai-text p {
  font-size: 0.95rem;
  color: var(--xh-text-light);
  line-height: 1.8;
  margin-bottom: 12px;
}

.xh-ai-img {
  border-radius: var(--xh-radius);
  overflow: hidden;
  box-shadow: var(--xh-shadow);
}

.xh-ai-img img {
  width: 100%;
  height: auto;
}

/* === 数据统计 === */
.xh-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding: 40px 0;
}

.xh-stat-item {
  text-align: center;
}

.xh-stat-num {
  font-size: 2.4rem;
  font-weight: 800;
  background: var(--xh-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xh-stat-label {
  font-size: 0.92rem;
  color: var(--xh-text-light);
  margin-top: 4px;
}

/* === 懒加载占位 === */
.xh-lazy {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.xh-lazy.loaded {
  opacity: 1;
}

/* === MCP服务前端 === */
.xh-mcp-widget {
  background: var(--xh-card);
  border-radius: var(--xh-radius);
  padding: 24px;
  box-shadow: var(--xh-shadow);
  margin-top: 20px;
}

.xh-mcp-widget h4 {
  font-size: 1rem;
  color: var(--xh-secondary);
  margin-bottom: 12px;
}

.xh-mcp-status {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  color: var(--xh-text-light);
}

.xh-mcp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4CAF50;
  animation: mcpPulse 2s infinite;
}

@keyframes mcpPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* === 响应式设计 === */
@media (max-width: 992px) {
  .xh-ai-section {
    grid-template-columns: 1fr;
  }
  
  .xh-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .xh-hero-slide img {
    height: 320px;
  }
  
  .xh-hero-overlay h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 768px) {
  .xh-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--xh-card);
    flex-direction: column;
    padding: 16px;
    box-shadow: var(--xh-shadow);
    gap: 4px;
  }
  
  .xh-nav.open {
    display: flex;
  }
  
  .xh-mobile-toggle {
    display: flex;
  }
  
  .xh-hero-slide img {
    height: 240px;
  }
  
  .xh-hero-overlay {
    padding: 20px;
  }
  
  .xh-hero-overlay h1 {
    font-size: 1.3rem;
  }
  
  .xh-section {
    padding: 40px 0;
  }
  
  .xh-section-header h2 {
    font-size: 1.4rem;
  }
  
  .xh-video-grid {
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
  }
  
  .xh-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .xh-stat-num {
    font-size: 1.8rem;
  }
  
  .xh-expert-grid {
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  }
}

@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .xh-header-inner {
    height: 56px;
  }
  
  .xh-logo img {
    height: 32px;
  }
  
  .xh-video-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-feature-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-community-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .xh-howto-steps {
    grid-template-columns: 1fr;
  }
}

/* === 动画 === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xh-animate {
  animation: fadeInUp 0.6s ease forwards;
}

/* === 滚动条美化 === */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: var(--xh-bg);
}

::-webkit-scrollbar-thumb {
  background: var(--xh-primary);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--xh-primary-dark);
}
