/* 香蕉视频视频社区 - 原创CSS - 精品风格 */
/* 配色：碳纤维黑#0d0d0d 赛车红#e31937 铬银#c0c0c0 深灰#1a1a1a 暗银#2a2a2a */

:root {
  --carbon: #0d0d0d;
  --carbon-light: #1a1a1a;
  --carbon-mid: #2a2a2a;
  --racing-red: #e31937;
  --racing-red-dark: #b8152d;
  --chrome: #c0c0c0;
  --chrome-light: #e8e8e8;
  --gold-accent: #d4a843;
  --text-main: #f0f0f0;
  --text-muted: #999;
  --text-dim: #666;
  --border-color: #333;
  --card-bg: #151515;
  --card-hover: #1e1e1e;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: var(--carbon);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: var(--racing-red); text-decoration: none; transition: color .25s; }
a:hover { color: var(--gold-accent); }

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

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

/* 干扰标签隐藏 */
.dw6o9cfv { position: absolute; width: 0; height: 0; overflow: hidden; opacity: 0; pointer-events: none; z-index: -9999; }

/* ===== 顶部导航 ===== */
.top-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  background: rgba(13,13,13,.92);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-color);
  transition: all .3s;
}
.top-nav .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px;
}
.nav-logo { display: flex; align-items: center; gap: 10px; }
.nav-logo img { height: 42px; width: 42px; border-radius: 50%; border: 2px solid var(--racing-red); }
.nav-logo .brand-text { font-size: 22px; font-weight: 800; color: var(--chrome-light); letter-spacing: 2px; }
.nav-logo .brand-text span { color: var(--racing-red); }

