/* =============================================
   海角网 - 主样式文件
   品牌色系：深海蓝 #0d2137 | 珊瑚红 #e84040 | 亮蓝 #1e90ff | 金色 #f5a623
   ============================================= */

/* === 全局重置与基础 === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-size: 16px; scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: #0a0f1a;
  color: #d0d8e8;
  line-height: 1.7;
  overflow-x: hidden;
}
a { color: #1e90ff; text-decoration: none; transition: color 0.25s; }
a:hover { color: #e84040; }
img { max-width: 100%; height: auto; display: block; }
ul { list-style: none; }

/* === 变量 === */
:root {
  --primary: #0d2137;
  --secondary: #e84040;
  --accent: #1e90ff;
  --gold: #f5a623;
  --dark: #060c16;
  --card-bg: #111c2d;
  --border: rgba(30,144,255,0.18);
  --text-muted: #7a8ba0;
  --radius: 10px;
  --shadow: 0 4px 24px rgba(0,0,0,0.45);
}

/* === 顶部公告栏 === */
.top-bar {
  background: linear-gradient(90deg, #e84040 0%, #c0392b 100%);
  color: #fff;
  font-size: 13px;
  padding: 6px 0;
  text-align: center;
  letter-spacing: 0.5px;
}
.top-bar a { color: #ffe; font-weight: 600; }

/* === 导航栏 === */
.navbar {
  background: rgba(10,15,26,0.97);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 999;
  padding: 0 20px;
}
.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  height: 64px;
  gap: 20px;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.nav-logo img.logo-img {
  height: 40px;
  width: auto;
  border-radius: 6px;
}
.nav-logo img.favicon-img {
  height: 28px;
  width: 28px;
  border-radius: 4px;
}
.nav-logo .brand-name {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  letter-spacing: 1px;
}
.nav-logo .brand-name span { color: var(--secondary); }
.nav-menu {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  flex-wrap: nowrap;
}
.nav-menu a {
  color: #c0cfe0;
  font-size: 14px;
  padding: 6px 12px;
  border-radius: 6px;
  white-space: nowrap;
  font-weight: 500;
  transition: background 0.2s, color 0.2s;
}
.nav-menu a:hover, .nav-menu a.active {
  background: rgba(30,144,255,0.15);
  color: var(--accent);
}
.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}
.btn-login {
  background: transparent;
  border: 1px solid var(--accent);
  color: var(--accent);
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-login:hover { background: var(--accent); color: #fff; }
.btn-vip {
  background: linear-gradient(135deg, #f5a623, #e84040);
  color: #fff;
  border: none;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  font-weight: 600;
}
.hamburger { display: none; flex-direction: column; gap: 5px; cursor: pointer; }
.hamburger span { width: 24px; height: 2px; background: #fff; border-radius: 2px; transition: all 0.3s; }

/* === 搜索栏 === */
.search-bar-wrap {
  background: #0d1a2e;
  border-bottom: 1px solid var(--border);
  padding: 10px 20px;
}
.search-bar-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.search-form {
  display: flex;
  flex: 1;
  max-width: 680px;
  background: #162035;
  border: 1px solid var(--border);
  border-radius: 24px;
  overflow: hidden;
  align-items: center;
}
.search-form input {
  flex: 1;
  background: transparent;
  border: none;
  outline: none;
  color: #d0d8e8;
  padding: 9px 18px;
  font-size: 14px;
}
.search-form input::placeholder { color: #4a5a70; }
.search-form button {
  background: var(--secondary);
  border: none;
  color: #fff;
  padding: 9px 20px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: background 0.2s;
}
.search-form button:hover { background: #c0392b; }
.search-hot-tags { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.search-hot-tags span { color: var(--text-muted); font-size: 12px; }
.search-hot-tags a {
  background: rgba(30,144,255,0.1);
  color: var(--accent);
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 12px;
  border: 1px solid rgba(30,144,255,0.2);
}
.search-hot-tags a:hover { background: rgba(30,144,255,0.25); }

/* === 容器 === */
.container { max-width: 1280px; margin: 0 auto; padding: 0 20px; }

/* === 面包屑 === */
.breadcrumb {
  padding: 10px 0;
  font-size: 13px;
  color: var(--text-muted);
}
.breadcrumb a { color: var(--text-muted); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb span { margin: 0 6px; }

/* === Hero 轮播 === */
.hero-slider {
  position: relative;
  width: 100%;
  height: 480px;
  overflow: hidden;
}
.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;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(6,12,22,0.85) 0%, rgba(6,12,22,0.3) 60%, transparent 100%);
  display: flex;
  align-items: center;
}
.hero-content {
  padding: 0 60px;
  max-width: 600px;
}
.hero-tag {
  display: inline-block;
  background: var(--secondary);
  color: #fff;
  font-size: 12px;
  padding: 3px 10px;
  border-radius: 4px;
  margin-bottom: 14px;
  font-weight: 600;
  letter-spacing: 1px;
}
.hero-content h1 {
  font-size: 38px;
  font-weight: 900;
  color: #fff;
  line-height: 1.25;
  margin-bottom: 14px;
  text-shadow: 0 2px 12px rgba(0,0,0,0.6);
}
.hero-content p {
  font-size: 15px;
  color: rgba(255,255,255,0.8);
  margin-bottom: 24px;
  line-height: 1.7;
}
.hero-btns { display: flex; gap: 12px; }
.btn-primary {
  background: var(--secondary);
  color: #fff;
  padding: 11px 28px;
  border-radius: 24px;
  font-weight: 700;
  font-size: 15px;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-primary:hover { background: #c0392b; color: #fff; transform: translateY(-1px); }
.btn-outline {
  background: transparent;
  color: #fff;
  padding: 11px 28px;
  border-radius: 24px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.btn-outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
}
.hero-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  cursor: pointer;
  transition: all 0.3s;
}
.hero-dot.active { background: var(--secondary); width: 24px; border-radius: 4px; }

/* === 区块标题 === */
.section { padding: 50px 0; }
.section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.section-title {
  font-size: 22px;
  font-weight: 800;
  color: #fff;
  display: flex;
  align-items: center;
  gap: 10px;
}
.section-title::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 22px;
  background: var(--secondary);
  border-radius: 2px;
}
.section-more {
  color: var(--text-muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.section-more:hover { color: var(--accent); }

/* === 视频卡片 === */
.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 18px;
}
.video-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform 0.25s, box-shadow 0.25s;
  cursor: pointer;
}
.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(30,144,255,0.2);
  border-color: rgba(30,144,255,0.4);
}
.video-thumb {
  position: relative;
  aspect-ratio: 16/9;
  overflow: hidden;
}
.video-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.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;
  background: rgba(0,0,0,0.35);
  opacity: 0;
  transition: opacity 0.25s;
}
.video-card:hover .video-play-btn { opacity: 1; }
.video-play-btn svg {
  width: 52px;
  height: 52px;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.6));
}
.video-duration {
  position: absolute;
  bottom: 8px;
  right: 8px;
  background: rgba(0,0,0,0.75);
  color: #fff;
  font-size: 11px;
  padding: 2px 6px;
  border-radius: 3px;
}
.video-quality {
  position: absolute;
  top: 8px;
  left: 8px;
  background: var(--secondary);
  color: #fff;
  font-size: 10px;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}
.video-info { padding: 12px; }
.video-title {
  font-size: 14px;
  font-weight: 600;
  color: #d0d8e8;
  line-height: 1.4;
  margin-bottom: 8px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.video-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.video-meta .views::before { content: '▶ '; }
.video-meta .likes::before { content: '♥ '; color: var(--secondary); }
.video-meta .comments::before { content: '💬 '; }

/* === 大卡片（精选） === */
.featured-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
}
.featured-main { grid-row: 1 / 3; }
.featured-main .video-thumb { aspect-ratio: 16/10; }

/* === 分类标签栏 === */
.cat-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}
.cat-tab {
  background: var(--card-bg);
  border: 1px solid var(--border);
  color: #c0cfe0;
  padding: 6px 16px;
  border-radius: 20px;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s;
}
.cat-tab:hover, .cat-tab.active {
  background: var(--secondary);
  border-color: var(--secondary);
  color: #fff;
}

/* === 专家卡片 === */
.expert-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 20px;
}
.expert-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 16px;
  text-align: center;
  transition: transform 0.25s, box-shadow 0.25s;
}
.expert-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(30,144,255,0.35);
}
.expert-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 12px;
  object-fit: cover;
  border: 3px solid var(--accent);
}
.expert-name { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.expert-role { font-size: 12px; color: var(--accent); margin-bottom: 8px; }
.expert-desc { font-size: 12px; color: var(--text-muted); line-height: 1.5; margin-bottom: 12px; }
.expert-btns { display: flex; gap: 8px; justify-content: center; }
.btn-sm {
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 12px;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: transparent;
  cursor: pointer;
  transition: all 0.2s;
}
.btn-sm:hover { background: var(--accent); color: #fff; }
.btn-sm.red { border-color: var(--secondary); color: var(--secondary); }
.btn-sm.red:hover { background: var(--secondary); color: #fff; }

/* === 合作品牌 === */
.partner-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: center;
  align-items: center;
}
.partner-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 14px 24px;
  font-size: 14px;
  font-weight: 600;
  color: #8a9bb0;
  transition: all 0.2s;
  min-width: 120px;
  text-align: center;
}
.partner-item:hover { border-color: var(--accent); color: var(--accent); background: rgba(30,144,255,0.08); }

/* === 统计数字 === */
.stats-bar {
  background: linear-gradient(135deg, #0d2137 0%, #162035 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  overflow: hidden;
}
.stat-item {
  padding: 28px 20px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.stat-item:last-child { border-right: none; }
.stat-num {
  font-size: 32px;
  font-weight: 900;
  color: var(--accent);
  line-height: 1;
  margin-bottom: 6px;
}
.stat-num span { color: var(--secondary); }
.stat-label { font-size: 13px; color: var(--text-muted); }

/* === FAQ === */
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}
.faq-question {
  padding: 16px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #d0d8e8;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: background 0.2s;
}
.faq-question:hover { background: rgba(30,144,255,0.08); }
.faq-question .faq-icon {
  color: var(--accent);
  font-size: 18px;
  transition: transform 0.3s;
  flex-shrink: 0;
}
.faq-item.open .faq-icon { transform: rotate(45deg); }
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease, padding 0.35s;
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.7;
  padding: 0 20px;
}
.faq-item.open .faq-answer { max-height: 300px; padding: 0 20px 16px; }

/* === 用户评论 === */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 18px;
}
.review-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.review-header { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.review-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 700;
  color: #fff;
  flex-shrink: 0;
}
.review-user { font-size: 14px; font-weight: 600; color: #d0d8e8; }
.review-date { font-size: 12px; color: var(--text-muted); }
.review-stars { color: var(--gold); font-size: 13px; margin-bottom: 8px; }
.review-text { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* === 联系区块 === */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 30px;
}
.contact-info-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px;
}
.contact-info-card h3 { font-size: 18px; color: #fff; margin-bottom: 18px; }
.contact-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 14px;
  color: #b0c0d0;
}
.contact-icon { color: var(--accent); font-size: 16px; flex-shrink: 0; margin-top: 2px; }
.qr-grid { display: flex; gap: 20px; flex-wrap: wrap; }
.qr-item { text-align: center; }
.qr-item img { width: 100px; height: 100px; border-radius: 8px; border: 2px solid var(--border); }
.qr-item p { font-size: 12px; color: var(--text-muted); margin-top: 6px; }

