/* ============================================
   抖音风 - 抖音风视频社区 主样式文件
   aqyeun.cn
   ============================================ */

/* 基础重置 */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body { font-family: "Microsoft YaHei", "微软雅黑", "PingFang SC", "Helvetica Neue", Arial, sans-serif; color: #222; background: #fff; line-height: 1.7; overflow-x: hidden; }
a { color: #000000; text-decoration: none; transition: color .25s; }
a:hover { color: #1A1A1A; }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }

/* 颜色变量 */
:root {
  --green-dark:   #1A1A1A;
  --green-main:   #000000;
  --green-light:  #000000;
  --green-pale:   #F5F5F5;
  --gold:         #c8a84b;
  --text-dark:    #1a1a1a;
  --text-mid:     #555;
  --text-light:   #888;
  --border:       #dde8e2;
  --white:        #ffffff;
  --shadow:       0 4px 20px rgba(0,0,0,.10);
  --shadow-hover: 0 8px 32px rgba(0,0,0,.18);
  --radius:       10px;
  --radius-lg:    18px;
}

/* 容器 */
.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }
.container-wide { max-width: 1400px; margin: 0 auto; padding: 0 20px; }

/* ============ 顶部导航 ============ */
#header { position: sticky; top: 0; z-index: 999; background: rgba(255,255,255,.97); box-shadow: 0 2px 12px rgba(0,0,0,.08); backdrop-filter: blur(8px); }
.header-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.logo-wrap { display: flex; align-items: center; gap: 10px; }
.logo-wrap img { width: 46px; height: 46px; border-radius: 50%; object-fit: cover; }
.logo-wrap .brand-name { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); letter-spacing: 2px; }
.logo-wrap .brand-sub { font-size: .75rem; color: var(--text-light); letter-spacing: 1px; }

/* 主导航 */
#main-nav { display: flex; align-items: center; gap: 4px; }
#main-nav a { padding: 8px 14px; border-radius: 6px; font-size: .95rem; color: var(--text-dark); font-weight: 500; transition: background .2s, color .2s; white-space: nowrap; }
#main-nav a:hover, #main-nav a.active { background: var(--green-pale); color: var(--green-main); }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--text-dark); margin: 5px 0; border-radius: 2px; transition: .3s; }

/* 搜索框 */
.search-bar-wrap { background: var(--green-pale); border-bottom: 1px solid var(--border); padding: 10px 0; }
.search-bar-inner { display: flex; align-items: center; gap: 10px; max-width: 700px; margin: 0 auto; padding: 0 20px; }
.search-bar-inner input { flex: 1; border: 1.5px solid var(--border); border-radius: 24px; padding: 9px 20px; font-size: .95rem; outline: none; background: #fff; transition: border-color .2s; }
.search-bar-inner input:focus { border-color: var(--green-main); }
.search-bar-inner button { background: var(--green-main); color: #fff; border: none; border-radius: 24px; padding: 9px 24px; font-size: .95rem; cursor: pointer; transition: background .2s; white-space: nowrap; }
.search-bar-inner button:hover { background: var(--green-dark); }

/* ============ Banner ============ */
#banner { position: relative; min-height: 520px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
#banner .banner-bg { position: absolute; inset: 0; background-size: cover; background-position: center; filter: brightness(.55); z-index: 0; }
#banner .banner-content { position: relative; z-index: 1; text-align: center; color: #fff; padding: 60px 20px; max-width: 800px; }
#banner h1 { font-size: clamp(2rem, 5vw, 3.5rem); font-weight: 900; letter-spacing: 3px; text-shadow: 0 2px 12px rgba(0,0,0,.5); margin-bottom: 16px; }
#banner .banner-desc { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .92; margin-bottom: 28px; line-height: 1.8; }
#banner .banner-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }
#banner .btn-primary { background: var(--green-main); color: #fff; padding: 13px 36px; border-radius: 30px; font-size: 1.05rem; font-weight: 700; box-shadow: 0 4px 16px rgba(0,0,0,.4); transition: background .2s, transform .2s; }
#banner .btn-primary:hover { background: var(--green-dark); transform: translateY(-2px); }
#banner .btn-outline { border: 2px solid #fff; color: #fff; padding: 12px 34px; border-radius: 30px; font-size: 1.05rem; font-weight: 700; transition: background .2s, color .2s; }
#banner .btn-outline:hover { background: #fff; color: var(--green-dark); }

/* ============ 通用区块 ============ */
.section { padding: 70px 0; }
.section-alt { background: var(--green-pale); }
.section-title { text-align: center; margin-bottom: 48px; }
.section-title h2 { font-size: clamp(1.5rem, 3vw, 2.2rem); color: var(--green-dark); font-weight: 800; letter-spacing: 2px; margin-bottom: 10px; }
.section-title p { color: var(--text-mid); font-size: 1.05rem; max-width: 600px; margin: 0 auto; }
.section-title .title-line { width: 60px; height: 4px; background: linear-gradient(90deg, var(--green-main), var(--gold)); border-radius: 2px; margin: 12px auto 0; }

/* ============ 视频卡片 ============ */
.video-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; }
.video-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); transition: box-shadow .25s, transform .25s; cursor: pointer; }
.video-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.video-thumb { position: relative; padding-top: 56.25%; overflow: hidden; background: #111; }
.video-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.video-card:hover .video-thumb img { transform: scale(1.06); }
.video-play-btn { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; background: rgba(0,0,0,.35); }
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn svg { width: 64px; height: 64px; filter: drop-shadow(0 2px 8px rgba(0,0,0,.5)); }
.video-badge { position: absolute; top: 10px; left: 10px; background: var(--green-main); color: #fff; font-size: .72rem; padding: 3px 10px; border-radius: 20px; font-weight: 600; }
.video-duration { position: absolute; bottom: 10px; right: 10px; background: rgba(0,0,0,.7); color: #fff; font-size: .75rem; padding: 2px 8px; border-radius: 4px; }
.video-info { padding: 16px; }
.video-info h3 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; 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: .82rem; color: var(--text-light); flex-wrap: wrap; }
.video-meta span { display: flex; align-items: center; gap: 4px; }
.video-tags { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.video-tags .tag { background: var(--green-pale); color: var(--green-main); font-size: .75rem; padding: 2px 10px; border-radius: 12px; font-weight: 500; }

/* ============ 专家卡片 ============ */
.expert-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 28px; }
.expert-card { background: #fff; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow); text-align: center; padding: 32px 20px 24px; transition: box-shadow .25s, transform .25s; }
.expert-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-4px); }
.expert-avatar { width: 90px; height: 90px; border-radius: 50%; object-fit: cover; margin: 0 auto 14px; border: 3px solid var(--green-pale); }
.expert-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 4px; }
.expert-card .role { font-size: .85rem; color: var(--green-main); font-weight: 600; margin-bottom: 10px; }
.expert-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.6; margin-bottom: 14px; }
.expert-awards { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; margin-bottom: 14px; }
.expert-awards span { background: #fff8e1; color: var(--gold); font-size: .75rem; padding: 2px 10px; border-radius: 12px; border: 1px solid #ffe082; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.btn-sm { padding: 7px 16px; border-radius: 20px; font-size: .82rem; font-weight: 600; cursor: pointer; transition: .2s; }
.btn-green { background: var(--green-main); color: #fff; border: none; }
.btn-green:hover { background: var(--green-dark); }
.btn-outline-green { background: transparent; color: var(--green-main); border: 1.5px solid var(--green-main); }
.btn-outline-green:hover { background: var(--green-pale); }

/* ============ 统计数字 ============ */
.stats-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 20px; margin: 40px 0; }
.stat-item { text-align: center; padding: 24px 10px; background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); }
.stat-item .num { font-size: 2.2rem; font-weight: 900; color: var(--green-main); line-height: 1; }
.stat-item .label { font-size: .88rem; color: var(--text-mid); margin-top: 6px; }

