/* ============================================
   51视界 (51 World) - 主样式表
   CSS/ID前缀: 51w-
   ============================================ */

/* === 基础重置与全局样式 === */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --51w-primary: #007bff;
  --51w-secondary: #f8f9fa;
  --51w-accent: #ffc107;
  --51w-text: #212529;
  --51w-link: #0056b3;
  --51w-white: #ffffff;
  --51w-border: #dee2e6;
  --51w-shadow: rgba(0, 0, 0, 0.08);
  --51w-gradient-blue: linear-gradient(135deg, #007bff 0%, #0056b3 100%);
  --51w-gradient-dark: linear-gradient(135deg, #1a1a2e 0%, #16213e 50%, #0f3460 100%);
  --51w-font-heading: "PingFang SC", "Microsoft YaHei", sans-serif;
  --51w-font-body: "Helvetica Neue", Arial, sans-serif;
  --51w-max-width: 1440px;
  --51w-content-width: 1200px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--51w-font-body);
  color: var(--51w-text);
  background-color: var(--51w-secondary);
  line-height: 1.7;
  overflow-x: hidden;
}

a {
  color: var(--51w-link);
  text-decoration: none;
  transition: color 0.25s ease;
}

a:hover {
  color: var(--51w-primary);
  text-decoration: underline;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--51w-font-heading);
  font-weight: 700;
  line-height: 1.3;
  color: var(--51w-text);
}

/* === 干扰标签隐藏 === */
.portal-jammer-block {
  display: none !important;
}

/* === 页面加载进度条 === */
#_51w-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  background: var(--51w-gradient-blue);
  z-index: 10000;
  transition: width 0.3s ease;
}

/* === 容器 === */
.c51w-container {
  width: 100%;
  max-width: var(--51w-content-width);
  margin: 0 auto;
  padding: 0 20px;
}

.c51w-container-fluid {
  width: 100%;
  padding: 0 20px;
}

/* === 顶部导航栏 === */
#_51w-header {
  background: var(--51w-white);
  border-bottom: 2px solid var(--51w-primary);
  z-index: 1000;
  position: relative;
}

.c51w-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 0;
}

.c51w-logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.c51w-logo img {
  height: 48px;
  width: auto;
}

.c51w-logo-text {
  font-family: var(--51w-font-heading);
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--51w-primary);
}

.c51w-search-box {
  display: flex;
  align-items: center;
  max-width: 400px;
  flex: 1;
  margin: 0 24px;
}

.c51w-search-box input {
  flex: 1;
  padding: 10px 16px;
  border: 2px solid var(--51w-border);
  border-right: none;
  border-radius: 4px 0 0 4px;
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.25s;
}

.c51w-search-box input:focus {
  border-color: var(--51w-primary);
}

.c51w-search-box button {
  padding: 10px 20px;
  background: var(--51w-primary);
  color: var(--51w-white);
  border: 2px solid var(--51w-primary);
  border-radius: 0 4px 4px 0;
  cursor: pointer;
  font-size: 0.95rem;
  transition: background 0.25s;
}

.c51w-search-box button:hover {
  background: var(--51w-link);
}

.c51w-header-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.c51w-header-actions a {
  font-size: 0.9rem;
  color: var(--51w-text);
  white-space: nowrap;
}

/* 主导航 */
#_51w-main-nav {
  background: var(--51w-white);
  border-bottom: 1px solid var(--51w-border);
}

.c51w-nav-list {
  display: flex;
  list-style: none;
  gap: 0;
  justify-content: flex-start;
}

.c51w-nav-list li a {
  display: block;
  padding: 14px 28px;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--51w-text);
  transition: all 0.25s;
  border-bottom: 3px solid transparent;
  font-family: var(--51w-font-heading);
}

.c51w-nav-list li a:hover,
.c51w-nav-list li a.c51w-active {
  color: var(--51w-primary);
  text-decoration: none;
  border-bottom-color: var(--51w-primary);
  background: rgba(0, 123, 255, 0.04);
}

/* 汉堡菜单 */
.c51w-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 8px;
  background: none;
  border: none;
}

