/* ============================================
   全局样式 - 黑蓝主题内容发布网站
   ============================================ */

/* CSS 变量定义 */
:root {
  --primary-color: #1e90ff;
  --primary-dark: #0066cc;
  --primary-light: #4da6ff;
  --bg-dark: #0d1117;
  --bg-card: #161b22;
  --bg-sidebar: #0d1117;
  --text-primary: #e6edf3;
  --text-secondary: #8b949e;
  --text-muted: #6e7681;
  --border-color: #30363d;
  --hover-bg: #21262d;
  --success-color: #3fb950;
  --error-color: #f85149;
  --shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
  --radius: 8px;
  --radius-lg: 8px;
}

/* 重置样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Noto Sans', Helvetica, Arial, sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-primary);
  line-height: 1.6;
  min-height: 100vh;
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--primary-light);
}

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

/* ============================================
   主布局 - 左中右三栏
   ============================================ */
.main-layout {
  display: flex;
  min-height: 100vh;
}

/* 左侧导航栏 */
.sidebar-left {
  width: 240px;
  background-color: var(--bg-sidebar);
  border-right: 1px solid var(--border-color);
  position: fixed;
  left: 0;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  z-index: 100;
}

.logo-section {
  padding: 10px 20px;
  border-bottom: 1px solid var(--border-color);
}

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

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: bold;
  color: white;
}

.logo-text {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
}

.nav-menu {
  flex: 1;
  padding: 16px 0;
  overflow-y: auto;
}

.nav-menu ul {
  list-style: none;
}

.nav-item {
  margin: 4px 12px;
}

.nav-item a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 6px 16px;
  color: var(--text-secondary);
  border-radius: var(--radius);
  transition: all 0.2s ease;
}

.nav-item a:hover,
.nav-item a.active {
  background-color: var(--hover-bg);
  color: var(--text-primary);
}

.nav-item a.active {
  background-color: rgba(30, 144, 255, 0.15);
  color: var(--primary-color);
  border-left: 3px solid var(--primary-color);
}

.nav-icon {
  font-size: 18px;
  width: 24px;
  text-align: center;
}

/* 二级菜单样式 */
.nav-item.has-submenu > a {
  justify-content: flex-start;
}

.submenu-arrow {
  margin-left: auto;
  font-size: 12px;
  transition: transform 0.3s ease;
}

.nav-item.has-submenu.open .submenu-arrow {
  transform: rotate(180deg);
}

.submenu {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  background-color: rgba(0, 0, 0, 0.2);
  border-radius: var(--radius);
  margin-top: 4px;
}

.nav-item.has-submenu.open .submenu {
  max-height: 300px;
}

.submenu li a {
  display: block;
  padding: 10px 16px 10px 52px;
  color: var(--text-secondary);
  font-size: 13px;
  transition: all 0.2s ease;
}

.submenu li a:hover {
  color: var(--primary-color);
  background-color: var(--hover-bg);
}

/* ============================================
   全站页脚组件 (Site Footer Component)
   独立组件，可在全站任意页面引用
   ============================================ */
.site-footer {
  margin-top: 48px;
  padding: 32px 0 16px;
  border-top: 1px solid var(--border-color);
  text-align: center;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.footer-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}

.footer-links a {
  color: var(--text-secondary);
  font-size: 14px;
  transition: color 0.2s ease;
}

.footer-links a:hover {
  color: var(--primary-color);
}

.footer-divider {
  color: var(--border-color);
  font-size: 12px;
  user-select: none;
}

.footer-copyright {
  color: var(--text-muted);
  font-size: 13px;
}

/* 中间内容区域 */
.content-main {
  flex: 1;
  margin-left: 240px;
  margin-right: 300px;
  padding: 24px;
  min-height: 100vh;
}

/* 内容列表 */
.content-header {
  margin-bottom: 24px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.page-title {
  font-size: 28px;
  font-weight: 300;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-subtitle {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 300;
}

/* 内容卡片 */
.content-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 850px;
  margin-left: auto;
  margin-right: auto;
}

.content-card {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  overflow: hidden;
  transition: all 0.3s ease;
  width: 100%;
}

.content-card:hover {
  box-shadow: var(--shadow);
  transform: scale(1.015);
}

/* 卡片图片容器 - 作为遮罩定位的父级 */
.card-image {
  position: relative;
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* 卡片图片容器 - 作为遮罩定位的父级 */
.swiper-image {
  position: relative;
  display: block;
  width: 100%;
  height: 250px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
}

.swiper-image img {
  width: 100%;
  height: 100%;
  transition: transform 0.3s ease;
}



/* 图片上的遮罩层 - 文字叠加效果 */
.card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    180deg,
    rgba(0, 0, 0, 0.1) 0%,
    rgba(0, 0, 0, 0.55) 100%
  );
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: none;
}

