/* ============================================
   17c一起草 - 影视传媒视频社区 原创样式表
   ftshbx.cn
   配色方案：深紫黑 + 活力橙 + 科技青绿
   ============================================ */

/* === CSS Variables === */
:root {
  --xxh-primary: #1A0A2E;
  --xxh-secondary: #FF6B35;
  --xxh-accent: #00D4AA;
  --xxh-bg-dark: #0D0D1A;
  --xxh-bg-card: #1E1E3A;
  --xxh-text-light: #E8E8F0;
  --xxh-text-muted: #9A9AB8;
  --xxh-gradient-start: #FF6B35;
  --xxh-gradient-end: #FF3CAC;
  --xxh-border: #2A2A4A;
  --xxh-success: #00D4AA;
  --xxh-warning: #FFB347;
  --xxh-radius: 12px;
  --xxh-radius-sm: 8px;
  --xxh-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  --xxh-shadow-hover: 0 12px 48px rgba(255, 107, 53, 0.15);
  --xxh-transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  --xxh-font: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  --xxh-max-width: 1280px;
}

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

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

body {
  font-family: var(--xxh-font);
  background-color: var(--xxh-bg-dark);
  color: var(--xxh-text-light);
  line-height: 1.7;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

ul, ol {
  list-style: none;
}

/* === Container === */
.xxh-container {
  width: 100%;
  max-width: var(--xxh-max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* === Header & Navigation === */
.xxh-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: rgba(13, 13, 26, 0.92);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--xxh-border);
  transition: var(--xxh-transition);
}

.xxh-header.scrolled {
  background: rgba(13, 13, 26, 0.98);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.4);
}

.xxh-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.xxh-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

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

.xxh-logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  background: linear-gradient(135deg, var(--xxh-secondary), var(--xxh-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  white-space: nowrap;
}

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

.xxh-nav-links a {
  color: var(--xxh-text-light);
  font-size: 0.92rem;
  padding: 8px 16px;
  border-radius: var(--xxh-radius-sm);
  transition: var(--xxh-transition);
  white-space: nowrap;
  position: relative;
}

.xxh-nav-links a::after {
  content: '';
  position: absolute;
  bottom: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--xxh-secondary), var(--xxh-accent));
  border-radius: 2px;
  transition: width 0.3s ease;
}

.xxh-nav-links a:hover::after,
.xxh-nav-links a.active::after {
  width: 60%;
}

.xxh-nav-links a:hover {
  color: var(--xxh-secondary);
  background: rgba(255, 107, 53, 0.08);
}

.xxh-nav-links a.active {
  color: var(--xxh-secondary);
}

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

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

/* === Search Bar === */
.xxh-search-bar {
  background: var(--xxh-primary);
  border-bottom: 1px solid var(--xxh-border);
  padding: 12px 0;
  margin-top: 72px;
}

.xxh-search-wrap {
  display: flex;
  align-items: center;
  max-width: 680px;
  margin: 0 auto;
  background: var(--xxh-bg-card);
  border: 1px solid var(--xxh-border);
  border-radius: 40px;
  padding: 4px 6px 4px 20px;
  transition: var(--xxh-transition);
}

.xxh-search-wrap:focus-within {
  border-color: var(--xxh-secondary);
  box-shadow: 0 0 0 3px rgba(255, 107, 53, 0.15);
}

.xxh-search-wrap input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: var(--xxh-text-light);
  font-size: 0.95rem;
  padding: 10px 0;
  font-family: var(--xxh-font);
}

.xxh-search-wrap input::placeholder {
  color: var(--xxh-text-muted);
}

.xxh-search-btn {
  background: linear-gradient(135deg, var(--xxh-secondary), var(--xxh-gradient-end));
  border: none;
  color: #fff;
  padding: 10px 24px;
  border-radius: 36px;
  cursor: pointer;
  font-size: 0.9rem;
  font-weight: 600;
  transition: var(--xxh-transition);
  white-space: nowrap;
}

.xxh-search-btn:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 16px rgba(255, 107, 53, 0.35);
}

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

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

.xxh-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(13,13,26,0.3) 0%, rgba(13,13,26,0.85) 100%);
}

.xxh-hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 800px;
  padding: 0 24px;
}

.xxh-hero h1 {
  font-size: 2.8rem;
  font-weight: 800;
  margin-bottom: 16px;
  line-height: 1.2;
}

