/* 全局样式 */
body.ui-style-5 {
  --primary-color: #2c5aa0;
  --secondary-color: #e8f0fe;
  --accent-color: #f59e0b;
  --text-color: #333;
  --bg-color: #f5f5f5;
  --card-bg: #fff;
  --border-color: #e0e0e0;
}

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

/* 首页 */
.hero {
  background: var(--card-bg);
  padding: 40px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  text-align: center;
}

.hero h1 {
  font-size: 28px;
  color: var(--primary-color);
  margin-bottom: 16px;
  line-height: 1.4;
}

.hero .intro {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  max-width: 900px;
  margin: 0 auto;
}

/* 区块 */
.section {
  background: var(--card-bg);
  padding: 30px;
  margin-bottom: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.section-title {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--secondary-color);
}

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

.video-card {
  background: var(--secondary-color);
  padding: 20px;
  border-radius: 6px;
  transition: transform 0.3s, box-shadow 0.3s;
}

.video-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.video-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

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

.video-card .meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.video-card .oneline {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* 列表 */
.video-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.video-item {
  padding: 16px;
  background: var(--secondary-color);
  border-radius: 6px;
  transition: background 0.3s;
}

.video-item:hover {
  background: #dae4f7;
}

.video-item h3 {
  font-size: 17px;
  margin-bottom: 6px;
}

.video-item h3 a {
  color: var(--primary-color);
}

.video-item .meta {
  font-size: 13px;
  color: #888;
}

/* 入口网格 */
.entry-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 20px;
}

.entry-card {
  display: block;
  background: linear-gradient(135deg, var(--secondary-color), #f0f4f8);
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  transition: transform 0.3s;
}

.entry-card:hover {
  transform: scale(1.05);
}

.entry-card h3 {
  font-size: 20px;
  color: var(--primary-color);
  margin-bottom: 10px;
}

.entry-card p {
  font-size: 14px;
  color: #666;
}

/* 更多链接 */
.more-links {
  text-align: center;
  margin-top: 20px;
}

.more-links a {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary-color);
  color: #fff;
  border-radius: 4px;
  transition: background 0.3s;
}

.more-links a:hover {
  background: var(--accent-color);
}

/* 列表页 */
.page-header {
  background: var(--card-bg);
  padding: 30px;
  margin-bottom: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.page-header h1 {
  font-size: 26px;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.page-intro {
  font-size: 15px;
  color: #666;
  line-height: 1.8;
}

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

.list-item {
  background: var(--card-bg);
  padding: 20px;
  border-radius: 6px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}

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

.list-item h3 {
  font-size: 18px;
  margin-bottom: 8px;
}

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

.list-item h3 a:hover {
  color: var(--accent-color);
}

.list-item .item-meta {
  font-size: 13px;
  color: #888;
  margin-bottom: 8px;
}

.list-item .item-desc {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

/* daquan样式 */
.list-daquan .item-header {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.list-daquan .item-tag {
  display: inline-block;
  padding: 4px 10px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 12px;
  font-weight: bold;
}

/* top样式 */
.list-top {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.list-top .item-rank {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--primary-color);
  color: #fff;
  border-radius: 50%;
  font-size: 18px;
  font-weight: bold;
}

.list-top .item-content {
  flex: 1;
}

/* topic样式 */
.list-topic .item-tags {
  font-size: 13px;
  color: var(--accent-color);
  margin-bottom: 8px;
}

/* latest样式 */
.list-latest {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.list-latest .item-date {
  flex-shrink: 0;
  padding: 8px 12px;
  background: var(--secondary-color);
  color: var(--primary-color);
  border-radius: 4px;
  font-size: 14px;
  font-weight: bold;
}

.list-latest .item-content {
  flex: 1;
}

/* 详情页 */
.detail-page {
  background: var(--card-bg);
  border-radius: 8px;
  padding: 40px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.detail-header {
  text-align: center;
  padding-bottom: 30px;
  border-bottom: 2px solid var(--border-color);
  margin-bottom: 30px;
}

.detail-header h1 {
  font-size: 32px;
  color: var(--primary-color);
  margin-bottom: 8px;
}

.detail-subtitle {
  font-size: 16px;
  color: #888;
}

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

.detail-content h2 {
  font-size: 22px;
  color: var(--primary-color);
  margin-bottom: 16px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--secondary-color);
}

.info-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 12px;
}

.info-list li {
  padding: 10px;
  background: var(--secondary-color);
  border-radius: 4px;
  font-size: 15px;
}

.oneline-text {
  font-size: 18px;
  color: var(--accent-color);
  font-weight: 500;
  line-height: 1.6;
  padding: 16px;
  background: #fff9e6;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

.summary-text, .review-text {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  text-align: justify;
}

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

.related-card {
  padding: 16px;
  background: var(--secondary-color);
  border-radius: 6px;
  transition: background 0.3s;
}

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

.related-card h3 {
  font-size: 16px;
  margin-bottom: 6px;
}

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

.related-card .related-meta {
  font-size: 12px;
  color: #888;
  margin-bottom: 6px;
}

.related-card .related-desc {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
}

/* 页脚 */
footer {
  text-align: center;
  padding: 30px 20px;
  background: var(--card-bg);
  color: #888;
  font-size: 14px;
  margin-top: 40px;
}

/* 响应式 */
@media (max-width: 768px) {
  .container { padding: 12px; }
  .hero { padding: 24px; }
  .hero h1 { font-size: 22px; }
  .section { padding: 20px; }
  .section-title { font-size: 20px; }
  .video-grid { grid-template-columns: 1fr; gap: 12px; }
  .entry-grid { grid-template-columns: 1fr; }
  .detail-page { padding: 24px; }
  .detail-header h1 { font-size: 24px; }
  .info-list { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
}
