/* ================================================
   高清视频传媒 | nwjjp.cn | 原创樱花校园主题
   ================================================ */

/* === 基础重置与变量 === */
:root {
  --primary: #E8567F;
  --secondary: #7B68EE;
  --accent: #FF8FA3;
  --dark-bg: #1A1028;
  --light-bg: #FFF5F7;
  --card-bg: #FFFFFF;
  --text-main: #2D1B3D;
  --text-sub: #8B7A9E;
  --gradient: linear-gradient(135deg, #E8567F 0%, #7B68EE 100%);
  --shadow-sm: 0 2px 8px rgba(232,86,127,0.10);
  --shadow-md: 0 4px 20px rgba(232,86,127,0.13);
  --shadow-lg: 0 8px 40px rgba(123,104,238,0.15);
  --radius: 12px;
  --radius-lg: 20px;
  --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 SC", sans-serif;
  color: var(--text-main);
  background: var(--light-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

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

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

/* === 容器 === */
.xh-container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px;
}

/* === 头部导航 === */
.xh-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(255,245,247,0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(232,86,127,0.08);
  transition: var(--transition);
}

.xh-header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

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

.xh-logo-wrap img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
}

.xh-brand-name {
  font-size: 1.3rem;
  font-weight: 700;
  background: var(--gradient);
  -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;
  border-radius: 8px;
  font-size: 0.93rem;
  font-weight: 500;
  color: var(--text-main);
  transition: var(--transition);
}

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

.xh-search-wrap {
  position: relative;
}

.xh-search-input {
  width: 200px;
  padding: 8px 36px 8px 14px;
  border: 2px solid rgba(232,86,127,0.15);
  border-radius: 24px;
  background: #fff;
  font-size: 0.88rem;
  color: var(--text-main);
  outline: none;
  transition: var(--transition);
}

.xh-search-input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(232,86,127,0.12);
}

.xh-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: var(--primary);
  cursor: pointer;
  font-size: 1.1rem;
}

.xh-mobile-btn {
  display: none;
  background: none;
  border: none;
  font-size: 1.5rem;
  color: var(--primary);
  cursor: pointer;
}

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

.xh-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.7);
}

.xh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,16,40,0.65) 0%, rgba(232,86,127,0.35) 100%);
}

.xh-hero-content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 700px;
}

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

.xh-hero-content h1 .xh-hl {
  color: var(--accent);
}

.xh-hero-content 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;
}

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

.xh-btn-primary {
  display: inline-block;
  padding: 12px 32px;
  background: var(--gradient);
  color: #fff;
  border-radius: 28px;
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 16px rgba(232,86,127,0.3);
}

.xh-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(232,86,127,0.4);
  color: #fff;
}

.xh-btn-outline {
  display: inline-block;
  padding: 12px 32px;
  border: 2px solid #fff;
  color: #fff;
  border-radius: 28px;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: var(--transition);
  background: transparent;
}

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

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

.xh-section-alt {
  background: #fff;
}

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

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

.xh-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xh-section-title p {
  font-size: 1.05rem;
  color: var(--text-sub);
  max-width: 600px;
  margin: 0 auto;
}

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

.xh-media-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.xh-media-thumb {
  position: relative;
  padding-top: 56.25%;
  overflow: hidden;
}

.xh-media-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

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

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

.xh-play-btn::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-media-card:hover .xh-play-btn {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.xh-media-body {
  padding: 16px 18px;
}

.xh-media-body h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

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

.xh-media-tags span {
  padding: 3px 10px;
  background: var(--light-bg);
  border-radius: 12px;
  font-size: 0.78rem;
  color: var(--primary);
}

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

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

.xh-module-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1px solid rgba(232,86,127,0.06);
}

.xh-module-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: rgba(232,86,127,0.15);
}

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

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

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

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

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

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

.xh-expert-avatar {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  margin: 0 auto 14px;
  object-fit: cover;
  border: 3px solid var(--accent);
}

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

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

.xh-expert-desc {
  font-size: 0.85rem;
  color: var(--text-sub);
  line-height: 1.5;
  margin-bottom: 14px;
}

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

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

/* === 合作品牌墙 === */
.xh-partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 28px;
  padding: 20px 0;
}

