/* ============================================
   三级影视传媒 - 原创样式表
   品牌：三级 | 域名：gqwmx.cn
   配色方案：玫瑰红 + 深夜蓝 + 暖金
   ============================================ */

/* === CSS Variables === */
:root {
  --xh-primary: #E8375A;
  --xh-primary-light: #FF6B8A;
  --xh-primary-dark: #C42847;
  --xh-secondary: #1A1A2E;
  --xh-accent: #FFB347;
  --xh-bg: #F5F0EB;
  --xh-bg-alt: #FFFAF6;
  --xh-text: #2D2D3A;
  --xh-text-light: #6B6B7B;
  --xh-white: #FFFFFF;
  --xh-border: #E8E0D8;
  --xh-shadow: rgba(232, 55, 90, 0.12);
  --xh-gradient: linear-gradient(135deg, #E8375A 0%, #FF6B8A 100%);
  --xh-gradient-dark: linear-gradient(135deg, #1A1A2E 0%, #2D2D4A 100%);
  --xh-radius: 12px;
  --xh-radius-sm: 8px;
  --xh-radius-lg: 20px;
  --xh-transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === Reset & Base === */
*, *::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(--xh-text);
  background-color: var(--xh-bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  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;
}

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

/* === Header & Navigation === */
.xh-header {
  background: var(--xh-white);
  box-shadow: 0 2px 20px var(--xh-shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
  border-bottom: 3px solid var(--xh-primary);
}

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

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

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

.xh-logo-text {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--xh-primary);
  letter-spacing: 2px;
}

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

.xh-nav a {
  padding: 8px 16px;
  color: var(--xh-text);
  font-weight: 500;
  font-size: 0.95rem;
  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: rgba(232, 55, 90, 0.08);
}

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

/* Mobile Menu Toggle */
.xh-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

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

/* === Search Bar === */
.xh-search-bar {
  background: var(--xh-bg-alt);
  padding: 14px 0;
  border-bottom: 1px solid var(--xh-border);
}

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

.xh-search-input {
  flex: 1;
  padding: 12px 20px;
  border: 2px solid var(--xh-border);
  border-right: none;
  border-radius: var(--xh-radius) 0 0 var(--xh-radius);
  font-size: 0.95rem;
  color: var(--xh-text);
  background: var(--xh-white);
  outline: none;
  transition: var(--xh-transition);
}

.xh-search-input:focus {
  border-color: var(--xh-primary);
}

.xh-search-input::placeholder {
  color: var(--xh-text-light);
}

.xh-search-btn {
  padding: 12px 28px;
  background: var(--xh-gradient);
  color: var(--xh-white);
  border: none;
  border-radius: 0 var(--xh-radius) var(--xh-radius) 0;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--xh-transition);
}

.xh-search-btn:hover {
  opacity: 0.9;
  transform: translateY(-1px);
}

/* === Hero Banner === */
.xh-hero {
  position: relative;
  overflow: hidden;
  min-height: 480px;
  display: flex;
  align-items: center;
  background: var(--xh-gradient-dark);
}

.xh-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.xh-hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}

.xh-hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: var(--xh-white);
}

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

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

.xh-hero-desc {
  font-size: 1.15rem;
  max-width: 600px;
  margin-bottom: 30px;
  opacity: 0.92;
  line-height: 1.8;
}

.xh-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 30px;
}

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

.xh-hero-stat strong {
  display: block;
  font-size: 2rem;
  font-weight: 800;
  color: var(--xh-accent);
}

.xh-hero-stat span {
  font-size: 0.85rem;
  opacity: 0.8;
}

/* === Section Common === */
.xh-section {
  padding: 70px 0;
}

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

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

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

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

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

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

.xh-section-title p {
  color: var(--xh-text-light);
  font-size: 1rem;
  margin-top: 16px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

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

/* === Video Card Grid === */
.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: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--xh-transition);
  cursor: pointer;
}

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

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

.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;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: var(--xh-transition);
}

.xh-video-card:hover .xh-video-play {
  opacity: 1;
}