/* ============ FAQ ============ */
.faq-list { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1.5px solid var(--border); border-radius: var(--radius); margin-bottom: 14px; overflow: hidden; }
.faq-q { display: flex; justify-content: space-between; align-items: center; padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 1rem; color: var(--text-dark); background: #fff; transition: background .2s; user-select: none; }
.faq-q:hover { background: var(--green-pale); }
.faq-q .arrow { width: 20px; height: 20px; transition: transform .3s; flex-shrink: 0; }
.faq-item.open .faq-q .arrow { transform: rotate(180deg); }
.faq-a { display: none; padding: 0 22px 18px; color: var(--text-mid); font-size: .95rem; line-height: 1.8; }
.faq-item.open .faq-a { display: block; }

/* ============ 用户评价 ============ */
.review-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 22px; }
.review-card { background: #fff; border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); border-left: 4px solid var(--green-main); }
.review-card .stars { color: #f5a623; font-size: 1.1rem; margin-bottom: 10px; letter-spacing: 2px; }
.review-card p { font-size: .95rem; color: var(--text-mid); line-height: 1.7; margin-bottom: 14px; }
.reviewer { display: flex; align-items: center; gap: 10px; }
.reviewer-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--green-pale); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--green-main); font-size: 1rem; }
.reviewer-info .name { font-weight: 700; font-size: .9rem; color: var(--text-dark); }
.reviewer-info .date { font-size: .78rem; color: var(--text-light); }