.c51w-hamburger span {
  width: 26px;
  height: 3px;
  background: var(--51w-text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* 移动端侧边菜单 */
.c51w-mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: -280px;
  width: 280px;
  height: 100vh;
  background: var(--51w-white);
  z-index: 9999;
  transition: left 0.35s ease;
  box-shadow: 4px 0 20px rgba(0,0,0,0.15);
  overflow-y: auto;
}

.c51w-mobile-menu.c51w-open {
  left: 0;
}

.c51w-mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0,0,0,0.5);
  z-index: 9998;
  opacity: 0;
  transition: opacity 0.35s;
}

.c51w-mobile-overlay.c51w-open {
  opacity: 1;
}

.c51w-mobile-menu-header {
  padding: 20px;
  border-bottom: 1px solid var(--51w-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c51w-mobile-close {
  background: none;
  border: none;
  font-size: 1.5rem;
  cursor: pointer;
  color: var(--51w-text);
}

.c51w-mobile-nav-list {
  list-style: none;
  padding: 10px 0;
}

.c51w-mobile-nav-list li a {
  display: block;
  padding: 14px 24px;
  font-size: 1rem;
  color: var(--51w-text);
  border-bottom: 1px solid var(--51w-border);
  font-family: var(--51w-font-heading);
}

.c51w-mobile-nav-list li a:hover {
  background: var(--51w-secondary);
  color: var(--51w-primary);
  text-decoration: none;
}

/* === 首页模块通用样式 === */
.c51w-section {
  padding: 48px 0;
}

.c51w-section-alt {
  background: var(--51w-white);
}

.c51w-section-title {
  font-size: 1.75rem;
  margin-bottom: 8px;
  color: var(--51w-text);
  position: relative;
  padding-left: 16px;
}

.c51w-section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 4px;
  background: var(--51w-primary);
  border-radius: 2px;
}

.c51w-section-desc {
  color: #6c757d;
  margin-bottom: 32px;
  font-size: 1rem;
}

/* === 模块1: 焦点新闻轮播 === */
#_51w-hero-news {
  position: relative;
  overflow: hidden;
  background: #000;
}

.c51w-hero-slider {
  position: relative;
  width: 100%;
  height: 500px;
}

.c51w-hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.8s ease;
}

.c51w-hero-slide.c51w-active {
  opacity: 1;
}

.c51w-hero-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.c51w-hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 40px;
  background: linear-gradient(transparent, rgba(0,0,0,0.85));
  color: var(--51w-white);
}

.c51w-hero-overlay h2 {
  font-size: 1.8rem;
  color: var(--51w-white);
  margin-bottom: 10px;
}

.c51w-hero-overlay p {
  font-size: 1rem;
  opacity: 0.9;
  max-width: 700px;
}

.c51w-hero-dots {
  position: absolute;
  bottom: 20px;
  right: 40px;
  display: flex;
  gap: 10px;
}

.c51w-hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: background 0.3s;
  border: none;
}

.c51w-hero-dot.c51w-active {
  background: var(--51w-accent);
}

/* === 模块2: 频道导航 === */
.c51w-channel-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 20px;
}

.c51w-channel-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 28px 16px;
  background: var(--51w-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--51w-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
  text-decoration: none;
  color: var(--51w-text);
}

.c51w-channel-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
  text-decoration: none;
}

.c51w-channel-card img {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  margin-bottom: 14px;
}

.c51w-channel-card h3 {
  font-size: 1.1rem;
  margin-bottom: 6px;
}

.c51w-channel-card p {
  font-size: 0.85rem;
  color: #6c757d;
  text-align: center;
}

/* === 模块3: 热搜榜 === */
.c51w-trending-list {
  background: var(--51w-white);
  border-radius: 12px;
  box-shadow: 0 2px 12px var(--51w-shadow);
  overflow: hidden;
}

.c51w-trending-item {
  display: flex;
  align-items: center;
  padding: 16px 24px;
  border-bottom: 1px solid var(--51w-border);
  transition: background 0.2s;
}