/* 遮罩标题 */
.card-overlay-title {
  width: 94%;
  font-size: 1.5rem;
  font-weight: 300;
  color: #ffffff;
  line-height: 1.5;
  text-align: center;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.card-overlay-title > em {
  font-weight: 400;
  font-style: normal;
}

/* 遮罩内的 meta 信息 */
.card-overlay-meta {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  font-weight: 300;
}

.card-overlay-meta .category-tag {
  background-color: rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(4px);
}

.card-overlay-meta .meta-item {
  color: rgba(255, 255, 255, 0.85);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}


/* 分页 */
.pg {
  margin: 2rem 0;
  display: flex;
  flex-direction: column;
}

.pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
}

.pagination a {
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-color);
  border-radius: 0.5rem;
  background-color: var(--bg-card);
  cursor: pointer;
  transition: background-color 0.2s;
  text-decoration: none;
  min-width: 40px;
  height: 40px;
  color: var(--text-secondary);
  font-size: 14px;
}

.pagination a:hover:not(.active) {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

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

.pagination a:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.pg .number {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 1.8rem;
}

.pg .number .xvp {
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 8px;
  padding-right: 1rem;
  border: 2px solid var(--primary-yellow);
  background-color: rgba(30, 144, 255, 0.15);;
  font-size: 1rem;
  color: #ccc;
}

.pg .number .xvp .nmmx {
  border: none;
  padding: .4rem .8rem;
  width: 5rem;
  outline: none;
  line-height: 1rem;
  font-size: 1.2rem;
  color: var(--primary-yellow);
  background-color: transparent;
}

.load-more {
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-btn {
  min-width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  transition: all 0.2s ease;
  padding: 12px 32px;
}

.page-btn:hover {
  border-color: var(--primary-color);
  color: var(--primary-color);
}

.page-btn.active {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.page-btn.disabled {
  opacity: 0.5;
  cursor: not-allowed;
}


.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  backdrop-filter: blur(4px);
}

.alert-overlay.active {
  opacity: 1;
  visibility: visible;
}

/* Generic Modal Container */
.alert-container {
  background-color: var(--bg-white);
  border-radius: 16px;
  width: 90%;
  max-width: 400px;
  padding: 2rem;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  transform: translateY(20px);
  transition: all 0.3s ease;
  position: relative;
}

.alert-overlay.active .alert-container {
  transform: translateY(0);
}

.alert-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--text-secondary);
  transition: color 0.3s ease;
}

.alert-close:hover {
  color: var(--text-primary);
}

/* Alert/Confirm Dialog Styles */
.alert-modal {
  text-align: center;
  max-width: 360px;
  background-color: var(--bg-card);
}

.alert-icon {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem;
  font-size: 2rem;
}

.alert-icon.success {
  background-color: #e8f5e9;
  color: #2ecc71;
}

.alert-icon.warning {
  background-color: #fff3e0;
  color: #ff9800;
}

.alert-icon.error {
  background-color: #ffebee;
  color: #f44336;
}

.alert-icon.confirm {
  background-color: #e3f2fd;
  color: #2196f3;
}

.alert-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  color: var(--text-primary);
}

.alert-message {
  color: var(--text-secondary);
  margin-bottom: 2rem;
  line-height: 1.6;
}

.alert-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.alert-btn {
  padding: 0.75rem 1.5rem;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  flex: 1;
}

.alert-btn.primary {
  background-color: var(--primary-yellow);
  color: #ffffff;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.alert-btn.secondary {
  background-color: var(--bg-light);
  color: var(--text-primary);
  border: 1px solid var(--border-color);
}

.alert-btn:hover {
  transform: translateY(-2px);
}

/* 右侧边栏 */
.sidebar-right {
  width: 300px;
  position: fixed;
  right: 0;
  top: 0;
  height: 100vh;
  background-color: var(--bg-sidebar);
  border-left: 1px solid var(--border-color);
  padding: 24px 16px;
  overflow-y: auto;
}

