/* ============================================
   校花 - 青春影视传媒互动社区
   原创CSS样式 | px88239.cn
   配色：玫瑰红 #E8375A + 金色 #FFD700
   ============================================ */

/* === 基础重置与变量 === */
:root {
  --xh-primary: #E8375A;
  --xh-primary-light: #FF6B8A;
  --xh-primary-dark: #C42045;
  --xh-accent: #FFD700;
  --xh-dark: #1A1A2E;
  --xh-dark-soft: #2D2D3F;
  --xh-light: #FFF5F7;
  --xh-white: #FFFFFF;
  --xh-gray: #6B7280;
  --xh-gray-light: #F3F4F6;
  --xh-border: #E5E7EB;
  --xh-shadow: 0 4px 24px rgba(232, 55, 90, 0.10);
  --xh-shadow-lg: 0 8px 40px rgba(26, 26, 46, 0.12);
  --xh-radius: 12px;
  --xh-radius-sm: 8px;
  --xh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --xh-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
}

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

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--xh-font);
  color: var(--xh-dark-soft);
  background: var(--xh-white);
  line-height: 1.7;
  overflow-x: hidden;
}

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

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

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

ul, ol {
  list-style: none;
}

h1, h2, h3, h4, h5, h6 {
  color: var(--xh-dark);
  line-height: 1.3;
  font-weight: 700;
}

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

/* === 顶部导航 === */
.xh-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(12px);
  box-shadow: 0 2px 16px rgba(26, 26, 46, 0.06);
  transition: var(--xh-transition);
}

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

.xh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--xh-primary);
}

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

.xh-logo span {
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-primary-light));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

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

.xh-nav a {
  padding: 8px 16px;
  color: var(--xh-dark-soft);
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--xh-radius-sm);
  transition: var(--xh-transition);
  position: relative;
}

.xh-nav a:hover,
.xh-nav a.active {
  color: var(--xh-primary);
  background: var(--xh-light);
}

.xh-nav a.active::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 20px;
  height: 3px;
  background: var(--xh-primary);
  border-radius: 2px;
}

.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-dark);
  border-radius: 2px;
  transition: var(--xh-transition);
}

/* === 搜索栏 === */
.xh-search-bar {
  background: linear-gradient(135deg, var(--xh-light), #FFF0F3);
  padding: 14px 0;
  margin-top: 68px;
  border-bottom: 1px solid var(--xh-border);
}

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

.xh-search-input {
  flex: 1;
  height: 44px;
  padding: 0 18px;
  border: 2px solid var(--xh-border);
  border-radius: 22px;
  font-size: 0.95rem;
  outline: none;
  transition: var(--xh-transition);
  font-family: var(--xh-font);
  background: var(--xh-white);
}

.xh-search-input:focus {
  border-color: var(--xh-primary);
  box-shadow: 0 0 0 4px rgba(232, 55, 90, 0.1);
}

.xh-search-btn {
  height: 44px;
  padding: 0 24px;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-primary-light));
  color: var(--xh-white);
  border: none;
  border-radius: 22px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--xh-transition);
  font-family: var(--xh-font);
}

.xh-search-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(232, 55, 90, 0.3);
}

/* === Hero区域 === */
.xh-hero {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-size: cover;
  background-position: center;
  overflow: hidden;
}

.xh-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26, 26, 46, 0.75), rgba(232, 55, 90, 0.45));
  z-index: 1;
}

.xh-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: var(--xh-white);
  padding: 40px 20px;
  max-width: 800px;
}

.xh-hero h1 {
  font-size: 2.8rem;
  color: var(--xh-white);
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.xh-hero h1 em {
  font-style: normal;
  color: var(--xh-accent);
}

.xh-hero p {
  font-size: 1.15rem;
  opacity: 0.92;
  margin-bottom: 28px;
  line-height: 1.8;
}

.xh-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  margin-bottom: 28px;
}

.xh-hero-tags span {
  padding: 6px 18px;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 20px;
  font-size: 0.88rem;
  backdrop-filter: blur(4px);
}

.xh-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 28px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--xh-transition);
  border: none;
  font-family: var(--xh-font);
}

.xh-btn-primary {
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-primary-light));
  color: var(--xh-white);
  box-shadow: 0 4px 20px rgba(232, 55, 90, 0.3);
}

.xh-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 28px rgba(232, 55, 90, 0.4);
  color: var(--xh-white);
}

.xh-btn-outline {
  background: transparent;
  color: var(--xh-white);
  border: 2px solid rgba(255, 255, 255, 0.6);
}

.xh-btn-outline:hover {
  background: rgba(255, 255, 255, 0.15);
  color: var(--xh-white);
}