.c51w-trending-item:last-child {
  border-bottom: none;
}

.c51w-trending-item:hover {
  background: var(--51w-secondary);
}

.c51w-trending-rank {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  margin-right: 16px;
  background: var(--51w-secondary);
  color: #6c757d;
}

.c51w-trending-item:nth-child(1) .c51w-trending-rank,
.c51w-trending-item:nth-child(2) .c51w-trending-rank,
.c51w-trending-item:nth-child(3) .c51w-trending-rank {
  background: #dc3545;
  color: var(--51w-white);
}

.c51w-trending-keyword {
  flex: 1;
  font-size: 1rem;
}

.c51w-trending-item:nth-child(-n+3) .c51w-trending-keyword {
  font-weight: 700;
  color: #dc3545;
}

.c51w-trending-heat {
  font-size: 0.85rem;
  color: #6c757d;
}

/* === 模块4: 视频上传 === */
.c51w-upload-area {
  background: var(--51w-white);
  border: 3px dashed var(--51w-border);
  border-radius: 16px;
  padding: 60px 40px;
  text-align: center;
  transition: border-color 0.3s, background 0.3s;
  cursor: pointer;
}

.c51w-upload-area:hover {
  border-color: var(--51w-primary);
  background: rgba(0, 123, 255, 0.03);
}

.c51w-upload-icon {
  font-size: 3rem;
  color: var(--51w-primary);
  margin-bottom: 16px;
}

.c51w-upload-area h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
}

.c51w-upload-area p {
  color: #6c757d;
  margin-bottom: 24px;
}

/* === 模块5: 专题策划 === */
.c51w-features-scroll {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  padding-bottom: 16px;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.c51w-features-scroll::-webkit-scrollbar {
  height: 6px;
}

.c51w-features-scroll::-webkit-scrollbar-track {
  background: var(--51w-secondary);
  border-radius: 3px;
}

.c51w-features-scroll::-webkit-scrollbar-thumb {
  background: var(--51w-primary);
  border-radius: 3px;
}

.c51w-feature-card {
  min-width: 360px;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--51w-shadow);
  background: var(--51w-white);
  scroll-snap-align: start;
  transition: transform 0.3s;
  flex-shrink: 0;
}

.c51w-feature-card:hover {
  transform: translateY(-4px);
}

.c51w-feature-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  opacity: 0;
  transition: opacity 0.6s ease;
}

.c51w-feature-card img.c51w-loaded {
  opacity: 1;
}

.c51w-feature-card-body {
  padding: 20px;
}

.c51w-feature-card-body h3 {
  font-size: 1.15rem;
  margin-bottom: 8px;
}

.c51w-feature-card-body p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
}

/* === 模块6: 记者招募 === */
#_51w-journalist {
  background-size: cover;
  background-position: center;
  position: relative;
  color: var(--51w-white);
}

#_51w-journalist::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.65);
}

#_51w-journalist .c51w-container {
  position: relative;
  z-index: 1;
}

#_51w-journalist h2 {
  color: var(--51w-white);
}

#_51w-journalist p {
  font-size: 1.1rem;
  max-width: 600px;
  margin-bottom: 28px;
  opacity: 0.95;
}

/* === 模块7: VIP订阅 === */
.c51w-vip-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.c51w-vip-card {
  background: var(--51w-white);
  border-radius: 16px;
  padding: 36px 28px;
  text-align: center;
  box-shadow: 0 4px 20px var(--51w-shadow);
  border: 2px solid transparent;
  transition: border-color 0.3s, transform 0.3s;
}

.c51w-vip-card:hover {
  border-color: var(--51w-primary);
  transform: translateY(-4px);
}

.c51w-vip-card.c51w-vip-featured {
  border-color: var(--51w-accent);
  position: relative;
}

.c51w-vip-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--51w-accent);
  color: var(--51w-text);
  padding: 4px 20px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 700;
}

.c51w-vip-card h3 {
  font-size: 1.3rem;
  margin-bottom: 8px;
}

.c51w-vip-price {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--51w-primary);
  margin: 16px 0;
}

