/*
   香蕉视频 - 游戏解说视频社区
   域名: knrtw.cn
   主题: 赛博朋克 + 糖果色 (深紫/亮粉/霓虹蓝)
*/

:root {
  --tx-bg-dark: #0a0514;
  --tx-bg-panel: #160b29;
  --tx-bg-card: #1f113a;
  --tx-primary: #ff2a85;
  --tx-secondary: #9d4edd;
  --tx-accent: #00f0ff;
  --tx-text-main: #f8f9fa;
  --tx-text-muted: #adb5bd;
  --tx-border: rgba(255, 42, 133, 0.2);
  --tx-glow: 0 0 15px rgba(255, 42, 133, 0.5);
  --tx-glow-blue: 0 0 15px rgba(0, 240, 255, 0.5);
  --tx-font: 'PingFang SC', 'Microsoft YaHei', 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

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

body {
  font-family: var(--tx-font);
  background-color: var(--tx-bg-dark);
  color: var(--tx-text-main);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  color: var(--tx-text-main);
  text-decoration: none;
  transition: all 0.3s ease;
}

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

ul {
  list-style: none;
}

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

/* 头部导航 */
.tx-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(10, 5, 20, 0.9);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--tx-border);
  z-index: 1000;
  padding: 10px 0;
}

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

.tx-header-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

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

.tx-logo img {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  box-shadow: var(--tx-glow);
}

.tx-logo-text {
  font-size: 24px;
  font-weight: 800;
  background: linear-gradient(45deg, var(--tx-primary), var(--tx-accent));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  letter-spacing: 1px;
}

.tx-nav {
  display: flex;
  gap: 25px;
}

.tx-nav a {
  font-size: 16px;
  font-weight: 500;
  padding: 5px 0;
  position: relative;
}

.tx-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--tx-primary);
  transition: width 0.3s ease;
  box-shadow: var(--tx-glow);
}

.tx-nav a:hover::after, .tx-nav a.active::after {
  width: 100%;
}

.tx-search-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.tx-search-input {
  background: var(--tx-bg-panel);
  border: 1px solid var(--tx-border);
  color: var(--tx-text-main);
  padding: 8px 15px;
  border-radius: 20px 0 0 20px;
  outline: none;
  width: 200px;
  transition: all 0.3s ease;
}

.tx-search-input:focus {
  border-color: var(--tx-primary);
  box-shadow: var(--tx-glow);
}

.tx-search-btn {
  background: linear-gradient(45deg, var(--tx-primary), var(--tx-secondary));
  border: none;
  color: white;
  padding: 8px 20px;
  border-radius: 0 20px 20px 0;
  cursor: pointer;
  font-weight: bold;
  transition: all 0.3s ease;
}

.tx-search-btn:hover {
  box-shadow: var(--tx-glow);
}

/* Hero Banner */
.tx-hero {
  margin-top: 60px;
  position: relative;
  height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
}

.tx-hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 1;
  opacity: 0.6;
}

.tx-hero-bg::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(10,5,20,0.2) 0%, rgba(10,5,20,1) 100%);
}

.tx-hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 20px;
}

.tx-hero h1 {
  font-size: 48px;
  font-weight: 900;
  margin-bottom: 20px;
  text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

.tx-hero h1 span {
  color: var(--tx-primary);
  text-shadow: var(--tx-glow);
}

.tx-hero p {
  font-size: 18px;
  color: var(--tx-text-muted);
  margin-bottom: 30px;
}

.tx-btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: bold;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
}

.tx-btn-primary {
  background: linear-gradient(45deg, var(--tx-primary), var(--tx-secondary));
  color: white;
  box-shadow: var(--tx-glow);
}

.tx-btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 20px rgba(255, 42, 133, 0.7);
  color: white;
}

.tx-btn-outline {
  background: transparent;
  color: var(--tx-accent);
  border: 2px solid var(--tx-accent);
  margin-left: 15px;
}

.tx-btn-outline:hover {
  background: rgba(0, 240, 255, 0.1);
  box-shadow: var(--tx-glow-blue);
}

/* 模块通用样式 */
.tx-section {
  padding: 60px 0;
}