.xh-play-icon {
  width: 60px;
  height: 60px;
  background: var(--xh-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(232, 55, 90, 0.4);
  transition: var(--xh-transition);
}

.xh-play-icon::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--xh-white);
  margin-left: 3px;
}

.xh-video-card:hover .xh-play-icon {
  transform: scale(1.1);
}

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

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

.xh-video-info h3 {
  font-size: 1rem;
  font-weight: 600;
  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: 16px;
  color: var(--xh-text-light);
  font-size: 0.8rem;
}

.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: 2px 10px;
  background: rgba(232, 55, 90, 0.08);
  color: var(--xh-primary);
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 500;
}

/* === Service Cards === */
.xh-service-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.xh-service-card {
  background: var(--xh-white);
  border-radius: var(--xh-radius);
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
  transition: var(--xh-transition);
  border: 1px solid var(--xh-border);
}

.xh-service-card:hover {
  transform: translateY(-4px);
  border-color: var(--xh-primary);
  box-shadow: 0 12px 40px var(--xh-shadow);
}

.xh-service-icon {
  width: 72px;
  height: 72px;
  margin: 0 auto 20px;
  background: var(--xh-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  color: var(--xh-white);
}

.xh-service-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--xh-text);
}

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

/* === Expert Cards === */
.xh-expert-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.xh-expert-card {
  background: var(--xh-white);
  border-radius: var(--xh-radius);
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: var(--xh-transition);
  text-align: center;
}

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

.xh-expert-avatar {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  margin: 28px auto 16px;
  overflow: hidden;
  border: 4px solid var(--xh-primary);
  box-shadow: 0 4px 15px var(--xh-shadow);
}

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

.xh-expert-info {
  padding: 0 24px 28px;
}

.xh-expert-info h3 {
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 4px;
}

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

.xh-expert-desc {
  color: var(--xh-text-light);
  font-size: 0.85rem;
  line-height: 1.6;
  margin-bottom: 16px;
}

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

/* === Buttons === */
.xh-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 22px;
  border-radius: var(--xh-radius-sm);
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--xh-transition);
  border: none;
  text-decoration: none;
}

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

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

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

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

.xh-btn-sm {
  padding: 6px 14px;
  font-size: 0.8rem;
}

/* === Brand Wall === */
.xh-brand-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px;
  align-items: center;
}

.xh-brand-item {
  padding: 16px 28px;
  background: var(--xh-white);
  border-radius: var(--xh-radius-sm);
  border: 1px solid var(--xh-border);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--xh-text-light);
  transition: var(--xh-transition);
}

.xh-brand-item:hover {
  border-color: var(--xh-primary);
  color: var(--xh-primary);
  box-shadow: 0 4px 15px var(--xh-shadow);
}

/* === 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;
  border: 1px solid var(--xh-border);
  overflow: hidden;
  transition: var(--xh-transition);
}

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

.xh-faq-q {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  user-select: none;
}

.xh-faq-q::after {
  content: '+';
  font-size: 1.3rem;
  color: var(--xh-primary);
  font-weight: 700;
  transition: var(--xh-transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.xh-faq-item.active .xh-faq-q::after {
  content: '-';
}

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

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

/* === Reviews === */
.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: 0 4px 20px rgba(0,0,0,0.05);
  border: 1px solid var(--xh-border);
  transition: var(--xh-transition);
}

.xh-review-card:hover {
  border-color: var(--xh-primary);
}

.xh-review-header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 14px;
}

.xh-review-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--xh-gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xh-white);
  font-weight: 700;
  font-size: 1.1rem;
  flex-shrink: 0;
}

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

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

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

.xh-review-text {
  color: var(--xh-text-light);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === Contact Section === */
.xh-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 40px;
}

.xh-contact-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.xh-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  background: var(--xh-white);
  border-radius: var(--xh-radius-sm);
  border: 1px solid var(--xh-border);
}

.xh-contact-icon {
  width: 44px;
  height: 44px;
  background: var(--xh-gradient);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--xh-white);
  font-size: 1.1rem;
  flex-shrink: 0;
}

