/* ============================================
   幼女漫画 原创样式表
   品牌色：#36E25B(品牌主色) #8E28BD(品牌辅色) #42E4EF(品牌强调色)
   域名：nacuh.cn
   ============================================ */

/* === 基础重置与变量 === */
:root {
  --tx-primary: #36E25B;
  --tx-secondary: #8E28BD;
  --tx-accent: #42E4EF;
  --tx-dark: #0F0A1A;
  --tx-card: #1A1128;
  --tx-card-hover: #241838;
  --tx-text: #F0E6FF;
  --tx-text-muted: #A89BC2;
  --tx-border: rgba(232,62,140,0.15);
  --tx-gradient: linear-gradient(135deg, #36E25B 0%, #8E28BD 100%);
  --tx-shadow: 0 4px 24px rgba(14,10,26,0.5);
  --tx-radius: 12px;
  --tx-container: 1200px;
}

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

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

body {
  font-family: 'PingFang SC','Microsoft YaHei','Helvetica Neue',Arial,sans-serif;
  background: var(--tx-dark);
  color: var(--tx-text);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--tx-primary); text-decoration: none; transition: color .25s; }
a:hover { color: var(--tx-accent); }

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

/* === 容器 === */
.tx-container {
  max-width: var(--tx-container);
  margin: 0 auto;
  padding: 0 20px;
}

/* === 头部导航 === */
.tx-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(15,10,26,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--tx-border);
  transition: background .3s;
}

.tx-header-inner {
  display: flex;
  align-items: center;
  height: 68px;
  gap: 24px;
}

.tx-logo { flex-shrink: 0; display: flex; align-items: center; }
.tx-logo-img { height: 40px; width: auto; }

.tx-nav { display: flex; gap: 4px; flex: 1; }
.tx-nav-link {
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 500;
  color: var(--tx-text-muted);
  transition: all .25s;
  white-space: nowrap;
}
.tx-nav-link:hover, .tx-nav-link.active {
  color: var(--tx-text);
  background: rgba(232,62,140,0.12);
}
.tx-nav-link.active { color: var(--tx-primary); }

/* 搜索框 */
.tx-search-box {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.06);
  border: 1px solid var(--tx-border);
  border-radius: 24px;
  padding: 4px 4px 4px 16px;
  width: 240px;
  transition: all .3s;
}
.tx-search-box:focus-within {
  border-color: var(--tx-primary);
  background: rgba(232,62,140,0.06);
  width: 300px;
}
.tx-search-input {
  background: none;
  border: none;
  outline: none;
  color: var(--tx-text);
  font-size: 14px;
  width: 100%;
  padding: 6px 0;
}
.tx-search-input::placeholder { color: var(--tx-text-muted); }
.tx-search-btn {
  background: var(--tx-gradient);
  border: none;
  border-radius: 50%;
  width: 34px;
  height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: white;
  flex-shrink: 0;
  transition: transform .2s;
}
.tx-search-btn:hover { transform: scale(1.08); }

/* 移动端菜单按钮 */
.tx-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.tx-menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--tx-text);
  border-radius: 2px;
  transition: all .3s;
}

/* === Hero Banner === */
.tx-hero {
  position: relative;
  min-height: 600px;
  display: flex;
  align-items: center;
  margin-top: 68px;
  overflow: hidden;
}
.tx-hero-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.tx-hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.tx-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15,10,26,0.3) 0%, rgba(15,10,26,0.85) 70%, var(--tx-dark) 100%);
}
.tx-hero-content {
  position: relative;
  z-index: 1;
  padding: 80px 20px;
  max-width: 800px;
}
.tx-hero-title {
  font-size: 42px;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
  background: var(--tx-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-hero-subtitle {
  font-size: 17px;
  color: var(--tx-text-muted);
  margin-bottom: 36px;
  line-height: 1.8;
}
.tx-hero-stats {
  display: flex;
  gap: 32px;
  margin-bottom: 36px;
  flex-wrap: wrap;
}
.tx-stat-item { text-align: center; }
.tx-stat-num {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--tx-accent);
}
.tx-stat-label {
  font-size: 13px;
  color: var(--tx-text-muted);
}
.tx-hero-actions { display: flex; gap: 16px; flex-wrap: wrap; }

/* === 按钮 === */
.tx-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 28px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all .3s;
  border: 2px solid transparent;
  text-decoration: none;
}
.tx-btn-primary {
  background: var(--tx-gradient);
  color: white;
  border-color: transparent;
}
.tx-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(232,62,140,0.35);
  color: white;
}
.tx-btn-outline {
  background: transparent;
  color: var(--tx-primary);
  border-color: var(--tx-primary);
}
.tx-btn-outline:hover {
  background: rgba(232,62,140,0.1);
  color: var(--tx-accent);
}
.tx-btn-sm { padding: 8px 18px; font-size: 13px; border-radius: 8px; }

