﻿:root {
  --site-primary: #3b82f6;
  --site-primary-dark: #2563eb;
  --site-primary-light: #60a5fa;
  --site-bg: #f5f7fb;
  --site-card-shadow: 0 2px 12px rgba(0,0,0,0.06);
  --site-card-shadow-hover: 0 8px 24px rgba(0,0,0,0.12);
  --site-radius: 12px;
}

body {
  background: var(--site-bg);
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', sans-serif;
  color: #1f2937;
}

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

.navbar {
  background: #fff;
  box-shadow: 0 1px 4px rgba(0,0,0,0.04);
}
.navbar .nav-link {
  font-weight: 500;
  color: #374151 !important;
  padding: 0.5rem 1rem !important;
  border-radius: 8px;
  transition: all 0.2s;
}
.navbar .nav-link:hover,
.navbar .nav-link.active {
  color: var(--site-primary) !important;
  background: #eff6ff;
}
.navbar-brand {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--site-primary) !important;
}

.site-banner {
  background: linear-gradient(135deg, #3b82f6 0%, #6366f1 50%, #8b5cf6 100%);
  border-radius: var(--site-radius);
  overflow: hidden;
  position: relative;
  min-height: 280px;
  display: flex;
  align-items: center;
  padding: 2rem 2.5rem;
  color: #fff;
  box-shadow: var(--site-card-shadow);
}
.site-banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse at center, rgba(255,255,255,0.15) 0%, transparent 70%);
}
.site-banner .banner-title {
  font-size: 2.2rem;
  font-weight: 800;
  line-height: 1.3;
  margin-bottom: 0.75rem;
}
.site-banner .banner-sub {
  font-size: 1.05rem;
  opacity: 0.9;
  margin-bottom: 1.25rem;
}
.site-banner .banner-btn {
  display: inline-block;
  padding: 0.6rem 1.5rem;
  background: #fff;
  color: var(--site-primary);
  border-radius: 999px;
  font-weight: 600;
  transition: transform 0.2s;
}
.site-banner .banner-btn:hover {
  transform: translateY(-2px);
  color: var(--site-primary-dark);
}

