/**
 * 内容媒体页面样式
 * Content Media Page Styles
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  font-family:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
}

body {
  background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
  min-height: 100vh;
  transition: background 0.3s ease;
}

html[data-theme='dark'] body {
  background: linear-gradient(135deg, #0f172a 0%, #1e293b 100%);
}

.container {
  max-width: 1400px;
  margin: 0 auto;
  padding: 20px;
}

/* 返回按钮 */
.back-link {
  position: fixed;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.95);
  color: #333;
  padding: 12px 20px;
  border-radius: 25px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  z-index: 100;
}

.back-link:hover {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.15);
}

html[data-theme='dark'] .back-link {
  background: rgba(26, 32, 44, 0.95);
  color: #e2e8f0;
}

/* Header */
.header {
  text-align: center;
  color: white;
  margin-bottom: 30px;
  padding: 60px 20px 30px;
}

.header h1 {
  font-size: 2.8rem;
  margin-bottom: 12px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.header-subtitle {
  font-size: 1.15rem;
  opacity: 0.9;
  max-width: 600px;
  margin: 0 auto 24px;
  font-weight: 400;
}

/* Header Pill 标签 */
.header-pills {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

.header-pill {
  background: rgba(255, 255, 255, 0.15);
  color: white;
  padding: 8px 20px;
  border-radius: 20px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.25s ease;
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(4px);
}

.header-pill:hover {
  background: rgba(255, 255, 255, 0.25);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.header-pill.active {
  background: white;
  color: #1e3c72;
  border-color: white;
  font-weight: 600;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

html[data-theme='dark'] .header-pill {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.15);
}

html[data-theme='dark'] .header-pill:hover {
  background: rgba(255, 255, 255, 0.2);
}

html[data-theme='dark'] .header-pill.active {
  background: rgba(59, 130, 246, 0.9);
  color: white;
  border-color: rgba(59, 130, 246, 0.9);
}

@media (max-width: 768px) {
  .header-pills {
    gap: 8px;
  }
  .header-pill {
    padding: 6px 14px;
    font-size: 0.85rem;
  }
}

/* 板块导航 */
.section-nav {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

html[data-theme='dark'] .section-nav {
  background: rgba(26, 32, 44, 0.98);
}

.section-tabs {
  display: flex;
  gap: 12px;
}

.section-tab {
  flex: 1;
  background: #f7fafc;
  color: #4a5568;
  padding: 16px 14px;
  border-radius: 14px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.3s ease;
  text-align: center;
  min-width: 0;
}

.section-tab:hover {
  background: #edf2f7;
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.section-tab.active {
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  color: white;
  border-color: transparent;
}

html[data-theme='dark'] .section-tab {
  background: #2d3748;
  color: #cbd5e0;
}

html[data-theme='dark'] .section-tab:hover {
  background: #4a5568;
}

.section-icon {
  font-size: 1.4rem;
  display: inline;
  margin-right: 6px;
  vertical-align: middle;
}

.section-title {
  font-size: 1.05rem;
  font-weight: 700;
  display: inline;
  vertical-align: middle;
}

.section-count {
  display: block;
  font-size: 0.85rem;
  opacity: 0.75;
  margin-top: 8px;
}

.section-desc {
  display: block;
  font-size: 0.8rem;
  opacity: 0.6;
  margin-top: 6px;
  line-height: 1.4;
}

@media (max-width: 768px) {
  .section-tabs {
    flex-wrap: wrap;
  }
  .section-tab {
    flex: 1 1 calc(50% - 6px);
    min-width: calc(50% - 6px);
  }
}

/* 搜索框 */
.search-bar {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 15px 25px;
  margin-bottom: 20px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 12px;
}

html[data-theme='dark'] .search-bar {
  background: rgba(26, 32, 44, 0.98);
}

.search-icon {
  color: #9ca3af;
  flex-shrink: 0;
}

.search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-size: 1rem;
  color: #333;
  font-family: inherit;
}

.search-input::placeholder {
  color: #9ca3af;
}

html[data-theme='dark'] .search-input {
  color: #e2e8f0;
}

html[data-theme='dark'] .search-input::placeholder {
  color: #64748b;
}

.search-clear {
  background: none;
  border: none;
  color: #9ca3af;
  cursor: pointer;
  font-size: 1.2rem;
  padding: 4px 8px;
  border-radius: 50%;
  transition: all 0.2s;
  display: none;
}

.search-clear:hover {
  background: rgba(0, 0, 0, 0.05);
  color: #4a5568;
}

html[data-theme='dark'] .search-clear:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
}

.search-clear.visible {
  display: block;
}

.search-result-info {
  font-size: 0.85rem;
  color: #9ca3af;
  flex-shrink: 0;
}

/* 分类筛选 */
.category-filter {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 20px;
  padding: 20px 25px;
  margin-bottom: 30px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
}

html[data-theme='dark'] .category-filter {
  background: rgba(26, 32, 44, 0.98);
}

.filter-label {
  font-size: 0.95rem;
  font-weight: 600;
  color: #4a5568;
  margin-bottom: 15px;
  display: block;
}

html[data-theme='dark'] .filter-label {
  color: #cbd5e0;
}

.category-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.category-tab {
  background: #f7fafc;
  color: #4a5568;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s ease;
}

.category-tab:hover {
  background: #edf2f7;
  transform: translateY(-2px);
}

.category-tab.active {
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  color: white;
}

html[data-theme='dark'] .category-tab {
  background: #2d3748;
  color: #cbd5e0;
}

html[data-theme='dark'] .category-tab:hover {
  background: #4a5568;
}

.category-count {
  background: rgba(0, 0, 0, 0.1);
  padding: 2px 8px;
  border-radius: 10px;
  font-size: 0.8rem;
  margin-left: 6px;
}

.category-tab.active .category-count {
  background: rgba(255, 255, 255, 0.2);
}

/* Loading */
.loading {
  text-align: center;
  color: white;
  padding: 80px 20px;
}

.loading-spinner {
  border: 4px solid rgba(255, 255, 255, 0.3);
  border-top: 4px solid white;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  animation: spin 1s linear infinite;
  margin: 0 auto 25px;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* 卡片列表 */
.card-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
  gap: 25px;
  margin-bottom: 40px;
}

.article-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  transition: all 0.3s ease;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.article-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #1e3c72, #2a5298);
}

.article-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.3);
}