/* === 通用区块 === */
.tx-section {
  padding: 80px 0;
}
.tx-section-alt {
  background: linear-gradient(180deg, rgba(26,17,40,0.5) 0%, var(--tx-dark) 100%);
}
.tx-section-header {
  text-align: center;
  margin-bottom: 48px;
}
.tx-section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--tx-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-section-desc {
  font-size: 16px;
  color: var(--tx-text-muted);
  max-width: 680px;
  margin: 0 auto;
}

/* === 视频网格 === */
.tx-video-grid {
  display: grid;
  gap: 24px;
}
.tx-grid-3 { grid-template-columns: repeat(3, 1fr); }
.tx-grid-2 { grid-template-columns: repeat(2, 1fr); }

/* === 视频卡片 === */
.tx-video-card, .tx-feature-card, .tx-ai-card, .tx-community-card {
  background: var(--tx-card);
  border-radius: var(--tx-radius);
  overflow: hidden;
  border: 1px solid var(--tx-border);
  transition: all .35s;
}
.tx-video-card:hover, .tx-feature-card:hover, .tx-ai-card:hover, .tx-community-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,62,140,0.35);
  box-shadow: var(--tx-shadow);
}

.tx-video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #120D1F;
}
.tx-video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.tx-video-card:hover .tx-video-thumb img,
.tx-feature-card:hover .tx-video-thumb img,
.tx-community-card:hover .tx-video-thumb img {
  transform: scale(1.06);
}

/* 播放按钮覆盖层 */
.tx-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(15,10,26,0.35);
  opacity: 0;
  transition: opacity .3s;
  cursor: pointer;
}
.tx-video-thumb:hover .tx-play-overlay { opacity: 1; }
.tx-play-btn {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(232,62,140,0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform .25s;
}
.tx-play-overlay:hover .tx-play-btn { transform: scale(1.12); }

.tx-video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: 600;
}
.tx-video-badge {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--tx-gradient);
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 600;
}

.tx-video-info, .tx-feature-info { padding: 16px; }
.tx-video-title {
  font-size: 15px;
  font-weight: 600;
  margin-bottom: 8px;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.tx-video-meta {
  display: flex;
  gap: 12px;
  font-size: 12px;
  color: var(--tx-text-muted);
  margin-bottom: 8px;
}
.tx-video-desc {
  font-size: 13px;
  color: var(--tx-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tx-feature-info h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 8px;
}
.tx-feature-info p {
  font-size: 14px;
  color: var(--tx-text-muted);
  margin-bottom: 12px;
  line-height: 1.7;
}
.tx-tag {
  display: inline-block;
  padding: 3px 10px;
  background: rgba(232,62,140,0.1);
  color: var(--tx-primary);
  border-radius: 4px;
  font-size: 12px;
  margin-right: 6px;
}

/* AI卡片 */
.tx-ai-card h3 {
  padding: 16px 16px 8px;
  font-size: 17px;
  font-weight: 700;
}
.tx-ai-card p {
  padding: 0 16px 16px;
  font-size: 14px;
  color: var(--tx-text-muted);
  line-height: 1.7;
}

/* 社区卡片 */
.tx-community-card h3 {
  padding: 14px 16px 6px;
  font-size: 16px;
  font-weight: 700;
}
.tx-community-card p {
  padding: 0 16px 8px;
  font-size: 13px;
  color: var(--tx-text-muted);
  line-height: 1.6;
}
.tx-community-stat {
  display: block;
  padding: 0 16px 14px;
  font-size: 12px;
  color: var(--tx-accent);
}

/* === 专家展示 === */
.tx-expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.tx-expert-card {
  background: var(--tx-card);
  border-radius: var(--tx-radius);
  padding: 28px 20px;
  text-align: center;
  border: 1px solid var(--tx-border);
  transition: all .35s;
}
.tx-expert-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,62,140,0.35);
  box-shadow: var(--tx-shadow);
}
.tx-expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid var(--tx-primary);
}
.tx-expert-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 4px;
}
.tx-expert-role {
  font-size: 13px;
  color: var(--tx-primary);
  margin-bottom: 12px;
}
.tx-expert-desc {
  font-size: 13px;
  color: var(--tx-text-muted);
  line-height: 1.7;
  margin-bottom: 16px;
}
.tx-expert-actions { display: flex; gap: 8px; justify-content: center; }

