/* ============================================
   校花 - 影视传媒与创意社区平台
   原创样式表 | sbuhymk.cn
   ============================================ */

/* --- 基础重置与变量 --- */
:root {
  --xh-red: #E8364F;
  --xh-navy: #1A1A2E;
  --xh-orange: #FFB347;
  --xh-bg: #F5F0EB;
  --xh-text: #2D2D3A;
  --xh-gray: #E8E3DE;
  --xh-light: #FAF8F5;
  --xh-shadow: 0 4px 20px rgba(26,26,46,0.08);
  --xh-radius: 12px;
  --xh-transition: all 0.3s ease;
}

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

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

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", "Helvetica Neue", Arial, sans-serif;
  color: var(--xh-text);
  background: var(--xh-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

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

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

/* --- 顶部导航 --- */
.xh-header {
  background: var(--xh-navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(0,0,0,0.15);
}

.xh-header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0;
  padding-bottom: 0;
  min-height: 68px;
}

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

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

.xh-logo span {
  color: #fff;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 2px;
}

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

.xh-nav a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: 6px;
  font-size: 0.95rem;
  font-weight: 500;
  transition: var(--xh-transition);
}

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

.xh-menu-btn {
  display: none;
  background: none;
  border: none;
  color: #fff;
  font-size: 1.6rem;
  cursor: pointer;
  padding: 8px;
}

/* --- 搜索栏 --- */
.xh-search-bar {
  background: linear-gradient(135deg, var(--xh-navy) 0%, #2d1b4e 100%);
  padding: 14px 0;
}

.xh-search-bar .container {
  display: flex;
  justify-content: center;
}

.xh-search-wrap {
  display: flex;
  max-width: 600px;
  width: 100%;
  background: #fff;
  border-radius: 30px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.xh-search-wrap input {
  flex: 1;
  border: none;
  padding: 12px 24px;
  font-size: 1rem;
  outline: none;
  color: var(--xh-text);
  background: transparent;
}

.xh-search-wrap button {
  background: var(--xh-red);
  color: #fff;
  border: none;
  padding: 12px 28px;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--xh-transition);
  font-weight: 600;
}

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

/* --- Hero Banner --- */
.xh-hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xh-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xh-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,26,46,0.7) 0%, rgba(232,54,79,0.4) 100%);
}

.xh-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
  padding: 0 20px;
}

.xh-hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
  line-height: 1.3;
}

.xh-hero-content p {
  font-size: 1.2rem;
  max-width: 680px;
  margin: 0 auto 28px;
  opacity: 0.95;
  line-height: 1.8;
}

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

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

.xh-btn-primary:hover {
  background: #c92a40;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,54,79,0.4);
  color: #fff;
}

.xh-btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

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

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

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

.xh-section-dark {
  background: var(--xh-navy);
  color: #fff;
}

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

.xh-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--xh-navy);
  margin-bottom: 12px;
  position: relative;
  display: inline-block;
}

.xh-section-dark .xh-section-title h2 {
  color: #fff;
}

.xh-section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 4px;
  background: var(--xh-red);
  margin: 12px auto 0;
  border-radius: 2px;
}

.xh-section-title p {
  color: #6b6b7b;
  font-size: 1.05rem;
  max-width: 600px;
  margin: 0 auto;
}

.xh-section-dark .xh-section-title p {
  color: rgba(255,255,255,0.7);
}

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

.xh-video-card {
  background: #fff;
  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: 0 12px 36px rgba(26,26,46,0.15);
}

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

.xh-video-thumb img,
.xh-video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

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

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

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

.xh-video-play::after {
  content: '';
  display: block;
  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.7);
  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;
  margin-bottom: 8px;
  color: var(--xh-navy);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.xh-video-meta {
  display: flex;
  gap: 16px;
  font-size: 0.82rem;
  color: #888;
}

.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 {
  background: var(--xh-gray);
  color: var(--xh-text);
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.75rem;
}

/* --- 模块卡片网格 --- */
.xh-card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.xh-card {
  background: #fff;
  border-radius: var(--xh-radius);
  overflow: hidden;
  box-shadow: var(--xh-shadow);
  transition: var(--xh-transition);
  padding: 28px;
  text-align: center;
}

.xh-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(26,26,46,0.12);
}

.xh-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--xh-red), var(--xh-orange));
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
  font-size: 1.6rem;
  color: #fff;
}

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

.xh-card p {
  font-size: 0.92rem;
  color: #666;
  line-height: 1.7;
}

/* --- 两列布局 --- */
.xh-two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}

.xh-two-col img {
  border-radius: var(--xh-radius);
  box-shadow: var(--xh-shadow);
}

.xh-two-col-text h2 {
  font-size: 1.8rem;
  font-weight: 700;
  color: var(--xh-navy);
  margin-bottom: 16px;
}

.xh-two-col-text p {
  font-size: 1rem;
  color: #555;
  margin-bottom: 14px;
  line-height: 1.8;
}

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

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

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

.xh-expert-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--xh-gray);
}

.xh-expert-card h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--xh-navy);
  margin-bottom: 4px;
}

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

.xh-expert-card p {
  font-size: 0.85rem;
  color: #777;
  line-height: 1.6;
  margin-bottom: 14px;
}

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

.xh-expert-btns a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
}

.xh-expert-btns .xh-btn-sm-primary {
  background: var(--xh-red);
  color: #fff;
}

.xh-expert-btns .xh-btn-sm-outline {
  border: 1px solid var(--xh-navy);
  color: var(--xh-navy);
}

/* --- 合作品牌Logo墙 --- */
.xh-partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 36px;
  align-items: center;
}

