/* ============================================
   蘑菇视频 官方网站全局样式
   ============================================ */
:root {
  --primary: #6c5ce7;
  --primary-dark: #5a4bd1;
  --accent: #ff5e8a;
  --accent-2: #ffb86b;
  --bg-dark: #12102b;
  --bg-darker: #0d0b21;
  --bg-card: #1c1939;
  --text-main: #2b2440;
  --text-light: #6f6a8a;
  --text-white: #ffffff;
  --text-muted: #b8b3d6;
  --border: #ece8f7;
  --radius: 16px;
  --shadow: 0 10px 40px rgba(108, 92, 231, 0.15);
  --shadow-lg: 0 20px 60px rgba(108, 92, 231, 0.25);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background: #ffffff;
  line-height: 1.7;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { text-decoration: none; color: inherit; }
ul { list-style: none; }

.container {
  width: 92%;
  max-width: 1200px;
  margin: 0 auto;
}

/* ---------- 通用区块 ---------- */
.section { padding: 90px 0; }
.section-dark { background: var(--bg-dark); color: var(--text-white); }
.section-gray { background: #f8f7fd; }

.section-head { text-align: center; margin-bottom: 56px; }
.section-tag {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 50px;
  background: linear-gradient(90deg, rgba(108,92,231,.12), rgba(255,94,138,.12));
  color: var(--primary);
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 2px;
  margin-bottom: 14px;
}
.section-title { font-size: 34px; font-weight: 800; margin-bottom: 14px; }
.section-desc { color: var(--text-light); max-width: 640px; margin: 0 auto; font-size: 16px; }
.section-dark .section-desc { color: var(--text-muted); }

/* ---------- 按钮 ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 34px;
  border-radius: 50px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition);
}
.btn-primary {
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 8px 24px rgba(255, 94, 138, 0.35);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(255, 94, 138, 0.45); }
.btn-ghost {
  background: rgba(255,255,255,.1);
  color: #fff;
  border: 1px solid rgba(255,255,255,.35);
  backdrop-filter: blur(6px);
}
.btn-ghost:hover { background: rgba(255,255,255,.22); transform: translateY(-3px); }
.btn-outline {
  background: transparent;
  border: 2px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover { background: var(--primary); color: #fff; }

/* ---------- 导航 ---------- */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  background: rgba(13, 11, 33, 0.82);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(255,255,255,.06);
  transition: var(--transition);
}
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 22px;
  font-weight: 800;
  color: #fff;
}
.brand-logo {
  width: 38px; height: 38px;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
  box-shadow: 0 6px 16px rgba(108,92,231,.5);
}
.brand span em { font-style: normal; color: var(--accent-2); }
.nav-menu { display: flex; gap: 34px; align-items: center; }
.nav-menu a {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 500;
  position: relative;
  padding: 6px 0;
  transition: color .3s;
}
.nav-menu a:hover, .nav-menu a.active { color: #fff; }
.nav-menu a::after {
  content: "";
  position: absolute;
  left: 0; bottom: -2px;
  width: 0; height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  border-radius: 2px;
  transition: width .35s;
}
.nav-menu a:hover::after, .nav-menu a.active::after { width: 100%; }
.nav-cta {
  padding: 10px 24px;
  border-radius: 50px;
  background: linear-gradient(120deg, var(--primary), var(--accent));
  color: #fff !important;
  font-weight: 600;
}
.nav-cta::after { display: none; }
.nav-cta:hover { transform: translateY(-2px); }
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 6px;
}
.nav-toggle span {
  width: 26px; height: 3px;
  background: #fff;
  border-radius: 3px;
  transition: var(--transition);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(8px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-8px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background:
    radial-gradient(circle at 15% 20%, rgba(108,92,231,.5), transparent 45%),
    radial-gradient(circle at 85% 75%, rgba(255,94,138,.4), transparent 45%),
    var(--bg-darker);
  color: #fff;
  overflow: hidden;
  padding: 140px 0 80px;
}
.hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.12) 1px, transparent 1px);
  background-size: 34px 34px;
  opacity: .35;
}
.hero-inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
}
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 18px;
  border-radius: 50px;
  border: 1px solid rgba(255,255,255,.25);
  background: rgba(255,255,255,.08);
  font-size: 14px;
  margin-bottom: 24px;
}
.hero-badge i {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: #4ade80;
  animation: pulse 1.6s infinite;
}
.hero h1 {
  font-size: 50px;
  line-height: 1.25;
  font-weight: 900;
  margin-bottom: 22px;
}
.hero h1 .grad {
  background: linear-gradient(90deg, #a89bff, #ff8fb0, #ffc98f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 17px;
  color: var(--text-muted);
  max-width: 540px;
  margin-bottom: 36px;
}
.hero-actions { display: flex; gap: 18px; flex-wrap: wrap; }
.hero-stats {
  display: flex;
  gap: 44px;
  margin-top: 54px;
  flex-wrap: wrap;
}
.hero-stats .stat b {
  display: block;
  font-size: 30px;
  font-weight: 800;
  background: linear-gradient(90deg, #fff, #ffd3e0);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-stats .stat span { font-size: 14px; color: var(--text-muted); }
.hero-visual { position: relative; }
.hero-visual img {
  border-radius: 28px;
  box-shadow: 0 30px 80px rgba(0,0,0,.55);
  border: 1px solid rgba(255,255,255,.12);
}
.float-card {
  position: absolute;
  background: rgba(28, 25, 57, .85);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,.14);
  border-radius: 16px;
  padding: 14px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  box-shadow: 0 16px 40px rgba(0,0,0,.4);
  animation: float 4s ease-in-out infinite;
}
.float-card .ic {
  width: 40px; height: 40px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 19px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
}
.float-card small { display: block; color: var(--text-muted); font-size: 12px; }
.float-card b { font-size: 15px; }
.float-card.fc1 { top: 8%; left: -30px; animation-delay: 0s; }
.float-card.fc2 { bottom: 12%; right: -24px; animation-delay: 1.4s; }

/* 内页横幅 */
.page-hero {
  padding: 170px 0 90px;
  background:
    radial-gradient(circle at 20% 30%, rgba(108,92,231,.45), transparent 50%),
    radial-gradient(circle at 80% 70%, rgba(255,94,138,.35), transparent 50%),
    var(--bg-darker);
  color: #fff;
  text-align: center;
}
.page-hero h1 { font-size: 42px; font-weight: 900; margin-bottom: 16px; }
.page-hero p { color: var(--text-muted); max-width: 620px; margin: 0 auto; }
.breadcrumb { margin-top: 22px; font-size: 14px; color: var(--text-muted); }
.breadcrumb a { color: var(--accent-2); }

/* ---------- 特性卡片 ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.feature-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 38px 30px;
  transition: var(--transition);
  position: relative;
  overflow: hidden;
}
.feature-card::before {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .4s;
}
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-lg); }
.feature-card:hover::before { transform: scaleX(1); }
.feature-ic {
  width: 60px; height: 60px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  font-size: 27px;
  margin-bottom: 22px;
  background: linear-gradient(135deg, rgba(108,92,231,.14), rgba(255,94,138,.14));
}
.feature-card h3 { font-size: 20px; margin-bottom: 12px; font-weight: 700; }
.feature-card p { color: var(--text-light); font-size: 15px; }

/* ---------- 内容区 ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split img { border-radius: 24px; box-shadow: var(--shadow-lg); }
.split h2 { font-size: 32px; font-weight: 800; margin-bottom: 18px; }
.split .text p { color: var(--text-light); margin-bottom: 16px; }
.check-list { margin-top: 22px; }
.check-list li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 14px;
  color: var(--text-main);
  font-size: 15px;
}
.check-list li::before {
  content: "✓";
  flex: 0 0 24px;
  height: 24px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  display: flex; align-items: center; justify-content: center;
  margin-top: 2px;
}

/* ---------- 频道/产品卡 ---------- */
.channel-card {
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid rgba(255,255,255,.08);
  transition: var(--transition);
}
.channel-card:hover { transform: translateY(-8px); box-shadow: 0 24px 60px rgba(0,0,0,.45); }
.channel-card .thumb { position: relative; overflow: hidden; }
.channel-card .thumb img { transition: transform .6s; width: 100%; height: 210px; object-fit: cover; }
.channel-card:hover .thumb img { transform: scale(1.08); }
.channel-card .thumb .dur {
  position: absolute;
  right: 12px; bottom: 12px;
  background: rgba(0,0,0,.7);
  color: #fff;
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 8px;
}
.channel-card .info { padding: 20px 22px 26px; color: #fff; }
.channel-card .info h3 { font-size: 17px; margin-bottom: 8px; }
.channel-card .info p { font-size: 13px; color: var(--text-muted); }
.channel-card .meta {
  display: flex; gap: 16px;
  margin-top: 14px;
  font-size: 12px;
  color: var(--text-muted);
}

/* ---------- 步骤 ---------- */
.step-card { text-align: center; padding: 30px 20px; }
.step-num {
  width: 64px; height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  font-size: 24px;
  font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 12px 30px rgba(108,92,231,.4);
}
.step-card h3 { font-size: 18px; margin-bottom: 10px; }
.step-card p { font-size: 14px; color: var(--text-light); }

/* ---------- 新闻 ---------- */
.news-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: var(--transition);
  display: flex;
  flex-direction: column;
}
.news-card:hover { transform: translateY(-8px); box-shadow: var(--shadow-lg); }
.news-card img { height: 200px; object-fit: cover; width: 100%; }
.news-body { padding: 26px; flex: 1; display: flex; flex-direction: column; }
.news-date { font-size: 13px; color: var(--accent); font-weight: 600; margin-bottom: 10px; }
.news-body h3 { font-size: 19px; margin-bottom: 12px; font-weight: 700; }
.news-body p { font-size: 14px; color: var(--text-light); flex: 1; }
.news-link {
  margin-top: 18px;
  color: var(--primary);
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.news-link:hover { gap: 12px; }
.news-link { transition: gap .3s; }

.news-detail-article {
  max-width: 820px;
  margin: 0 auto;
}
.news-detail-article img { border-radius: 20px; margin: 30px 0; }
.news-detail-article h2 { font-size: 26px; margin: 36px 0 16px; }
.news-detail-article h3 { font-size: 20px; margin: 28px 0 12px; }
.news-detail-article p { color: var(--text-light); margin-bottom: 16px; }
.news-meta-bar {
  display: flex; gap: 22px;
  color: var(--text-light);
  font-size: 14px;
  padding-bottom: 22px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

/* ---------- FAQ ---------- */
.faq-item {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: var(--transition);
}
.faq-item.active { box-shadow: var(--shadow); border-color: rgba(108,92,231,.35); }
.faq-q {
  width: 100%;
  background: none;
  border: none;
  padding: 22px 26px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
  font-family: inherit;
}
.faq-q .arrow { transition: transform .35s; color: var(--primary); font-size: 20px; }
.faq-item.active .faq-q .arrow { transform: rotate(180deg); }
.faq-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height .4s ease;
}
.faq-a p { padding: 0 26px 24px; color: var(--text-light); font-size: 15px; }

/* ---------- 联系表单 ---------- */
.contact-wrap { display: grid; grid-template-columns: 1fr 1.2fr; gap: 50px; }
.contact-info-card {
  background: linear-gradient(150deg, var(--primary), var(--accent));
  border-radius: 24px;
  padding: 44px 38px;
  color: #fff;
}
.contact-info-card h3 { font-size: 24px; margin-bottom: 26px; }
.contact-line { display: flex; gap: 16px; margin-bottom: 24px; align-items: flex-start; }
.contact-line .ic {
  flex: 0 0 46px; height: 46px;
  border-radius: 12px;
  background: rgba(255,255,255,.18);
  display: flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.contact-line b { display: block; margin-bottom: 4px; }
.contact-line span { font-size: 14px; opacity: .85; }
.form-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 44px 38px;
  box-shadow: var(--shadow);
}
.form-group { margin-bottom: 20px; }
.form-group label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 14px 18px;
  border: 1px solid var(--border);
  border-radius: 12px;
  font-size: 15px;
  font-family: inherit;
  transition: var(--transition);
  background: #faf9fe;
}
.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(108,92,231,.12);
}

/* ---------- CTA ---------- */
.cta-section {
  position: relative;
  background: linear-gradient(120deg, #221d52, #4a2a6e 55%, #7a2f5a);
  color: #fff;
  overflow: hidden;
}
.cta-section::before {
  content: "";
  position: absolute;
  width: 500px; height: 500px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,94,138,.35), transparent 70%);
  top: -200px; right: -120px;
}
.cta-inner { position: relative; text-align: center; max-width: 700px; margin: 0 auto; }
.cta-inner h2 { font-size: 38px; font-weight: 900; margin-bottom: 18px; }
.cta-inner p { color: rgba(255,255,255,.75); margin-bottom: 36px; font-size: 17px; }