/* === 合作品牌墙 === */
.tx-partner-wall {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
.tx-partner-item {
  background: var(--tx-card);
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  padding: 24px;
  text-align: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--tx-text-muted);
  transition: all .3s;
}
.tx-partner-item:hover {
  border-color: var(--tx-primary);
  color: var(--tx-text);
  background: var(--tx-card-hover);
}

/* === How-To步骤 === */
.tx-howto-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-bottom: 56px;
}
.tx-step-card {
  background: var(--tx-card);
  border-radius: var(--tx-radius);
  padding: 32px 24px;
  border: 1px solid var(--tx-border);
  text-align: center;
  transition: all .35s;
}
.tx-step-card:hover {
  transform: translateY(-4px);
  border-color: rgba(232,62,140,0.35);
}
.tx-step-num {
  font-size: 48px;
  font-weight: 900;
  background: var(--tx-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 12px;
}
.tx-step-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
}
.tx-step-card p {
  font-size: 14px;
  color: var(--tx-text-muted);
  line-height: 1.7;
}

/* === FAQ === */
.tx-faq-section { max-width: 800px; margin: 0 auto; }
.tx-faq-title {
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 28px;
}
.tx-faq-item {
  border: 1px solid var(--tx-border);
  border-radius: var(--tx-radius);
  margin-bottom: 12px;
  overflow: hidden;
  background: var(--tx-card);
}
.tx-faq-question {
  width: 100%;
  padding: 18px 20px;
  background: none;
  border: none;
  color: var(--tx-text);
  font-size: 15px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: color .25s;
}
.tx-faq-question::after {
  content: '+';
  font-size: 22px;
  color: var(--tx-primary);
  transition: transform .3s;
}
.tx-faq-question[aria-expanded="true"]::after {
  content: '−';
}
.tx-faq-question:hover { color: var(--tx-primary); }
.tx-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease;
}
.tx-faq-answer p {
  padding: 0 20px 18px;
  font-size: 14px;
  color: var(--tx-text-muted);
  line-height: 1.8;
}

/* === 用户评论 === */
.tx-review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.tx-review-card {
  background: var(--tx-card);
  border-radius: var(--tx-radius);
  padding: 24px;
  border: 1px solid var(--tx-border);
  transition: all .35s;
}
.tx-review-card:hover {
  transform: translateY(-3px);
  border-color: rgba(232,62,140,0.3);
}
.tx-review-stars {
  color: var(--tx-accent);
  font-size: 16px;
  margin-bottom: 12px;
  letter-spacing: 2px;
}
.tx-review-text {
  font-size: 14px;
  color: var(--tx-text);
  line-height: 1.8;
  margin-bottom: 16px;
  font-style: italic;
}
.tx-review-author strong {
  display: block;
  font-size: 14px;
  color: var(--tx-text);
}
.tx-review-author span {
  font-size: 12px;
  color: var(--tx-text-muted);
}

/* === 分享栏 === */
.tx-share-bar {
  padding: 24px 0;
  background: var(--tx-card);
  border-top: 1px solid var(--tx-border);
  border-bottom: 1px solid var(--tx-border);
}
.tx-share-bar .tx-container {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.tx-share-label {
  font-size: 14px;
  color: var(--tx-text-muted);
  font-weight: 600;
}
.tx-share-btn {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  background: rgba(232,62,140,0.1);
  color: var(--tx-primary);
  transition: all .25s;
}
.tx-share-btn:hover {
  background: var(--tx-primary);
  color: white;
}

/* === 底部 === */
.tx-footer {
  padding: 60px 0 0;
  background: linear-gradient(180deg, var(--tx-dark) 0%, #080515 100%);
  border-top: 1px solid var(--tx-border);
}
.tx-footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
}
.tx-footer-logo { height: 36px; width: auto; margin-bottom: 16px; }
.tx-footer-desc {
  font-size: 13px;
  color: var(--tx-text-muted);
  line-height: 1.8;
  margin-bottom: 16px;
}
.tx-social-links { display: flex; gap: 10px; }
.tx-social-link {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(232,62,140,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--tx-primary);
  transition: all .25s;
}
.tx-social-link:hover {
  background: var(--tx-primary);
  color: white;
}

.tx-footer-title {
  font-size: 15px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--tx-text);
}
.tx-footer-links, .tx-footer-contact {
  list-style: none;
}
.tx-footer-links li, .tx-footer-contact li {
  margin-bottom: 8px;
}
.tx-footer-links a {
  font-size: 13px;
  color: var(--tx-text-muted);
  transition: color .25s;
}
.tx-footer-links a:hover { color: var(--tx-primary); }
.tx-footer-contact li {
  font-size: 13px;
  color: var(--tx-text-muted);
}

