/* 蘑菇短视频 - 主样式文件 */
:root {
  --primary: #FF6B00;
  --primary-dark: #E05A00;
  --secondary: #2ECC71;
  --secondary-dark: #27AE60;
  --dark: #1a1a2e;
  --dark-2: #16213e;
  --text: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --bg-white: #ffffff;
  --border: #e0e0e0;
  --shadow: 0 4px 20px rgba(0,0,0,0.08);
  --radius: 12px;
  --radius-sm: 8px;
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  color: var(--text);
  background: var(--bg-white);
  line-height: 1.7;
  font-size: 16px;
}

a { color: var(--primary); text-decoration: none; transition: all 0.3s; }
a:hover { color: var(--primary-dark); }

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

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

/* ===== 顶部导航 ===== */
.site-header {
  background: var(--bg-white);
  box-shadow: 0 2px 10px rgba(0,0,0,0.08);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
  gap: 20px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 20px;
  font-weight: 700;
  color: var(--dark);
  white-space: nowrap;
}

.site-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
}

.site-logo span { color: var(--primary); }

.main-nav { display: flex; align-items: center; gap: 0; }

.main-nav a {
  color: var(--text);
  font-size: 15px;
  padding: 8px 14px;
  border-radius: var(--radius-sm);
  transition: all 0.3s;
  white-space: nowrap;
}

.main-nav a:hover, .main-nav a.active {
  color: var(--primary);
  background: rgba(255,107,0,0.08);
}

.header-btn {
  background: var(--primary);
  color: #fff !important;
  padding: 10px 22px !important;
  border-radius: 25px !important;
  font-weight: 600;
  white-space: nowrap;
}

.header-btn:hover { background: var(--primary-dark) !important; color: #fff !important; }

/* ===== 搜索框 ===== */
.search-bar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  padding: 12px 0;
}

.search-inner {
  display: flex;
  align-items: center;
  max-width: 600px;
  margin: 0 auto;
  background: #fff;
  border: 2px solid var(--border);
  border-radius: 30px;
  overflow: hidden;
  transition: border-color 0.3s;
}

.search-inner:focus-within { border-color: var(--primary); }

.search-inner input {
  flex: 1;
  border: none;
  outline: none;
  padding: 10px 20px;
  font-size: 15px;
  background: transparent;
  color: var(--text);
}

.search-inner button {
  background: var(--primary);
  border: none;
  color: #fff;
  padding: 10px 24px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  transition: background 0.3s;
}

.search-inner button:hover { background: var(--primary-dark); }

/* ===== 面包屑 ===== */
.breadcrumb {
  padding: 12px 0;
  font-size: 14px;
  color: var(--text-light);
}

.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb span { margin: 0 6px; }

/* ===== Banner ===== */
.hero-banner {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

.hero-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255,107,0,0.15) 0%, transparent 70%);
  border-radius: 50%;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.hero-text h1 {
  font-size: 38px;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 16px;
}

.hero-text h1 .highlight { color: var(--primary); }

.hero-text .subtitle {
  font-size: 18px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.6;
}

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

.hero-tag {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 14px;
}

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

.btn-primary {
  background: var(--primary);
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(255,107,0,0.4);
}

.btn-secondary {
  background: transparent;
  color: #fff;
  padding: 14px 32px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 600;
  border: 2px solid rgba(255,255,255,0.5);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.3s;
}

.btn-secondary:hover {
  background: rgba(255,255,255,0.1);
  color: #fff;
  border-color: #fff;
}

.hero-image { position: relative; }

.hero-image img {
  border-radius: var(--radius);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
  width: 100%;
}

.hero-stats {
  display: flex;
  gap: 30px;
  margin-top: 32px;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.15);
}

.stat-item { text-align: center; }
.stat-item .num { font-size: 28px; font-weight: 800; color: var(--primary); }
.stat-item .label { font-size: 13px; color: rgba(255,255,255,0.7); margin-top: 4px; }

/* ===== 通用 Section ===== */
.section { padding: 70px 0; }
.section-alt { background: var(--bg-light); }

.section-header { text-align: center; margin-bottom: 50px; }

.section-header h2 {
  font-size: 32px;
  font-weight: 800;
  color: var(--dark);
  margin-bottom: 12px;
}

.section-header p {
  font-size: 17px;
  color: var(--text-light);
  max-width: 600px;
  margin: 0 auto;
}

.section-header .tag {
  display: inline-block;
  background: rgba(255,107,0,0.1);
  color: var(--primary);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  margin-bottom: 12px;
}

/* ===== 核心功能 ===== */
.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.feature-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.feature-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.12);
}

.feature-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

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

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

.feature-card-body p {
  font-size: 14px;
  color: var(--text-light);
  line-height: 1.6;
}

