/* =============================================
   蘑菇视频官网 - 主样式文件
   ============================================= */

/* 重置与基础 */
*, *::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;
  color: #333;
  background: #fff;
  line-height: 1.7;
}
a { color: #0d9488; text-decoration: none; transition: color .2s; }
a:hover { color: #0f766e; }
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: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 24px;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.3rem;
  font-weight: 700;
  color: #0d9488;
  white-space: nowrap;
}
.logo svg { width: 36px; height: 36px; }
.logo span { color: #333; }

/* 主导航 */
.main-nav { display: flex; align-items: center; gap: 4px; }
.main-nav a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: .95rem;
  color: #444;
  transition: background .2s, color .2s;
}
.main-nav a:hover, .main-nav a.active { background: #f0fdfa; color: #0d9488; }

/* 搜索框 */
.header-search {
  display: flex;
  align-items: center;
  background: #f5f5f5;
  border-radius: 24px;
  padding: 6px 16px;
  gap: 8px;
  min-width: 220px;
}
.header-search input {
  border: none;
  background: transparent;
  outline: none;
  font-size: .9rem;
  width: 100%;
  color: #333;
}
.header-search button {
  background: none;
  border: none;
  cursor: pointer;
  color: #888;
  padding: 0;
  display: flex;
  align-items: center;
}
.header-search button:hover { color: #0d9488; }

/* 汉堡菜单 */
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: #333;
  margin: 5px 0;
  border-radius: 2px;
  transition: .3s;
}

/* =============================================
   Banner / Hero
   ============================================= */
.hero {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 50%, #134e4a 100%);
  color: #fff;
  padding: 80px 0 60px;
}
.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/banner.jpg');
  background-size: cover;
  background-position: center;
  opacity: .18;
}
.hero-inner {
  position: relative;
  display: flex;
  align-items: center;
  gap: 60px;
}
.hero-text { flex: 1; }
.hero-text h1 {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 20px;
}
.hero-text h1 em { font-style: normal; color: #fbbf24; }
.hero-text p {
  font-size: 1.1rem;
  opacity: .9;
  margin-bottom: 32px;
  max-width: 500px;
}
.hero-cta { display: flex; gap: 16px; flex-wrap: wrap; }
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fbbf24;
  color: #1c1917;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 700;
  font-size: 1rem;
  transition: background .2s, transform .15s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { background: #f59e0b; color: #1c1917; transform: translateY(-1px); }
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 8px;
  font-weight: 600;
  font-size: 1rem;
  border: 2px solid rgba(255,255,255,.6);
  transition: border-color .2s, background .2s;
  cursor: pointer;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,.1); color: #fff; }
.hero-image { flex: 0 0 420px; border-radius: 16px; overflow: hidden; box-shadow: 0 20px 60px rgba(0,0,0,.3); }
.hero-stats {
  display: flex;
  gap: 40px;
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,.2);
}
.stat-item { text-align: center; }
.stat-num { font-size: 2rem; font-weight: 800; color: #fbbf24; display: block; }
.stat-label { font-size: .85rem; opacity: .8; }

/* =============================================
   通用区块
   ============================================= */
.section { padding: 80px 0; }
.section-alt { background: #f8fffe; }
.section-title {
  text-align: center;
  margin-bottom: 48px;
}
.section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: #1c1917;
  margin-bottom: 12px;
}
.section-title p { font-size: 1rem; color: #666; max-width: 600px; margin: 0 auto; }
.section-title .tag {
  display: inline-block;
  background: #f0fdfa;
  color: #0d9488;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 600;
  margin-bottom: 12px;
}

/* =============================================
   功能卡片
   ============================================= */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 28px;
}
.feature-card {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  box-shadow: 0 4px 20px rgba(0,0,0,.06);
  transition: transform .2s, box-shadow .2s;
  border: 1px solid #f0f0f0;
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(13,148,136,.12); }
.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 20px;
}
.feature-icon svg { width: 28px; height: 28px; fill: #fff; }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 10px; color: #1c1917; }
.feature-card p { font-size: .9rem; color: #666; line-height: 1.7; }
.feature-img { border-radius: 12px; overflow: hidden; margin-top: 20px; }

/* =============================================
   视频卡片
   ============================================= */
.videos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
}
.video-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.07);
  transition: transform .2s, box-shadow .2s;
  cursor: pointer;
}
.video-card:hover { transform: translateY(-4px); box-shadow: 0 8px 28px rgba(0,0,0,.12); }
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
  background: #111;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0,0,0,.3);
  opacity: 0;
  transition: opacity .25s;
}
.video-card:hover .video-play-btn { opacity: 1; }
.play-circle {
  width: 60px;
  height: 60px;
  background: rgba(255,255,255,.92);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0,0,0,.3);
  transition: transform .2s;
}
.video-card:hover .play-circle { transform: scale(1.08); }
.play-circle svg { width: 24px; height: 24px; fill: #0d9488; margin-left: 3px; }
.video-meta { padding: 16px; }
.video-meta h3 { font-size: .95rem; font-weight: 600; color: #1c1917; margin-bottom: 8px; line-height: 1.4; }
.video-stats {
  display: flex;
  gap: 16px;
  font-size: .8rem;
  color: #888;
}
.video-stats span { display: flex; align-items: center; gap: 4px; }
.video-tag {
  display: inline-block;
  background: #f0fdfa;
  color: #0d9488;
  padding: 2px 8px;
  border-radius: 4px;
  font-size: .75rem;
  font-weight: 600;
  margin-bottom: 6px;
}

/* =============================================
   使用场景
   ============================================= */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.scenario-card {
  border-radius: 16px;
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
}
.scenario-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .3s;
}
.scenario-card:hover img { transform: scale(1.05); }
.scenario-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,.7) 0%, transparent 60%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}
.scenario-overlay h3 { color: #fff; font-size: 1rem; font-weight: 700; }

/* =============================================
   使用教程
   ============================================= */
.tutorials-list { display: flex; flex-direction: column; gap: 24px; }
.tutorial-item {
  display: flex;
  gap: 24px;
  align-items: flex-start;
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  border-left: 4px solid #0d9488;
}
.tutorial-num {
  flex: 0 0 48px;
  height: 48px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  font-weight: 800;
}
.tutorial-content h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: 8px; color: #1c1917; }
.tutorial-content p { font-size: .9rem; color: #555; line-height: 1.7; }
.tutorial-img { flex: 0 0 200px; border-radius: 10px; overflow: hidden; }

/* =============================================
   更新日志
   ============================================= */
.changelog-list { display: flex; flex-direction: column; gap: 28px; }
.changelog-item {
  background: #fff;
  border-radius: 12px;
  padding: 28px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}
.changelog-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 16px;
}
.version-badge {
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  color: #fff;
  padding: 4px 14px;
  border-radius: 20px;
  font-size: .85rem;
  font-weight: 700;
}
.changelog-date { font-size: .85rem; color: #888; }
.changelog-item ul { padding-left: 20px; }
.changelog-item ul li {
  list-style: disc;
  font-size: .9rem;
  color: #555;
  margin-bottom: 6px;
  line-height: 1.6;
}

/* =============================================
   FAQ
   ============================================= */
.faq-list { display: flex; flex-direction: column; gap: 12px; max-width: 800px; margin: 0 auto; }
.faq-item {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,.06);
  overflow: hidden;
}
.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px 24px;
  background: none;
  border: none;
  cursor: pointer;
  font-size: .95rem;
  font-weight: 600;
  color: #1c1917;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  transition: background .2s;
}
.faq-question:hover { background: #f8fffe; }
.faq-question.open { color: #0d9488; background: #f0fdfa; }
.faq-icon { font-size: 1.2rem; transition: transform .3s; flex-shrink: 0; }
.faq-question.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height .35s ease, padding .35s;
  padding: 0 24px;
  font-size: .9rem;
  color: #555;
  line-height: 1.7;
}
.faq-answer.open { max-height: 300px; padding: 0 24px 20px; }

/* =============================================
   用户评价
   ============================================= */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}
