/* ================================================
   国产视频 - 原创主题样式
   品牌色：玫瑰粉 #FF4E8B + 糖紫 #9B3FD4 + 深夜蓝 #0D0A1A
   hnjajf.cn
   ================================================ */

:root {
  --tx-pink:       #FF4E8B;
  --tx-purple:     #9B3FD4;
  --tx-deep:       #0D0A1A;
  --tx-dark:       #160E2B;
  --tx-card:       #1E1435;
  --tx-border:     #2E1F50;
  --tx-text:       #F0E6FF;
  --tx-muted:      #9B8CB5;
  --tx-grad:       linear-gradient(135deg, #FF4E8B 0%, #9B3FD4 100%);
  --tx-grad-dark:  linear-gradient(180deg, #0D0A1A 0%, #160E2B 100%);
  --tx-shadow:     0 8px 32px rgba(155,63,212,0.25);
  --tx-radius:     14px;
  --tx-radius-sm:  8px;
  --tx-font:       'PingFang SC','Microsoft YaHei','Noto Sans SC',sans-serif;
}

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

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

body {
  font-family: var(--tx-font);
  background: var(--tx-deep);
  color: var(--tx-text);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--tx-pink); text-decoration: none; transition: color .2s; }
a:hover { color: #fff; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ---- 噪声隐藏层 ---- */
.tx-noise { display: none !important; visibility: hidden !important; height: 0 !important; overflow: hidden !important; }

/* ============ 顶部公告栏 ============ */
.tx-topbar {
  background: var(--tx-grad);
  text-align: center;
  padding: 7px 20px;
  font-size: 13px;
  color: #fff;
  letter-spacing: .5px;
}
.tx-topbar a { color: #fff; text-decoration: underline; }

/* ============ 头部导航 ============ */
.tx-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background: rgba(13,10,26,.95);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--tx-border);
}
.tx-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 24px;
}
.tx-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: #fff;
  white-space: nowrap;
}
.tx-logo img {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
}
.tx-logo-name { background: var(--tx-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tx-logo-sub { font-size: 11px; color: var(--tx-muted); font-weight: 400; -webkit-text-fill-color: var(--tx-muted); }

.tx-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
}
.tx-nav a {
  padding: 6px 14px;
  border-radius: 20px;
  font-size: 14px;
  color: var(--tx-muted);
  transition: all .2s;
  white-space: nowrap;
}
.tx-nav a:hover, .tx-nav a.active {
  background: rgba(255,78,139,.15);
  color: var(--tx-pink);
}

/* 搜索框 */
.tx-search-wrap {
  position: relative;
  flex-shrink: 0;
}
.tx-search-input {
  background: rgba(255,255,255,.07);
  border: 1px solid var(--tx-border);
  border-radius: 24px;
  padding: 8px 40px 8px 16px;
  color: #fff;
  font-size: 14px;
  width: 200px;
  outline: none;
  transition: border-color .2s, width .3s;
}
.tx-search-input::placeholder { color: var(--tx-muted); }
.tx-search-input:focus { border-color: var(--tx-pink); width: 240px; }
.tx-search-btn {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: var(--tx-muted);
  font-size: 16px;
  padding: 0;
}
.tx-search-btn:hover { color: var(--tx-pink); }

.tx-header-btn {
  background: var(--tx-grad);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 20px;
  font-size: 14px;
  cursor: pointer;
  white-space: nowrap;
  transition: opacity .2s, transform .2s;
}
.tx-header-btn:hover { opacity: .85; transform: translateY(-1px); }

.tx-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
  margin-left: auto;
}
.tx-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tx-text);
  border-radius: 2px;
  transition: all .3s;
}

/* ============ 容器 ============ */
.tx-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
}
.tx-section {
  padding: 72px 0;
}
.tx-section-sm { padding: 48px 0; }

