/* 抖荫短视频 - 国内知名影视传媒与视频社区 原创样式表 */
:root {
  --tx-primary: #ff2d60;
  --tx-primary-glow: rgba(255, 45, 96, 0.4);
  --tx-secondary: #ff758c;
  --tx-gold: #ffd166;
  --tx-gold-glow: rgba(255, 209, 102, 0.35);
  --tx-purple: #8b5cf6;
  --tx-bg: #0b0914;
  --tx-bg-card: #151124;
  --tx-bg-subtle: #1e1933;
  --tx-text: #f8fafc;
  --tx-text-muted: #a0aec0;
  --tx-border: rgba(255, 255, 255, 0.08);
  --tx-border-hover: rgba(255, 45, 96, 0.5);
  --tx-radius: 12px;
}

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

body {
  background-color: var(--tx-bg);
  color: var(--tx-text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Microsoft YaHei', 'Segoe UI', Roboto, sans-serif;
  line-height: 1.65;
  font-size: 15px;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

a {
  color: inherit;
  text-decoration: none;
  transition: all 0.25s ease;
}

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

/* 顶部导航栏 */
.tx-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(11, 9, 20, 0.95);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tx-border);
}

.tx-nav-container {
  max-width: 1240px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.tx-brand-logo-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
}

.tx-brand-logo-img {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: #1f1830;
  padding: 4px;
  border: 1px solid rgba(255, 45, 96, 0.4);
}

.tx-brand-name-box h1,
.tx-brand-name-box .tx-brand-title {
  font-size: 18px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.tx-brand-name-box h1 span,
.tx-brand-name-box .tx-brand-title span {
  color: var(--tx-primary);
}

.tx-brand-subtitle {
  font-size: 11px;
  color: var(--tx-gold);
  letter-spacing: 0.5px;
}

.tx-nav-links {
  display: flex;
  align-items: center;
  gap: 20px;
  list-style: none;
}

.tx-nav-links a {
  font-size: 14px;
  font-weight: 600;
  color: #cbd5e1;
  position: relative;
  padding: 6px 2px;
}

.tx-nav-links a:hover,
.tx-nav-links a.active {
  color: var(--tx-primary);
}

.tx-nav-links a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: var(--tx-primary);
  box-shadow: 0 0 8px var(--tx-primary-glow);
}

.tx-nav-tag {
  background: linear-gradient(135deg, var(--tx-primary), #ff758c);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 20px;
  box-shadow: 0 4px 14px var(--tx-primary-glow);
}

/* 头部搜索栏 (JS控制，假搜索) */
.tx-search-bar-wrapper {
  background: #110e1e;
  border-bottom: 1px solid var(--tx-border);
  padding: 14px 20px;
}

.tx-search-container {
  max-width: 900px;
  margin: 0 auto;
}

.tx-search-form {
  display: flex;
  align-items: center;
  background: var(--tx-bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 30px;
  padding: 4px 6px 4px 18px;
  transition: all 0.3s ease;
}

.tx-search-form:focus-within {
  border-color: var(--tx-primary);
  box-shadow: 0 0 15px var(--tx-primary-glow);
}

.tx-search-input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #fff;
  font-size: 14px;
  padding: 8px 0;
}

.tx-search-input::placeholder {
  color: #6b7280;
}

.tx-search-btn {
  background: linear-gradient(135deg, var(--tx-primary), #ff6088);
  color: #fff;
  border: none;
  border-radius: 24px;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s;
}

.tx-search-btn:hover {
  filter: brightness(1.1);
  transform: scale(1.02);
}

.tx-hot-keywords {
  margin-top: 8px;
  font-size: 12px;
  color: var(--tx-text-muted);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.tx-hot-keywords a {
  color: #cbd5e1;
  background: rgba(255, 255, 255, 0.04);
  padding: 2px 8px;
  border-radius: 4px;
}

.tx-hot-keywords a:hover {
  color: var(--tx-primary);
  background: rgba(255, 45, 96, 0.1);
}

.tx-search-feedback-tip {
  display: none;
  margin-top: 8px;
  padding: 8px 12px;
  background: rgba(255, 45, 96, 0.12);
  border: 1px solid rgba(255, 45, 96, 0.3);
  color: var(--tx-secondary);
  border-radius: 6px;
  font-size: 12px;
}

/* 核心布局 */
.tx-main-wrap {
  max-width: 1240px;
  margin: 0 auto;
  padding: 24px 20px 60px 20px;
}

.tx-section {
  margin-bottom: 56px;
}

.tx-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--tx-border);
  padding-bottom: 12px;
}

.tx-section-title-wrap h2,
.tx-section-title-wrap h3 {
  font-size: 24px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}

.tx-section-title-wrap h2::before,
.tx-section-title-wrap h3::before {
  content: '';
  width: 4px;
  height: 22px;
  background: var(--tx-primary);
  border-radius: 2px;
  display: inline-block;
}

.tx-section-desc {
  font-size: 13px;
  color: var(--tx-text-muted);
  margin-top: 4px;
}

/* 轮播/主推大卡 */
.tx-hero-banner {
  position: relative;
  border-radius: var(--tx-radius);
  overflow: hidden;
  border: 1px solid var(--tx-border);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6);
  margin-bottom: 40px;
}

