/* ============================================
   小马拉大车 原创样式表
   品牌色：#E8456B 糖心粉 | #FF8C42 暖橙 | #6C5CE7 梦幻紫
   域名：rnpvi04.cn
   ============================================ */

/* === 基础重置 === */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "WenQuanYi Micro Hei", sans-serif;
  color: #2D2D3A;
  background: #F8F0F4;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #E8456B; text-decoration: none; transition: color .3s; }
a:hover { color: #6C5CE7; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* === 头部导航 === */
.site-header {
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D3A 100%);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 20px rgba(232,69,107,0.15);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 20px;
  max-width: 1200px;
  margin: 0 auto;
}
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { height: 48px; width: auto; }
.logo-wrap h1 {
  font-size: 1.4rem;
  color: #E8456B;
  font-weight: 700;
  letter-spacing: 1px;
}
.logo-wrap h1 span { color: #FF8C42; }

/* 导航菜单 */
.main-nav { display: flex; align-items: center; gap: 6px; }
.main-nav a {
  color: #ccc;
  font-size: .9rem;
  padding: 8px 14px;
  border-radius: 20px;
  transition: all .3s;
  white-space: nowrap;
}
.main-nav a:hover, .main-nav a.active {
  color: #fff;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
}

/* 搜索框 */
.search-bar {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(232,69,107,0.3);
  padding: 12px 20px;
  text-align: center;
}
.search-box {
  display: inline-flex;
  align-items: center;
  background: rgba(255,255,255,0.1);
  border-radius: 30px;
  overflow: hidden;
  max-width: 600px;
  width: 100%;
}
.search-box input {
  flex: 1;
  border: none;
  background: transparent;
  color: #fff;
  padding: 10px 20px;
  font-size: .95rem;
  outline: none;
}
.search-box input::placeholder { color: #8E8EA0; }
.search-box button {
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  border: none;
  color: #fff;
  padding: 10px 24px;
  cursor: pointer;
  font-size: .95rem;
  transition: opacity .3s;
}
.search-box button:hover { opacity: .85; }

/* 面包屑 */
.breadcrumb {
  padding: 12px 0;
  font-size: .85rem;
  color: #8E8EA0;
}
.breadcrumb a { color: #E8456B; }
.breadcrumb span { margin: 0 6px; }

/* === Hero Banner === */
.hero-section {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #1A1A2E 0%, #2D2D3A 50%, #1A1A2E 100%);
  padding: 60px 0;
}
.hero-inner {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.hero-text { flex: 1; color: #fff; }
.hero-text h2 {
  font-size: 2.4rem;
  margin-bottom: 16px;
  line-height: 1.3;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-text p {
  font-size: 1.1rem;
  color: #ccc;
  margin-bottom: 24px;
  line-height: 1.8;
}
.hero-text .tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 24px; }
.hero-text .tag-list span {
  background: rgba(232,69,107,0.15);
  color: #E8456B;
  padding: 4px 14px;
  border-radius: 16px;
  font-size: .85rem;
  border: 1px solid rgba(232,69,107,0.3);
}
.hero-img { flex: 0 0 480px; }
.hero-img img { border-radius: 16px; box-shadow: 0 10px 40px rgba(232,69,107,0.2); }
.btn-primary {
  display: inline-block;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  color: #fff;
  padding: 12px 32px;
  border-radius: 30px;
  font-size: 1rem;
  font-weight: 600;
  transition: transform .3s, box-shadow .3s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(232,69,107,0.35);
  color: #fff;
}
.btn-outline {
  display: inline-block;
  border: 2px solid #E8456B;
  color: #E8456B;
  padding: 10px 28px;
  border-radius: 30px;
  font-size: .95rem;
  font-weight: 600;
  transition: all .3s;
  margin-left: 12px;
}
.btn-outline:hover {
  background: #E8456B;
  color: #fff;
}

/* === 通用区块标题 === */
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title h2 {
  font-size: 1.8rem;
  color: #2D2D3A;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.section-title h2::after,
.section-title h3::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  margin: 10px auto 0;
  border-radius: 2px;
}
.section-title h3 {
  font-size: 1.6rem;
  color: #2D2D3A;
  margin-bottom: 8px;
  position: relative;
  display: inline-block;
}
.section-title p {
  color: #8E8EA0;
  font-size: .95rem;
  margin-top: 8px;
}

/* === 视频卡片区 === */
.section-block { padding: 60px 0; }
.section-block:nth-child(even) { background: #fff; }

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform .3s, box-shadow .3s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(232,69,107,0.15);
}
.video-thumb {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16/9;
  background: #1A1A2E;
}
.video-thumb img,
.video-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .4s;
}
.video-card:hover .video-thumb img,
.video-card:hover .video-thumb video { transform: scale(1.05); }
.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 56px;
  height: 56px;
  background: rgba(232,69,107,0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: opacity .3s;
}
.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-left: 18px solid #fff;
  border-top: 11px solid transparent;
  border-bottom: 11px solid transparent;
  margin-left: 4px;
}
.video-card:hover .play-btn { opacity: 1; }
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .75rem;
}
.video-info { padding: 14px 16px; }
.video-info h3 {
  font-size: 1rem;
  margin-bottom: 8px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: .8rem;
  color: #8E8EA0;
}
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.video-tags span {
  background: #F8F0F4;
  color: #E8456B;
  padding: 2px 10px;
  border-radius: 12px;
  font-size: .75rem;
}
.video-desc {
  font-size: .85rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* === 专家团队 === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
}
.expert-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  transition: transform .3s;
}
.expert-card:hover { transform: translateY(-4px); }
.expert-card img {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 16px;
  border: 3px solid #E8456B;
}
.expert-card h4, .expert-card h3.expert-name { font-size: 1.1rem; margin-bottom: 4px; }
.feature-card h3.6qji0 { font-size: 1.05rem; margin-bottom: 8px; }
.howto-step h3.7khk0b { font-size: 1rem; margin-bottom: 8px; }
.contact-card h3.y1luomdo { font-size: 1.05rem; margin-bottom: 12px; color: #E8456B; }
.expert-card .role { color: #FF8C42; font-size: .85rem; margin-bottom: 10px; }
.expert-card p { font-size: .85rem; color: #666; line-height: 1.6; margin-bottom: 14px; }
.expert-card .d4hbl3 { display: flex; gap: 8px; justify-content: center; }
.expert-card .d4hbl3 a {
  padding: 6px 16px;
  border-radius: 20px;
  font-size: .8rem;
  border: 1px solid #E8456B;
  color: #E8456B;
  transition: all .3s;
}
.expert-card .d4hbl3 a:hover {
  background: #E8456B;
  color: #fff;
}

/* === 用户评价 === */
.review-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.review-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  border-left: 4px solid #E8456B;
}
.review-card .stars { color: #FF8C42; font-size: 1rem; margin-bottom: 10px; }
.review-card p { font-size: .9rem; color: #555; line-height: 1.7; margin-bottom: 12px; font-style: italic; }
.review-card .reviewer {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: .85rem;
  color: #8E8EA0;
}
.review-card .reviewer strong { color: #2D2D3A; }

/* === FAQ === */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 10px;
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.04);
  overflow: hidden;
}
.faq-question {
  padding: 18px 24px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background .3s;
}
.faq-question:hover { background: #F8F0F4; }
.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: #E8456B;
  transition: transform .3s;
}
.faq-item.active .faq-question::after {
  content: '-';
  transform: rotate(180deg);
}
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
  padding: 0 24px;
  color: #666;
  font-size: .9rem;
  line-height: 1.8;
}
.faq-item.active .faq-answer {
  max-height: 300px;
  padding: 0 24px 18px;
}

/* === 关于我们 === */
.about-section {
  background: linear-gradient(135deg, #1A1A2E, #2D2D3A);
  color: #fff;
  padding: 60px 0;
}
.about-inner {
  display: flex;
  align-items: center;
  gap: 40px;
}
.about-text { flex: 1; }
.about-text h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.about-text p { color: #ccc; line-height: 1.8; margin-bottom: 14px; }
.about-img { flex: 0 0 400px; }
.about-img img { border-radius: 16px; }

/* === 合作品牌 === */
.partner-wall {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 30px;
  align-items: center;
}
.partner-wall .partner-item {
  background: #fff;
  padding: 16px 28px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  font-size: 1rem;
  font-weight: 600;
  color: #666;
  transition: transform .3s;
}
.partner-wall .partner-item:hover { transform: scale(1.05); }

/* === 社区功能 === */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.feature-card {
  background: #fff;
  border-radius: 12px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  transition: transform .3s;
}
.feature-card:hover { transform: translateY(-4px); }
.feature-icon {
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.6rem;
  color: #fff;
}
.feature-card h4 { font-size: 1.05rem; margin-bottom: 8px; }
.feature-card p { font-size: .85rem; color: #666; line-height: 1.6; }

/* === AI模块 === */
.ai-section {
  background: linear-gradient(135deg, #0a0a23 0%, #1A1A2E 100%);
  padding: 60px 0;
  color: #fff;
}
.ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.ai-card {
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(108,92,231,0.3);
  border-radius: 12px;
  padding: 28px;
  transition: transform .3s, border-color .3s;
}
.ai-card:hover {
  transform: translateY(-4px);
  border-color: #6C5CE7;
}
.ai-card h4 {
  color: #6C5CE7;
  font-size: 1.1rem;
  margin-bottom: 10px;
}
.ai-card p { color: #aaa; font-size: .9rem; line-height: 1.7; }

/* === 联系我们 === */
.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.contact-card {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
}
.contact-card h4 {
  font-size: 1.05rem;
  margin-bottom: 12px;
  color: #E8456B;
}
.contact-card p { font-size: .9rem; color: #666; line-height: 1.8; }

/* === 页脚 === */
.site-footer {
  background: #1A1A2E;
  color: #999;
  padding: 40px 0 20px;
}
.footer-inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}
.footer-col h4 {
  color: #E8456B;
  font-size: 1rem;
  margin-bottom: 14px;
}
.footer-col p, .footer-col a {
  font-size: .85rem;
  color: #999;
  line-height: 2;
  display: block;
}
.footer-col a:hover { color: #E8456B; }
.footer-col img { width: 120px; margin-top: 8px; border-radius: 8px; }
.footer-bottom {
  text-align: center;
  padding: 20px;
  border-top: 1px solid rgba(255,255,255,0.05);
  margin-top: 30px;
  font-size: .8rem;
}
.footer-bottom a { color: #E8456B; }

/* === 社交分享 === */
.share-bar {
  display: flex;
  gap: 10px;
  justify-content: center;
  padding: 20px 0;
}
.share-bar a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 20px;
  font-size: .85rem;
  color: #fff;
  transition: opacity .3s;
}
.share-bar a:hover { opacity: .85; color: #fff; }
.ozmvhq1r { background: #07C160; }
.5e0kyxx { background: #E6162D; }
.nwgru { background: #161823; }
.vn249 { background: #00A1D6; }

/* === How-To指南 === */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  counter-reset: step;
}
.howto-step {
  background: #fff;
  border-radius: 12px;
  padding: 24px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0,0,0,0.05);
  position: relative;
}
.howto-step::before {
  counter-increment: step;
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  color: #fff;
  border-radius: 50%;
  font-weight: 700;
  margin: 0 auto 14px;
}
.howto-step h4 { font-size: 1rem; margin-bottom: 8px; }
.howto-step p { font-size: .85rem; color: #666; }

/* === 内页通用 === */
.page-hero {
  background: linear-gradient(135deg, #1A1A2E, #2D2D3A);
  padding: 50px 0;
  text-align: center;
  color: #fff;
}
.page-hero h2 {
  font-size: 2rem;
  background: linear-gradient(135deg, #E8456B, #FF8C42);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 10px;
}
.page-hero p { color: #ccc; font-size: 1rem; }
.page-content { padding: 50px 0; }
.page-content article { max-width: 900px; margin: 0 auto; }
.page-content article h3 {
  font-size: 1.4rem;
  margin: 28px 0 14px;
  color: #E8456B;
}
.page-content article p {
  margin-bottom: 16px;
  line-height: 1.9;
  color: #444;
}

/* === 汉堡菜单（移动端） === */
.menu-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  padding: 8px;
}
.menu-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #E8456B;
  margin: 5px 0;
  transition: all .3s;
}

/* === 响应式 === */
@media (max-width: 968px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-img { flex: none; max-width: 100%; }
  .hero-text h2 { font-size: 1.8rem; }
  .hero-text .tag-list { justify-content: center; }
  .about-inner { flex-direction: column; }
  .about-img { flex: none; max-width: 100%; }
  .menu-toggle { display: block; }
  .main-nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: #1A1A2E;
    flex-direction: column;
    padding: 20px;
    gap: 4px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
  }
  .main-nav.active { display: flex; }
  .main-nav a { padding: 12px 20px; text-align: center; }
}
@media (max-width: 640px) {
  .hero-text h2 { font-size: 1.5rem; }
  .section-title h2 { font-size: 1.4rem; }
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
}

/* === 懒加载占位 === */
img[data-src] {
  opacity: 1;
  transition: opacity .5s;
}
img[data-src].loaded { opacity: 1; }

/* === 滚动动画 === */
.fade-in {
  opacity: 1;
  transform: translateY(0);
  transition: opacity .6s, transform .6s;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* === MCP前端占位 === */
.mcp-widget {
  background: rgba(108,92,231,0.05);
  border: 1px dashed #6C5CE7;
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  color: #6C5CE7;
  font-size: .85rem;
  margin: 20px 0;
}
