/* 全局样式 */
body.ui-style-6 {
  --primary-color: #0066cc;
  --hover-color: #0052a3;
  --bg-color: #f5f5f5;
  --card-bg: #ffffff;
  --border-color: #e0e0e0;
  --text-color: #333;
  --meta-color: #666;
}

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

.main-content {
  min-height: calc(100vh - 140px);
}

/* 首页 Hero */
.hero-section {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  padding: 60px 20px;
  text-align: center;
}

.hero-title {
  font-size: 2rem;
  line-height: 1.4;
  max-width: 900px;
  margin: 0 auto;
}

/* 介绍区 */
.intro-section {
  padding: 40px 0;
  background: white;
}

.intro-text {
  max-width: 900px;
  margin: 0 auto;
  font-size: 1rem;
  line-height: 1.8;
}

.intro-text p {
  margin-bottom: 1em;
}

/* 列表区 */
.list-section {
  padding: 40px 0;
}

.list-section h2 {
  margin-bottom: 20px;
  font-size: 1.8rem;
  color: var(--text-color);
}

/* 卡片网格 */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

.card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

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

.card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.card h3 a {
  color: var(--text-color);
}

.card h3 a:hover {
  color: var(--primary-color);
}

.card-meta {
  font-size: 0.875rem;
  color: var(--meta-color);
  margin-bottom: 10px;
}

.card-desc {
  font-size: 0.95rem;
  line-height: 1.6;
  color: var(--meta-color);
}

/* 链接网格 */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.link-card {
  display: block;
  background: var(--card-bg);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s, box-shadow 0.2s;
}

.link-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.link-card h3 {
  font-size: 1.3rem;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.link-card p {
  color: var(--meta-color);
  font-size: 0.95rem;
}

/* 列表页 */
.list-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 30px;
}

.list-card {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 20px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
  position: relative;
  transition: box-shadow 0.2s;
}

.list-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.list-card h3 {
  font-size: 1.2rem;
  margin-bottom: 8px;
}

.list-card h3 a {
  color: var(--text-color);
}

.list-card h3 a:hover {
  color: var(--primary-color);
}

.card-group,
.card-rank,
.card-tag,
.card-date {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 4px;
  font-size: 0.875rem;
  margin-bottom: 10px;
  font-weight: 500;
}

.card-group {
  background: #e3f2fd;
  color: #1976d2;
}

.card-rank {
  background: #fff3e0;
  color: #f57c00;
  font-weight: bold;
}

.card-tag {
  background: #f3e5f5;
  color: #7b1fa2;
}

.card-date {
  background: #e8f5e9;
  color: #388e3c;
}

/* 详情页 */
.detail-article {
  background: white;
  border-radius: 8px;
  padding: 40px;
  margin: 20px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-article h1 {
  font-size: 2rem;
  margin-bottom: 30px;
  color: var(--text-color);
}

.detail-info {
  background: var(--bg-color);
  border-radius: 6px;
  padding: 20px;
  margin-bottom: 30px;
}

.info-row {
  padding: 8px 0;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.95rem;
}

.info-row:last-child {
  border-bottom: none;
}

.info-label {
  font-weight: 600;
  color: var(--meta-color);
  display: inline-block;
  min-width: 80px;
}

.detail-section {
  margin-bottom: 30px;
}

.detail-section h2 {
  font-size: 1.5rem;
  margin-bottom: 15px;
  color: var(--text-color);
  border-left: 4px solid var(--primary-color);
  padding-left: 12px;
}

.detail-section p {
  line-height: 1.8;
  font-size: 1rem;
  color: var(--text-color);
}

.highlight-text {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 500;
  padding: 15px;
  background: #f0f7ff;
  border-radius: 6px;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 15px;
}

.related-card {
  background: var(--bg-color);
  border-radius: 6px;
  padding: 15px;
  transition: background 0.2s;
}

.related-card:hover {
  background: #e8f4ff;
}

.related-card h4 {
  font-size: 1rem;
  margin-bottom: 8px;
}

.related-card h4 a {
  color: var(--text-color);
}

.related-card h4 a:hover {
  color: var(--primary-color);
}

.related-card p {
  font-size: 0.875rem;
  color: var(--meta-color);
  line-height: 1.5;
}

/* 页脚 */
.site-footer {
  background: #333;
  color: #fff;
  padding: 30px 0;
  text-align: center;
  margin-top: 40px;
}

.site-footer p {
  font-size: 0.9rem;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero-title {
    font-size: 1.5rem;
  }

  .container {
    padding: 15px;
  }

  .card-grid {
    grid-template-columns: 1fr;
  }

  .detail-article {
    padding: 20px;
  }

  .detail-article h1 {
    font-size: 1.5rem;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }
}

/* 移动端导航强制单行 */
@media (max-width: 768px) {
  .site-nav .nav-links {
    overflow: hidden;
  }

  .site-nav .nav-links li {
    flex-shrink: 1;
  }

  .site-nav .nav-links li a {
    min-width: 0;
  }
}