.xh-hero-btns {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.xh-section-alt {
  background: var(--xh-light);
}

.xh-section-dark {
  background: var(--xh-dark);
  color: var(--xh-white);
}

.xh-section-dark h2,
.xh-section-dark h3 {
  color: var(--xh-white);
}

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

.xh-section-header h2 {
  font-size: 2rem;
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.xh-section-header h2::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 3px;
  background: linear-gradient(90deg, var(--xh-primary), var(--xh-accent));
  border-radius: 2px;
}

.xh-section-header p {
  color: var(--xh-gray);
  font-size: 1.05rem;
  margin-top: 16px;
}

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

.xh-video-card {
  background: var(--xh-white);
  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-lg);
}

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

.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.05);
}

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

.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: 3px;
}

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

.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.78rem;
}

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

.xh-video-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

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

.xh-tag {
  padding: 3px 10px;
  background: var(--xh-light);
  color: var(--xh-primary);
  border-radius: 12px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* === 功能卡片 === */
.xh-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

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

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

.xh-feature-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 18px;
  background: linear-gradient(135deg, var(--xh-light), #FFE8EE);
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
}

.xh-feature-card h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
}

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

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

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

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

.xh-expert-avatar {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 16px;
  overflow: hidden;
  border: 3px solid var(--xh-light);
  box-shadow: 0 2px 12px rgba(232, 55, 90, 0.15);
}

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

.xh-expert-card h3 {
  font-size: 1.1rem;
  margin-bottom: 4px;
}

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

.xh-expert-card p {
  color: var(--xh-gray);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 14px;
}

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

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

.xh-btn-sm-primary {
  background: var(--xh-primary);
  color: var(--xh-white);
}

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

/* === 品牌墙 === */
.xh-brand-wall {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.xh-brand-item {
  padding: 16px 28px;
  background: var(--xh-white);
  border-radius: var(--xh-radius-sm);
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  font-size: 1rem;
  font-weight: 600;
  color: var(--xh-gray);
  transition: var(--xh-transition);
  border: 1px solid var(--xh-border);
}

.xh-brand-item:hover {
  color: var(--xh-primary);
  border-color: var(--xh-primary-light);
  box-shadow: var(--xh-shadow);
}

/* === 用户评价 === */
.xh-review-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}

.xh-review-card {
  background: var(--xh-white);
  border-radius: var(--xh-radius);
  padding: 28px;
  box-shadow: var(--xh-shadow);
  transition: var(--xh-transition);
  border-left: 4px solid var(--xh-primary);
}

.xh-review-card:hover {
  box-shadow: var(--xh-shadow-lg);
}

.xh-review-stars {
  color: var(--xh-accent);
  font-size: 1rem;
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.xh-review-text {
  color: var(--xh-dark-soft);
  font-size: 0.95rem;
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}

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

.xh-review-author-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-primary-light));
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xh-white);
  font-weight: 700;
  font-size: 0.9rem;
}

.xh-review-author-info strong {
  display: block;
  font-size: 0.9rem;
  color: var(--xh-dark);
}

.xh-review-author-info span {
  font-size: 0.8rem;
  color: var(--xh-gray);
}

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

.xh-faq-item {
  background: var(--xh-white);
  border-radius: var(--xh-radius-sm);
  margin-bottom: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.04);
  overflow: hidden;
  border: 1px solid var(--xh-border);
}

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

.xh-faq-q:hover {
  color: var(--xh-primary);
  background: var(--xh-light);
}

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

.xh-faq-item.active .xh-faq-q::after {
  transform: rotate(45deg);
}

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

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

/* === 联系我们 === */
.xh-contact-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

.xh-contact-card h3 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: var(--xh-primary);
}

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

.xh-qrcode-wrap {
  display: flex;
  gap: 32px;
  justify-content: center;
  margin-top: 28px;
}

.xh-qrcode {
  text-align: center;
}

.xh-qrcode img {
  width: 140px;
  height: 140px;
  border-radius: var(--xh-radius-sm);
  border: 2px solid var(--xh-border);
  margin-bottom: 8px;
}

.xh-qrcode p {
  font-size: 0.85rem;
  color: var(--xh-gray);
}

/* === 社交分享 === */
.xh-share-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
  margin-top: 24px;
}

.xh-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--xh-white);
  transition: var(--xh-transition);
}

.xh-share-btn:hover {
  transform: translateY(-2px);
  color: var(--xh-white);
}

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

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

.xh-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.xh-footer h4 {
  color: var(--xh-white);
  font-size: 1.05rem;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

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

.xh-footer p {
  font-size: 0.9rem;
  line-height: 1.8;
  margin-bottom: 8px;
}

.xh-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
  display: block;
  padding: 4px 0;
}

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

.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-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.xh-footer-logo img {
  height: 36px;
}

.xh-footer-logo span {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--xh-white);
}

/* === 面包屑 === */
.xh-breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: var(--xh-gray);
  background: var(--xh-gray-light);
  border-bottom: 1px solid var(--xh-border);
}

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

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

.xh-breadcrumb span {
  margin: 0 8px;
  color: var(--xh-border);
}

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

.xh-howto-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  counter-increment: step;
}

.xh-howto-step::before {
  content: counter(step);
  display: flex;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-primary-light));
  color: var(--xh-white);
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 16px;
}