html[data-theme='dark'] .article-card {
  background: #1a202c;
}

/* Weekly 卡片特殊样式 */
.weekly-card::before {
  background: linear-gradient(90deg, #667eea, #764ba2);
}

.issue-badge {
  display: inline-block;
  background: linear-gradient(135deg, #667eea, #764ba2);
  color: white;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 600;
  margin-right: 8px;
}

/* Weekly 详情页头部 */
.weekly-detail-header {
  border-bottom-color: #764ba2;
}

.weekly-detail-header .issue-badge {
  font-size: 0.9rem;
  padding: 5px 14px;
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 15px;
}

.card-header > div:first-child {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.card-category {
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  color: white;
  padding: 6px 14px;
  border-radius: 15px;
  font-size: 0.85rem;
  font-weight: 600;
  max-width: 180px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  display: inline-block;
}

.card-section {
  background: rgba(30, 60, 114, 0.1);
  color: #1e3c72;
  padding: 4px 10px;
  border-radius: 10px;
  font-size: 0.75rem;
  font-weight: 500;
}

html[data-theme='dark'] .card-section {
  background: rgba(59, 130, 246, 0.2);
  color: #93c5fd;
}

.card-date {
  color: #888;
  font-size: 0.85rem;
  white-space: nowrap;
  flex-shrink: 0;
}
html[data-theme='dark'] .card-date {
  color: #9ca3af;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: #2c3e50;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme='dark'] .card-title {
  color: #e2e8f0;
}

.card-summary {
  color: #666;
  line-height: 1.6;
  font-size: 0.95rem;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 15px;
}

html[data-theme='dark'] .card-summary,
html[data-theme='dark'] .card-summary p {
  color: #f1f5f9 !important;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 15px;
}

.card-tag {
  background: linear-gradient(45deg, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.1));
  color: #1e3c72;
  padding: 4px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  font-weight: 500;
}

html[data-theme='dark'] .card-tag {
  background: linear-gradient(45deg, rgba(30, 60, 114, 0.3), rgba(42, 82, 152, 0.3));
  color: #93c5fd;
}

.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
  margin-top: 15px;
}

html[data-theme='dark'] .card-footer {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.reading-time {
  color: #888;
  font-size: 0.85rem;
}
html[data-theme='dark'] .reading-time {
  color: #9ca3af;
}

.read-more {
  color: #1e3c72;
  font-weight: 600;
  font-size: 0.9rem;
}

/* 详情视图 */
.detail-view {
  display: none;
  background: white;
  border-radius: 16px;
  padding: 50px 60px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
  margin-bottom: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

html[data-theme='dark'] .detail-view {
  background: #1a202c;
}

.back-to-list {
  display: inline-block;
  background: rgba(30, 60, 114, 0.1);
  color: #1e3c72;
  padding: 10px 20px;
  border-radius: 20px;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.back-to-list:hover {
  background: rgba(30, 60, 114, 0.2);
  transform: translateX(-5px);
}

html[data-theme='dark'] .back-to-list {
  background: rgba(30, 60, 114, 0.3);
  color: #93c5fd;
}

.detail-header {
  margin-bottom: 35px;
  padding-bottom: 25px;
  border-bottom: 1px solid #e2e8f0;
}

html[data-theme='dark'] .detail-header {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.detail-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 20px;
  color: #1a1a1a;
  line-height: 1.4;
}

html[data-theme='dark'] .detail-title {
  color: #fff;
}

.detail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  color: #666;
  font-size: 0.95rem;
}

html[data-theme='dark'] .detail-meta {
  color: #9ca3af;
}

.detail-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 20px;
}

/* 章节内容样式 */
.section {
  margin-bottom: 48px;
}
.section:last-child {
  margin-bottom: 0;
}

.content-section-title {
  font-size: 1.6rem;
  font-weight: 700;
  color: #111827;
  margin-bottom: 24px;
  padding: 12px 20px;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.1), rgba(42, 82, 152, 0.08));
  border-left: 5px solid #1e3c72;
  border-radius: 0 8px 8px 0;
}