/* ===== 适用场景 ===== */
.scenarios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.scenario-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 30px 24px;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--primary);
  transition: all 0.3s;
}

.scenario-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.scenario-icon { font-size: 36px; margin-bottom: 14px; }

.scenario-card h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 10px;
}

.scenario-card p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== 视频教程 ===== */
.tutorials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.video-card {
  background: #fff;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: all 0.3s;
  cursor: pointer;
}

.video-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.video-thumb {
  position: relative;
  overflow: hidden;
  background: #000;
}

.video-thumb img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  transition: transform 0.4s, opacity 0.3s;
  opacity: 0.85;
}

.video-card:hover .video-thumb img { transform: scale(1.05); opacity: 0.7; }

.play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  width: 56px;
  height: 56px;
  background: rgba(255,107,0,0.9);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s;
}

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

.play-btn svg { width: 22px; height: 22px; fill: #fff; margin-left: 4px; }

.video-duration {
  position: absolute;
  bottom: 10px;
  right: 10px;
  background: rgba(0,0,0,0.7);
  color: #fff;
  font-size: 12px;
  padding: 3px 8px;
  border-radius: 4px;
}

.video-card-body { padding: 18px; }

.video-card-body h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 8px;
}

.video-card-body p { font-size: 13px; color: var(--text-light); line-height: 1.5; }

/* ===== 更新日志 ===== */
.changelog-list { max-width: 800px; margin: 0 auto; }

.changelog-item {
  display: flex;
  gap: 24px;
  padding: 24px 0;
  border-bottom: 1px solid var(--border);
}

.changelog-item:last-child { border-bottom: none; }

.changelog-version {
  min-width: 90px;
  text-align: center;
}

.version-badge {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 6px;
}

.changelog-date { font-size: 12px; color: var(--text-light); }

.changelog-content h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 6px;
}

.changelog-content p { font-size: 14px; color: var(--text-light); line-height: 1.6; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }

.faq-item {
  background: #fff;
  border-radius: var(--radius-sm);
  margin-bottom: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.faq-question {
  padding: 18px 24px;
  font-size: 16px;
  font-weight: 600;
  color: var(--dark);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.3s;
}

.faq-question:hover { background: rgba(255,107,0,0.04); }

.faq-question.active { color: var(--primary); }

.faq-arrow {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.faq-question.active .faq-arrow { transform: rotate(180deg); background: var(--primary); }

.faq-arrow svg { width: 12px; height: 12px; fill: var(--text-light); }
.faq-question.active .faq-arrow svg { fill: #fff; }

.faq-answer {
  display: none;
  padding: 0 24px 18px;
  font-size: 15px;
  color: var(--text-light);
  line-height: 1.7;
  border-top: 1px solid var(--border);
}

.faq-answer.show { display: block; }

/* ===== 用户评价 ===== */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.review-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.review-card:hover { transform: translateY(-4px); box-shadow: 0 10px 30px rgba(0,0,0,0.1); }

.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }

.review-avatar {
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  flex-shrink: 0;
}

.review-name { font-size: 15px; font-weight: 700; color: var(--dark); }

.review-stars { color: #FFB800; font-size: 13px; margin-top: 2px; }

.review-content { font-size: 14px; color: var(--text-light); line-height: 1.7; }

/* ===== 联系我们 ===== */
.contact-section {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 70px 0;
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.contact-text h2 { font-size: 32px; font-weight: 800; margin-bottom: 16px; }
.contact-text p { font-size: 16px; color: rgba(255,255,255,0.8); margin-bottom: 30px; line-height: 1.7; }

.contact-items { display: flex; flex-direction: column; gap: 16px; }

.contact-item {
  display: flex;
  align-items: center;
  gap: 14px;
  background: rgba(255,255,255,0.08);
  padding: 14px 20px;
  border-radius: var(--radius-sm);
}

.contact-icon {
  width: 40px;
  height: 40px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.contact-icon svg { width: 20px; height: 20px; fill: #fff; }

.contact-info .label { font-size: 13px; color: rgba(255,255,255,0.6); }
.contact-info .value { font-size: 15px; font-weight: 600; color: #fff; }

.contact-form-wrap {
  background: rgba(255,255,255,0.05);
  border-radius: var(--radius);
  padding: 36px;
}

.contact-form-wrap h3 { font-size: 20px; font-weight: 700; margin-bottom: 24px; }

.form-group { margin-bottom: 16px; }

.form-group input,
.form-group textarea {
  width: 100%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 15px;
  outline: none;
  transition: border-color 0.3s;
  font-family: inherit;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.4); }

.form-group input:focus,
.form-group textarea:focus { border-color: var(--primary); }

.form-group textarea { height: 100px; resize: none; }

.btn-submit {
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  padding: 14px;
  border-radius: 30px;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.3s;
}

.btn-submit:hover { background: var(--primary-dark); transform: translateY(-2px); }

/* ===== 页脚 ===== */
.site-footer {
  background: #111;
  color: rgba(255,255,255,0.7);
  padding: 50px 0 24px;
}

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

.footer-brand .site-logo { margin-bottom: 16px; color: #fff; }

.footer-brand p { font-size: 14px; line-height: 1.7; color: rgba(255,255,255,0.6); }

.footer-col h4 {
  font-size: 15px;
  font-weight: 700;
  color: #fff;
  margin-bottom: 16px;
}

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

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

.footer-col ul li a {
  color: rgba(255,255,255,0.6);
  font-size: 14px;
  transition: color 0.3s;
}

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

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-bottom p { font-size: 13px; color: rgba(255,255,255,0.5); }

.footer-links { display: flex; gap: 20px; }
.footer-links a { font-size: 13px; color: rgba(255,255,255,0.5); }
.footer-links a:hover { color: var(--primary); }

/* ===== 内页 ===== */
.page-hero {
  background: linear-gradient(135deg, var(--dark) 0%, var(--dark-2) 100%);
  color: #fff;
  padding: 50px 0;
  text-align: center;
}

.page-hero h1 { font-size: 32px; font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 16px; color: rgba(255,255,255,0.8); }

/* ===== 下载区域 ===== */
.download-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.download-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 32px 24px;
  text-align: center;
  box-shadow: var(--shadow);
  transition: all 0.3s;
}

.download-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(0,0,0,0.12); }

.download-icon { font-size: 48px; margin-bottom: 16px; }

.download-card h3 { font-size: 20px; font-weight: 700; color: var(--dark); margin-bottom: 10px; }
.download-card p { font-size: 14px; color: var(--text-light); margin-bottom: 20px; }

.btn-download {
  display: inline-block;
  background: var(--primary);
  color: #fff;
  padding: 12px 28px;
  border-radius: 25px;
  font-size: 15px;
  font-weight: 600;
  transition: all 0.3s;
}

.btn-download:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }

/* ===== 文章列表 ===== */
.article-list { display: flex; flex-direction: column; gap: 20px; }

.article-item {
  background: #fff;
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 20px;
  transition: all 0.3s;
}

.article-item:hover { transform: translateY(-3px); box-shadow: 0 8px 25px rgba(0,0,0,0.1); }

.article-item img {
  width: 160px;
  height: 100px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex-shrink: 0;
}

.article-body { flex: 1; }

.article-body h3 { font-size: 17px; font-weight: 700; color: var(--dark); margin-bottom: 8px; }
.article-body p { font-size: 14px; color: var(--text-light); line-height: 1.6; margin-bottom: 10px; }

.article-meta { font-size: 13px; color: var(--text-light); }
.article-meta span { margin-right: 16px; }

/* ===== 手机端适配 ===== */
@media (max-width: 1024px) {
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-image { display: none; }
  .hero-text h1 { font-size: 28px; }
  .scenarios-grid { grid-template-columns: 1fr; }
  .tutorials-grid { grid-template-columns: 1fr; }
  .contact-inner { grid-template-columns: 1fr; }
  .download-cards { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }
  .features-grid { grid-template-columns: 1fr; }
  .reviews-grid { grid-template-columns: 1fr; }
  .main-nav { display: none; }
  .hero-stats { flex-wrap: wrap; gap: 16px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .article-item { flex-direction: column; }
  .article-item img { width: 100%; height: 180px; }
}

@media (max-width: 480px) {
  .hero-btns { flex-direction: column; }
  .btn-primary, .btn-secondary { text-align: center; justify-content: center; }
  .section { padding: 50px 0; }
}

/* ===== 汉堡菜单 ===== */
.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
}

.menu-toggle span {
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

@media (max-width: 768px) {
  .menu-toggle { display: flex; }
}

/* ===== 移动端菜单 ===== */
.mobile-nav {
  display: none;
  background: #fff;
  border-top: 1px solid var(--border);
  padding: 16px 20px;
}

.mobile-nav.open { display: block; }

.mobile-nav a {
  display: block;
  color: var(--text);
  font-size: 15px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.mobile-nav a:last-child { border-bottom: none; }
.mobile-nav a:hover { color: var(--primary); }

/* ===== 通知提示 ===== */
.toast {
  position: fixed;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--dark);
  color: #fff;
  padding: 14px 28px;
  border-radius: 30px;
  font-size: 15px;
  z-index: 9999;
  transition: transform 0.4s;
  pointer-events: none;
}

.toast.show { transform: translateX(-50%) translateY(0); }