.xxh-hero h1 .xxh-brand {
  background: linear-gradient(135deg, var(--xxh-secondary), var(--xxh-gradient-end));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.xxh-hero p {
  font-size: 1.15rem;
  color: var(--xxh-text-muted);
  margin-bottom: 28px;
  line-height: 1.8;
}

.xxh-hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}

.xxh-hero-tags span {
  background: rgba(255, 107, 53, 0.12);
  border: 1px solid rgba(255, 107, 53, 0.25);
  color: var(--xxh-secondary);
  padding: 6px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
}

/* === Section Common === */
.xxh-section {
  padding: 72px 0;
}

.xxh-section-alt {
  background: var(--xxh-primary);
}

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

.xxh-section-header h2 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.xxh-section-header h2 .xxh-brand {
  color: var(--xxh-secondary);
}

.xxh-section-header p {
  color: var(--xxh-text-muted);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.xxh-section-divider {
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--xxh-secondary), var(--xxh-accent));
  border-radius: 3px;
  margin: 16px auto 0;
}

/* === Video Card Grid === */
.xxh-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 24px;
}

.xxh-video-card {
  background: var(--xxh-bg-card);
  border-radius: var(--xxh-radius);
  overflow: hidden;
  border: 1px solid var(--xxh-border);
  transition: var(--xxh-transition);
  cursor: pointer;
}

.xxh-video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--xxh-shadow-hover);
  border-color: rgba(255, 107, 53, 0.3);
}

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

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

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

.xxh-video-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.35);
  opacity: 0;
  transition: opacity 0.3s ease;
}

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

.xxh-play-icon {
  width: 60px;
  height: 60px;
  background: rgba(255, 107, 53, 0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.xxh-play-icon::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;
}

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

.xxh-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;
  font-weight: 500;
}

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

.xxh-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;
}

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

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

.xxh-video-tag {
  display: inline-block;
  background: rgba(0, 212, 170, 0.1);
  color: var(--xxh-accent);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.75rem;
  margin-top: 8px;
}

/* === Expert Cards === */
.xxh-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.xxh-expert-card {
  background: var(--xxh-bg-card);
  border-radius: var(--xxh-radius);
  padding: 28px;
  text-align: center;
  border: 1px solid var(--xxh-border);
  transition: var(--xxh-transition);
}

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

.xxh-expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--xxh-secondary);
}

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

.xxh-expert-role {
  color: var(--xxh-accent);
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.xxh-expert-desc {
  color: var(--xxh-text-muted);
  font-size: 0.88rem;
  margin-bottom: 16px;
  line-height: 1.6;
}

.xxh-expert-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
}

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

.xxh-btn-primary {
  background: linear-gradient(135deg, var(--xxh-secondary), var(--xxh-gradient-end));
  color: #fff;
}

.xxh-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 107, 53, 0.35);
  color: #fff;
}

.xxh-btn-outline {
  background: transparent;
  color: var(--xxh-accent);
  border: 1px solid var(--xxh-accent);
}

.xxh-btn-outline:hover {
  background: rgba(0, 212, 170, 0.1);
  color: var(--xxh-accent);
}

.xxh-btn-sm {
  padding: 7px 16px;
  font-size: 0.82rem;
}

/* === Partner Logo Wall === */
.xxh-partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: center;
  align-items: center;
}

.xxh-partner-item {
  background: var(--xxh-bg-card);
  border: 1px solid var(--xxh-border);
  border-radius: var(--xxh-radius-sm);
  padding: 20px 32px;
  min-width: 160px;
  text-align: center;
  font-size: 1rem;
  font-weight: 600;
  color: var(--xxh-text-muted);
  transition: var(--xxh-transition);
}

.xxh-partner-item:hover {
  border-color: var(--xxh-secondary);
  color: var(--xxh-text-light);
}

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

.xxh-faq-item {
  background: var(--xxh-bg-card);
  border: 1px solid var(--xxh-border);
  border-radius: var(--xxh-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}

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

.xxh-faq-question:hover {
  color: var(--xxh-secondary);
}

.xxh-faq-arrow {
  width: 20px;
  height: 20px;
  border: 2px solid var(--xxh-text-muted);
  border-top: none;
  border-left: none;
  transform: rotate(45deg);
  transition: transform 0.3s ease;
  flex-shrink: 0;
  margin-left: 12px;
}

.xxh-faq-item.active .xxh-faq-arrow,
.xxh-faq-item.xxh-faq-open .xxh-faq-arrow {
  transform: rotate(-135deg);
}

.xxh-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.4s ease;
}