html[data-theme='dark'] .content-section-title {
  color: #f3f4f6;
  background: linear-gradient(135deg, rgba(30, 60, 114, 0.2), rgba(42, 82, 152, 0.15));
  border-left-color: #3b82f6;
}

.section-content {
  color: #374151;
  line-height: 1.9;
}
html[data-theme='dark'] .section-content {
  color: #e2e8f0;
}
html[data-theme='dark'] .section-content p,
html[data-theme='dark'] .section-content span,
html[data-theme='dark'] .section-content li,
html[data-theme='dark'] .section-content td,
html[data-theme='dark'] .section-content th,
html[data-theme='dark'] .section-content div {
  color: #e2e8f0 !important;
}

.section-content p {
  margin-bottom: 20px;
}
.section-content ul,
.section-content ol {
  margin: 16px 0;
  padding-left: 24px;
}
.section-content li {
  margin-bottom: 8px;
  line-height: 1.7;
}

.section-content img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 24px auto;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
  display: block;
}

.section-content blockquote {
  border-left: 4px solid #1e3c72;
  padding: 12px 20px;
  margin: 20px 0;
  background: rgba(30, 60, 114, 0.05);
  font-style: italic;
  color: #4a5568;
  border-radius: 4px;
}

html[data-theme='dark'] .section-content blockquote {
  background: rgba(30, 60, 114, 0.15);
  color: #cbd5e0;
}

.feishu-link-wrapper {
  text-align: center;
  margin-top: 40px;
  padding-top: 30px;
  border-top: 1px solid #e2e8f0;
}

html[data-theme='dark'] .feishu-link-wrapper {
  border-top-color: rgba(255, 255, 255, 0.1);
}

.feishu-link {
  display: inline-block;
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  color: white;
  padding: 14px 32px;
  border-radius: 30px;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.05rem;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(30, 60, 114, 0.3);
}

.feishu-link:hover {
  transform: translateY(-2px) scale(1.02);
}

/* 右上角功能区 */
.header-actions {
  position: fixed;
  top: 20px;
  right: 20px;
  display: flex;
  gap: 12px;
  z-index: 1000;
}

.theme-toggle {
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.theme-toggle:hover {
  transform: translateY(-2px);
}

html[data-theme='dark'] .theme-toggle {
  background: rgba(26, 32, 44, 0.95);
}

.theme-toggle .icon-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
}
.theme-toggle .sun-icon,
.theme-toggle .moon-icon {
  width: 24px;
  height: 24px;
  color: #1e3c72;
}
html[data-theme='dark'] .theme-toggle .sun-icon,
html[data-theme='dark'] .theme-toggle .moon-icon {
  color: #93c5fd;
}
.theme-toggle .moon-icon {
  display: none;
}
html[data-theme='dark'] .theme-toggle .sun-icon {
  display: none;
}
html[data-theme='dark'] .theme-toggle .moon-icon {
  display: block;
}

/* 空状态 */
.empty-state {
  text-align: center;
  padding: 80px 20px;
  color: white;
}
.empty-state h3 {
  font-size: 1.5rem;
  margin-bottom: 10px;
}
.empty-state p {
  opacity: 0.8;
}

/* 双栏布局 */
.main-layout {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 25px;
  align-items: start;
}

.main-content {
  min-width: 0;
}

/* 侧边栏 */
.sidebar {
  position: sticky;
  top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card {
  background: rgba(255, 255, 255, 0.98);
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}

html[data-theme='dark'] .sidebar-card {
  background: rgba(26, 32, 44, 0.98);
}

.sidebar-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: #2c3e50;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid rgba(30, 60, 114, 0.15);
}

html[data-theme='dark'] .sidebar-card h3 {
  color: #e2e8f0;
  border-bottom-color: rgba(59, 130, 246, 0.2);
}