/* 用户登录模块 */
.user-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
  margin-bottom: 24px;
  text-align: center;
}

.user-avatar {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  margin: 0 auto 16px;
  border: 3px solid var(--primary-color);
  overflow: hidden;
}

.user-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.user-name {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.user-bio {
  font-size: 13px;
  color: var(--text-secondary);
  margin-bottom: 16px;
}

.user-stats {
  display: flex;
  justify-content: center;
  gap: 24px;
  padding: 16px 0;
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 16px;
}

.stat-item {
  text-align: center;
}

.stat-value {
  font-size: 20px;
  font-weight: 700;
  color: var(--primary-color);
}

.stat-label {
  font-size: 12px;
  color: var(--text-muted);
}

.login-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.logout-btn {
  width: 100%;
  padding: 12px 24px;
  background: linear-gradient(135deg, #D03A54, #D03A54);
  border: 1px solid var(--border-color);
  color: white;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.logout-btn:hover {
  background: linear-gradient(135deg, #F54868, #F54868);
}

/* 推荐模块 */
.recommend-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 20px;
}

.section-title {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  gap: 8px;
}

.section-title i {
  color: var(--primary-color);
}

.recommend-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.recommend-item {
  display: flex;
  gap: 12px;
  margin-bottom: 1rem;
}

.recommend-thumb {
  width: 80px;
  height: 60px;
  border-radius: var(--radius);
  overflow: hidden;
  flex-shrink: 0;
}

.recommend-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.recommend-info {
  flex: 1;
  min-width: 0;
}

.recommend-title {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.recommend-title a {
  color: inherit;
}

.recommend-title a:hover {
  color: var(--primary-color);
}

.recommend-meta {
  font-size: 12px;
  color: var(--text-muted);
}

.user-interaction {
  margin: 1.2rem 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.action-btn {
  margin: 0 0.5rem;
  padding: 12px 24px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: #fff;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.action-btn:hover {
  background-color: var(--primary-color);
  color: white;
}

/* ============================================
   通用页面内容样式
   用于关于我们、联系我们、用户协议、私隐政策等页面
   ============================================ */
.page-content {
  max-width: 850px;
  margin: 0 auto;
  padding: 0 0 40px;
}

.page-content .page-title {
  font-size: 28px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.page-content .update-date {
  color: var(--text-muted);
  font-size: 14px;
  margin-bottom: 32px;
}

.content-block {
  margin-bottom: 32px;
}

.content-block h2 {
  font-size: 20px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--border-color);
}

.content-block h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 12px;
}

.content-block p {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 12px;
}

/* 特色列表 */
.feature-list {
  list-style: none;
  padding: 0;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 0;
  color: var(--text-secondary);
}

.feature-list li i {
  color: var(--primary-color);
  font-size: 16px;
}

/* 法律文档列表 */
.legal-list {
  padding-left: 20px;
  margin: 12px 0;
}

.legal-list li {
  color: var(--text-secondary);
  line-height: 1.8;
  margin-bottom: 8px;
}

/* 时间线 */
.timeline {
  position: relative;
  padding-left: 24px;
}

.timeline::before {
  content: '';
  position: absolute;
  left: 0;
  top: 8px;
  bottom: 8px;
  width: 2px;
  background-color: var(--border-color);
}

.timeline-item {
  position: relative;
  padding: 12px 0;
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -28px;
  top: 18px;
  width: 10px;
  height: 10px;
  background-color: var(--primary-color);
  border-radius: 50%;
}

.timeline-date {
  font-weight: 600;
  color: var(--primary-color);
  margin-bottom: 4px;
}

.timeline-content {
  color: var(--text-secondary);
}

/* 联系信息 */
.contact-info p {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.contact-info i {
  color: var(--primary-color);
  width: 20px;
}

/* 联系卡片 */
.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 20px;
  margin: 24px 0;
}

.contact-card {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
  text-align: center;
  transition: all 0.2s ease;
}

.contact-card:hover {
  border-color: var(--primary-color);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 56px;
  height: 56px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px;
}

.contact-card-icon i {
  font-size: 24px;
  color: white;
}

.contact-card h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-card p {
  color: var(--text-secondary);
  margin-bottom: 4px;
}

.contact-card-desc {
  font-size: 12px;
  color: var(--text-muted) !important;
}

/* 高亮文本 */
.highlight-text {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background-color: rgba(30, 144, 255, 0.1);
  color: var(--primary-color) !important;
  padding: 12px 20px;
  border-radius: var(--radius);
  font-weight: 500;
  margin: 8px 0;
}

/* 地址信息 */
.address-info {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  padding: 20px;
}

.address-info p {
  display: flex;
  align-items: center;
  gap: 10px;
}

.address-info i {
  color: var(--primary-color);
}

/* 联系表单 */
.contact-form {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  padding: 24px;
}

.contact-form .form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.contact-form .form-group {
  margin-bottom: 16px;
}

.contact-form label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
  margin-bottom: 8px;
}

.contact-form input,
.contact-form textarea {
  width: 100%;
  padding: 12px 14px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  transition: border-color 0.2s ease;
}

.contact-form input:focus,
.contact-form textarea:focus {
  outline: none;
  border-color: var(--primary-color);
}

.contact-form textarea {
  resize: vertical;
  min-height: 120px;
}

.submit-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

/* 移动端适配 */
@media (max-width: 768px) {
  .contact-form .form-row {
    grid-template-columns: 1fr;
  }
  
  .contact-cards {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 480px) {
  .contact-cards {
    grid-template-columns: 1fr;
  }
  
  .page-content .page-title {
    font-size: 24px;
  }
}

/* ============================================
   内容详情页
   ============================================ */
.back-btn,
.detail-header,
.image-gallery,
.video-section,
.colection-section,
.comment-section {
  max-width: min(800px, 100%);
  margin: 0 auto;
}

.detail-header {
  margin-bottom: 32px;
}

.detail-title {
  font-size: 1.56rem;
  font-weight: 400;
  color: var(--text-primary);
  margin-bottom: 16px;
  line-height: 1.3;
}

.detail-meta {
  display: flex;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border-color);
}

.detail-meta .category-tag {
  font-size: 14px;
}

.detail-meta .meta-item {
  font-size: 14px;
  font-weight: 200;
}

/* 图片画廊 */
.image-gallery {
  margin-bottom: 32px;
}

.gallery-item {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.gallery-item img {
  width: 100%;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 8px;
  background-color: #161B22;
  min-height: 200px;
}

.swiper-item {
  margin-bottom: 16px;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.swiper-item img {
  width: 100%;
  display: block;
  margin: 0 auto;
  cursor: pointer;
  border-radius: 8px;
  background-color: #161B22;
  min-height: 100px;
}

.preview-mask {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.75);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 99999;
}

.preview-content {
  position: relative;
  max-width: 90vw;
  max-height: 90vh;
  animation: fadeIn 0.2s ease;
}

.preview-image {
  max-height: 90vh;
  width: auto; 
  height: auto;
  max-width: 95vw;        
  object-fit: contain;    
  border-radius: 8px;
}

.close-btn {
  position: absolute;
  top: -1.2rem;
  right: -1.2rem;
  background: rgba(0, 0, 0, .7);
  border-radius: 50%;
  width: 36px;
  height: 36px;
  border: none;
  cursor: pointer;
  font-size: 14px;
  color:#fff;
}

/* 视频模块 */
.video-section {
  margin-bottom: 32px;
}

.video-container {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.video-container video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-card), var(--bg-dark));
  cursor: pointer;
}

.play-btn {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: white;
  margin-bottom: 16px;
  transition: all 0.3s ease;
}

.video-placeholder:hover .play-btn {
  transform: scale(1.1);
  box-shadow: 0 0 30px rgba(30, 144, 255, 0.5);
}

.video-title {
  color: var(--text-secondary);
  font-size: 14px;
}

.colection-section {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(5rem, 1fr));
  grid-template-rows: auto;
  gap: 16px;
  margin: 2rem auto;
}

.colection-section .ix{
  background-color: var(--bg-card);
  text-align: center;
  padding: .2rem 0;
  font-size: .9rem;
  cursor: pointer;
  border-radius: 4px;
  color: #fff;
  border: 1px solid var(--border-color);
}

.colection-section .ix:hover {
  background-color: var(--primary-color);
}

.colection-section .ix.cur {
  background-color: var(--primary-color);
  color: #fff;
}

/* 评论区 */
.comment-section {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  padding: 24px;
}

.comment-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border-color);
}