.xh-partner-wall .partner-item {
  background: #fff;
  padding: 18px 32px;
  border-radius: 10px;
  box-shadow: var(--xh-shadow);
  font-size: 1.1rem;
  font-weight: 600;
  color: var(--xh-navy);
  transition: var(--xh-transition);
  min-width: 160px;
  text-align: center;
}

.xh-partner-wall .partner-item:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(26,26,46,0.12);
}

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

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

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

.xh-faq-q:hover {
  color: var(--xh-red);
}

.xh-faq-q::after {
  content: '+';
  font-size: 1.4rem;
  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: #555;
  font-size: 0.95rem;
  line-height: 1.8;
}

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

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

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

.xh-review-stars {
  color: var(--xh-orange);
  font-size: 1rem;
  margin-bottom: 10px;
}

.xh-review-card blockquote {
  font-size: 0.95rem;
  color: #555;
  line-height: 1.8;
  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: var(--xh-red);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
}

.xh-review-author .name {
  font-weight: 600;
  color: var(--xh-navy);
  font-size: 0.9rem;
}

.xh-review-author .date {
  font-size: 0.8rem;
  color: #999;
}

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

.xh-contact-info {
  background: #fff;
  border-radius: var(--xh-radius);
  padding: 32px;
  box-shadow: var(--xh-shadow);
}

.xh-contact-info h3 {
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--xh-navy);
  margin-bottom: 18px;
}

.xh-contact-item {
  display: flex;
  gap: 12px;
  margin-bottom: 14px;
  align-items: flex-start;
}

.xh-contact-item .label {
  font-weight: 600;
  color: var(--xh-navy);
  min-width: 80px;
  font-size: 0.92rem;
}

.xh-contact-item .value {
  color: #555;
  font-size: 0.92rem;
}

.xh-qrcode-wrap {
  display: flex;
  gap: 24px;
  justify-content: center;
  flex-wrap: wrap;
}

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

.xh-qrcode-item img {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  margin-bottom: 8px;
}

.xh-qrcode-item span {
  font-size: 0.85rem;
  color: #666;
}

/* --- 社交分享 --- */
.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: 10px 20px;
  border-radius: 24px;
  font-size: 0.88rem;
  font-weight: 500;
  color: #fff;
  transition: var(--xh-transition);
}

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

.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-navy);
  color: rgba(255,255,255,0.7);
  padding: 48px 0 24px;
}

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

.xh-footer-brand .xh-logo {
  margin-bottom: 14px;
}

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

.xh-footer h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 16px;
}

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

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

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

.xh-footer-bottom a {
  color: rgba(255,255,255,0.6);
}

/* --- 面包屑 --- */
.xh-breadcrumb {
  padding: 14px 0;
  font-size: 0.88rem;
  color: #888;
}

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

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

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

.xh-howto-step {
  background: #fff;
  border-radius: var(--xh-radius);
  padding: 28px 20px;
  text-align: center;
  box-shadow: var(--xh-shadow);
  position: relative;
  counter-increment: step;
}

.xh-howto-step::before {
  content: counter(step);
  display: flex;
  width: 44px;
  height: 44px;
  background: var(--xh-red);
  color: #fff;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 700;
  margin: 0 auto 14px;
}

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

.xh-howto-step p {
  font-size: 0.88rem;
  color: #666;
}

/* --- 内页样式 --- */
.xh-page-hero {
  position: relative;
  height: 360px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}

.xh-page-hero img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.xh-page-hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, rgba(26,26,46,0.75) 0%, rgba(232,54,79,0.35) 100%);
}

.xh-page-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  color: #fff;
}

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

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

.xh-article {
  max-width: 900px;
  margin: 0 auto;
  padding: 48px 20px;
}

.xh-article h2 {
  font-size: 1.6rem;
  color: var(--xh-navy);
  margin: 32px 0 16px;
  font-weight: 700;
}

.xh-article h3 {
  font-size: 1.3rem;
  color: var(--xh-navy);
  margin: 24px 0 12px;
  font-weight: 600;
}

.xh-article p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: #444;
}

.xh-article img {
  border-radius: var(--xh-radius);
  margin: 24px 0;
  box-shadow: var(--xh-shadow);
}

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

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

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

@media (max-width: 768px) {
  .xh-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--xh-navy);
    flex-direction: column;
    padding: 16px;
    gap: 4px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.2);
  }

  .xh-nav.active {
    display: flex;
  }

  .xh-menu-btn {
    display: block;
  }

  .xh-hero {
    height: 400px;
  }

  .xh-hero-content h1 {
    font-size: 1.8rem;
  }

  .xh-hero-content p {
    font-size: 1rem;
  }

  .xh-video-grid {
    grid-template-columns: 1fr;
  }

  .xh-card-grid {
    grid-template-columns: 1fr;
  }

  .xh-two-col {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .xh-expert-grid {
    grid-template-columns: 1fr;
  }

  .xh-review-grid {
    grid-template-columns: 1fr;
  }

  .xh-contact-grid {
    grid-template-columns: 1fr;
  }

  .xh-footer-grid {
    grid-template-columns: 1fr;
  }

  .xh-howto-steps {
    grid-template-columns: 1fr;
  }

  .xh-section {
    padding: 40px 0;
  }

  .xh-section-title h2 {
    font-size: 1.5rem;
  }

  .xh-page-hero {
    height: 260px;
  }

  .xh-page-hero-content h1 {
    font-size: 1.6rem;
  }
}

@media (max-width: 480px) {
  .xh-hero {
    height: 320px;
  }

  .xh-hero-content h1 {
    font-size: 1.5rem;
  }

  .xh-btn {
    padding: 12px 24px;
    font-size: 0.9rem;
  }
}