.xxh-faq-item.active .xxh-faq-answer,
.xxh-faq-item.xxh-faq-open .xxh-faq-answer {
  max-height: 300px;
}

.xxh-faq-answer-inner {
  padding: 0 24px 18px;
  color: var(--xxh-text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* === Reviews === */
.xxh-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.xxh-review-card {
  background: var(--xxh-bg-card);
  border: 1px solid var(--xxh-border);
  border-radius: var(--xxh-radius);
  padding: 24px;
}

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

.xxh-review-text {
  color: var(--xxh-text-light);
  font-size: 0.92rem;
  line-height: 1.7;
  margin-bottom: 14px;
}

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

.xxh-review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--xxh-secondary), var(--xxh-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
}

.xxh-review-name {
  font-size: 0.85rem;
  font-weight: 600;
}

.xxh-review-date {
  font-size: 0.78rem;
  color: var(--xxh-text-muted);
}

/* === Community Features === */
.xxh-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}

.xxh-feature-card {
  background: var(--xxh-bg-card);
  border: 1px solid var(--xxh-border);
  border-radius: var(--xxh-radius);
  padding: 28px;
  text-align: center;
  transition: var(--xxh-transition);
}

.xxh-feature-card:hover {
  border-color: var(--xxh-accent);
  transform: translateY(-4px);
}

.xxh-feature-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(255,107,53,0.15), rgba(0,212,170,0.15));
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.5rem;
}

.xxh-feature-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.xxh-feature-card p {
  color: var(--xxh-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

/* === Contact Section === */
.xxh-contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
}

.xxh-contact-card {
  background: var(--xxh-bg-card);
  border: 1px solid var(--xxh-border);
  border-radius: var(--xxh-radius);
  padding: 28px;
}

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

.xxh-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 0.9rem;
  color: var(--xxh-text-muted);
}

.xxh-contact-item strong {
  color: var(--xxh-text-light);
  min-width: 60px;
}

/* === How-To Guide === */
.xxh-howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}

.xxh-howto-step {
  background: var(--xxh-bg-card);
  border: 1px solid var(--xxh-border);
  border-radius: var(--xxh-radius);
  padding: 24px;
  position: relative;
  counter-increment: step;
}

.xxh-howto-step::before {
  content: counter(step);
  position: absolute;
  top: -12px;
  left: 20px;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, var(--xxh-secondary), var(--xxh-gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
}

.xxh-howto-step h4 {
  margin-top: 8px;
  margin-bottom: 8px;
  font-size: 0.95rem;
}

.xxh-howto-step p {
  color: var(--xxh-text-muted);
  font-size: 0.85rem;
  line-height: 1.6;
}

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

.xxh-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  border: 1px solid var(--xxh-border);
  background: var(--xxh-bg-card);
  color: var(--xxh-text-light);
  cursor: pointer;
  transition: var(--xxh-transition);
}

.xxh-share-btn:hover {
  border-color: var(--xxh-secondary);
  color: var(--xxh-secondary);
}

/* === Footer === */
.xxh-footer {
  background: var(--xxh-primary);
  border-top: 1px solid var(--xxh-border);
  padding: 48px 0 24px;
}

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

.xxh-footer-brand p {
  color: var(--xxh-text-muted);
  font-size: 0.88rem;
  margin-top: 12px;
  line-height: 1.7;
}

.xxh-footer h5 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--xxh-text-light);
}

.xxh-footer-links a {
  display: block;
  color: var(--xxh-text-muted);
  font-size: 0.88rem;
  padding: 4px 0;
  transition: var(--xxh-transition);
}

.xxh-footer-links a:hover {
  color: var(--xxh-secondary);
  padding-left: 6px;
}

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

.xxh-footer-qr-item {
  text-align: center;
}

.xxh-footer-qr-item img {
  width: 100px;
  height: 100px;
  border-radius: var(--xxh-radius-sm);
  margin-bottom: 6px;
}

.xxh-footer-qr-item span {
  font-size: 0.78rem;
  color: var(--xxh-text-muted);
}

.xxh-footer-bottom {
  border-top: 1px solid var(--xxh-border);
  padding-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
}

.xxh-footer-copyright {
  color: var(--xxh-text-muted);
  font-size: 0.82rem;
}