.card-tab-bar {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.card-tab-bar .tab-item {
  padding: 0.5rem 1rem;
  border-radius: 8px;
  font-size: 0.9rem;
  color: #6b7280;
  background: #fff;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: all 0.2s;
  text-decoration: none;
}
.card-tab-bar .tab-item:hover {
  color: var(--site-primary);
  border-color: var(--site-primary-light);
}
.card-tab-bar .tab-item.active {
  background: var(--site-primary);
  color: #fff;
  border-color: var(--site-primary);
}

.article-card {
  background: #fff;
  border-radius: var(--site-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--site-card-shadow);
  transition: all 0.3s ease;
  display: flex;
  gap: 1.25rem;
  align-items: flex-start;
  border: none;
}
.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--site-card-shadow-hover);
}
.article-card .card-cover {
  width: 160px;
  height: 100px;
  flex-shrink: 0;
  border-radius: 10px;
  overflow: hidden;
  background: #f3f4f6;
}
.article-card .card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.article-card .card-body {
  flex: 1;
  min-width: 0;
}
.article-card .card-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #1f2937;
  margin-bottom: 0.5rem;
  text-decoration: none;
  display: block;
  line-height: 1.4;
}
.article-card .card-title:hover { color: var(--site-primary); }
.article-card .card-desc {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 0.75rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.article-card .card-meta {
  display: flex;
  gap: 1rem;
  align-items: center;
  font-size: 0.8rem;
  color: #9ca3af;
}
.article-card .card-tag {
  display: inline-block;
  padding: 0.15rem 0.6rem;
  border-radius: 999px;
  font-size: 0.75rem;
  background: #eff6ff;
  color: var(--site-primary);
}
@media (max-width: 767px) {
  .article-card { flex-direction: column; }
  .article-card .card-cover { width: 100%; height: 160px; }
}

.side-card {
  background: #fff;
  border-radius: var(--site-radius);
  padding: 1.25rem;
  margin-bottom: 1rem;
  box-shadow: var(--site-card-shadow);
}
.side-card h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.side-card h5::before {
  content: '';
  display: inline-block;
  width: 4px;
  height: 16px;
  background: var(--site-primary);
  border-radius: 2px;
}
.side-card .site-intro {
  text-align: center;
  padding: 0 !important;
}
.side-card .site-intro-bg {
  background: linear-gradient(180deg, #c4b5fd 0%, #fbcfe8 50%, #fecaca 100%);
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-card .site-logo {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  border: 3px solid #fff;
  object-fit: cover;
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.side-card .site-intro-info {
  padding: 1.5rem 1rem 1.25rem;
  background: #fff;
  text-align: center;
}
.side-card .site-name {
  font-weight: 700;
  color: #3b82f6;
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.side-card .site-slogan {
  color: #6b7280;
  font-size: 0.9rem;
}
.side-card .announce-item {
  font-size: 0.875rem;
  color: #374151;
  padding: 0.5rem 0;
  border-bottom: 1px dashed #f3f4f6;
}
.side-card .announce-item:last-child { border-bottom: none; }
.side-card .rank-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.4rem 0;
}
.side-card .rank-num {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  border-radius: 6px;
  background: #e5e7eb;
  color: #6b7280;
  font-size: 0.75rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}
.side-card .rank-item:nth-child(1) .rank-num { background: #ef4444; color: #fff; }
.side-card .rank-item:nth-child(2) .rank-num { background: #f97316; color: #fff; }
.side-card .rank-item:nth-child(3) .rank-num { background: #f59e0b; color: #fff; }
.side-card .rank-title {
  flex: 1;
  font-size: 0.875rem;
  color: #374151;
  line-height: 1.4;
}
.side-card .rank-date {
  font-size: 0.75rem;
  color: #9ca3af;
  flex-shrink: 0;
}
.side-card .tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
}
.side-card .tag-cloud a {
  padding: 0.2rem 0.7rem;
  background: #f3f4f6;
  border-radius: 999px;
  font-size: 0.8rem;
  color: #6b7280;
  text-decoration: none;
  transition: all 0.2s;
}
.side-card .tag-cloud a:hover {
  background: var(--site-primary);
  color: #fff;
}

.download-detail {
  background: #fff;
  border-radius: var(--site-radius);
  padding: 2rem;
  box-shadow: var(--site-card-shadow);
  margin-bottom: 1.5rem;
}
.download-detail .dl-header {
  display: flex;
  gap: 2rem;
  align-items: flex-start;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
}
.download-detail .dl-cover {
  width: 280px;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}
.download-detail .dl-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.download-detail .dl-info { flex: 1; }
.download-detail .dl-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
}
.download-detail .dl-meta-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
  color: #6b7280;
}
.download-detail .dl-meta-row span:first-child { color: #9ca3af; }
.download-detail .dl-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.8rem 2rem;
  background: linear-gradient(135deg, var(--site-primary) 0%, var(--site-primary-dark) 100%);
  color: #fff;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  margin-top: 1rem;
}
.download-detail .dl-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(59,130,246,0.4);
  color: #fff;
}
.download-detail .dl-content h5 {
  font-size: 1rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.download-detail .dl-content h5 i { color: var(--site-primary); }
.download-detail .dl-content .article-content img { max-width: 100%; border-radius: 8px; margin: 0.75rem 0; }
.download-detail .copyright-notice {
  background: #eff6ff;
  border-radius: 8px;
  padding: 1rem 1.25rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #1e40af;
}
.download-detail .copyright-notice .notice-title {
  font-weight: 600;
  margin-bottom: 0.5rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.article-detail {
  background: #fff;
  border-radius: var(--site-radius);
  padding: 2rem;
  box-shadow: var(--site-card-shadow);
  margin-bottom: 1.5rem;
}
.article-detail .art-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #1f2937;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.article-detail .art-meta {
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
  margin-bottom: 1.5rem;
  color: #9ca3af;
  font-size: 0.875rem;
}
.article-detail .art-meta span { margin-right: 1rem; }
.article-detail .article-content {
  line-height: 1.8;
  font-size: 1rem;
  color: #374151;
}
.article-detail .article-content img { max-width: 100%; border-radius: 8px; margin: 0.75rem 0; }
.article-detail .article-content pre { background: #1f2937; color: #f9fafb; padding: 1rem; border-radius: 8px; overflow-x: auto; }
.article-detail .article-content code { background: #f3f4f6; padding: 0.15rem 0.4rem; border-radius: 4px; font-size: 0.875rem; }
.article-detail .article-content pre code { background: none; padding: 0; }
.article-detail .article-content p { margin-bottom: 1rem; }
.article-detail .article-content h2,
.article-detail .article-content h3 { font-weight: 700; color: #1f2937; margin-top: 1.5rem; margin-bottom: 0.75rem; }
.article-detail .prev-next {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 1px solid #f3f4f6;
  font-size: 0.9rem;
}
.article-detail .prev-next li { margin-bottom: 0.5rem; }

.download-modal .modal-content {
  border: none;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0,0,0,0.2);
}
.download-modal .modal-header {
  border-bottom: 1px solid #f3f4f6;
  padding: 1.25rem 1.5rem;
}
.download-modal .modal-title {
  font-weight: 700;
  font-size: 1.05rem;
  color: #1f2937;
}
.download-modal .modal-body { padding: 1.5rem; }
.download-modal .modal-footer {
  border-top: none;
  padding: 0 1.5rem 1.5rem;
}
.download-modal .dl-source-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  background: #f9fafb;
  border-radius: 8px;
  margin-bottom: 0.5rem;
}
.download-modal .dl-source-name {
  font-weight: 500;
  color: #374151;
}
.download-modal .dl-source-recommend {
  font-size: 0.75rem;
  color: var(--site-primary);
  background: #eff6ff;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  margin-left: 0.5rem;
}
.download-modal .dl-source-desc {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-left: 1rem;
}
.download-modal .dl-source-link {
  padding: 0.4rem 1rem;
  background: var(--site-primary);
  color: #fff;
  border-radius: 6px;
  font-size: 0.875rem;
  text-decoration: none;
  font-weight: 500;
}
.download-modal .dl-source-link:hover { background: var(--site-primary-dark); color: #fff; }

.pagination .page-link {
  border-radius: 8px;
  margin: 0 0.15rem;
  color: #6b7280;
  border: 1px solid #e5e7eb;
}
.pagination .page-item.active .page-link {
  background: var(--site-primary);
  border-color: var(--site-primary);
}

.site-footer {
  background: #fff;
  border-top: 1px solid #f3f4f6;
  padding: 2rem 0;
  margin-top: 3rem;
  color: #6b7280;
  font-size: 0.875rem;
  text-align: center;
}
.site-footer a { color: #6b7280; }
.site-footer a:hover { color: var(--site-primary); }

.breadcrumb-bar {
  background: #fff;
  border-radius: var(--site-radius);
  padding: 0.75rem 1.25rem;
  margin-bottom: 1.25rem;
  box-shadow: var(--site-card-shadow);
  font-size: 0.875rem;
  color: #6b7280;
}
.breadcrumb-bar a { color: #6b7280; text-decoration: none; }
.breadcrumb-bar a:hover { color: var(--site-primary); }
.breadcrumb-bar .sep { margin: 0 0.5rem; color: #d1d5db; }

#commentForm, #commentList { background: #fff; border-radius: var(--site-radius); padding: 1.25rem; box-shadow: var(--site-card-shadow); }