.tx-section-title {
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 15px;
}

.tx-section-title::before {
  content: '';
  display: block;
  width: 6px;
  height: 30px;
  background: var(--tx-primary);
  border-radius: 3px;
  box-shadow: var(--tx-glow);
}

.tx-section-desc {
  color: var(--tx-text-muted);
  margin-bottom: 40px;
  font-size: 16px;
}

/* 视频卡片网格 */
.tx-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.tx-vcard {
  background: var(--tx-bg-panel);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
  position: relative;
}

.tx-vcard:hover {
  transform: translateY(-5px);
  border-color: var(--tx-border);
  box-shadow: 0 10px 20px rgba(0,0,0,0.5), var(--tx-glow);
}

.tx-vcard-thumb {
  position: relative;
  width: 100%;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
}

.tx-vcard-thumb img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.tx-vcard:hover .tx-vcard-thumb img {
  transform: scale(1.05);
}

.tx-vcard-play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 50px;
  height: 50px;
  background: rgba(255, 42, 133, 0.8);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  backdrop-filter: blur(5px);
}

.tx-vcard-play::after {
  content: '';
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 16px;
  border-color: transparent transparent transparent #fff;
  margin-left: 4px;
}

.tx-vcard:hover .tx-vcard-play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.tx-vcard-dur {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.8);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

.tx-vcard-tag {
  position: absolute;
  top: 10px;
  left: 10px;
  background: linear-gradient(45deg, var(--tx-primary), var(--tx-secondary));
  color: #fff;
  padding: 2px 10px;
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
  box-shadow: var(--tx-glow);
}

.tx-vcard-body {
  padding: 15px;
}

.tx-vcard h3 {
  font-size: 16px;
  margin-bottom: 10px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.tx-vcard-meta {
  display: flex;
  justify-content: space-between;
  color: var(--tx-text-muted);
  font-size: 13px;
}

.tx-vcard-meta span {
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 专家展示卡片 */
.tx-expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.tx-expert-card {
  background: var(--tx-bg-panel);
  border-radius: 15px;
  padding: 30px 20px;
  text-align: center;
  border: 1px solid rgba(255,255,255,0.05);
  transition: all 0.3s ease;
}

.tx-expert-card:hover {
  border-color: var(--tx-accent);
  box-shadow: var(--tx-glow-blue);
  transform: translateY(-5px);
}

.tx-expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  margin: 0 auto 15px;
  background: linear-gradient(45deg, var(--tx-primary), var(--tx-accent));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 36px;
  font-weight: bold;
  color: #fff;
  box-shadow: var(--tx-glow);
}

.tx-expert-card h4 {
  font-size: 20px;
  margin-bottom: 5px;
}

.tx-expert-role {
  color: var(--tx-primary);
  font-size: 14px;
  font-weight: bold;
  margin-bottom: 15px;
}

.tx-expert-card p {
  color: var(--tx-text-muted);
  font-size: 14px;
  margin-bottom: 20px;
}

/* FAQ手风琴 */
.tx-faq-item {
  background: var(--tx-bg-panel);
  border-radius: 8px;
  margin-bottom: 15px;
  border: 1px solid rgba(255,255,255,0.05);
  overflow: hidden;
}

.tx-faq-q {
  padding: 18px 20px;
  font-size: 16px;
  font-weight: bold;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: rgba(255,255,255,0.02);
}

.tx-faq-q::after {
  content: '+';
  color: var(--tx-primary);
  font-size: 20px;
  transition: transform 0.3s ease;
}

.tx-faq-item.open .tx-faq-q::after {
  transform: rotate(45deg);
}

.tx-faq-a {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
  color: var(--tx-text-muted);
}

.tx-faq-item.open .tx-faq-a {
  padding: 0 20px 18px;
  max-height: 200px;
}

/* 用户评价 */
.tx-review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
}

.tx-review-card {
  background: var(--tx-bg-panel);
  padding: 25px;
  border-radius: 12px;
  border-left: 4px solid var(--tx-primary);
}

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

.tx-review-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--tx-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
}

