/* ================================================
   酒店自拍 - HaiJiao Media | 主样式文件
   品牌色：深海蓝 #1A3A5C | 珊瑚红 #E05A3A | 金色 #F0A500
   ================================================ */

/* ---- 全局重置 ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --primary:   #1A3A5C;
  --accent:    #E05A3A;
  --gold:      #F0A500;
  --bg-dark:   #0D1F33;
  --bg-light:  #F5F7FA;
  --text-main: #1C2B3A;
  --text-mute: #6B7A8D;
  --white:     #FFFFFF;
  --radius:    10px;
  --shadow:    0 4px 24px rgba(26,58,92,0.12);
  --trans:     all 0.3s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", "微软雅黑", sans-serif;
  background: var(--bg-light);
  color: var(--text-main);
  line-height: 1.7;
  overflow-x: hidden;
}

a { color: inherit; text-decoration: none; transition: var(--trans); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
button { cursor: pointer; border: none; outline: none; }

/* ---- 顶部公告条 ---- */
.top-bar {
  background: var(--primary);
  color: rgba(255,255,255,0.85);
  font-size: 0.78rem;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.5px;
}
.top-bar a { color: var(--gold); }

/* ---- 导航栏 ---- */
.site-header {
  background: var(--white);
  box-shadow: 0 2px 16px rgba(26,58,92,0.10);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  gap: 24px;
  height: 70px;
}

.site-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.site-logo img {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
}
.site-logo .logo-text {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--primary);
  letter-spacing: 1px;
}
.site-logo .logo-text span { color: var(--accent); }

/* 主导航 */
.main-nav { flex: 1; display: flex; align-items: center; }
.main-nav ul { display: flex; gap: 4px; }
.main-nav ul li a {
  display: block;
  padding: 8px 14px;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-main);
  border-radius: 6px;
  white-space: nowrap;
}
.main-nav ul li a:hover,
.main-nav ul li a.active {
  background: var(--bg-light);
  color: var(--accent);
}

/* 搜索框 */
.header-search {
  display: flex;
  align-items: center;
  background: var(--bg-light);
  border: 1.5px solid #D8E0EB;
  border-radius: 24px;
  padding: 5px 14px;
  gap: 8px;
  transition: var(--trans);
}
.header-search:focus-within {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(224,90,58,0.12);
}
.header-search input {
  background: transparent;
  border: none;
  outline: none;
  font-size: 0.88rem;
  width: 180px;
  color: var(--text-main);
}
.header-search button {
  background: none;
  color: var(--text-mute);
  font-size: 1rem;
  padding: 0;
  transition: var(--trans);
}
.header-search button:hover { color: var(--accent); }

/* 汉堡菜单 */
.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  padding: 4px;
}
.nav-toggle span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: var(--trans);
}

/* ---- 面包屑 ---- */
.breadcrumb {
  background: var(--white);
  border-bottom: 1px solid #E8EDF4;
  padding: 10px 0;
}
.breadcrumb-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  font-size: 0.82rem;
  color: var(--text-mute);
  display: flex;
  align-items: center;
  gap: 6px;
}
.breadcrumb-inner a { color: var(--primary); }
.breadcrumb-inner a:hover { color: var(--accent); }
.breadcrumb-inner .sep { color: #CBD5E0; }

/* ---- 容器 ---- */
.container { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.section { padding: 72px 0; }
.section-sm { padding: 48px 0; }

/* ---- 区块标题 ---- */
.section-head { text-align: center; margin-bottom: 48px; }
.section-head .label {
  display: inline-block;
  background: rgba(224,90,58,0.10);
  color: var(--accent);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 14px;
  border-radius: 20px;
  margin-bottom: 12px;
}
.section-head h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--primary);
  line-height: 1.3;
}
.section-head p {
  margin-top: 12px;
  color: var(--text-mute);
  font-size: 1rem;
  max-width: 560px;
  margin-left: auto;
  margin-right: auto;
}