.xxh-footer-update {
  color: var(--xxh-text-muted);
  font-size: 0.82rem;
}

/* === Breadcrumb === */
.xxh-breadcrumb {
  padding: 16px 0;
  font-size: 0.85rem;
  color: var(--xxh-text-muted);
}

.xxh-breadcrumb a {
  color: var(--xxh-text-muted);
}

.xxh-breadcrumb a:hover {
  color: var(--xxh-secondary);
}

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

/* === Inner Page Content === */
.xxh-page-hero {
  background: var(--xxh-primary);
  padding: 100px 0 48px;
  text-align: center;
}

.xxh-page-hero h1 {
  font-size: 2.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.xxh-page-hero p {
  color: var(--xxh-text-muted);
  font-size: 1rem;
}

.xxh-content-block {
  padding: 48px 0;
}

.xxh-content-block h2 {
  font-size: 1.6rem;
  margin-bottom: 16px;
}

.xxh-content-block h3 {
  font-size: 1.25rem;
  margin-bottom: 12px;
  color: var(--xxh-secondary);
}

.xxh-content-block p {
  color: var(--xxh-text-muted);
  margin-bottom: 16px;
  line-height: 1.8;
}

/* === Scroll to Top === */
.xxh-scroll-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--xxh-secondary), var(--xxh-gradient-end));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: var(--xxh-transition);
  z-index: 999;
  border: none;
}

.xxh-scroll-top.visible,
.xxh-scroll-top.xxh-scroll-top-visible {
  opacity: 1;
  visibility: visible;
}

.xxh-scroll-top::after {
  content: '';
  width: 10px;
  height: 10px;
  border: 2px solid #fff;
  border-bottom: none;
  border-right: none;
  transform: rotate(45deg) translateY(2px);
}

/* === Lazy Load === */
.xxh-lazy {
  opacity: 0;
  transition: opacity 0.5s ease;
}

.xxh-lazy.loaded,
.xxh-lazy.xxh-lazy-loaded {
  opacity: 1;
}

/* === Animations === */
@keyframes xxhFadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.xxh-animate {
  opacity: 0;
  transform: translateY(30px);
}

.xxh-animate.visible,
.xxh-animate.xxh-animated {
  animation: xxhFadeInUp 0.6s ease forwards;
}

/* === MCP Service Widget (Frontend Only) === */
.xxh-mcp-widget {
  background: var(--xxh-bg-card);
  border: 1px solid var(--xxh-border);
  border-radius: var(--xxh-radius);
  padding: 20px;
  margin-top: 24px;
}

.xxh-mcp-widget h5 {
  font-size: 0.9rem;
  margin-bottom: 10px;
  color: var(--xxh-accent);
}

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

.xxh-mcp-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--xxh-accent);
  animation: xxhPulse 2s infinite;
}

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

/* === Responsive === */
@media (max-width: 1024px) {
  .xxh-footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 768px) {
  .xxh-mobile-toggle {
    display: flex;
  }

  .xxh-nav-links {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    width: 100%;
    background: rgba(13, 13, 26, 0.98);
    flex-direction: column;
    padding: 16px;
    border-bottom: 1px solid var(--xxh-border);
  }

  .xxh-nav-links.open,
.xxh-nav-links.xxh-nav-open {
    display: flex;
  }

  .xxh-nav-links a {
    padding: 12px 16px;
    width: 100%;
  }

  .xxh-hero {
    height: 400px;
  }

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

  .xxh-section {
    padding: 48px 0;
  }

  .xxh-section-header h2 {
    font-size: 1.5rem;
  }

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

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

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

  .xxh-footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .xxh-footer-qr {
    justify-content: center;
  }

  .xxh-page-hero {
    padding: 80px 0 36px;
  }

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

@media (max-width: 480px) {
  .xxh-hero h1 {
    font-size: 1.5rem;
  }

  .xxh-hero p {
    font-size: 0.95rem;
  }

  .xxh-hero-tags span {
    font-size: 0.78rem;
    padding: 4px 12px;
  }

  .xxh-video-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .xxh-feature-grid {
    grid-template-columns: 1fr;
  }

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

/* === Print Styles === */
@media print {
  .xxh-header,
  .xxh-search-bar,
  .xxh-scroll-top,
  .xxh-share-bar {
    display: none;
  }

  body {
    background: #fff;
    color: #333;
  }
}