.comment-count {
  font-size: 18px;
  font-weight: 600;
  color: var(--text-primary);
}

/* 评论输入框 */
.comment-form {
  display: flex;
  gap: 16px;
  margin-bottom: 32px;
}

.comment-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
}

.comment-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.comment-input-wrapper {
  flex: 1;
}

.comment-input {
  width: 100%;
  min-height: 100px;
  padding: 16px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  resize: vertical;
  transition: border-color 0.2s ease;
}

.comment-input:focus {
  outline: none;
  border-color: var(--primary-color);
}

.comment-input::placeholder {
  color: var(--text-muted);
}

.comment-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 12px;
}

.submit-btn {
  padding: 10px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

/* 评论列表 */
.comment-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.comment-item {
  display: flex;
  gap: 16px;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 16px;
}

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

.comment-item .comment-avatar {
  width: 40px;
  height: 40px;
}

.comment-content {
  flex: 1;
}

.comment-author {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.author-name {
  font-weight: 600;
  color: var(--text-primary);
  font-size: 14px;
}

.comment-time {
  font-size: 12px;
  color: var(--text-muted);
}

.comment-text {
  color: var(--text-secondary);
  font-size: 14px;
  line-height: 1.6;
  margin-bottom: 12px;
}

.comment-footer {
  display: flex;
  gap: 16px;
}

.comment-action {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 13px;
  cursor: pointer;
  transition: color 0.2s ease;
}

.comment-action:hover {
  color: var(--primary-color);
}

/* ============================================
   移动端顶部导航栏
   ============================================ */
.mobile-header {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 60px;
  background-color: var(--bg-sidebar);
  border-bottom: 1px solid var(--border-color);
  z-index: 150;
  align-items: center;
  justify-content: space-between;
  padding: 0 12px;
}

.mobile-menu-btn {
  width: 44px;
  height: 44px;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-menu-btn:hover {
  background-color: var(--hover-bg);
  border-color: var(--primary-color);
}

.mobile-logo {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mobile-logo .top-href {
  display: flex;
  align-items: center;
  gap: 8px;
}

.mobile-logo .top-href > img {
  height: 48px;
}

.mobile-logo-icon {
  width: 36px;
  height: 36px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: bold;
  color: white;
}

.mobile-logo-text {
  font-size: 18px;
  font-weight: 700;
  color: var(--text-primary);
}


/* 搜索框 */
.search-section {
  padding: 16px 16px 0;
}

.search-box {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 12px;
  color: var(--text-muted);
  font-size: 14px;
  pointer-events: none;
}

.search-input {
  width: 100%;
  padding: 10px 12px 10px 36px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}

.search-input::placeholder {
  color: var(--text-muted);
}

.mobile-login-btn {
  width: 44px;
  height: 44px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border: none;
  border-radius: var(--radius);
  color: white;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.mobile-login-btn:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(30, 144, 255, 0.4);
}

.mobile-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: 90;
}

/* ============================================
   响应式布局
   ============================================ */

/* 平板端 */
@media (max-width: 1200px) {
  .sidebar-right {
    width: 260px;
  }
  
  .content-main {
    margin-right: 260px;
  }
}

/* 小平板/大手机 */
@media (max-width: 992px) {
  .sidebar-right {
    display: none;
  }
  
  .content-main {
    margin-right: 0;
  }
}

/* 移动端 */
@media (max-width: 768px) {
  .mobile-header {
    display: flex;
  }
  
  .sidebar-left {
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    top: 60px;
    height: calc(100vh - 60px);
  }
  
  .sidebar-left.open {
    transform: translateX(0);
  }
  
  .mobile-overlay.open {
    display: block;
    top: 60px;
  }
  
  .content-main {
    margin-left: 0;
    padding: 84px 16px 24px;
  }
  
  .page-title {
    font-size: 24px;
  }
  
  .card-image {
    height: 200px;
  }

  .swiper-image {
    height: 200px;
  }
  
  .card-overlay-title {
    font-size: 1.16rem;
    width: 100%;
  }
  
  .card-overlay-meta {
    gap: 8px;
  }
  
  /* 详情页移动端适配 */
  .detail-title {
    font-size: 1.16rem;
  }
  
  .detail-meta {
    gap: 12px;
  }
  
  .comment-form {
    flex-direction: column;
  }
  
  .comment-avatar {
    display: none;
  }
  
  .video-section .play-btn {
    width: 60px;
    height: 60px;
    font-size: 24px;
  }

  .gallery-item > img {
    width: 100%;
    max-width: none;
  }

  .swiper-item > img {
    width: 100%;
    max-width: none;
  }
}

/* 小屏手机 */
@media (max-width: 480px) {
  .pagination {
    gap: 4px;
  }
  
  .page-btn {
    min-width: 36px;
    height: 36px;
    font-size: 13px;
  }
  
  .user-stats {
    gap: 16px;
  }
  
  .stat-value {
    font-size: 18px;
  }
}

/* 返回顶部按钮 */
.back-to-top {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 48px;
  height: 48px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 20px;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 99;
}

.back-to-top.visible {
  opacity: 1;
  visibility: visible;
}

.back-to-top:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 20px rgba(30, 144, 255, 0.5);
}

/* 返回按钮 */
.back-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  font-size: 14px;
  margin-bottom: 24px;
  transition: color 0.2s ease;
}

.back-btn:hover {
  color: var(--primary-color);
}

/* ============================================
   登录/注册模态框
   ============================================ */
.modal-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(4px);
}