.xh-contact-item h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 4px;
}

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

.xh-qrcode-wrap {
  display: flex;
  gap: 30px;
  justify-content: center;
  align-items: flex-start;
}

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

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

.xh-qrcode-item p {
  font-size: 0.85rem;
  color: var(--xh-text-light);
  font-weight: 500;
}

/* === How-To Guide === */
.xh-howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-top: 30px;
}

.xh-howto-step {
  text-align: center;
  padding: 28px 20px;
  background: var(--xh-white);
  border-radius: var(--xh-radius);
  border: 1px solid var(--xh-border);
  transition: var(--xh-transition);
}

.xh-howto-step:hover {
  border-color: var(--xh-primary);
  transform: translateY(-4px);
}

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

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

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

/* === Social Share === */
.xh-share-bar {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

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

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

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

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

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

.xh-footer-brand h3 {
  color: var(--xh-white);
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.xh-footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.6);
}

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

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

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

.xh-footer-links a:hover {
  color: var(--xh-primary-light);
  padding-left: 6px;
}

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

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

.xh-footer-qrcodes img {
  width: 100px;
  height: 100px;
  border-radius: 6px;
  border: 1px solid rgba(255,255,255,0.15);
}

/* === Breadcrumb === */
.xh-breadcrumb {
  padding: 14px 0;
  background: var(--xh-white);
  border-bottom: 1px solid var(--xh-border);
}

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

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

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

.xh-breadcrumb-list span.sep {
  color: var(--xh-border);
}

.xh-breadcrumb-list span.current {
  color: var(--xh-primary);
  font-weight: 500;
}

/* === Community Section === */
.xh-community-features {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.xh-community-card {
  background: rgba(255,255,255,0.08);
  border-radius: var(--xh-radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.12);
  transition: var(--xh-transition);
}

.xh-community-card:hover {
  background: rgba(255,255,255,0.14);
  transform: translateY(-4px);
}

.xh-community-icon {
  font-size: 2.2rem;
  margin-bottom: 14px;
}

.xh-community-card h4 {
  font-size: 1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: var(--xh-white);
}

.xh-community-card p {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.65);
  line-height: 1.5;
}

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

.xh-ai-content h3 {
  font-size: 1.4rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.xh-ai-content p {
  color: var(--xh-text-light);
  margin-bottom: 14px;
  line-height: 1.7;
}

.xh-ai-features {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.xh-ai-feature {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--xh-bg);
  border-radius: var(--xh-radius-sm);
  font-size: 0.9rem;
}

.xh-ai-feature::before {
  content: '✓';
  color: var(--xh-primary);
  font-weight: 700;
  font-size: 1rem;
}

.xh-ai-image {
  border-radius: var(--xh-radius);
  overflow: hidden;
  box-shadow: 0 8px 30px rgba(0,0,0,0.1);
}

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

/* === Page Banner (Inner Pages) === */
.xh-page-banner {
  background: var(--xh-gradient-dark);
  padding: 50px 0;
  text-align: center;
  color: var(--xh-white);
}

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

.xh-page-banner p {
  font-size: 1rem;
  opacity: 0.8;
  max-width: 500px;
  margin: 0 auto;
}

/* === Content Article === */
.xh-article {
  background: var(--xh-white);
  border-radius: var(--xh-radius);
  padding: 40px;
  margin: 30px 0;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.xh-article h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--xh-text);
  padding-bottom: 12px;
  border-bottom: 2px solid var(--xh-border);
}

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

.xh-article p {
  margin-bottom: 14px;
  line-height: 1.8;
  color: var(--xh-text);
}