.review-card {
  background: #fff;
  border-radius: 14px;
  padding: 28px;
  box-shadow: 0 4px 16px rgba(0,0,0,.07);
  border-top: 3px solid #0d9488;
}
.review-stars { color: #fbbf24; font-size: 1.1rem; margin-bottom: 12px; }
.review-text { font-size: .9rem; color: #555; line-height: 1.7; margin-bottom: 16px; font-style: italic; }
.review-author {
  display: flex;
  align-items: center;
  gap: 12px;
}
.review-avatar {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #0d9488, #14b8a6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: .9rem;
}
.review-name { font-weight: 600; font-size: .9rem; color: #333; }

/* =============================================
   联系我们
   ============================================= */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}
.contact-icon {
  width: 48px;
  height: 48px;
  background: #f0fdfa;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.contact-icon svg { width: 22px; height: 22px; fill: #0d9488; }
.contact-item h4 { font-size: .9rem; font-weight: 600; color: #333; margin-bottom: 4px; }
.contact-item p { font-size: .9rem; color: #666; }
.contact-form { background: #fff; border-radius: 16px; padding: 32px; box-shadow: 0 4px 20px rgba(0,0,0,.07); }
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: .9rem; font-weight: 600; color: #333; margin-bottom: 6px; }
.form-group input, .form-group textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid #e5e7eb;
  border-radius: 8px;
  font-size: .9rem;
  color: #333;
  outline: none;
  transition: border-color .2s;
  font-family: inherit;
}
.form-group input:focus, .form-group textarea:focus { border-color: #0d9488; }
.form-group textarea { resize: vertical; min-height: 120px; }

/* =============================================
   下载区块
   ============================================= */
.download-section {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
}
.download-section h2 { font-size: 2rem; font-weight: 800; margin-bottom: 16px; }
.download-section p { font-size: 1rem; opacity: .9; margin-bottom: 40px; }
.download-btns { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.download-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(255,255,255,.15);
  border: 2px solid rgba(255,255,255,.4);
  color: #fff;
  padding: 14px 28px;
  border-radius: 12px;
  font-size: .95rem;
  font-weight: 600;
  transition: background .2s, border-color .2s;
  cursor: pointer;
  text-decoration: none;
}
.download-btn:hover { background: rgba(255,255,255,.25); border-color: #fff; color: #fff; }
.download-btn svg { width: 28px; height: 28px; fill: #fff; }
.download-btn-text small { display: block; font-size: .75rem; opacity: .8; font-weight: 400; }

/* =============================================
   页脚
   ============================================= */
.site-footer {
  background: #1c1917;
  color: #ccc;
  padding: 60px 0 32px;
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 48px;
}
.footer-brand .logo { color: #fff; margin-bottom: 16px; }
.footer-brand p { font-size: .875rem; color: #aaa; line-height: 1.7; max-width: 280px; }
.footer-col h4 { font-size: .95rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { font-size: .875rem; color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: #14b8a6; }
.footer-bottom {
  border-top: 1px solid #333;
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  font-size: .8rem;
  color: #777;
}
.footer-bottom a { color: #777; }
.footer-bottom a:hover { color: #14b8a6; }

/* =============================================
   面包屑
   ============================================= */
.breadcrumb {
  background: #f8fffe;
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
}
.breadcrumb ol {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: .875rem;
  color: #888;
}
.breadcrumb ol li a { color: #0d9488; }
.breadcrumb ol li::after { content: '/'; margin-left: 8px; color: #ccc; }
.breadcrumb ol li:last-child::after { display: none; }
.breadcrumb ol li:last-child { color: #333; font-weight: 600; }

/* =============================================
   内页通用
   ============================================= */
.page-hero {
  background: linear-gradient(135deg, #0d9488 0%, #0f766e 100%);
  color: #fff;
  padding: 60px 0;
  text-align: center;
}
.page-hero h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1rem; opacity: .9; max-width: 600px; margin: 0 auto; }

/* 内容区 */
.page-content { padding: 60px 0; }
.content-card {
  background: #fff;
  border-radius: 14px;
  padding: 36px;
  box-shadow: 0 4px 20px rgba(0,0,0,.07);
  margin-bottom: 28px;
}
.content-card h2 { font-size: 1.4rem; font-weight: 700; color: #1c1917; margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid #f0fdfa; }
.content-card h3 { font-size: 1.1rem; font-weight: 600; color: #0d9488; margin: 20px 0 10px; }
.content-card p { font-size: .9rem; color: #555; line-height: 1.8; margin-bottom: 12px; }
.content-card ul { padding-left: 20px; }
.content-card ul li { list-style: disc; font-size: .9rem; color: #555; margin-bottom: 8px; line-height: 1.7; }

/* =============================================
   响应式
   ============================================= */
@media (max-width: 1024px) {
  .hero-inner { flex-direction: column; text-align: center; }
  .hero-image { flex: none; max-width: 480px; width: 100%; }
  .hero-cta { justify-content: center; }
  .hero-stats { justify-content: center; }
  .footer-inner { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 768px) {
  .main-nav { display: none; position: absolute; top: 64px; left: 0; right: 0; background: #fff; flex-direction: column; padding: 16px; box-shadow: 0 8px 24px rgba(0,0,0,.1); gap: 4px; }
  .main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-search { min-width: 140px; }
  .hero-text h1 { font-size: 1.9rem; }
  .section { padding: 56px 0; }
  .section-title h2 { font-size: 1.6rem; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .tutorial-item { flex-direction: column; }
  .tutorial-img { flex: none; width: 100%; }
  .videos-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 480px) {
  .hero-text h1 { font-size: 1.6rem; }
  .hero-stats { flex-wrap: wrap; gap: 24px; }
  .videos-grid { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .scenarios-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
}

/* =============================================
   工具类
   ============================================= */
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.hidden { display: none; }