.tx-hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  filter: brightness(0.85);
}

.tx-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(11, 9, 20, 0.95) 15%, rgba(11, 9, 20, 0.35) 60%, transparent 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 36px 32px;
}

.tx-hero-badge {
  display: inline-block;
  background: rgba(255, 45, 96, 0.2);
  border: 1px solid var(--tx-primary);
  color: var(--tx-primary);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 4px;
  margin-bottom: 10px;
  width: fit-content;
}

.tx-hero-title {
  font-size: 32px;
  font-weight: 900;
  color: #fff;
  line-height: 1.3;
  margin-bottom: 10px;
}

.tx-hero-meta {
  color: #cbd5e1;
  font-size: 14px;
  max-width: 820px;
  margin-bottom: 18px;
}

.tx-hero-actions {
  display: flex;
  gap: 14px;
}

.tx-btn-primary {
  background: linear-gradient(135deg, var(--tx-primary), #ff6088);
  color: #fff;
  font-weight: 700;
  padding: 10px 24px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.tx-btn-primary:hover {
  box-shadow: 0 0 16px var(--tx-primary-glow);
  transform: translateY(-2px);
}

.tx-btn-secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  font-weight: 600;
  padding: 10px 20px;
  border-radius: 6px;
  backdrop-filter: blur(8px);
}

.tx-btn-secondary:hover {
  background: rgba(255, 255, 255, 0.2);
}

/* 视频卡片网格与悬停播放效果 */
.tx-video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.tx-video-card {
  background: var(--tx-bg-card);
  border-radius: var(--tx-radius);
  overflow: hidden;
  border: 1px solid var(--tx-border);
  transition: all 0.3s cubic-bezier(0.2, 0.8, 0.2, 1);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.tx-video-card:hover {
  border-color: var(--tx-border-hover);
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.6);
}

.tx-video-thumb-box {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #000;
}

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

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

/* 播放按钮悬浮出现 */
.tx-play-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.tx-play-btn-circle {
  width: 54px;
  height: 54px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--tx-primary), #ff758c);
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 20px var(--tx-primary-glow);
  transform: scale(0.85);
  transition: transform 0.3s ease;
}

.tx-play-btn-circle svg {
  width: 24px;
  height: 24px;
  fill: #fff;
  margin-left: 3px;
}

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

.tx-video-card:hover .tx-play-btn-circle {
  transform: scale(1);
}

.tx-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0, 0, 0, 0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 4px;
  font-weight: 600;
}

.tx-video-tag-pill {
  position: absolute;
  top: 8px;
  left: 8px;
  background: rgba(255, 45, 96, 0.88);
  color: #fff;
  font-size: 10px;
  padding: 2px 8px;
  border-radius: 4px;
  font-weight: 700;
}

.tx-video-info {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.tx-video-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 6px;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tx-video-desc {
  font-size: 12px;
  color: var(--tx-text-muted);
  line-height: 1.5;
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tx-video-stats {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: #94a3b8;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 10px;
}

/* AI赋能模块 */
.tx-ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.tx-ai-card {
  background: linear-gradient(145deg, #181329, #120e20);
  border: 1px solid rgba(255, 45, 96, 0.2);
  border-radius: var(--tx-radius);
  padding: 24px;
  position: relative;
  overflow: hidden;
}

.tx-ai-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(90deg, transparent, var(--tx-primary), transparent);
}

.tx-ai-badge {
  font-size: 11px;
  color: var(--tx-gold);
  font-weight: 700;
  letter-spacing: 1px;
  margin-bottom: 8px;
}

.tx-ai-card h3 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 10px;
}

.tx-ai-card p {
  font-size: 13px;
  color: var(--tx-text-muted);
  line-height: 1.6;
}

/* 专家导师团队 */
.tx-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

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

.tx-expert-avatar-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--tx-primary);
  box-shadow: 0 0 15px var(--tx-primary-glow);
}

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

.tx-expert-name {
  font-size: 17px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 4px;
}