.modal-overlay.open {
  display: flex;
}

.modal-content {
  background-color: var(--bg-card);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  width: 100%;
  max-width: 420px;
  padding: 32px;
  position: relative;
  animation: modalFadeIn 0.3s ease;
  max-height: 90vh;
  overflow-y: auto;
}

@keyframes modalFadeIn {
  from {
    opacity: 0;
    transform: translateY(-20px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 32px;
  height: 32px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: 50%;
  color: var(--text-secondary);
  font-size: 14px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 10;
}

.modal-close:hover {
  background-color: var(--error-color);
  border-color: var(--error-color);
  color: white;
}

/* 模态框标签页 - 下划线Tab样式 */
.modal-tabs {
  display: flex;
  gap: 32px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--border-color);
  padding-top: 8px;
}

.modal-tab {
  padding: 12px 0;
  background-color: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  color: var(--text-secondary);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  position: relative;
  margin-bottom: -1px;
}

.modal-tab:hover {
  color: var(--primary-color);
}

.modal-tab.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
}

/* 表单样式 */
.auth-form {
  animation: fadeIn 0.3s ease;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-primary);
}

.form-group input {
  width: 100%;
  padding: 14px 16px;
  background-color: var(--bg-dark);
  border: 1px solid var(--border-color);
  border-radius: var(--radius);
  color: var(--text-primary);
  font-size: 14px;
  transition: all 0.2s ease;
}