/* ---- Hero 轮播 ---- */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg-dark);
  height: 560px;
}
.hero-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.8s ease;
}
.hero-slide.active { opacity: 1; }
.hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.55;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(13,31,51,0.85) 0%, rgba(13,31,51,0.3) 100%);
  display: flex;
  align-items: center;
}
.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  color: var(--white);
}
.hero-content .tag {
  display: inline-block;
  background: var(--accent);
  color: var(--white);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 2px;
  padding: 4px 14px;
  border-radius: 4px;
  margin-bottom: 18px;
}
.hero-content h1 {
  font-size: 2.8rem;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}
.hero-content p {
  font-size: 1.1rem;
  opacity: 0.9;
  max-width: 540px;
  margin-bottom: 28px;
}
.hero-btns { display: flex; gap: 14px; flex-wrap: wrap; }

/* 轮播指示器 */
.hero-dots {
  position: absolute;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: var(--trans);
}
.hero-dots span.active {
  background: var(--accent);
  width: 24px;
  border-radius: 4px;
}

/* ---- 按钮 ---- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 11px 26px;
  border-radius: 8px;
  font-size: 0.92rem;
  font-weight: 600;
  transition: var(--trans);
  cursor: pointer;
}
.btn-primary {
  background: var(--accent);
  color: var(--white);
  box-shadow: 0 4px 16px rgba(224,90,58,0.35);
}
.btn-primary:hover {
  background: #c94a2a;
  color: var(--white);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(224,90,58,0.45);
}
.btn-outline {
  background: transparent;
  color: var(--white);
  border: 2px solid rgba(255,255,255,0.6);
}
.btn-outline:hover {
  background: rgba(255,255,255,0.15);
  border-color: var(--white);
  color: var(--white);
}
.btn-dark {
  background: var(--primary);
  color: var(--white);
}
.btn-dark:hover {
  background: #0f2540;
  color: var(--white);
  transform: translateY(-2px);
}
.btn-sm { padding: 7px 16px; font-size: 0.82rem; }

/* ---- 统计数字条 ---- */
.stats-bar {
  background: var(--primary);
  padding: 28px 0;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.stat-item {
  text-align: center;
  color: var(--white);
  padding: 16px;
  border-right: 1px solid rgba(255,255,255,0.1);
}
.stat-item:last-child { border-right: none; }
.stat-item .num {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
}
.stat-item .unit { font-size: 1rem; color: var(--gold); }
.stat-item .label { font-size: 0.82rem; opacity: 0.75; margin-top: 4px; }

/* ---- 视频卡片 ---- */
.video-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.video-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--trans);
}
.video-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 12px 36px rgba(26,58,92,0.18);
}
.video-thumb {
  position: relative;
  padding-top: 56.25%; /* 16:9 */
  overflow: hidden;
  background: var(--bg-dark);
  cursor: pointer;
}
.video-thumb img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.video-card:hover .video-thumb img { transform: scale(1.06); }
.play-btn {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: var(--trans);
  background: rgba(13,31,51,0.45);
}
.video-card:hover .play-btn { opacity: 1; }
.play-btn .play-icon {
  width: 56px;
  height: 56px;
  background: var(--accent);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(224,90,58,0.5);
  transform: scale(0.85);
  transition: var(--trans);
}
.video-card:hover .play-btn .play-icon { transform: scale(1); }
.play-icon svg { width: 22px; height: 22px; fill: white; margin-left: 3px; }
.video-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: var(--accent);
  color: white;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 2px 8px;
  border-radius: 4px;
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: white;
  font-size: 0.72rem;
  padding: 2px 7px;
  border-radius: 4px;
}
.video-info { padding: 14px; }
.video-info h3 {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  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;
  justify-content: space-between;
  font-size: 0.75rem;
  color: var(--text-mute);
}
.video-meta .views { display: flex; align-items: center; gap: 4px; }
.video-meta .likes { display: flex; align-items: center; gap: 4px; color: var(--accent); }
.video-author {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 8px;
}
.video-author img {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  object-fit: cover;
}
.video-author span { font-size: 0.78rem; color: var(--text-mute); }

