/* ============================================
   小马拉大车 全新原创样式表
   配色：珊瑚橙 #FF6B6B + 深海蓝 #1A2A4A + 暖金 #FFB347
   字体：系统中文字体栈
   ============================================ */

:root {
  --coral: #FF6B6B;
  --coral-light: #FF8E8E;
  --coral-dark: #E85555;
  --navy: #1A2A4A;
  --navy-light: #2C3E6B;
  --navy-dark: #0F1B33;
  --gold: #FFB347;
  --gold-light: #FFCC80;
  --cream: #FFF8F0;
  --white: #FFFFFF;
  --gray-50: #F9FAFB;
  --gray-100: #F3F4F6;
  --gray-200: #E5E7EB;
  --gray-300: #D1D5DB;
  --gray-500: #6B7280;
  --gray-700: #374151;
  --gray-900: #111827;
  --shadow-sm: 0 1px 3px rgba(0,0,0,0.08);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.1);
  --shadow-lg: 0 8px 30px rgba(0,0,0,0.12);
  --shadow-xl: 0 20px 50px rgba(0,0,0,0.15);
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

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

body {
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--gray-900);
  background: var(--cream);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--coral); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--coral-dark); }

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

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

/* ========== 顶部导航 ========== */
.top-nav {
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: var(--shadow-md);
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.nav-brand img.nav-favicon {
  width: 32px;
  height: 32px;
  border-radius: 6px;
}

.nav-brand img.nav-logo {
  height: 42px;
  width: auto;
}

.nav-brand-text {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: 1px;
}

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
}

.nav-links a {
  color: rgba(255,255,255,0.85);
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  font-weight: 500;
  transition: var(--transition);
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--white);
  background: var(--coral);
}

.nav-toggle {
  display: none;
  background: none;
  border: none;
  color: var(--white);
  font-size: 1.5rem;
  cursor: pointer;
  padding: 8px;
}

/* ========== Hero 区域 ========== */
.hero-section {
  position: relative;
  min-height: 520px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 50%, var(--coral-dark) 100%);
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-bg img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.25;
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
  color: var(--white);
}

.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.hero-content h1 span {
  color: var(--gold);
}

.hero-subtitle {
  font-size: 1.2rem;
  opacity: 0.92;
  max-width: 640px;
  margin-bottom: 28px;
  line-height: 1.8;
}

.hero-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.hero-tags span {
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(4px);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 0.85rem;
  border: 1px solid rgba(255,255,255,0.2);
}

.hero-btns {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--coral);
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: none;
  cursor: pointer;
  transition: var(--transition);
  box-shadow: 0 4px 15px rgba(255,107,107,0.4);
}

.btn-primary:hover {
  background: var(--coral-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255,107,107,0.5);
  color: var(--white);
}

.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--white);
  padding: 12px 28px;
  border-radius: var(--radius-md);
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: var(--transition);
}

.btn-outline:hover {
  background: var(--white);
  color: var(--navy);
  border-color: var(--white);
}

/* ========== 数据统计条 ========== */
.stats-bar {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  padding: 20px 0;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  text-align: center;
}

.stat-item strong {
  display: block;
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--coral);
}

.stat-item span {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ========== 通用区块标题 ========== */
.section-header {
  text-align: center;
  margin-bottom: 40px;
}

.section-header h2 {
  font-size: 1.9rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.section-header h2 span {
  color: var(--coral);
}

.section-header p {
  color: var(--gray-500);
  font-size: 1rem;
  max-width: 600px;
  margin: 0 auto;
}

.section-divider {
  width: 60px;
  height: 4px;
  background: linear-gradient(90deg, var(--coral), var(--gold));
  border-radius: 2px;
  margin: 12px auto 0;
}

/* ========== 视频卡片网格 ========== */
.video-section { padding: 60px 0; background: var(--gray-50); }

.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.video-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  cursor: pointer;
}

.video-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}

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

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

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0);
  width: 56px;
  height: 56px;
  background: var(--coral);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  box-shadow: 0 4px 20px rgba(255,107,107,0.5);
}

.play-btn::after {
  content: '';
  display: block;
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 10px 0 10px 18px;
  border-color: transparent transparent transparent var(--white);
  margin-left: 3px;
}

.video-card:hover .play-btn {
  transform: translate(-50%, -50%) scale(1);
}

.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: var(--white);
  padding: 2px 8px;
  border-radius: 4px;
  font-size: 0.75rem;
  font-weight: 600;
}