/* ============ 标题组件 ============ */
.tx-section-head {
  text-align: center;
  margin-bottom: 48px;
}
.tx-section-head h2 {
  font-size: 32px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 12px;
}
.tx-section-head h2 span { background: var(--tx-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tx-section-head p { color: var(--tx-muted); font-size: 16px; max-width: 600px; margin: 0 auto; }

/* ============ Hero 区域 ============ */
.tx-hero {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--tx-dark);
}
.tx-hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/hero_banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: .35;
}
.tx-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(13,10,26,.95) 40%, rgba(13,10,26,.3) 100%);
}
.tx-hero-content {
  position: relative;
  z-index: 2;
  max-width: 620px;
}
.tx-hero-tag {
  display: inline-block;
  background: rgba(255,78,139,.15);
  border: 1px solid rgba(255,78,139,.4);
  color: var(--tx-pink);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  margin-bottom: 20px;
}
.tx-hero-content h1 {
  font-size: 48px;
  font-weight: 900;
  line-height: 1.15;
  color: #fff;
  margin-bottom: 16px;
}
.tx-hero-content h1 em {
  font-style: normal;
  background: var(--tx-grad);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-hero-content p {
  font-size: 17px;
  color: var(--tx-muted);
  margin-bottom: 32px;
  line-height: 1.8;
}
.tx-hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.tx-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--tx-grad);
  color: #fff;
  padding: 14px 32px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  transition: transform .2s, box-shadow .2s;
  box-shadow: 0 4px 20px rgba(255,78,139,.4);
}
.tx-btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(255,78,139,.5); color: #fff; }
.tx-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 2px solid var(--tx-border);
  color: var(--tx-text);
  padding: 12px 28px;
  border-radius: 32px;
  font-size: 16px;
  font-weight: 600;
  transition: border-color .2s, color .2s;
}
.tx-btn-outline:hover { border-color: var(--tx-pink); color: var(--tx-pink); }

.tx-hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
}
.tx-stat-item { text-align: center; }
.tx-stat-num { font-size: 28px; font-weight: 800; background: var(--tx-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tx-stat-label { font-size: 12px; color: var(--tx-muted); }

/* ============ 视频卡片 ============ */
.tx-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.tx-video-card {
  background: var(--tx-card);
  border-radius: var(--tx-radius);
  overflow: hidden;
  border: 1px solid var(--tx-border);
  transition: transform .25s, box-shadow .25s;
  cursor: pointer;
}
.tx-video-card:hover { transform: translateY(-6px); box-shadow: var(--tx-shadow); }
.tx-video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #0a0618;
}
.tx-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.tx-video-card:hover .tx-video-thumb img { transform: scale(1.06); }
.tx-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.4);
  opacity: 0;
  transition: opacity .25s;
}
.tx-video-card:hover .tx-play-btn { opacity: 1; }
.tx-play-icon {
  width: 56px;
  height: 56px;
  background: var(--tx-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(255,78,139,.5);
}
.tx-play-icon::after {
  content: '';
  border-left: 20px solid #fff;
  border-top: 12px solid transparent;
  border-bottom: 12px solid transparent;
  margin-left: 4px;
}
.tx-video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--tx-grad);
  color: #fff;
  font-size: 11px;
  padding: 2px 10px;
  border-radius: 12px;
  font-weight: 600;
}
.tx-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  padding: 2px 8px;
  border-radius: 6px;
}
.tx-video-info { padding: 14px 16px; }
.tx-video-title {
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.5;
}
.tx-video-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--tx-muted);
}
.tx-video-meta span { display: flex; align-items: center; gap: 4px; }