/* ---- 功能模块卡片 ---- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
  transition: var(--trans);
  border-top: 3px solid transparent;
}
.feature-card:hover {
  transform: translateY(-4px);
  border-top-color: var(--accent);
  box-shadow: 0 10px 32px rgba(26,58,92,0.16);
}
.feature-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary) 0%, #2A5A8C 100%);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  font-size: 1.6rem;
}
.feature-card h3 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 10px;
}
.feature-card p {
  font-size: 0.88rem;
  color: var(--text-mute);
  line-height: 1.7;
}
.feature-card .more-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-top: 14px;
  font-size: 0.84rem;
  color: var(--accent);
  font-weight: 600;
}

/* ---- 专家展示 ---- */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.expert-card {
  background: var(--white);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  text-align: center;
  transition: var(--trans);
}
.expert-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 36px rgba(26,58,92,0.18);
}
.expert-photo {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: top;
}
.expert-info { padding: 18px 16px; }
.expert-info h3 { font-size: 1rem; font-weight: 700; color: var(--primary); }
.expert-info .role {
  font-size: 0.78rem;
  color: var(--accent);
  font-weight: 600;
  margin: 4px 0 8px;
}
.expert-info p { font-size: 0.82rem; color: var(--text-mute); line-height: 1.6; }
.expert-tags { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; margin: 10px 0; }
.expert-tags span {
  background: var(--bg-light);
  color: var(--primary);
  font-size: 0.7rem;
  padding: 2px 8px;
  border-radius: 20px;
}
.expert-btns { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.expert-btns a {
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.78rem;
  font-weight: 600;
}
.expert-btns .btn-contact {
  background: var(--accent);
  color: white;
}
.expert-btns .btn-works {
  background: var(--bg-light);
  color: var(--primary);
  border: 1px solid #D8E0EB;
}

/* ---- 合作品牌 ---- */
.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  align-items: center;
}
.partner-item {
  background: var(--white);
  border: 1px solid #E8EDF4;
  border-radius: 8px;
  padding: 18px 12px;
  text-align: center;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-mute);
  transition: var(--trans);
}
.partner-item:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow);
}

/* ---- 用户评价 ---- */
.review-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.review-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 24px 20px;
  box-shadow: var(--shadow);
  position: relative;
}
.review-card::before {
  content: '"';
  position: absolute;
  top: 12px;
  right: 18px;
  font-size: 4rem;
  color: rgba(224,90,58,0.12);
  font-family: Georgia, serif;
  line-height: 1;
}
.review-stars { color: var(--gold); font-size: 0.9rem; margin-bottom: 10px; }
.review-text { font-size: 0.88rem; color: var(--text-main); line-height: 1.7; margin-bottom: 14px; }
.review-user { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-weight: 700;
  font-size: 0.9rem;
  flex-shrink: 0;
}
.review-user-info .name { font-size: 0.88rem; font-weight: 600; color: var(--text-main); }
.review-user-info .date { font-size: 0.75rem; color: var(--text-mute); }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin: 0 auto; }
.faq-item {
  background: var(--white);
  border-radius: var(--radius);
  margin-bottom: 12px;
  box-shadow: 0 2px 10px rgba(26,58,92,0.07);
  overflow: hidden;
}
.faq-question {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--primary);
  transition: var(--trans);
}
.faq-question:hover { color: var(--accent); }
.faq-question .icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: var(--trans);
  flex-shrink: 0;
}
.faq-item.open .faq-question .icon { background: var(--accent); color: white; transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease, padding 0.3s ease;
  font-size: 0.9rem;
  color: var(--text-mute);
  line-height: 1.8;
}
.faq-item.open .faq-answer {
  max-height: 300px;
  padding: 0 22px 18px;
}