.tx-qr-group { display: flex; gap: 16px; }
.tx-qr-item {
  text-align: center;
}
.tx-qr-item img {
  border-radius: 8px;
  margin-bottom: 6px;
}
.tx-qr-item span {
  font-size: 11px;
  color: var(--tx-text-muted);
}

.tx-footer-bottom {
  border-top: 1px solid var(--tx-border);
  padding: 20px 0;
  text-align: center;
}
.tx-footer-bottom p {
  font-size: 13px;
  color: var(--tx-text-muted);
}
.tx-update-time {
  margin-top: 4px;
  font-size: 12px;
}

/* === 面包屑 === */
.tx-breadcrumb {
  padding: 16px 0;
  margin-top: 68px;
}
.tx-breadcrumb a, .tx-breadcrumb span {
  font-size: 13px;
  color: var(--tx-text-muted);
}
.tx-breadcrumb a:hover { color: var(--tx-primary); }
.tx-breadcrumb .tx-sep { margin: 0 8px; }

/* === 内页通用 === */
.tx-page-hero {
  padding: 100px 0 60px;
  margin-top: 68px;
  background: linear-gradient(180deg, rgba(111,66,193,0.15) 0%, var(--tx-dark) 100%);
  text-align: center;
}
.tx-page-hero h1 {
  font-size: 36px;
  font-weight: 800;
  margin-bottom: 12px;
  background: var(--tx-gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.tx-page-hero p {
  font-size: 16px;
  color: var(--tx-text-muted);
  max-width: 600px;
  margin: 0 auto;
}

/* 联系页面 */
.tx-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.tx-contact-card {
  background: var(--tx-card);
  border-radius: var(--tx-radius);
  padding: 28px;
  border: 1px solid var(--tx-border);
}
.tx-contact-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 16px;
  color: var(--tx-primary);
}
.tx-contact-card p, .tx-contact-card li {
  font-size: 14px;
  color: var(--tx-text-muted);
  line-height: 1.8;
}
.tx-contact-card ul { list-style: none; }
.tx-contact-card li { margin-bottom: 8px; }

/* === 懒加载占位 === */
.tx-lazy {
  opacity: 0;
  transition: opacity .5s;
}
.tx-lazy.tx-loaded { opacity: 1; }

/* === 响应式设计 === */
@media (max-width: 1024px) {
  .tx-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .tx-expert-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-partner-wall { grid-template-columns: repeat(2, 1fr); }
  .tx-footer-grid { grid-template-columns: repeat(2, 1fr); }
  .tx-review-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .tx-nav { display: none; }
  .tx-nav.tx-nav-open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: rgba(15,10,26,0.98);
    padding: 16px;
    border-bottom: 1px solid var(--tx-border);
  }
  .tx-menu-toggle { display: flex; }
  .tx-search-box { width: 160px; }
  .tx-search-box:focus-within { width: 200px; }

  .tx-hero { min-height: 480px; }
  .tx-hero-title { font-size: 28px; }
  .tx-hero-subtitle { font-size: 15px; }
  .tx-hero-stats { gap: 20px; }
  .tx-stat-num { font-size: 22px; }

  .tx-section { padding: 48px 0; }
  .tx-section-title { font-size: 24px; }

  .tx-grid-3, .tx-grid-2 { grid-template-columns: 1fr; }
  .tx-expert-grid { grid-template-columns: 1fr; }
  .tx-partner-wall { grid-template-columns: repeat(2, 1fr); }
  .tx-howto-steps { grid-template-columns: 1fr; }
  .tx-review-grid { grid-template-columns: 1fr; }
  .tx-footer-grid { grid-template-columns: 1fr; }
  .tx-contact-grid { grid-template-columns: 1fr; }

  .tx-page-hero { padding: 60px 0 40px; }
  .tx-page-hero h1 { font-size: 26px; }
}

@media (max-width: 480px) {
  .tx-hero-title { font-size: 24px; }
  .tx-hero-content { padding: 40px 16px; }
  .tx-hero-stats { gap: 16px; }
  .tx-stat-num { font-size: 20px; }
  .tx-btn { padding: 10px 20px; font-size: 14px; }
  .tx-search-box { width: 120px; }
}