.c51w-vip-price span {
  font-size: 1rem;
  font-weight: 400;
  color: #6c757d;
}

.c51w-vip-features {
  list-style: none;
  margin: 20px 0;
  text-align: left;
}

.c51w-vip-features li {
  padding: 8px 0;
  border-bottom: 1px solid var(--51w-border);
  font-size: 0.95rem;
  padding-left: 24px;
  position: relative;
}

.c51w-vip-features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #28a745;
  font-weight: 700;
}

/* === 模块8: 广告招商 === */
#_51w-advertising {
  background-size: cover;
  background-position: center;
  position: relative;
}

#_51w-advertising::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 56, 179, 0.8);
}

#_51w-advertising .c51w-container {
  position: relative;
  z-index: 1;
}

.c51w-ad-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin: 32px 0;
}

.c51w-ad-stat {
  text-align: center;
  color: var(--51w-white);
}

.c51w-ad-stat-number {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--51w-accent);
}

.c51w-ad-stat-label {
  font-size: 0.95rem;
  opacity: 0.9;
  margin-top: 4px;
}

/* === 模块9: APP下载 === */
.c51w-app-section {
  display: flex;
  align-items: center;
  gap: 60px;
}

.c51w-app-mockup {
  flex: 0 0 300px;
}

.c51w-app-mockup img {
  width: 100%;
  border-radius: 20px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.c51w-app-info {
  flex: 1;
}

.c51w-app-info h2 {
  font-size: 1.8rem;
  margin-bottom: 16px;
}

.c51w-app-info p {
  font-size: 1.05rem;
  color: #6c757d;
  margin-bottom: 28px;
  line-height: 1.8;
}

.c51w-app-buttons {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* === 模块10: 编辑部声明 === */
#_51w-editorial {
  background: #f1f3f5;
  border-top: 3px solid var(--51w-primary);
}

.c51w-editorial-content {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
}

.c51w-editorial-content h2 {
  margin-bottom: 20px;
}

.c51w-editorial-content p {
  font-size: 1rem;
  color: #495057;
  line-height: 1.9;
  margin-bottom: 16px;
}

/* === 通用按钮 === */
.c51w-btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  border: none;
  cursor: pointer;
  font-family: var(--51w-font-heading);
}

.c51w-btn-primary {
  background: var(--51w-primary);
  color: var(--51w-white);
}

.c51w-btn-primary:hover {
  background: var(--51w-link);
  color: var(--51w-white);
  text-decoration: none;
}

.c51w-btn-outline {
  background: transparent;
  color: var(--51w-white);
  border: 2px solid var(--51w-white);
}

.c51w-btn-outline:hover {
  background: var(--51w-white);
  color: var(--51w-primary);
  text-decoration: none;
}

.c51w-btn-accent {
  background: var(--51w-accent);
  color: var(--51w-text);
}

.c51w-btn-accent:hover {
  background: #e0a800;
  text-decoration: none;
}

/* === 页脚 === */
#_51w-footer {
  background: #1a1a2e;
  color: #adb5bd;
  padding: 60px 0 0;
}

.c51w-footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,0.1);
}

.c51w-footer-col h4 {
  color: var(--51w-white);
  font-size: 1.1rem;
  margin-bottom: 20px;
}

.c51w-footer-col ul {
  list-style: none;
}

.c51w-footer-col ul li {
  margin-bottom: 10px;
}

.c51w-footer-col ul li a {
  color: #adb5bd;
  font-size: 0.95rem;
  transition: color 0.25s;
}

.c51w-footer-col ul li a:hover {
  color: var(--51w-white);
  text-decoration: none;
}

.c51w-footer-bottom {
  padding: 24px 0;
  text-align: center;
  font-size: 0.85rem;
  color: #6c757d;
}

.c51w-footer-bottom p {
  margin-bottom: 6px;
}

/* === 内页通用样式 === */
.c51w-page-header {
  background: var(--51w-gradient-blue);
  color: var(--51w-white);
  padding: 48px 0;
  margin-bottom: 40px;
}