.ranking-item {
  display: flex;
  gap: 10px;
  padding: 10px 0;
  border-bottom: 1px solid #f0f0f0;
  cursor: pointer;
  transition: background 0.2s;
  border-radius: 8px;
  padding-left: 6px;
  padding-right: 6px;
}

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

.ranking-item:hover {
  background: rgba(30, 60, 114, 0.05);
}

html[data-theme='dark'] .ranking-item {
  border-bottom-color: rgba(255, 255, 255, 0.06);
}

html[data-theme='dark'] .ranking-item:hover {
  background: rgba(59, 130, 246, 0.1);
}

.ranking-number {
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  font-weight: 700;
  color: #fff;
  background: #9ca3af;
  margin-top: 2px;
}

.ranking-number.top-1 {
  background: #f59e0b;
}
.ranking-number.top-2 {
  background: #8b5cf6;
}
.ranking-number.top-3 {
  background: #3b82f6;
}

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

.ranking-title {
  font-size: 0.85rem;
  font-weight: 600;
  color: #374151;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

html[data-theme='dark'] .ranking-title {
  color: #e2e8f0;
}

.ranking-meta {
  font-size: 0.75rem;
  color: #9ca3af;
  margin-top: 3px;
}

/* 热门标签云 */
.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag-cloud-item {
  background: linear-gradient(45deg, rgba(30, 60, 114, 0.08), rgba(42, 82, 152, 0.08));
  color: #1e3c72;
  padding: 5px 12px;
  border-radius: 14px;
  font-size: 0.8rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.tag-cloud-item:hover {
  background: linear-gradient(45deg, rgba(30, 60, 114, 0.15), rgba(42, 82, 152, 0.15));
  transform: translateY(-1px);
  border-color: rgba(30, 60, 114, 0.2);
}

html[data-theme='dark'] .tag-cloud-item {
  background: linear-gradient(45deg, rgba(30, 60, 114, 0.25), rgba(42, 82, 152, 0.25));
  color: #93c5fd;
}

html[data-theme='dark'] .tag-cloud-item:hover {
  background: linear-gradient(45deg, rgba(30, 60, 114, 0.4), rgba(42, 82, 152, 0.4));
  border-color: rgba(59, 130, 246, 0.3);
}

.tag-count {
  font-size: 0.7rem;
  opacity: 0.65;
  margin-left: 3px;
}

/* 骨架屏样式 */
.skeleton-card {
  background: white;
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

html[data-theme='dark'] .skeleton-card {
  background: #1a202c;
}

.skeleton-header,
.skeleton-title,
.skeleton-text {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: skeleton-loading 1.5s infinite;
  border-radius: 4px;
}

html[data-theme='dark'] .skeleton-header,
html[data-theme='dark'] .skeleton-title,
html[data-theme='dark'] .skeleton-text {
  background: linear-gradient(90deg, #2d3748 25%, #4a5568 50%, #2d3748 75%);
  background-size: 200% 100%;
}

.skeleton-header {
  height: 20px;
  width: 40%;
  margin-bottom: 15px;
}

.skeleton-title {
  height: 28px;
  width: 80%;
  margin-bottom: 12px;
}

.skeleton-text {
  height: 16px;
  width: 100%;
  margin-bottom: 8px;
}

.skeleton-text:last-child {
  width: 60%;
}

@keyframes skeleton-loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* 分页样式 */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin: 30px 0;
  flex-wrap: wrap;
}

.pagination-btn {
  background: rgba(255, 255, 255, 0.95);
  color: #1e3c72;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-size: 0.9rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.pagination-btn:hover:not(:disabled) {
  background: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

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

.pagination-btn.active {
  background: linear-gradient(45deg, #1e3c72, #2a5298);
  color: white;
}

html[data-theme='dark'] .pagination-btn {
  background: rgba(26, 32, 44, 0.95);
  color: #93c5fd;
}

html[data-theme='dark'] .pagination-btn:hover:not(:disabled) {
  background: #2d3748;
}

.pagination-info {
  color: white;
  font-size: 0.9rem;
  padding: 0 10px;
}

/* 响应式 */
@media (max-width: 1024px) {
  .main-layout {
    grid-template-columns: 1fr;
  }
  .sidebar {
    display: none;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 10px;
  }
  .header h1 {
    font-size: 2rem;
  }
  .card-list {
    grid-template-columns: 1fr;
  }
  .detail-view {
    padding: 30px 20px;
  }
  .detail-title {
    font-size: 1.6rem;
  }
  .back-link {
    top: 15px;
    left: 15px;
    padding: 10px 16px;
    font-size: 0.9rem;
  }
  .pagination {
    gap: 4px;
  }
  .pagination-btn {
    padding: 8px 12px;
    font-size: 0.85rem;
  }
}