.xh-howto-step h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.xh-howto-step p {
  color: var(--xh-gray);
  font-size: 0.88rem;
}

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

.xh-stat-item h3 {
  font-size: 2.2rem;
  color: var(--xh-accent);
  margin-bottom: 6px;
}

.xh-stat-item p {
  font-size: 0.95rem;
  opacity: 0.85;
}

/* === 内页通用 === */
.xh-page-hero {
  background: linear-gradient(135deg, var(--xh-dark), var(--xh-primary-dark));
  padding: 100px 0 50px;
  text-align: center;
  color: var(--xh-white);
  margin-top: 68px;
}

.xh-page-hero h1 {
  font-size: 2.2rem;
  color: var(--xh-white);
  margin-bottom: 12px;
}

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

.xh-content-section {
  padding: 48px 0;
}

.xh-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.xh-article-card {
  background: var(--xh-white);
  border-radius: var(--xh-radius);
  overflow: hidden;
  box-shadow: var(--xh-shadow);
  transition: var(--xh-transition);
}

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

.xh-article-card img {
  width: 100%;
  aspect-ratio: 16/10;
  object-fit: cover;
}

.xh-article-body {
  padding: 20px;
}

.xh-article-body h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.xh-article-body p {
  color: var(--xh-gray);
  font-size: 0.88rem;
  line-height: 1.6;
}

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

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

/* === 返回顶部 === */
.xh-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--xh-primary);
  color: var(--xh-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--xh-transition);
  z-index: 999;
  box-shadow: 0 4px 16px rgba(232, 55, 90, 0.3);
}

.xh-back-top.visible {
  opacity: 1;
  visibility: visible;
}

.xh-back-top:hover {
  transform: translateY(-3px);
  background: var(--xh-primary-dark);
}

/* === 响应式 === */
@media (max-width: 1024px) {
  .xh-video-grid,
  .xh-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xh-feature-grid,
  .xh-expert-grid,
  .xh-howto-steps {
    grid-template-columns: repeat(2, 1fr);
  }
  .xh-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .xh-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .xh-contact-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .xh-header-inner {
    height: 56px;
  }
  
  .xh-search-bar {
    margin-top: 56px;
  }
  
  .xh-nav {
    display: none;
    position: absolute;
    top: 56px;
    left: 0;
    width: 100%;
    background: var(--xh-white);
    flex-direction: column;
    padding: 12px 0;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
  }
  
  .xh-nav.open {
    display: flex;
  }
  
  .xh-nav a {
    padding: 12px 24px;
    width: 100%;
  }
  
  .xh-mobile-toggle {
    display: flex;
  }
  
  .xh-hero {
    min-height: 400px;
  }
  
  .xh-hero h1 {
    font-size: 1.8rem;
  }
  
  .xh-section {
    padding: 48px 0;
  }
  
  .xh-section-header h2 {
    font-size: 1.6rem;
  }
  
  .xh-video-grid,
  .xh-feature-grid,
  .xh-expert-grid,
  .xh-article-grid,
  .xh-howto-steps {
    grid-template-columns: 1fr;
  }
  
  .xh-review-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  
  .xh-page-hero {
    padding: 80px 0 40px;
  }
  
  .xh-page-hero h1 {
    font-size: 1.6rem;
  }
  
  .xh-qrcode-wrap {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .xh-hero h1 {
    font-size: 1.5rem;
  }
  
  .xh-hero-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .xh-btn {
    width: 100%;
    max-width: 280px;
    text-align: center;
  }
  
  .xh-video-grid {
    gap: 16px;
  }
  
  .xh-expert-btns {
    flex-direction: column;
  }
}

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

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

/* === 社区模块 === */
.xh-community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

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

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

.xh-community-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--xh-primary), var(--xh-primary-light));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--xh-white);
}

.xh-community-card h3 {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.xh-community-card p {
  color: var(--xh-gray);
  font-size: 0.88rem;
}

/* === 内页侧边栏 === */
.xh-page-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 32px;
}

.xh-sidebar {
  position: sticky;
  top: 88px;
  align-self: start;
}

.xh-sidebar-widget {
  background: var(--xh-white);
  border-radius: var(--xh-radius);
  padding: 24px;
  box-shadow: var(--xh-shadow);
  margin-bottom: 24px;
}

.xh-sidebar-widget h4 {
  font-size: 1rem;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--xh-light);
}

@media (max-width: 1024px) {
  .xh-page-layout {
    grid-template-columns: 1fr;
  }
  .xh-sidebar {
    position: static;
  }
}

/* === 面包屑导航增强 === */
.xh-breadcrumb a:last-of-type + span {
  font-weight: 600;
  color: var(--xh-dark);
}

/* === 社区网格响应式 === */
@media (max-width: 768px) {
  .xh-community-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
  .xh-contact-grid {
    grid-template-columns: 1fr;
  }
  .xh-brand-wall {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .xh-community-grid {
    grid-template-columns: 1fr;
  }
}