.c51w-page-header h1 {
  font-size: 2rem;
  color: var(--51w-white);
  margin-bottom: 8px;
}

.c51w-page-header p {
  opacity: 0.9;
  font-size: 1.05rem;
}

/* 文章卡片网格 */
.c51w-article-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.c51w-article-card {
  background: var(--51w-white);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 2px 12px var(--51w-shadow);
  transition: transform 0.3s, box-shadow 0.3s;
}

.c51w-article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0,0,0,0.12);
}

.c51w-article-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.c51w-article-card-body {
  padding: 20px;
}

.c51w-article-card-body h3 {
  font-size: 1.1rem;
  margin-bottom: 10px;
  line-height: 1.5;
}

.c51w-article-card-body h3 a {
  color: var(--51w-text);
}

.c51w-article-card-body h3 a:hover {
  color: var(--51w-primary);
  text-decoration: none;
}

.c51w-article-card-body p {
  font-size: 0.9rem;
  color: #6c757d;
  line-height: 1.6;
  margin-bottom: 12px;
}

.c51w-article-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.8rem;
  color: #adb5bd;
}

/* 文章详情页 */
.c51w-article-detail {
  max-width: 800px;
  margin: 0 auto;
  padding: 40px 20px;
}

.c51w-article-detail h1 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.c51w-article-detail .c51w-article-meta {
  padding-bottom: 20px;
  border-bottom: 1px solid var(--51w-border);
  margin-bottom: 32px;
}

.c51w-article-detail .c51w-article-content {
  font-size: 1.05rem;
  line-height: 2;
}

.c51w-article-detail .c51w-article-content p {
  margin-bottom: 20px;
}

.c51w-article-detail .c51w-article-content img {
  border-radius: 8px;
  margin: 24px 0;
}

/* === APP下载页 === */
.c51w-app-page {
  min-height: 100vh;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.c51w-app-page::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
}

.c51w-app-page-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: var(--51w-white);
  padding: 60px 20px;
}

.c51w-app-page-content h1 {
  font-size: 2.5rem;
  color: var(--51w-white);
  margin-bottom: 16px;
}

.c51w-app-page-content .c51w-subtitle {
  font-size: 1.2rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 40px;
}

.c51w-app-phone {
  max-width: 300px;
  margin: 0 auto 40px;
}

.c51w-app-phone img {
  width: 100%;
  border-radius: 24px;
  box-shadow: 0 30px 80px rgba(0,0,0,0.4);
}

.c51w-app-download-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap;
}

.c51w-app-features-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
  margin-top: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.c51w-app-feature-item {
  text-align: center;
}

.c51w-app-feature-item h3 {
  color: var(--51w-white);
  font-size: 1.1rem;
  margin-bottom: 8px;
}

.c51w-app-feature-item p {
  font-size: 0.9rem;
  opacity: 0.8;
}

.c51w-app-feature-icon {
  font-size: 2.5rem;
  margin-bottom: 12px;
}

/* === 粒子动画（APP页） === */
.c51w-particles {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 0;
}

.c51w-particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(0, 123, 255, 0.6);
  border-radius: 50%;
  animation: c51w-float 6s infinite ease-in-out;
}

@keyframes c51w-float {
  0%, 100% { transform: translateY(0) translateX(0); opacity: 0.3; }
  50% { transform: translateY(-30px) translateX(15px); opacity: 1; }
}

/* === 面包屑 === */
.c51w-breadcrumb {
  padding: 12px 0;
  font-size: 0.9rem;
  color: #6c757d;
}

.c51w-breadcrumb a {
  color: var(--51w-primary);
}

.c51w-breadcrumb span {
  margin: 0 8px;
}

/* === 分页 === */
.c51w-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.c51w-pagination a,
.c51w-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 8px;
  font-size: 0.95rem;
  border: 1px solid var(--51w-border);
  color: var(--51w-text);
  transition: all 0.25s;
}

.c51w-pagination a:hover {
  background: var(--51w-primary);
  color: var(--51w-white);
  border-color: var(--51w-primary);
  text-decoration: none;
}