/* ============ 合作品牌 ============ */
.partner-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; align-items: center; }
.partner-item { background: #fff; border: 1.5px solid var(--border); border-radius: var(--radius); padding: 18px 28px; font-size: 1rem; font-weight: 700; color: var(--text-mid); transition: border-color .2s, color .2s, box-shadow .2s; cursor: default; }
.partner-item:hover { border-color: var(--green-main); color: var(--green-main); box-shadow: var(--shadow); }

/* ============ AI赋能模块 ============ */
.ai-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 24px; }
.ai-card { background: linear-gradient(135deg, #fff 60%, var(--green-pale)); border-radius: var(--radius-lg); padding: 30px 24px; box-shadow: var(--shadow); border-top: 4px solid var(--green-main); transition: box-shadow .25s, transform .25s; }
.ai-card:hover { box-shadow: var(--shadow-hover); transform: translateY(-3px); }
.ai-icon { width: 52px; height: 52px; background: var(--green-pale); border-radius: 12px; display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.ai-icon svg { width: 28px; height: 28px; color: var(--green-main); }
.ai-card h3 { font-size: 1.1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 10px; }
.ai-card p { font-size: .9rem; color: var(--text-mid); line-height: 1.7; }

/* ============ 社区功能 ============ */
.community-tabs { display: flex; gap: 8px; margin-bottom: 28px; flex-wrap: wrap; }
.community-tab { padding: 9px 22px; border-radius: 24px; font-size: .9rem; font-weight: 600; cursor: pointer; border: 1.5px solid var(--border); background: #fff; color: var(--text-mid); transition: .2s; }
.community-tab.active, .community-tab:hover { background: var(--green-main); color: #fff; border-color: var(--green-main); }

/* ============ 联系我们 ============ */
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 30px; }
.contact-card { background: #fff; border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.contact-card h3 { font-size: 1.15rem; font-weight: 700; color: var(--green-dark); margin-bottom: 18px; padding-bottom: 12px; border-bottom: 2px solid var(--green-pale); }
.contact-item { display: flex; align-items: flex-start; gap: 12px; margin-bottom: 14px; }
.contact-item .icon { width: 36px; height: 36px; background: var(--green-pale); border-radius: 8px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.contact-item .icon svg { width: 18px; height: 18px; color: var(--green-main); }
.contact-item .text { font-size: .92rem; color: var(--text-mid); line-height: 1.6; }
.contact-item .text strong { color: var(--text-dark); display: block; font-size: .95rem; }

/* QR码 */
.qr-row { display: flex; gap: 24px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.qr-item { text-align: center; }
.qr-item .qr-box { width: 110px; height: 110px; background: #f5f5f5; border-radius: 10px; display: flex; align-items: center; justify-content: center; margin: 0 auto 8px; border: 1.5px solid var(--border); overflow: hidden; }
.qr-item .qr-box canvas { width: 100%; height: 100%; }
.qr-item p { font-size: .8rem; color: var(--text-mid); }

/* ============ 社交分享 ============ */
.share-row { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 20px; }
.share-btn { display: flex; align-items: center; gap: 8px; padding: 10px 20px; border-radius: 24px; font-size: .88rem; font-weight: 600; cursor: pointer; border: none; transition: .2s; }
.share-wechat { background: #07c160; color: #fff; }
.share-weibo { background: #e6162d; color: #fff; }
.share-douyin { background: #000; color: #fff; }
.share-bilibili { background: #00a1d6; color: #fff; }
.share-btn:hover { opacity: .85; transform: translateY(-1px); }

/* ============ 面包屑 ============ */
.breadcrumb { padding: 14px 0; font-size: .88rem; color: var(--text-light); }
.breadcrumb a { color: var(--text-light); }
.breadcrumb a:hover { color: var(--green-main); }
.breadcrumb span { margin: 0 6px; }

/* ============ 页脚 ============ */
#footer { background: #0d2b18; color: #ccc; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 40px; padding-bottom: 40px; }
.footer-brand .brand-name { font-size: 1.4rem; font-weight: 800; color: #fff; letter-spacing: 2px; margin-bottom: 12px; }
.footer-brand p { font-size: .88rem; line-height: 1.8; color: #aaa; }
.footer-col h4 { font-size: 1rem; font-weight: 700; color: #fff; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: .88rem; color: #aaa; transition: color .2s; }
.footer-col ul li a:hover { color: var(--green-light); }
.footer-bottom { border-top: 1px solid #1e4a2c; padding: 20px 0; display: flex; align-items: center; justify-content: space-between; flex-wrap: gap; gap: 12px; font-size: .82rem; color: #888; }
.footer-bottom a { color: #888; }
.footer-bottom a:hover { color: var(--green-light); }
.footer-logo { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; }

/* ============ 响应式 ============ */
@media (max-width: 1024px) {
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  #main-nav { display: none; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: #fff; box-shadow: 0 8px 24px rgba(0,0,0,.1); padding: 12px 20px 20px; gap: 4px; z-index: 999; }
  #main-nav.open { display: flex; }
  .nav-toggle { display: block; }
  #banner { min-height: 360px; }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .search-bar-inner { flex-direction: row; }
  .search-bar-inner input { font-size: .9rem; }
}
@media (max-width: 600px) {
  .section { padding: 48px 0; }
  .video-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
}

/* ============ 懒加载占位 ============ */
img[data-src] { background: #eef5f0; }

/* ============ 视频卡片内video标签 ============ */
.video-thumb { position: relative; overflow: hidden; }
.video-card-player { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.video-thumb img { position: relative; z-index: 0; }
.video-play-btn { position: absolute; inset: 0; z-index: 3; display: flex; align-items: center; justify-content: center; opacity: 0; transition: opacity .25s; }
.video-card:hover .video-play-btn { opacity: 1; }
.video-duration { position: absolute; bottom: 8px; right: 8px; z-index: 4; background: rgba(0,0,0,.65); color: #fff; font-size: .75rem; padding: 2px 7px; border-radius: 4px; }
.video-badge { position: absolute; top: 8px; left: 8px; z-index: 4; background: var(--green-main); color: #fff; font-size: .72rem; padding: 2px 8px; border-radius: 4px; }

/* ============ 干扰标签隐藏（不破坏布局） ============ */
.noise-wrap { display: none !important; }

/* ============ 页面过渡 ============ */
.fade-in { animation: fadeIn .6s ease both; }
@keyframes fadeIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }

/* ============ 滚动进入动画 ============ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s, transform .6s; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============ 视频播放遮罩 ============ */
.video-modal-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.85); z-index: 9999; align-items: center; justify-content: center; }
.video-modal-overlay.show { display: flex; }
.video-modal-box { background: #000; border-radius: 12px; overflow: hidden; max-width: 860px; width: 92%; position: relative; }
.video-modal-close { position: absolute; top: 12px; right: 16px; background: rgba(255,255,255,.15); border: none; color: #fff; font-size: 1.4rem; cursor: pointer; border-radius: 50%; width: 36px; height: 36px; display: flex; align-items: center; justify-content: center; z-index: 1; }
.video-modal-box video { width: 100%; display: block; max-height: 480px; background: #000; }
.video-placeholder { width: 100%; aspect-ratio: 16/9; background: linear-gradient(135deg, #0d2b18 0%, #000000 100%); display: flex; flex-direction: column; align-items: center; justify-content: center; color: #fff; }
.video-placeholder svg { width: 72px; height: 72px; opacity: .6; margin-bottom: 12px; }
.video-placeholder p { font-size: 1rem; opacity: .7; }

/* ============ 加入社区指南 ============ */
.howto-steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step-card { background: #fff; border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); text-align: center; }
.step-num { width: 44px; height: 44px; background: var(--green-main); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.2rem; font-weight: 800; margin: 0 auto 14px; }
.step-card h4 { font-size: 1rem; font-weight: 700; color: var(--text-dark); margin-bottom: 8px; }
.step-card p { font-size: .88rem; color: var(--text-mid); line-height: 1.6; }

/* 标签云 */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.tag-cloud a { background: var(--green-pale); color: var(--green-main); padding: 6px 16px; border-radius: 20px; font-size: .88rem; font-weight: 500; transition: background .2s, color .2s; }
.tag-cloud a:hover { background: var(--green-main); color: #fff; }

/* 通知栏 */
.notice-bar { background: var(--green-main); color: #fff; text-align: center; padding: 8px 20px; font-size: .88rem; letter-spacing: .5px; }
.notice-bar a { color: #fff; text-decoration: underline; }