.xh-partner-item {
  width: 130px;
  height: 60px;
  background: var(--card-bg);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-sm);
  font-weight: 600;
  color: var(--text-sub);
  font-size: 0.88rem;
  transition: var(--transition);
}

.xh-partner-item:hover {
  box-shadow: var(--shadow-md);
  color: var(--primary);
}

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

.xh-step {
  text-align: center;
  position: relative;
}

.xh-step-num {
  width: 52px;
  height: 52px;
  margin: 0 auto 16px;
  background: var(--gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  font-weight: 700;
}

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

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

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

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

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

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

.xh-faq-q .xh-arrow {
  transition: transform 0.3s;
  font-size: 0.9rem;
}

.xh-faq-item.open .xh-faq-q .xh-arrow {
  transform: rotate(180deg);
}

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

.xh-faq-item.open .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: var(--card-bg);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

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

.xh-review-stars {
  color: #FFB800;
  font-size: 1rem;
  margin-bottom: 10px;
}

.xh-review-text {
  font-size: 0.93rem;
  color: var(--text-main);
  line-height: 1.7;
  margin-bottom: 14px;
}

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

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

.xh-reviewer-info {
  font-size: 0.85rem;
}

.xh-reviewer-name {
  font-weight: 600;
  color: var(--text-main);
}

.xh-reviewer-date {
  color: var(--text-sub);
  font-size: 0.8rem;
}

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

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

.xh-contact-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 12px;
  color: var(--primary);
}

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

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

.xh-qr-item img {
  width: 140px;
  height: 140px;
  margin: 0 auto 8px;
  border-radius: 8px;
}

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

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

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

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

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

.xh-footer-top {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

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

.xh-footer-logo img {
  width: 38px;
  height: 38px;
  border-radius: 8px;
}

.xh-footer-logo span {
  font-size: 1.2rem;
  font-weight: 700;
  color: #fff;
}

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

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

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

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

.xh-footer-qr img {
  width: 100px;
  height: 100px;
  border-radius: 6px;
}

.xh-footer-bottom {
  text-align: center;
  padding: 24px 0;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
}

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

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

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

/* === 内页Hero === */
.xh-page-hero {
  margin-top: 68px;
  height: 280px;
  position: relative;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.xh-page-hero-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: brightness(0.6);
}

.xh-page-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(26,16,40,0.6), rgba(232,86,127,0.3));
}

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

.xh-page-hero-text h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 8px;
}

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

/* === 信任栏 === */
.xh-trust-bar {
  background: var(--gradient);
  color: #fff;
  padding: 16px 0;
  text-align: center;
}

.xh-trust-bar .xh-container {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.xh-trust-item {
  font-size: 0.92rem;
  font-weight: 500;
}

.xh-trust-item strong {
  font-size: 1.3rem;
  margin-right: 4px;
}

/* === MCP Widget === */
.xh-mcp-widget {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 20px;
  border: 1px dashed rgba(232,86,127,0.2);
  text-align: center;
  color: var(--text-sub);
  font-size: 0.88rem;
}

/* === 动画 === */
.xh-fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.xh-fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

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

@media (max-width: 768px) {
  .xh-nav { display: none; }
  .xh-mobile-btn { display: block; }
  .xh-nav.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(255,245,247,0.98);
    padding: 16px;
    box-shadow: var(--shadow-md);
  }
  .xh-hero { height: 420px; }
  .xh-hero-content h1 { font-size: 1.8rem; }
  .xh-media-grid { grid-template-columns: 1fr; }
  .xh-module-grid { grid-template-columns: 1fr; }
  .xh-expert-grid { grid-template-columns: 1fr; }
  .xh-review-grid { grid-template-columns: 1fr; }
  .xh-contact-grid { grid-template-columns: 1fr; }
  .xh-steps { grid-template-columns: 1fr; }
  .xh-footer-top { grid-template-columns: 1fr; }
  .xh-search-input { width: 140px; }
  .xh-section { padding: 48px 0; }
  .xh-section-title h2 { font-size: 1.5rem; }
  .xh-page-hero { height: 200px; }
  .xh-page-hero-text h1 { font-size: 1.6rem; }
}

@media (max-width: 480px) {
  .xh-hero { height: 360px; }
  .xh-hero-content h1 { font-size: 1.5rem; }
  .xh-search-wrap { display: none; }
}