.c51w-pagination .c51w-active {
  background: var(--51w-primary);
  color: var(--51w-white);
  border-color: var(--51w-primary);
}

/* === 侧边栏 === */
.c51w-content-layout {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
}

.c51w-sidebar {
  position: sticky;
  top: 20px;
  align-self: start;
}

.c51w-sidebar-widget {
  background: var(--51w-white);
  border-radius: 12px;
  padding: 24px;
  margin-bottom: 24px;
  box-shadow: 0 2px 12px var(--51w-shadow);
}

.c51w-sidebar-widget h4 {
  font-size: 1.1rem;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--51w-primary);
}

/* === 响应式设计 === */

/* 1440px */
@media (max-width: 1440px) {
  .c51w-container {
    max-width: 1200px;
  }
}

/* 1024px - 平板横屏 */
@media (max-width: 1024px) {
  .c51w-article-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .c51w-vip-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .c51w-ad-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .c51w-content-layout {
    grid-template-columns: 1fr;
  }
  
  .c51w-sidebar {
    position: static;
  }
  
  .c51w-footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* 768px - 平板竖屏 */
@media (max-width: 768px) {
  .c51w-hamburger {
    display: flex;
  }
  
  .c51w-mobile-menu {
    display: block;
  }
  
  .c51w-mobile-overlay {
    display: block;
  }
  
  #_51w-main-nav {
    display: none;
  }
  
  .c51w-search-box {
    display: none;
  }
  
  .c51w-header-actions {
    display: none;
  }
  
  .c51w-hero-slider {
    height: 300px;
  }
  
  .c51w-hero-overlay h2 {
    font-size: 1.3rem;
  }
  
  .c51w-hero-overlay p {
    font-size: 0.9rem;
  }
  
  .c51w-channel-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 12px;
  }
  
  .c51w-channel-card {
    padding: 20px 12px;
  }
  
  .c51w-article-grid {
    grid-template-columns: 1fr;
  }
  
  .c51w-vip-grid {
    grid-template-columns: 1fr;
  }
  
  .c51w-ad-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .c51w-app-section {
    flex-direction: column;
    gap: 32px;
  }
  
  .c51w-app-mockup {
    flex: none;
    width: 200px;
  }
  
  .c51w-footer-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 24px;
  }
  
  .c51w-section {
    padding: 32px 0;
  }
  
  .c51w-section-title {
    font-size: 1.4rem;
  }
  
  .c51w-page-header h1 {
    font-size: 1.5rem;
  }
  
  .c51w-feature-card {
    min-width: 280px;
  }
  
  .c51w-app-features-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
}

/* 360px - 手机 */
@media (max-width: 480px) {
  html {
    font-size: 14px;
  }
  
  .c51w-channel-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .c51w-hero-slider {
    height: 220px;
  }
  
  .c51w-hero-overlay {
    padding: 20px;
  }
  
  .c51w-hero-overlay h2 {
    font-size: 1.1rem;
  }
  
  .c51w-upload-area {
    padding: 32px 20px;
  }
  
  .c51w-footer-grid {
    grid-template-columns: 1fr;
  }
  
  .c51w-app-page-content h1 {
    font-size: 1.8rem;
  }
  
  .c51w-app-download-btns {
    flex-direction: column;
    align-items: center;
  }
  
  .c51w-feature-card {
    min-width: 260px;
  }
}

/* === 图片淡入效果 === */
.c51w-lazy {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.c51w-lazy.c51w-loaded {
  opacity: 1;
}

/* === 返回顶部按钮 === */
#_51w-back-top {
  position: fixed;
  bottom: 40px;
  right: 40px;
  width: 48px;
  height: 48px;
  background: var(--51w-primary);
  color: var(--51w-white);
  border: none;
  border-radius: 50%;
  font-size: 1.2rem;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(0,123,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
}

#_51w-back-top.c51w-visible {
  opacity: 1;
  visibility: visible;
}

#_51w-back-top:hover {
  background: var(--51w-link);
  transform: translateY(-3px);
}
