/* ===== 蘑菇视频 - 主样式文件 ===== */
:root {
    --primary: #e8610a;
    --primary-dark: #c4500a;
    --secondary: #2e9e4f;
    --secondary-dark: #1e7a3a;
    --bg: #f8f9fa;
    --white: #ffffff;
    --text: #333333;
    --text-light: #666666;
    --text-muted: #999999;
    --border: #e5e7eb;
    --shadow: 0 2px 12px rgba(0,0,0,0.08);
    --shadow-hover: 0 8px 28px rgba(0,0,0,0.14);
    --radius: 10px;
    --radius-lg: 16px;
    --transition: all 0.3s ease;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: 'PingFang SC', 'Microsoft YaHei', '微软雅黑', sans-serif; color: var(--text); background: var(--bg); line-height: 1.7; }
a { color: var(--primary); text-decoration: none; transition: var(--transition); }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* ===== 容器 ===== */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.section { padding: 64px 0; }
.section-title { font-size: 2rem; font-weight: 700; color: var(--text); text-align: center; margin-bottom: 12px; }
.section-subtitle { font-size: 1rem; color: var(--text-light); text-align: center; margin-bottom: 48px; }
.section-title span { color: var(--primary); }

/* ===== 头部 ===== */
.site-header { background: var(--white); box-shadow: var(--shadow); position: sticky; top: 0; z-index: 1000; }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 70px; }
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { width: 40px; height: 40px; border-radius: 8px; }
.logo-text { font-size: 1.4rem; font-weight: 700; color: var(--primary); }
.main-nav ul { display: flex; gap: 8px; }
.main-nav ul li a { padding: 8px 16px; border-radius: 6px; font-size: 0.95rem; color: var(--text); font-weight: 500; }
.main-nav ul li a:hover, .main-nav ul li a.active { background: var(--primary); color: var(--white); }
.nav-toggle { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: var(--transition); }
.nav-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav-toggle.active span:nth-child(2) { opacity: 0; }
.nav-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== 搜索框 ===== */
.search-bar-wrap { background: linear-gradient(90deg, #fff5ee, #f0faf4); border-top: 1px solid var(--border); padding: 12px 0; }
.search-bar { display: flex; gap: 0; max-width: 600px; margin: 0 auto; border-radius: 24px; overflow: hidden; box-shadow: 0 2px 8px rgba(232,97,10,0.12); }
.search-bar input { flex: 1; border: none; padding: 12px 20px; font-size: 0.95rem; outline: none; background: var(--white); color: var(--text); }
.search-bar button { background: var(--primary); color: var(--white); border: none; padding: 12px 28px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: var(--transition); }
.search-bar button:hover { background: var(--primary-dark); }
.search-tip { text-align: center; font-size: 0.88rem; color: var(--text-light); margin-top: 8px; }

/* ===== 面包屑 ===== */
.breadcrumb-wrap { background: #f5f5f5; border-bottom: 1px solid var(--border); padding: 10px 0; }
.breadcrumb { font-size: 0.88rem; color: var(--text-muted); display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--primary); }
.breadcrumb .sep { color: var(--text-muted); }

/* ===== Banner ===== */
.hero-banner { background: linear-gradient(135deg, #fff5ee 0%, #f0faf4 100%); padding: 80px 0 60px; overflow: hidden; }
.hero-inner { display: flex; align-items: center; gap: 60px; }
.hero-content { flex: 1; }
.hero-tag { display: inline-block; background: rgba(232,97,10,0.1); color: var(--primary); border-radius: 20px; padding: 4px 14px; font-size: 0.85rem; font-weight: 600; margin-bottom: 16px; }
.hero-title { font-size: 2.6rem; font-weight: 800; line-height: 1.3; color: var(--text); margin-bottom: 16px; }
.hero-title span { color: var(--primary); }
.hero-desc { font-size: 1.05rem; color: var(--text-light); margin-bottom: 32px; line-height: 1.8; }
.hero-btns { display: flex; gap: 16px; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 14px 32px; border-radius: 30px; font-size: 1rem; font-weight: 600; cursor: pointer; transition: var(--transition); border: 2px solid transparent; }
.btn-primary { background: var(--primary); color: var(--white); }
.btn-primary:hover { background: var(--primary-dark); color: var(--white); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(232,97,10,0.3); }
.btn-secondary { background: var(--white); color: var(--primary); border-color: var(--primary); }
.btn-secondary:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.hero-image { flex: 1; max-width: 520px; }
.hero-image img { border-radius: var(--radius-lg); box-shadow: var(--shadow-hover); }
.hero-stats { display: flex; gap: 32px; margin-top: 32px; }
.stat-item { text-align: center; }
.stat-num { font-size: 1.8rem; font-weight: 800; color: var(--primary); }
.stat-label { font-size: 0.82rem; color: var(--text-light); }

/* ===== 功能模块 ===== */
.features-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 28px; }
.feature-card { background: var(--white); border-radius: var(--radius); padding: 32px 24px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.feature-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); }
.feature-icon { width: 64px; height: 64px; margin: 0 auto 20px; background: linear-gradient(135deg, #fff5ee, #ffe8d6); border-radius: 50%; display: flex; align-items: center; justify-content: center; }
.feature-icon svg { width: 32px; height: 32px; fill: var(--primary); }
.feature-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text); margin-bottom: 10px; }
.feature-card p { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }
.feature-card img { width: 100%; border-radius: 8px; margin-bottom: 16px; height: 160px; object-fit: cover; }

/* ===== 视频卡片 ===== */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-card { background: var(--white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: var(--transition); cursor: pointer; }
.video-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.video-thumb { position: relative; overflow: hidden; aspect-ratio: 16/9; }
.video-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.video-card:hover .video-thumb img { transform: scale(1.05); }
.video-overlay { position: absolute; inset: 0; background: rgba(0,0,0,0.35); display: flex; align-items: center; justify-content: center; opacity: 0; transition: var(--transition); }
.video-play-btn { width: 56px; height: 56px; background: rgba(255,255,255,0.95); border-radius: 50%; display: flex; align-items: center; justify-content: center; transform: scale(0.8); transition: var(--transition); }
.video-card:hover .video-play-btn { transform: scale(1); }
.video-play-btn svg { width: 24px; height: 24px; fill: var(--primary); margin-left: 4px; }
.video-duration { position: absolute; bottom: 8px; right: 10px; background: rgba(0,0,0,0.7); color: #fff; font-size: 0.78rem; padding: 2px 8px; border-radius: 4px; }
.video-info { padding: 16px; }
.video-info h3 { font-size: 0.95rem; font-weight: 600; color: var(--text); margin-bottom: 8px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.video-meta { display: flex; gap: 16px; font-size: 0.82rem; color: var(--text-muted); }
.video-meta span { display: flex; align-items: center; gap: 4px; }

/* ===== 适用场景 ===== */
.scenarios { background: linear-gradient(135deg, #fff5ee, #f0faf4); }
.scenario-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; }
.scenario-card { background: var(--white); border-radius: var(--radius); padding: 28px 20px; text-align: center; box-shadow: var(--shadow); transition: var(--transition); }
.scenario-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.scenario-emoji { font-size: 2.5rem; margin-bottom: 14px; }
.scenario-card h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.scenario-card p { font-size: 0.88rem; color: var(--text-light); }

/* ===== 教程模块 ===== */
.tutorial-list { display: flex; flex-direction: column; gap: 20px; }
.tutorial-item { background: var(--white); border-radius: var(--radius); padding: 24px; display: flex; gap: 20px; align-items: flex-start; box-shadow: var(--shadow); transition: var(--transition); }
.tutorial-item:hover { box-shadow: var(--shadow-hover); transform: translateX(4px); }
.tutorial-num { width: 44px; height: 44px; background: var(--primary); color: var(--white); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.tutorial-content h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 6px; }
.tutorial-content p { font-size: 0.88rem; color: var(--text-light); line-height: 1.7; }
.tutorial-meta { display: flex; gap: 16px; margin-top: 10px; font-size: 0.82rem; color: var(--text-muted); }

/* ===== 更新日志 ===== */
.changelog { background: var(--bg); }
.changelog-list { max-width: 800px; margin: 0 auto; }
.changelog-item { background: var(--white); border-radius: var(--radius); padding: 24px; margin-bottom: 20px; box-shadow: var(--shadow); border-left: 4px solid var(--primary); }
.changelog-header { display: flex; align-items: center; gap: 16px; margin-bottom: 14px; }
.changelog-version { background: var(--primary); color: var(--white); padding: 4px 14px; border-radius: 20px; font-size: 0.9rem; font-weight: 700; }
.changelog-date { font-size: 0.88rem; color: var(--text-muted); }
.changelog-changes { padding-left: 0; }
.changelog-changes li { font-size: 0.9rem; color: var(--text-light); padding: 4px 0; padding-left: 20px; position: relative; }
.changelog-changes li::before { content: '✓'; position: absolute; left: 0; color: var(--secondary); font-weight: 700; }

/* ===== FAQ ===== */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item { background: var(--white); border-radius: var(--radius); margin-bottom: 12px; box-shadow: var(--shadow); overflow: hidden; }
.faq-question { width: 100%; text-align: left; background: none; border: none; padding: 20px 24px; font-size: 1rem; font-weight: 600; color: var(--text); cursor: pointer; display: flex; justify-content: space-between; align-items: center; transition: var(--transition); }
.faq-question:hover { color: var(--primary); }
.faq-item.open .faq-question { color: var(--primary); }
.faq-icon { width: 22px; height: 22px; background: var(--primary); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: var(--transition); }
.faq-icon::after { content: '+'; color: var(--white); font-size: 1rem; font-weight: 700; line-height: 1; }
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.4s ease; }
.faq-answer-inner { padding: 0 24px 20px; font-size: 0.92rem; color: var(--text-light); line-height: 1.8; }

/* ===== 用户评价 ===== */
.reviews { background: linear-gradient(135deg, #fff5ee, #f0faf4); }
.reviews-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.review-card { background: var(--white); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); transition: var(--transition); }
.review-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-hover); }
.review-header { display: flex; align-items: center; gap: 14px; 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: var(--white); font-size: 1.1rem; font-weight: 700; flex-shrink: 0; }
.review-name { font-size: 0.95rem; font-weight: 700; color: var(--text); }
.review-stars { color: #f5a623; font-size: 0.85rem; }
.review-content { font-size: 0.9rem; color: var(--text-light); line-height: 1.7; }

/* ===== 联系我们 ===== */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; }
.contact-item { background: var(--white); border-radius: var(--radius); padding: 28px 24px; text-align: center; box-shadow: var(--shadow); }
.contact-icon { font-size: 2.2rem; margin-bottom: 12px; }
.contact-item h3 { font-size: 1rem; font-weight: 700; color: var(--text); margin-bottom: 8px; }
.contact-item p { font-size: 0.9rem; color: var(--text-light); }

/* ===== 页脚 ===== */
.site-footer { background: #1a1a2e; color: #ccc; padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.5fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,0.1); }
.footer-brand a { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; border-radius: 6px; }
.footer-brand span { font-size: 1.2rem; font-weight: 700; color: var(--primary); }
.footer-brand p { font-size: 0.85rem; color: #aaa; line-height: 1.7; }
.footer-links h4, .footer-contact h4 { font-size: 1rem; font-weight: 700; color: var(--white); margin-bottom: 16px; }
.footer-links ul li { margin-bottom: 8px; }
.footer-links ul li a { font-size: 0.88rem; color: #aaa; transition: var(--transition); }
.footer-links ul li a:hover { color: var(--primary); }
.footer-contact p { font-size: 0.88rem; color: #aaa; margin-bottom: 6px; }
.footer-bottom { text-align: center; padding: 20px 0; font-size: 0.82rem; color: #888; }

/* ===== 内页通用 ===== */
.page-hero { background: linear-gradient(135deg, #fff5ee, #f0faf4); padding: 60px 0 40px; text-align: center; }
.page-hero h1 { font-size: 2.2rem; font-weight: 800; color: var(--text); margin-bottom: 12px; }
.page-hero h1 span { color: var(--primary); }
.page-hero p { font-size: 1rem; color: var(--text-light); max-width: 600px; margin: 0 auto; }
.content-section { background: var(--white); border-radius: var(--radius); padding: 40px; box-shadow: var(--shadow); margin-bottom: 32px; }
.content-section h2 { font-size: 1.5rem; font-weight: 700; color: var(--text); margin-bottom: 16px; padding-bottom: 12px; border-bottom: 2px solid var(--border); }
.content-section h2 span { color: var(--primary); }
.content-section p { font-size: 0.95rem; color: var(--text-light); line-height: 1.8; margin-bottom: 12px; }

/* ===== 下载按钮 ===== */
.download-btns { display: flex; gap: 16px; flex-wrap: wrap; justify-content: center; margin-top: 24px; }
.download-btn { display: flex; align-items: center; gap: 12px; background: var(--text); color: var(--white); padding: 14px 28px; border-radius: 12px; transition: var(--transition); }
.download-btn:hover { background: var(--primary); color: var(--white); transform: translateY(-2px); }
.download-btn .dl-icon { font-size: 1.8rem; }
.download-btn .dl-text { text-align: left; }
.download-btn .dl-text small { font-size: 0.75rem; opacity: 0.8; display: block; }
.download-btn .dl-text strong { font-size: 1rem; }

/* ===== 动画 ===== */
.anim-on-scroll { opacity: 0; transform: translateY(30px); transition: opacity 0.6s ease, transform 0.6s ease; }
.anim-on-scroll.visible { opacity: 1; transform: translateY(0); }

/* ===== 回到顶部 ===== */
#backTop { position: fixed; bottom: 32px; right: 32px; width: 46px; height: 46px; background: var(--primary); color: var(--white); border-radius: 50%; display: none; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 16px rgba(232,97,10,0.35); transition: var(--transition); z-index: 999; font-size: 1.2rem; border: none; }
#backTop:hover { background: var(--primary-dark); transform: translateY(-3px); }

/* ===== 响应式 ===== */
@media (max-width: 1024px) {
    .footer-grid { grid-template-columns: 1fr 1fr; }
    .hero-inner { gap: 40px; }
    .hero-title { font-size: 2.2rem; }
}
@media (max-width: 768px) {
    .hero-inner { flex-direction: column; }
    .hero-image { max-width: 100%; }
    .hero-title { font-size: 1.8rem; }
    .section { padding: 48px 0; }
    .section-title { font-size: 1.6rem; }
    .main-nav { display: none; position: absolute; top: 70px; left: 0; right: 0; background: var(--white); box-shadow: var(--shadow); padding: 16px 20px; }
    .main-nav.open { display: block; }
    .main-nav ul { flex-direction: column; gap: 4px; }
    .main-nav ul li a { display: block; padding: 10px 16px; }
    .nav-toggle { display: flex; }
    .footer-grid { grid-template-columns: 1fr; gap: 24px; }
    .hero-stats { gap: 20px; }
    .stat-num { font-size: 1.4rem; }
    .content-section { padding: 24px; }
    .page-hero h1 { font-size: 1.6rem; }
}
@media (max-width: 480px) {
    .hero-btns { flex-direction: column; }
    .btn { justify-content: center; }
    .video-grid { grid-template-columns: 1fr; }
    .features-grid { grid-template-columns: 1fr; }
}