/* === 社交分享 === */
.share-bar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.2s;
  color: #fff;
}
.share-wechat { background: #07c160; }
.share-weibo { background: #e6162d; }
.share-douyin { background: #161823; border: 1px solid #fe2c55; }
.share-bilibili { background: #00a1d6; }
.share-btn:hover { opacity: 0.85; transform: translateY(-1px); }

/* === 底部 === */
.footer {
  background: #060c16;
  border-top: 1px solid var(--border);
  padding: 50px 0 20px;
  margin-top: 60px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-brand .brand-name { font-size: 24px; font-weight: 900; color: #fff; margin-bottom: 12px; }
.footer-brand .brand-name span { color: var(--secondary); }
.footer-brand p { font-size: 13px; color: var(--text-muted); line-height: 1.7; margin-bottom: 16px; }
.footer-col h4 { font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 14px; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col ul li a { font-size: 13px; color: var(--text-muted); }
.footer-col ul li a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid var(--border);
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  font-size: 12px;
  color: var(--text-muted);
}
.footer-bottom a { color: var(--text-muted); }
.footer-bottom a:hover { color: var(--accent); }

/* === 侧边浮动 === */
.float-side {
  position: fixed;
  right: 20px;
  bottom: 100px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 800;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--card-bg);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}
.float-btn:hover { background: var(--secondary); border-color: var(--secondary); color: #fff; }

/* === 直播徽章 === */
.live-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--secondary);
  color: #fff;
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 3px;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.live-dot {
  width: 6px; height: 6px;
  background: #fff;
  border-radius: 50%;
  animation: pulse 1.2s infinite;
}
@keyframes pulse { 0%,100%{opacity:1;} 50%{opacity:0.3;} }

/* === AI赋能卡片 === */
.ai-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.ai-card {
  background: linear-gradient(135deg, #0d2137 0%, #162035 100%);
  border: 1px solid rgba(30,144,255,0.25);
  border-radius: var(--radius);
  padding: 28px 22px;
  text-align: center;
  transition: all 0.3s;
  position: relative;
  overflow: hidden;
}
.ai-card::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(30,144,255,0.15) 0%, transparent 70%);
}
.ai-card:hover { transform: translateY(-4px); border-color: var(--accent); }
.ai-icon { font-size: 36px; margin-bottom: 14px; }
.ai-card h3 { font-size: 16px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.ai-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* === How-To 步骤 === */
.howto-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}
.step-card {
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px 18px;
  text-align: center;
  position: relative;
}
.step-num {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--secondary);
  color: #fff;
  font-size: 18px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}
.step-card h4 { font-size: 15px; font-weight: 700; color: #fff; margin-bottom: 8px; }
.step-card p { font-size: 13px; color: var(--text-muted); line-height: 1.5; }

/* === 页面内容区 === */
.page-hero {
  background: linear-gradient(135deg, #0d2137 0%, #060c16 100%);
  padding: 60px 0 40px;
  border-bottom: 1px solid var(--border);
}
.page-hero h1 { font-size: 32px; font-weight: 900; color: #fff; margin-bottom: 10px; }
.page-hero p { font-size: 15px; color: var(--text-muted); }

/* === 响应式 === */
@media (max-width: 1024px) {
  .featured-grid { grid-template-columns: 1fr 1fr; }
  .featured-main { grid-column: 1 / 3; grid-row: auto; }
  .ai-grid { grid-template-columns: repeat(2, 1fr); }
  .howto-steps { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .stat-item:nth-child(2) { border-right: none; }
}
@media (max-width: 768px) {
  .hero-slider { height: 320px; }
  .hero-content { padding: 0 24px; }
  .hero-content h1 { font-size: 24px; }
  .nav-menu { display: none; }
  .nav-menu.open { display: flex; flex-direction: column; position: absolute; top: 64px; left: 0; right: 0; background: rgba(10,15,26,0.98); padding: 16px; border-bottom: 1px solid var(--border); }
  .hamburger { display: flex; }
  .featured-grid { grid-template-columns: 1fr; }
  .featured-main { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .ai-grid { grid-template-columns: 1fr; }
  .howto-steps { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .stats-bar { grid-template-columns: repeat(2, 1fr); }
  .video-grid { grid-template-columns: repeat(2, 1fr); }
  .search-bar-inner { flex-direction: column; align-items: stretch; }
  .search-form { max-width: 100%; }
}
@media (max-width: 480px) {
  .video-grid { grid-template-columns: 1fr; }
  .stats-bar { grid-template-columns: 1fr 1fr; }
  .hero-btns { flex-direction: column; }
  .howto-steps { grid-template-columns: 1fr; }
}

/* === 懒加载占位 === */
img[data-src] { background: #111c2d; min-height: 80px; }

/* === 滚动条美化 === */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: #0a0f1a; }
::-webkit-scrollbar-thumb { background: #1e3a5f; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: var(--accent); }

/* === 通用工具类 === */
.text-center { text-align: center; }
.mt-20 { margin-top: 20px; }
.mt-40 { margin-top: 40px; }
.mb-20 { margin-bottom: 20px; }
.bg-dark { background: var(--dark); }
.highlight { color: var(--secondary); }
.tag-badge {
  display: inline-block;
  background: rgba(30,144,255,0.12);
  color: var(--accent);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: 10px;
  border: 1px solid rgba(30,144,255,0.2);
  margin: 2px;
}