.video-info {
  padding: 14px;
}

.video-info h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--gray-900);
  margin-bottom: 6px;
  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: 12px;
  font-size: 0.78rem;
  color: var(--gray-500);
}

.video-meta .views::before { content: '👁 '; }
.video-meta .likes::before { content: '❤ '; }

/* ========== 服务卡片 ========== */
.services-section { padding: 60px 0; background: var(--white); }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.service-card {
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  text-align: center;
  transition: var(--transition);
  border: 1px solid var(--gray-200);
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--coral-light);
}

.service-icon {
  width: 64px;
  height: 64px;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
  font-size: 1.8rem;
}

.service-card h3 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.service-card p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

/* ========== 娱乐/AI/社区 横排卡片 ========== */
.feature-section { padding: 60px 0; }
.feature-section.alt-bg { background: var(--gray-50); }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.feature-card {
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.feature-card-img {
  aspect-ratio: 16/10;
  overflow: hidden;
}

.feature-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover .feature-card-img img {
  transform: scale(1.05);
}

.feature-card-body {
  padding: 20px;
}

.feature-card-body h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 8px;
}

.feature-card-body p {
  font-size: 0.88rem;
  color: var(--gray-500);
  line-height: 1.6;
}

.feature-tag {
  display: inline-block;
  background: var(--coral);
  color: var(--white);
  padding: 3px 10px;
  border-radius: 12px;
  font-size: 0.72rem;
  font-weight: 600;
  margin-bottom: 8px;
}

/* ========== 社区互动6卡片 ========== */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.community-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.community-card:hover {
  border-color: var(--coral);
  box-shadow: var(--shadow-md);
}

.community-icon {
  font-size: 2.2rem;
  margin-bottom: 12px;
}

.community-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.community-card p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ========== 专家团队 ========== */
.experts-section { padding: 60px 0; background: var(--white); }

.experts-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.expert-card {
  text-align: center;
  background: var(--gray-50);
  border-radius: var(--radius-lg);
  padding: 28px 20px;
  transition: var(--transition);
}

.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.expert-avatar {
  width: 100px;
  height: 100px;
  border-radius: 50%;
  object-fit: cover;
  margin: 0 auto 14px;
  border: 3px solid var(--coral-light);
}

.expert-card h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.expert-role {
  font-size: 0.82rem;
  color: var(--coral);
  font-weight: 600;
  margin-bottom: 8px;
}

.expert-card p {
  font-size: 0.82rem;
  color: var(--gray-500);
  line-height: 1.5;
}

/* ========== 合作品牌 ========== */
.brands-section { padding: 50px 0; background: var(--gray-50); }

.brands-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 30px;
}

.brand-item {
  background: var(--white);
  padding: 14px 28px;
  border-radius: var(--radius-md);
  font-weight: 700;
  color: var(--gray-500);
  font-size: 0.95rem;
  border: 1px solid var(--gray-200);
  transition: var(--transition);
}

.brand-item:hover {
  color: var(--coral);
  border-color: var(--coral-light);
}

/* ========== HowTo 步骤 ========== */
.howto-section { padding: 60px 0; background: var(--white); }

.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  counter-reset: step;
}

.howto-step {
  text-align: center;
  padding: 24px 16px;
  position: relative;
  counter-increment: step;
}

.howto-step::before {
  content: counter(step);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--coral), var(--gold));
  color: var(--white);
  border-radius: 50%;
  font-size: 1.2rem;
  font-weight: 800;
  margin: 0 auto 14px;
}

.howto-step h4 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.howto-step p {
  font-size: 0.85rem;
  color: var(--gray-500);
}

/* ========== 用户评论 ========== */
.reviews-section { padding: 60px 0; background: var(--gray-50); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.review-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-sm);
}

.review-stars {
  color: var(--gold);
  font-size: 1rem;
  margin-bottom: 10px;
}

.review-card blockquote {
  font-size: 0.9rem;
  color: var(--gray-700);
  line-height: 1.7;
  margin-bottom: 14px;
  font-style: italic;
}

.review-author {
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--navy);
}

.review-date {
  font-size: 0.75rem;
  color: var(--gray-500);
}

/* ========== FAQ ========== */
.faq-section { padding: 60px 0; background: var(--white); }

.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  border-bottom: 1px solid var(--gray-200);
  padding: 18px 0;
}

.faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-weight: 700;
  font-size: 1rem;
  color: var(--navy);
  padding: 4px 0;
}

.faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--coral);
  transition: var(--transition);
  flex-shrink: 0;
  margin-left: 12px;
}

.faq-item.active .faq-question::after {
  content: '−';
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}

.faq-item.active .faq-answer {
  max-height: 300px;
}

.faq-answer p {
  padding: 12px 0 4px;
  font-size: 0.9rem;
  color: var(--gray-500);
  line-height: 1.7;
}

/* ========== 联系/二维码 ========== */
.contact-section { padding: 60px 0; background: var(--navy); color: var(--white); }

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.contact-info h3 {
  font-size: 1.3rem;
  margin-bottom: 16px;
  color: var(--gold);
}

.contact-info p {
  font-size: 0.9rem;
  opacity: 0.85;
  margin-bottom: 8px;
  line-height: 1.7;
}

.qr-box {
  text-align: center;
}

.qr-box img {
  width: 140px;
  height: 140px;
  border-radius: var(--radius-md);
  margin: 0 auto 8px;
  border: 3px solid rgba(255,255,255,0.2);
}

.qr-box p {
  font-size: 0.82rem;
  opacity: 0.75;
}

/* ========== 社交分享 ========== */
.share-bar {
  display: flex;
  gap: 10px;
  margin-top: 16px;
}

.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--white);
  transition: var(--transition);
}

.share-btn.weixin { background: #07C160; }
.share-btn.weibo { background: #E6162D; }
.share-btn.douyin { background: #161823; }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* ========== MCP 接口 ========== */
.mcp-section { padding: 50px 0; background: var(--gray-50); }

.mcp-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.mcp-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  border: 1px solid var(--gray-200);
}

.mcp-card h4 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 6px;
}

.mcp-card code {
  display: block;
  background: var(--navy-dark);
  color: #4ADE80;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  margin-top: 8px;
  overflow-x: auto;
}

/* ========== 页脚 ========== */
.site-footer {
  background: var(--navy-dark);
  color: rgba(255,255,255,0.7);
  padding: 40px 0 20px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 30px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.footer-brand img {
  height: 40px;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.85rem;
  line-height: 1.7;
}

.footer-col h4 {
  color: var(--white);
  font-size: 0.95rem;
  margin-bottom: 14px;
}

.footer-col ul {
  list-style: none;
}

.footer-col ul li {
  margin-bottom: 8px;
}

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
  transition: var(--transition);
}

.footer-col ul li a:hover {
  color: var(--coral);
}

.footer-bottom {
  text-align: center;
  padding: 20px;
  font-size: 0.8rem;
  max-width: 1200px;
  margin: 0 auto;
}

.footer-bottom a { color: var(--coral-light); }

/* ========== 面包屑 ========== */
.breadcrumb {
  padding: 14px 0;
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
}

.breadcrumb-list {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  font-size: 0.85rem;
}

.breadcrumb-list li + li::before {
  content: '›';
  margin-right: 8px;
  color: var(--gray-300);
}

.breadcrumb-list a { color: var(--gray-500); }
.breadcrumb-list a:hover { color: var(--coral); }
.breadcrumb-list .current { color: var(--gray-900); font-weight: 600; }

/* ========== 内页通用 ========== */
.page-hero {
  background: linear-gradient(135deg, var(--navy), var(--navy-light));
  padding: 50px 0;
  color: var(--white);
  text-align: center;
}

.page-hero h1 {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 10px;
}

.page-hero p {
  font-size: 1rem;
  opacity: 0.85;
  max-width: 600px;
  margin: 0 auto;
}

.page-content {
  padding: 50px 0;
}

.content-text {
  max-width: 800px;
  margin: 0 auto;
}

.content-text h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--navy);
  margin: 30px 0 14px;
}

.content-text h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy);
  margin: 24px 0 10px;
}

.content-text p {
  margin-bottom: 14px;
  color: var(--gray-700);
  line-height: 1.8;
}

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

@media (max-width: 768px) {
  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--navy);
    padding: 16px;
    box-shadow: var(--shadow-lg);
  }
  .nav-toggle { display: block; }

  .hero-content h1 { font-size: 1.8rem; }
  .hero-subtitle { font-size: 1rem; }

  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid,
  .feature-row,
  .community-grid,
  .reviews-grid,
  .mcp-grid { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }

  .section-header h2 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .howto-steps { grid-template-columns: 1fr; }
  .experts-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
}