/* ---- 联系区块 ---- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}
.contact-info h3 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin-bottom: 20px; }
.contact-item {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 18px;
}
.contact-icon {
  width: 42px;
  height: 42px;
  background: rgba(26,58,92,0.08);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  flex-shrink: 0;
}
.contact-item .detail .label { font-size: 0.78rem; color: var(--text-mute); margin-bottom: 2px; }
.contact-item .detail .value { font-size: 0.92rem; font-weight: 600; color: var(--text-main); }
.qr-row { display: flex; gap: 20px; margin-top: 24px; }
.qr-box { text-align: center; }
.qr-box img {
  width: 110px;
  height: 110px;
  border: 3px solid var(--bg-light);
  border-radius: 8px;
  object-fit: cover;
}
.qr-box p { font-size: 0.78rem; color: var(--text-mute); margin-top: 6px; }

/* ---- 社区入口 ---- */
.community-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}
.community-card {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  height: 240px;
  cursor: pointer;
}
.community-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.community-card:hover img { transform: scale(1.08); }
.community-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(13,31,51,0.85) 0%, transparent 60%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 20px;
  color: white;
}
.community-card-overlay h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: 4px; }
.community-card-overlay p { font-size: 0.8rem; opacity: 0.85; }

/* ---- 分享按钮 ---- */
.share-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.share-bar .label { font-size: 0.85rem; color: var(--text-mute); }
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 14px;
  border-radius: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: white;
  transition: var(--trans);
}
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); color: white; }
.share-wechat { background: #07C160; }
.share-weibo { background: #E6162D; }
.share-douyin { background: #010101; }
.share-bilibili { background: #00A1D6; }

/* ---- 页脚 ---- */
.site-footer {
  background: var(--bg-dark);
  color: rgba(255,255,255,0.75);
  padding: 60px 0 0;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-brand .logo-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.footer-brand .logo-wrap img { width: 40px; height: 40px; border-radius: 8px; }
.footer-brand .logo-wrap span { font-size: 1.2rem; font-weight: 700; color: white; }
.footer-brand p { font-size: 0.85rem; line-height: 1.8; opacity: 0.7; }
.footer-col h4 { font-size: 0.95rem; font-weight: 700; color: white; margin-bottom: 16px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 0.84rem; opacity: 0.7; transition: var(--trans); }
.footer-col ul li a:hover { opacity: 1; color: var(--accent); }
.footer-bottom {
  padding: 20px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
  opacity: 0.6;
  flex-wrap: wrap;
  gap: 8px;
}
.footer-bottom a { color: var(--gold); }

/* ---- 标签云 ---- */
.tag-cloud { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-cloud a {
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.78rem;
  transition: var(--trans);
}
.tag-cloud a:hover { background: var(--accent); color: white; }

/* ---- 内页 Banner ---- */
.page-banner {
  background: linear-gradient(135deg, var(--bg-dark) 0%, var(--primary) 100%);
  padding: 60px 0;
  text-align: center;
  color: white;
  position: relative;
  overflow: hidden;
}
.page-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../images/banner_live.jpg') center/cover no-repeat;
  opacity: 0.15;
}
.page-banner .container { position: relative; }
.page-banner h1 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; }
.page-banner p { font-size: 1rem; opacity: 0.8; max-width: 500px; margin: 0 auto; }

/* ---- 加入指南 ---- */
.how-to-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.how-to-step {
  text-align: center;
  padding: 28px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  position: relative;
}
.step-num {
  width: 44px;
  height: 44px;
  background: var(--accent);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 800;
  margin: 0 auto 14px;
}
.how-to-step h3 { font-size: 0.95rem; font-weight: 700; color: var(--primary); margin-bottom: 8px; }
.how-to-step p { font-size: 0.84rem; color: var(--text-mute); }

/* ---- 辅助类 ---- */
.bg-light { background: var(--bg-light); }
.bg-dark { background: var(--bg-dark); }
.bg-primary { background: var(--primary); }
.text-center { text-align: center; }
.text-accent { color: var(--accent); }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-8 { margin-bottom: 8px; }
.mb-16 { margin-bottom: 16px; }
.mb-24 { margin-bottom: 24px; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.gap-12 { gap: 12px; }

/* ---- 弹幕效果 ---- */
.danmu-wrap {
  background: var(--bg-dark);
  border-radius: var(--radius);
  height: 56px;
  overflow: hidden;
  position: relative;
  margin: 16px 0;
}
.danmu-track {
  display: flex;
  gap: 40px;
  position: absolute;
  white-space: nowrap;
  animation: danmu-scroll 30s linear infinite;
  top: 50%;
  transform: translateY(-50%);
}
.danmu-track span {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  background: rgba(255,255,255,0.06);
  padding: 4px 12px;
  border-radius: 20px;
}
@keyframes danmu-scroll {
  0% { transform: translateY(-50%) translateX(0); }
  100% { transform: translateY(-50%) translateX(-50%); }
}

/* ---- 响应式 ---- */
@media (max-width: 1100px) {
  .video-grid { grid-template-columns: repeat(3, 1fr); }
  .expert-grid { grid-template-columns: repeat(2, 1fr); }
  .partner-grid { grid-template-columns: repeat(4, 1fr); }
  .review-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  .hero { height: 420px; }
  .hero-content h1 { font-size: 2rem; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .how-to-grid { grid-template-columns: repeat(2, 1fr); }
  .contact-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .community-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .main-nav { display: none; }
  .main-nav.open {
    display: block;
    position: absolute;
    top: 70px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
    padding: 12px 0;
    z-index: 999;
  }
  .main-nav.open ul { flex-direction: column; }
  .main-nav.open ul li a { padding: 12px 24px; border-radius: 0; }
  .nav-toggle { display: flex; }
  .header-search input { width: 120px; }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .section-head h2 { font-size: 1.5rem; }
  .hero-content h1 { font-size: 1.6rem; }
  .hero { height: 360px; }
  .partner-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
}

@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .expert-grid { grid-template-columns: 1fr; }
  .review-grid { grid-template-columns: 1fr; }
  .how-to-grid { grid-template-columns: 1fr; }
  .community-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
}

/* ---- 滚动动画 ---- */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}
.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

/* ---- 视频模态框 ---- */
.video-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.85);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.video-modal.open { display: flex; }
.modal-inner {
  background: var(--bg-dark);
  border-radius: var(--radius);
  overflow: hidden;
  width: 90%;
  max-width: 800px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  color: white;
  font-size: 1.4rem;
  background: rgba(255,255,255,0.15);
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 1;
}
.modal-video {
  width: 100%;
  aspect-ratio: 16/9;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255,255,255,0.5);
  font-size: 1rem;
}
.modal-info { padding: 16px 20px; color: white; }
.modal-info h3 { font-size: 1rem; font-weight: 700; margin-bottom: 6px; }
.modal-info p { font-size: 0.84rem; opacity: 0.7; }

/* ---- 热门标签 ---- */
.hot-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.hot-tags a {
  background: var(--bg-light);
  color: var(--primary);
  padding: 5px 14px;
  border-radius: 20px;
  font-size: 0.82rem;
  border: 1px solid #D8E0EB;
  transition: var(--trans);
}
.hot-tags a:hover { background: var(--accent); color: white; border-color: var(--accent); }

/* ---- 分页 ---- */
.pagination {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 40px;
}
.pagination a, .pagination span {
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  font-size: 0.88rem;
  border: 1px solid #D8E0EB;
  background: white;
  color: var(--text-main);
  transition: var(--trans);
}
.pagination a:hover, .pagination .current {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