.nav-links { display: flex; gap: 28px; list-style: none; }
.nav-links a {
  color: var(--chrome); font-size: 15px; font-weight: 500;
  padding: 6px 0; position: relative; transition: color .3s;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0; width: 0; height: 2px;
  background: var(--racing-red); transition: width .3s;
}
.nav-links a:hover { color: #fff; }
.nav-links a:hover::after { width: 100%; }

.nav-hamburger { display: none; cursor: pointer; flex-direction: column; gap: 5px; }
.nav-hamburger span { width: 26px; height: 2px; background: var(--chrome); transition: .3s; }

/* 搜索框 */
.search-bar {
  background: var(--carbon-light); border-bottom: 1px solid var(--border-color);
  padding: 12px 0; margin-top: 68px;
}
.search-bar .container { display: flex; justify-content: center; }
.search-box {
  display: flex; max-width: 560px; width: 100%;
  border: 1px solid var(--border-color); border-radius: 6px; overflow: hidden;
}
.search-box input {
  flex: 1; padding: 10px 16px; background: var(--carbon-mid); border: none;
  color: var(--text-main); font-size: 14px; outline: none;
}
.search-box input::placeholder { color: var(--text-dim); }
.search-box button {
  padding: 10px 24px; background: var(--racing-red); color: #fff; border: none;
  cursor: pointer; font-size: 14px; font-weight: 600; transition: background .3s;
}
.search-box button:hover { background: var(--racing-red-dark); }

/* ===== Banner ===== */
.hero-banner {
  position: relative; height: 520px; overflow: hidden;
  background: var(--carbon); margin-top: 0;
}
.hero-banner img {
  width: 100%; height: 100%; object-fit: cover;
  filter: brightness(.55);
}
.hero-overlay {
  position: absolute; top: 0; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  text-align: center; padding: 20px;
  background: linear-gradient(180deg, rgba(0,0,0,.3) 0%, rgba(0,0,0,.6) 100%);
}
.hero-overlay h1 {
  font-size: 42px; font-weight: 900; color: #fff;
  text-shadow: 0 2px 20px rgba(0,0,0,.8);
  margin-bottom: 16px; letter-spacing: 3px;
}
.hero-overlay h1 span { color: var(--racing-red); }
.hero-overlay p {
  font-size: 18px; color: var(--chrome-light); max-width: 700px;
  text-shadow: 0 1px 10px rgba(0,0,0,.6);
  line-height: 1.8;
}
.hero-badge {
  display: inline-block; margin-top: 20px; padding: 10px 30px;
  background: var(--racing-red); color: #fff; border-radius: 4px;
  font-weight: 700; font-size: 15px; letter-spacing: 1px;
  transition: transform .3s, background .3s;
}
.hero-badge:hover { transform: translateY(-2px); background: var(--racing-red-dark); color: #fff; }

/* ===== 通用板块 ===== */
.section { padding: 60px 0; }
.section-dark { background: var(--carbon-light); }
.section-title {
  text-align: center; margin-bottom: 40px;
}
.section-title h2 {
  font-size: 30px; font-weight: 800; color: #fff;
  position: relative; display: inline-block; padding-bottom: 12px;
}
.section-title h2::after {
  content: ''; position: absolute; bottom: 0; left: 50%; transform: translateX(-50%);
  width: 60px; height: 3px; background: var(--racing-red);
}
.section-title h2 span { color: var(--racing-red); }
.section-title p { color: var(--text-muted); margin-top: 10px; font-size: 15px; }

/* ===== 视频卡片网格 ===== */
.video-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
.video-card {
  background: var(--card-bg); border-radius: 8px; overflow: hidden;
  border: 1px solid var(--border-color); transition: transform .3s, box-shadow .3s;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(227,25,55,.15);
}
.video-thumb {
  position: relative; padding-top: 56.25%; overflow: hidden;
}
.video-thumb img {
  position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 56px; height: 56px; background: rgba(227,25,55,.85);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity .3s;
  box-shadow: 0 4px 20px rgba(227,25,55,.4);
}
.play-btn::after {
  content: ''; width: 0; height: 0;
  border-top: 10px solid transparent; border-bottom: 10px solid transparent;
  border-left: 16px solid #fff; margin-left: 3px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-duration {
  position: absolute; bottom: 8px; right: 8px;
  background: rgba(0,0,0,.8); color: #fff; padding: 2px 8px;
  border-radius: 3px; font-size: 12px; font-weight: 600;
}
.video-info { padding: 14px 16px; }
.video-info h3 { font-size: 15px; font-weight: 700; color: var(--text-main); margin-bottom: 6px; line-height: 1.4; }
.video-meta { display: flex; gap: 14px; color: var(--text-dim); font-size: 12px; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tag {
  display: inline-block; padding: 2px 8px; background: var(--carbon-mid);
  color: var(--racing-red); border-radius: 3px; font-size: 11px; margin-top: 6px;
}

/* ===== 模块卡片 ===== */
.module-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.module-card {
  background: var(--card-bg); border-radius: 8px; padding: 28px 20px;
  text-align: center; border: 1px solid var(--border-color);
  transition: transform .3s, border-color .3s;
}
.module-card:hover { transform: translateY(-3px); border-color: var(--racing-red); }
.module-icon {
  width: 52px; height: 52px; margin: 0 auto 14px;
  background: linear-gradient(135deg, var(--racing-red), var(--racing-red-dark));
  border-radius: 12px; display: flex; align-items: center; justify-content: center;
  font-size: 24px; color: #fff;
}
.module-card h4 { font-size: 16px; font-weight: 700; color: var(--text-main); margin-bottom: 8px; }
.module-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* ===== 专家展示 ===== */
.expert-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.expert-card {
  background: var(--card-bg); border-radius: 8px; padding: 24px; text-align: center;
  border: 1px solid var(--border-color); transition: transform .3s;
}
.expert-card:hover { transform: translateY(-3px); }
.expert-avatar {
  width: 80px; height: 80px; border-radius: 50%; margin: 0 auto 12px;
  background: var(--carbon-mid); border: 3px solid var(--racing-red);
  display: flex; align-items: center; justify-content: center;
  font-size: 28px; color: var(--racing-red); font-weight: 800;
  overflow: hidden;
}
.expert-avatar img { width: 100%; height: 100%; object-fit: cover; }
.expert-card h4 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.expert-card .role { color: var(--racing-red); font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.expert-card .credential { color: var(--text-muted); font-size: 12px; line-height: 1.6; }
.expert-btn {
  display: inline-block; margin-top: 12px; padding: 6px 18px;
  background: transparent; border: 1px solid var(--racing-red); color: var(--racing-red);
  border-radius: 4px; font-size: 12px; transition: all .3s;
}
.expert-btn:hover { background: var(--racing-red); color: #fff; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 6px; margin-bottom: 12px; overflow: hidden;
}
.faq-q {
  padding: 16px 20px; cursor: pointer; display: flex;
  justify-content: space-between; align-items: center;
  font-weight: 700; font-size: 15px; color: var(--text-main);
  transition: background .3s;
}
.faq-q:hover { background: var(--carbon-mid); }
.faq-q::after { content: '+'; font-size: 20px; color: var(--racing-red); transition: transform .3s; }
.faq-item.active .faq-q::after { transform: rotate(45deg); }
.faq-a {
  padding: 0 20px; max-height: 0; overflow: hidden; transition: max-height .4s, padding .4s;
  color: var(--text-muted); font-size: 14px; line-height: 1.8;
}
.faq-item.active .faq-a { max-height: 300px; padding: 0 20px 16px; }

/* ===== 用户评论 ===== */
.review-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.review-card {
  background: var(--card-bg); border-radius: 8px; padding: 24px;
  border: 1px solid var(--border-color); position: relative;
}
.review-card::before {
  content: '\201C'; position: absolute; top: 10px; left: 16px;
  font-size: 48px; color: var(--racing-red); opacity: .3; font-family: serif;
}
.review-stars { color: var(--gold-accent); font-size: 14px; margin-bottom: 10px; letter-spacing: 2px; }
.review-text { color: var(--text-muted); font-size: 14px; line-height: 1.7; margin-bottom: 12px; }
.review-author { display: flex; align-items: center; gap: 10px; }
.review-author .avatar {
  width: 36px; height: 36px; border-radius: 50%; background: var(--racing-red);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 14px; font-weight: 700;
}
.review-author .name { font-size: 13px; font-weight: 600; color: var(--text-main); }
.review-author .date { font-size: 11px; color: var(--text-dim); }

/* ===== 合作品牌 ===== */
.brand-wall {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 24px;
  padding: 20px 0;
}
.brand-wall-item {
  width: 140px; height: 70px; background: var(--card-bg);
  border: 1px solid var(--border-color); border-radius: 6px;
  display: flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 700; color: var(--chrome);
  transition: border-color .3s, color .3s;
}
.brand-wall-item:hover { border-color: var(--racing-red); color: var(--racing-red); }

/* ===== 社交分享 ===== */
.share-bar { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.share-btn {
  padding: 8px 20px; border-radius: 4px; font-size: 13px; font-weight: 600;
  color: #fff; transition: transform .3s, opacity .3s;
}
.share-btn:hover { transform: translateY(-2px); opacity: .9; color: #fff; }
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; border: 1px solid #333; }
.share-bilibili { background: #00a1d6; }

/* ===== 联系信息 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.contact-card {
  background: var(--card-bg); border-radius: 8px; padding: 24px; text-align: center;
  border: 1px solid var(--border-color);
}
.contact-card h4 { font-size: 15px; font-weight: 700; color: var(--racing-red); margin-bottom: 10px; }
.contact-card p { font-size: 13px; color: var(--text-muted); line-height: 1.7; }
.contact-card img { max-width: 140px; margin: 10px auto 0; border-radius: 6px; }

/* ===== MCP终端 ===== */
.mcp-terminal {
  background: var(--carbon-light); border: 1px solid var(--border-color);
  border-radius: 8px; padding: 24px; margin: 30px auto; max-width: 700px;
  font-family: "Courier New", monospace;
}
.mcp-terminal .term-header {
  color: var(--racing-red); font-size: 14px; font-weight: 700; margin-bottom: 14px;
}
.mcp-terminal .term-line {
  color: var(--chrome); font-size: 13px; line-height: 2;
}
.mcp-terminal .term-line::before { content: '> '; color: var(--racing-red); }

/* ===== 页脚 ===== */
.site-footer {
  background: var(--carbon); border-top: 1px solid var(--border-color);
  padding: 40px 0 20px;
}
.footer-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 30px; margin-bottom: 30px; }
.footer-col h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col p, .footer-col a { font-size: 13px; color: var(--text-muted); line-height: 2; display: block; }
.footer-col a:hover { color: var(--racing-red); }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.footer-logo img { height: 36px; width: 36px; border-radius: 50%; }
.footer-logo span { font-size: 20px; font-weight: 800; color: #fff; }
.footer-qr { display: flex; gap: 16px; margin-top: 10px; }
.footer-qr img { width: 100px; height: 100px; border-radius: 6px; border: 1px solid var(--border-color); }
.footer-bottom {
  text-align: center; padding-top: 20px; border-top: 1px solid var(--border-color);
  color: var(--text-dim); font-size: 12px; line-height: 2;
}

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 14px 0; font-size: 13px; color: var(--text-dim);
  margin-top: 68px;
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--racing-red); }
.breadcrumb span { margin: 0 6px; }

/* ===== 内页通用 ===== */
.page-header {
  background: var(--carbon-light); padding: 50px 0; text-align: center;
  border-bottom: 1px solid var(--border-color);
}
.page-header h1 { font-size: 32px; font-weight: 800; color: #fff; margin-bottom: 10px; }
.page-header h1 span { color: var(--racing-red); }
.page-header p { color: var(--text-muted); font-size: 15px; max-width: 600px; margin: 0 auto; }

.content-section { padding: 40px 0; }
.content-section h2 { font-size: 24px; font-weight: 700; color: #fff; margin-bottom: 16px; }
.content-section h2 span { color: var(--racing-red); }
.content-section h3 { font-size: 18px; font-weight: 700; color: var(--chrome-light); margin: 20px 0 10px; }
.content-section p { color: var(--text-muted); font-size: 14px; line-height: 1.8; margin-bottom: 14px; }

/* ===== How-To ===== */
.howto-steps { counter-reset: step; max-width: 700px; margin: 0 auto; }
.howto-step {
  counter-increment: step; position: relative; padding: 20px 20px 20px 70px;
  background: var(--card-bg); border: 1px solid var(--border-color);
  border-radius: 6px; margin-bottom: 14px;
}
.howto-step::before {
  content: counter(step); position: absolute; left: 16px; top: 18px;
  width: 38px; height: 38px; background: var(--racing-red); border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 16px;
}
.howto-step h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 6px; }
.howto-step p { font-size: 13px; color: var(--text-muted); margin: 0; }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .module-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .nav-links { display: none; position: fixed; top: 68px; left: 0; right: 0; background: rgba(13,13,13,.98); flex-direction: column; padding: 20px; gap: 16px; border-bottom: 1px solid var(--border-color); }
  .nav-links.active { display: flex; }
  .nav-hamburger { display: flex; }
  .hero-banner { height: 380px; }
  .hero-overlay h1 { font-size: 28px; }
  .hero-overlay p { font-size: 15px; }
  .video-grid { grid-template-columns: 1fr; }
  .module-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .section { padding: 40px 0; }
  .section-title h2 { font-size: 24px; }
}

@media (max-width: 480px) {
  .hero-banner { height: 300px; }
  .hero-overlay h1 { font-size: 22px; }
  .search-box { flex-direction: column; }
  .search-box button { padding: 10px; }
}