/* === Lazy Load Placeholder === */
.xh-lazy {
  opacity: 1;
  transition: opacity 0.5s ease;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
  .xh-video-grid,
  .xh-service-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);
  }
  
  .xh-community-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  html {
    font-size: 15px;
  }
  
  .xh-header-inner {
    flex-wrap: wrap;
  }
  
  .xh-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    padding: 12px 0;
    gap: 2px;
  }
  
  .xh-nav.active {
    display: flex;
  }
  
  .xh-nav a {
    width: 100%;
    text-align: center;
    padding: 12px;
  }
  
  .xh-menu-toggle {
    display: flex;
  }
  
  .xh-hero {
    min-height: 360px;
  }
  
  .xh-hero h1 {
    font-size: 1.8rem;
  }
  
  .xh-hero-stats {
    gap: 20px;
    flex-wrap: wrap;
  }
  
  .xh-hero-stat strong {
    font-size: 1.5rem;
  }
  
  .xh-section {
    padding: 45px 0;
  }
  
  .xh-section-title h2 {
    font-size: 1.5rem;
  }
  
  .xh-video-grid,
  .xh-service-grid,
  .xh-expert-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-review-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-contact-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-ai-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-howto-steps {
    grid-template-columns: 1fr;
  }
  
  .xh-community-features {
    grid-template-columns: 1fr;
  }
  
  .xh-article {
    padding: 24px 18px;
  }
  
  .xh-qrcode-wrap {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .xh-hero h1 {
    font-size: 1.5rem;
  }
  
  .xh-hero-desc {
    font-size: 0.95rem;
  }
  
  .xh-brand-wall {
    gap: 16px;
  }
  
  .xh-brand-item {
    padding: 10px 18px;
    font-size: 0.9rem;
  }
}

/* === Print Styles === */
@media print {
  .xh-header,
  .xh-search-bar,
  .xh-share-bar,
  .xh-footer {
    display: none;
  }
  
  body {
    color: #000;
    background: #fff;
  }
}

/* === Latest News / Updates === */
.xh-news-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.xh-news-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--xh-white);
  border-radius: var(--xh-radius-sm);
  border: 1px solid var(--xh-border);
  transition: var(--xh-transition);
  align-items: flex-start;
}

.xh-news-item:hover {
  border-color: var(--xh-primary);
  box-shadow: 0 4px 15px var(--xh-shadow);
}

.xh-news-date {
  flex-shrink: 0;
  text-align: center;
  background: var(--xh-gradient);
  color: var(--xh-white);
  border-radius: var(--xh-radius-sm);
  padding: 10px 14px;
  min-width: 60px;
}

.xh-news-date strong {
  display: block;
  font-size: 1.4rem;
  font-weight: 800;
  line-height: 1.2;
}

.xh-news-date span {
  font-size: 0.7rem;
  opacity: 0.85;
}

.xh-news-content h4 {
  font-size: 0.95rem;
  font-weight: 600;
  margin-bottom: 6px;
  line-height: 1.4;
}

.xh-news-content p {
  color: var(--xh-text-light);
  font-size: 0.82rem;
  line-height: 1.5;
}

.xh-news-tag {
  display: inline-block;
  padding: 1px 8px;
  background: rgba(232, 55, 90, 0.08);
  color: var(--xh-primary);
  border-radius: 12px;
  font-size: 0.7rem;
  font-weight: 500;
  margin-top: 6px;
}

/* === Author Box (EEAT) === */
.xh-author-box {
  margin-top: 24px;
  padding: 16px 20px;
  background: var(--xh-bg);
  border-radius: var(--xh-radius-sm);
  border-left: 4px solid var(--xh-primary);
  overflow: hidden;
}

.xh-author-box strong {
  color: var(--xh-text);
  font-size: 0.95rem;
}

.xh-author-box small {
  color: var(--xh-text-light);
  font-size: 0.8rem;
}

/* === Section Dark video cards fix === */
.xh-section-dark .xh-video-card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
}

.xh-section-dark .xh-video-info h3 {
  color: var(--xh-white);
}

.xh-section-dark .xh-video-meta {
  color: rgba(255,255,255,0.6);
}

.xh-section-dark .xh-tag {
  background: rgba(232, 55, 90, 0.2);
  color: var(--xh-primary-light);
}

/* === Responsive additions === */
@media (max-width: 768px) {
  .xh-news-grid {
    grid-template-columns: 1fr;
  }
  
  .xh-author-box img {
    width: 40px !important;
    height: 40px !important;
  }
}