/* ============ 特性卡片 ============ */
.tx-feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.tx-feature-card {
  background: var(--tx-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 28px 24px;
  transition: border-color .2s, transform .2s;
}
.tx-feature-card:hover { border-color: var(--tx-pink); transform: translateY(-4px); }
.tx-feature-icon {
  width: 52px;
  height: 52px;
  background: rgba(255,78,139,.12);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
}
.tx-feature-card h3 { font-size: 17px; color: #fff; margin-bottom: 8px; }
.tx-feature-card p { font-size: 14px; color: var(--tx-muted); line-height: 1.7; }

/* ============ 专家卡片 ============ */
.tx-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
}
.tx-expert-card {
  background: var(--tx-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 28px 20px;
  text-align: center;
  transition: transform .2s;
}
.tx-expert-card:hover { transform: translateY(-4px); }
.tx-expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--tx-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 14px;
  border: 3px solid var(--tx-border);
}
.tx-expert-name { font-size: 17px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.tx-expert-role { font-size: 13px; color: var(--tx-pink); margin-bottom: 10px; }
.tx-expert-desc { font-size: 13px; color: var(--tx-muted); line-height: 1.6; margin-bottom: 14px; }
.tx-expert-btns { display: flex; gap: 8px; justify-content: center; }
.tx-expert-btn {
  padding: 6px 14px;
  border-radius: 16px;
  font-size: 12px;
  border: 1px solid var(--tx-border);
  color: var(--tx-muted);
  transition: all .2s;
}
.tx-expert-btn:hover { border-color: var(--tx-pink); color: var(--tx-pink); }
.tx-expert-btn.primary { background: var(--tx-grad); color: #fff; border-color: transparent; }

/* ============ 评论卡片 ============ */
.tx-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}
.tx-review-card {
  background: var(--tx-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 24px;
}
.tx-review-stars { color: #FFB800; font-size: 16px; margin-bottom: 10px; }
.tx-review-text { font-size: 14px; color: var(--tx-muted); line-height: 1.8; margin-bottom: 16px; font-style: italic; }
.tx-review-user { display: flex; align-items: center; gap: 10px; }
.tx-review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--tx-grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  flex-shrink: 0;
}
.tx-review-name { font-size: 14px; font-weight: 600; color: #fff; }
.tx-review-date { font-size: 12px; color: var(--tx-muted); }

/* ============ FAQ ============ */
.tx-faq-list { max-width: 800px; margin: 0 auto; }
.tx-faq-item {
  background: var(--tx-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-sm);
  margin-bottom: 12px;
  overflow: hidden;
}
.tx-faq-q {
  padding: 18px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .2s;
}
.tx-faq-q:hover { color: var(--tx-pink); }
.tx-faq-q::after {
  content: '+';
  font-size: 22px;
  color: var(--tx-pink);
  transition: transform .3s;
  flex-shrink: 0;
}
.tx-faq-item.open .tx-faq-q::after { transform: rotate(45deg); }
.tx-faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  padding: 0 20px;
  font-size: 14px;
  color: var(--tx-muted);
  line-height: 1.8;
}
.tx-faq-item.open .tx-faq-a { max-height: 300px; padding: 0 20px 18px; }

/* ============ 合作品牌 ============ */
.tx-partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
}
.tx-partner-item {
  background: var(--tx-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius-sm);
  padding: 16px 28px;
  font-size: 15px;
  font-weight: 600;
  color: var(--tx-muted);
  transition: all .2s;
}
.tx-partner-item:hover { border-color: var(--tx-pink); color: #fff; }

/* ============ 联系区域 ============ */
.tx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  align-items: start;
}
.tx-contact-info h3 { font-size: 22px; color: #fff; margin-bottom: 20px; }
.tx-contact-row {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  background: var(--tx-card);
  border-radius: var(--tx-radius-sm);
  border: 1px solid var(--tx-border);
}
.tx-contact-icon { font-size: 20px; flex-shrink: 0; margin-top: 2px; }
.tx-contact-label { font-size: 12px; color: var(--tx-muted); margin-bottom: 2px; }
.tx-contact-value { font-size: 14px; color: #fff; font-weight: 500; }
.tx-qr-group { display: flex; gap: 20px; }
.tx-qr-item { text-align: center; }
.tx-qr-item img { width: 120px; height: 120px; border-radius: 8px; border: 2px solid var(--tx-border); }
.tx-qr-item p { font-size: 12px; color: var(--tx-muted); margin-top: 6px; }

/* ============ 社交分享 ============ */
.tx-share-bar {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: center;
  margin-top: 24px;
}
.tx-share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 10px 20px;
  border-radius: 24px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--tx-border);
  color: var(--tx-muted);
  transition: all .2s;
  cursor: pointer;
  background: none;
}
.tx-share-btn:hover { border-color: var(--tx-pink); color: var(--tx-pink); background: rgba(255,78,139,.08); }

/* ============ 底部 ============ */
.tx-footer {
  background: #080614;
  border-top: 1px solid var(--tx-border);
  padding: 60px 0 30px;
}
.tx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.tx-footer-brand .tx-logo { margin-bottom: 14px; }
.tx-footer-brand p { font-size: 14px; color: var(--tx-muted); line-height: 1.8; }
.tx-footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 16px; padding-bottom: 8px; border-bottom: 1px solid var(--tx-border); }
.tx-footer-col ul li { margin-bottom: 8px; }
.tx-footer-col ul li a { font-size: 14px; color: var(--tx-muted); transition: color .2s; }
.tx-footer-col ul li a:hover { color: var(--tx-pink); }
.tx-footer-bottom {
  border-top: 1px solid var(--tx-border);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 13px;
  color: var(--tx-muted);
}
.tx-footer-bottom a { color: var(--tx-muted); }
.tx-footer-bottom a:hover { color: var(--tx-pink); }

/* ============ 视频模态框 ============ */
.tx-modal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(0,0,0,.85);
  align-items: center;
  justify-content: center;
}
.tx-modal.show { display: flex; }
.tx-modal-inner {
  background: var(--tx-card);
  border-radius: var(--tx-radius);
  padding: 24px;
  width: 90%;
  max-width: 720px;
  position: relative;
}
.tx-modal-close {
  position: absolute;
  top: 12px;
  right: 16px;
  font-size: 24px;
  color: var(--tx-muted);
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.tx-modal-close:hover { color: #fff; }
.tx-modal-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: var(--tx-radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-muted);
  font-size: 15px;
}
.tx-modal-title { font-size: 16px; font-weight: 600; color: #fff; margin-top: 14px; }

/* ============ 标签云 ============ */
.tx-tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.tx-tag {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(255,78,139,.08);
  border: 1px solid rgba(255,78,139,.2);
  color: var(--tx-muted);
  transition: all .2s;
}
.tx-tag:hover { background: rgba(255,78,139,.18); color: var(--tx-pink); border-color: var(--tx-pink); }

/* ============ 面包屑 ============ */
.tx-breadcrumb {
  padding: 14px 0;
  font-size: 13px;
  color: var(--tx-muted);
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.tx-breadcrumb a { color: var(--tx-muted); }
.tx-breadcrumb a:hover { color: var(--tx-pink); }
.tx-breadcrumb span { color: var(--tx-muted); }

/* ============ 渐入动画 ============ */
.fade-in { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.fade-in.visible { opacity: 1; transform: none; }

/* ============ 回顶按钮 ============ */
.tx-back-top {
  position: fixed;
  bottom: 32px;
  right: 32px;
  width: 44px;
  height: 44px;
  background: var(--tx-grad);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity .3s, transform .3s;
  z-index: 500;
  border: none;
  color: #fff;
  font-size: 18px;
}
.tx-back-top.show { opacity: 1; pointer-events: auto; }
.tx-back-top:hover { transform: translateY(-3px); }

/* ============ 渐变分隔线 ============ */
.tx-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--tx-border), transparent);
  margin: 0;
}

/* ============ 内页 Hero ============ */
.tx-page-hero {
  background: var(--tx-dark);
  border-bottom: 1px solid var(--tx-border);
  padding: 48px 0 36px;
}
.tx-page-hero h1 { font-size: 36px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.tx-page-hero h1 span { background: var(--tx-grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.tx-page-hero p { font-size: 16px; color: var(--tx-muted); }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .tx-footer-grid { grid-template-columns: 1fr 1fr; }
  .tx-contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .tx-header-inner { height: 56px; gap: 12px; }
  .tx-nav { display: none; position: absolute; top: 56px; left: 0; right: 0; background: rgba(13,10,26,.98); flex-direction: column; padding: 16px; gap: 4px; border-bottom: 1px solid var(--tx-border); }
  .tx-nav.open { display: flex; }
  .tx-nav a { width: 100%; padding: 10px 16px; border-radius: 8px; }
  .tx-hamburger { display: flex; }
  .tx-search-wrap { display: none; }
  .tx-hero-content h1 { font-size: 32px; }
  .tx-hero-stats { gap: 20px; }
  .tx-stat-num { font-size: 22px; }
  .tx-section { padding: 48px 0; }
  .tx-section-head h2 { font-size: 24px; }
  .tx-video-grid { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
  .tx-footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .tx-footer-bottom { flex-direction: column; text-align: center; }
  .tx-back-top { bottom: 20px; right: 20px; }
  .tx-hero { min-height: 420px; }
}
@media (max-width: 480px) {
  .tx-container { padding: 0 16px; }
  .tx-hero-content h1 { font-size: 26px; }
  .tx-video-grid { grid-template-columns: 1fr; }
  .tx-feature-grid { grid-template-columns: 1fr; }
  .tx-expert-grid { grid-template-columns: 1fr 1fr; }
  .tx-review-grid { grid-template-columns: 1fr; }
}