.tx-expert-role {
  font-size: 12px;
  color: var(--tx-secondary);
  font-weight: 600;
  margin-bottom: 10px;
}

.tx-expert-bio {
  font-size: 12px;
  color: var(--tx-text-muted);
  margin-bottom: 14px;
  line-height: 1.5;
}

.tx-expert-actions {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.tx-btn-sm {
  font-size: 12px;
  padding: 6px 14px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
}

.tx-btn-sm:hover {
  background: var(--tx-primary);
  border-color: var(--tx-primary);
}

/* 真实评论模块 */
.tx-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 18px;
}

.tx-review-card {
  background: #161226;
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 18px;
}

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

.tx-review-avatar-text {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #2a2040;
  color: var(--tx-primary);
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
}

.tx-review-user {
  font-size: 13px;
  font-weight: 700;
  color: #fff;
}

.tx-review-badge {
  font-size: 11px;
  color: var(--tx-gold);
}

.tx-review-text {
  font-size: 13px;
  color: #d1d5db;
  line-height: 1.6;
}

.tx-review-stars {
  color: #f59e0b;
  font-size: 12px;
  margin-top: 8px;
}

/* FAQ列表 */
.tx-faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.tx-faq-item {
  background: var(--tx-bg-card);
  border: 1px solid var(--tx-border);
  border-radius: 8px;
  overflow: hidden;
}

.tx-faq-question {
  padding: 16px 20px;
  font-weight: 700;
  color: #fff;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255, 255, 255, 0.02);
}

.tx-faq-question:hover {
  color: var(--tx-primary);
}

.tx-faq-answer {
  padding: 0 20px 16px 20px;
  font-size: 13px;
  color: var(--tx-text-muted);
  line-height: 1.7;
}

/* 合作Logo墙 */
.tx-brand-wall {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
  gap: 14px;
}

.tx-brand-wall-item {
  background: #141022;
  border: 1px solid var(--tx-border);
  border-radius: 8px;
  padding: 14px;
  text-align: center;
  font-size: 13px;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.5px;
}

.tx-brand-wall-item:hover {
  color: var(--tx-primary);
  border-color: rgba(255, 45, 96, 0.4);
}

/* 实体门店与联系 */
.tx-contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}

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

.tx-contact-card h4 {
  font-size: 18px;
  color: #fff;
  margin-bottom: 14px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding-bottom: 8px;
}

.tx-contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 13px;
  color: #cbd5e1;
}

.tx-contact-list li strong {
  color: #fff;
}

.tx-qr-group {
  display: flex;
  gap: 14px;
}

.tx-qr-box {
  background: #171228;
  padding: 8px;
  border-radius: 8px;
  border: 1px solid var(--tx-border);
  text-align: center;
}

.tx-qr-box img {
  width: 90px;
  height: 90px;
  margin: 0 auto 6px;
}

.tx-qr-box span {
  font-size: 11px;
  color: var(--tx-text-muted);
  display: block;
}

/* 页脚与MCP */
.tx-footer {
  background: #08060f;
  border-top: 1px solid var(--tx-border);
  padding: 48px 20px 24px 20px;
}

.tx-footer-inner {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.2fr;
  gap: 32px;
  margin-bottom: 36px;
}

.tx-footer-col h5 {
  font-size: 15px;
  font-weight: 800;
  color: #fff;
  margin-bottom: 14px;
}

.tx-footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  color: var(--tx-text-muted);
}

.tx-footer-links a:hover {
  color: var(--tx-primary);
}

.tx-footer-bottom {
  max-width: 1240px;
  margin: 0 auto;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: 12px;
  color: #64748b;
}

.tx-mcp-widget {
  background: #120e20;
  border: 1px dashed rgba(255, 45, 96, 0.3);
  padding: 12px 16px;
  border-radius: 8px;
  margin-top: 16px;
  font-size: 12px;
  color: #94a3b8;
}

.tx-mcp-dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #10b981;
  margin-right: 6px;
  box-shadow: 0 0 6px #10b981;
}

/* 播放内页专用全屏播放器 */
.tx-player-container {
  background: #000;
  border-radius: var(--tx-radius);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.9);
  margin-bottom: 24px;
}

.tx-video-element {
  width: 100%;
  max-height: 600px;
  display: block;
  outline: none;
}

@media (max-width: 992px) {
  .tx-ai-grid {
    grid-template-columns: 1fr;
  }
  .tx-contact-grid {
    grid-template-columns: 1fr;
  }
  .tx-footer-inner {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 640px) {
  .tx-nav-links {
    display: none;
  }
  .tx-hero-title {
    font-size: 22px;
  }
  .tx-footer-inner {
    grid-template-columns: 1fr;
  }
}