.form-group input:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(30, 144, 255, 0.15);
}

.form-group input::placeholder {
  color: var(--text-muted);
}

.form-options {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 24px;
  font-size: 13px;
}

.remember-me {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.remember-me input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: var(--primary-color);
}

.forgot-password {
  color: var(--primary-color);
  font-size: 13px;
}

.forgot-password:hover {
  text-decoration: underline;
}

.auth-submit-btn {
  width: 100%;
  padding: 14px 24px;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  border: none;
  border-radius: var(--radius);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.auth-submit-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(30, 144, 255, 0.4);
}

/* 分隔线 */
.auth-divider {
  display: flex;
  align-items: center;
  margin: 24px 0;
  color: var(--text-muted);
  font-size: 13px;
}

.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background-color: var(--border-color);
}

.auth-divider span {
  padding: 0 16px;
}

/* 社交登录按钮 */
.social-login {
  display: flex;
  justify-content: center;
  gap: 16px;
}

.social-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid var(--border-color);
  background-color: var(--bg-dark);
  color: var(--text-secondary);
  font-size: 20px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.social-btn:hover {
  transform: translateY(-2px);
}

.social-btn.wechat:hover {
  background-color: #07c160;
  border-color: #07c160;
  color: white;
}

.social-btn.qq:hover {
  background-color: #12b7f5;
  border-color: #12b7f5;
  color: white;
}

.social-btn.weibo:hover {
  background-color: #e6162d;
  border-color: #e6162d;
  color: white;
}

.no-data {
  display: flex;
  height: 20rem;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  color: #666;
}
.no-data>i{
  font-size: 2rem;
}

/* 模态框移动端适配 */
@media (max-width: 480px) {
  .modal-content {
    margin: 16px;
    padding: 24px;
  }
  
  .modal-tabs {
    gap: 24px;
  }
  
  .modal-tab {
    font-size: 15px;
  }
  
  .social-login {
    gap: 12px;
  }
  
  .social-btn {
    width: 44px;
    height: 44px;
    font-size: 18px;
  }
}

.mb14 {
  margin-bottom: 14px;
}