.tx-review-stars {
  color: #ffb703;
  font-size: 14px;
}

.tx-review-card p {
  color: var(--tx-text-muted);
  font-size: 14px;
  font-style: italic;
}

/* 页脚 */
.tx-footer {
  background: #05020a;
  padding: 60px 0 20px;
  border-top: 1px solid var(--tx-border);
  margin-top: 40px;
}

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

.tx-footer h4 {
  font-size: 18px;
  margin-bottom: 20px;
  color: #fff;
  position: relative;
  padding-bottom: 10px;
}

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

.tx-footer ul li {
  margin-bottom: 10px;
}

.tx-footer ul li a {
  color: var(--tx-text-muted);
  font-size: 14px;
}

.tx-footer ul li a:hover {
  color: var(--tx-primary);
  padding-left: 5px;
}

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

.tx-qr-item {
  text-align: center;
}

.tx-qr-item img {
  width: 100px;
  height: 100px;
  border-radius: 8px;
  border: 2px solid var(--tx-border);
  margin-bottom: 8px;
}

.tx-qr-item span {
  font-size: 12px;
  color: var(--tx-text-muted);
}

.tx-footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  color: var(--tx-text-muted);
  font-size: 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

/* MCP终端样式 */
.2sPS1LXJ {
  background: #000;
  border: 1px solid #333;
  border-radius: 6px;
  padding: 10px 15px;
  font-family: monospace;
  font-size: 12px;
  color: #0f0;
  margin-top: 20px;
}

.YL6J34 {
  color: #fff;
}

/* 响应式 */
@media (max-width: 768px) {
  .tx-header-inner {
    flex-wrap: wrap;
  }
  .tx-nav {
    display: none; /* 移动端简化，实际项目中应有汉堡菜单 */
  }
  .tx-search-wrap {
    margin-top: 10px;
    width: 100%;
  }
  .tx-search-input {
    width: calc(100% - 80px);
  }
  .tx-hero h1 {
    font-size: 32px;
  }
  .tx-footer-grid {
    grid-template-columns: 1fr;
  }
  .tx-footer-bottom {
    flex-direction: column;
    gap: 10px;
  }
}

/* 面包屑导航 */
.tx-breadcrumb-wrap {
  background: var(--tx-bg-panel);
  padding: 15px 0;
  border-bottom: 1px solid var(--tx-border);
  margin-top: 70px;
}
.tx-breadcrumb ol {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  font-size: 14px;
}
.tx-breadcrumb li {
  display: flex;
  align-items: center;
}
.tx-breadcrumb li a {
  color: var(--tx-text-muted);
  transition: color 0.3s;
}
.tx-breadcrumb li a:hover {
  color: var(--tx-primary);
}
.tx-breadcrumb li.separator {
  margin: 0 10px;
  color: var(--tx-text-muted);
}
.tx-breadcrumb li[aria-current="page"] {
  color: var(--tx-primary);
  font-weight: bold;
}

/* 汉堡菜单 */
.tx-hamburger {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 30px;
  height: 21px;
  cursor: pointer;
  z-index: 100;
}
.tx-hamburger span {
  display: block;
  height: 3px;
  width: 100%;
  background-color: #fff;
  border-radius: 3px;
  transition: all 0.3s ease;
}
.tx-hamburger.active span:nth-child(1) {
  transform: translateY(9px) rotate(45deg);
}
.tx-hamburger.active span:nth-child(2) {
  opacity: 0;
}
.tx-hamburger.active span:nth-child(3) {
  transform: translateY(-9px) rotate(-45deg);
}

@media (max-width: 768px) {
  .tx-hamburger {
    display: flex;
  }
  .tx-nav {
    display: none;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: var(--tx-bg-dark);
    flex-direction: column;
    padding: 20px 0;
    border-bottom: 1px solid var(--tx-border);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
  }
  .tx-nav.active {
    display: flex;
  }
  .tx-nav a {
    padding: 15px 20px;
    border-bottom: 1px solid rgba(255,255,255,0.05);
  }
  .tx-nav a::after {
    display: none;
  }
  .tx-breadcrumb-wrap {
    margin-top: 120px;
  }
}