/* ---------- 页脚 ---------- */
.site-footer {
  background: var(--bg-darker);
  color: var(--text-muted);
  padding: 70px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 44px;
  padding-bottom: 50px;
}
.footer-brand .brand { margin-bottom: 18px; }
.footer-brand p { font-size: 14px; max-width: 300px; }
.footer-col h4 { color: #fff; font-size: 16px; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 12px; }
.footer-col a { font-size: 14px; transition: color .3s; }
.footer-col a:hover { color: var(--accent-2); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.08);
  padding: 24px 0;
  text-align: center;
  font-size: 13px;
}

/* ---------- 回到顶部 ---------- */
.back-top {
  position: fixed;
  right: 26px; bottom: 26px;
  width: 50px; height: 50px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border: none;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: var(--transition);
  z-index: 900;
  box-shadow: 0 10px 26px rgba(255,94,138,.4);
}
.back-top.show { opacity: 1; pointer-events: auto; }
.back-top:hover { transform: translateY(-4px); }

/* ---------- 动画 ---------- */
@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-14px); }
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74,222,128,.6); }
  50% { box-shadow: 0 0 0 7px rgba(74,222,128,0); }
}
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity .7s ease, transform .7s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; text-align: center; }
  .hero p.lead { margin: 0 auto 36px; }
  .hero-actions, .hero-stats { justify-content: center; }
  .hero-visual { max-width: 520px; margin: 0 auto; }
  .float-card.fc1 { left: 0; }
  .float-card.fc2 { right: 0; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-wrap { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .section { padding: 64px 0; }
  .hero h1 { font-size: 32px; }
  .page-hero h1 { font-size: 30px; }
  .section-title { font-size: 26px; }
  .cta-inner h2 { font-size: 28px; }
  .grid-3, .grid-4, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .nav-menu {
    position: fixed;
    top: 72px; left: 0; right: 0;
    flex-direction: column;
    background: rgba(13,11,33,.97);
    padding: 30px 0;
    gap: 22px;
    transform: translateY(-140%);
    transition: transform .4s ease;
    border-bottom: 1px solid rgba(255,255,255,.1);
  }
  .nav-menu.open { transform: translateY(0); }
  .nav-toggle { display: flex; }
  .hero-stats { gap: 26px; }
  .form-card, .contact-info-card { padding: 30px 24px; }
}
