/* 全局样式已在内联 style 中定义 */

.ui-style-5 {
  --primary-color: #3498db;
  --secondary-color: #2c3e50;
  --accent-color: #e74c3c;
  --text-color: #333;
  --bg-color: #f5f5f5;
}

main { padding: 30px 0; min-height: calc(100vh - 200px); }

.hero {
  background: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.intro p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
}

.section {
  background: white;
  padding: 30px;
  border-radius: 8px;
  margin-bottom: 30px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.video-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.video-card {
  background: #fafafa;
  padding: 20px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
  position: relative;
}

.video-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  transform: translateY(-2px);
  border-color: var(--primary-color);
}

.video-card .rank {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--accent-color);
  color: white;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 14px;
}

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

.video-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

.video-card .meta {
  display: flex;
  gap: 10px;
  margin-bottom: 10px;
  font-size: 13px;
  color: #777;
  flex-wrap: wrap;
}

.video-card .meta span {
  background: #e8e8e8;
  padding: 3px 8px;
  border-radius: 3px;
}

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

.video-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.video-list .video-card {
  display: flex;
  flex-direction: column;
}

.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 20px;
}

.link-card {
  background: #fafafa;
  padding: 25px;
  border-radius: 6px;
  border: 1px solid #e0e0e0;
  transition: all 0.3s;
}

.link-card:hover {
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  border-color: var(--primary-color);
}

.link-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.link-card h3 a {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s;
}

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

.link-card p {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
}

.more-link {
  text-align: center;
  margin-top: 20px;
  font-size: 16px;
}

.more-link a {
  color: var(--primary-color);
  text-decoration: none;
  padding: 10px 20px;
  border: 2px solid var(--primary-color);
  border-radius: 5px;
  display: inline-block;
  margin: 0 5px;
  transition: all 0.3s;
}

.more-link a:hover {
  background: var(--primary-color);
  color: white;
}

.page-header {
  background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
  color: white;
  padding: 40px;
  border-radius: 8px;
  margin-bottom: 30px;
  text-align: center;
}

.page-header h1 {
  font-size: 32px;
  margin-bottom: 15px;
}

.page-desc {
  font-size: 16px;
  line-height: 1.8;
  opacity: 0.95;
}

.detail {
  background: white;
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.detail-header h1 {
  font-size: 32px;
  color: var(--secondary-color);
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid var(--primary-color);
}

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

.detail-section h2 {
  font-size: 22px;
  color: var(--secondary-color);
  margin-bottom: 15px;
}

.detail-info {
  background: #f8f9fa;
  padding: 25px;
  border-radius: 6px;
  margin-bottom: 40px;
}

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

.info-item {
  font-size: 15px;
  padding: 10px;
  background: white;
  border-radius: 4px;
}

.info-item strong {
  color: var(--secondary-color);
}

.highlight {
  font-size: 18px;
  color: var(--primary-color);
  font-weight: 500;
  line-height: 1.8;
  padding: 20px;
  background: #f0f8ff;
  border-left: 4px solid var(--primary-color);
  border-radius: 4px;
}

.summary p, .review p {
  font-size: 16px;
  line-height: 1.8;
  color: #555;
  margin-bottom: 15px;
  text-indent: 2em;
}

.review {
  background: #fffaf0;
  padding: 20px;
  border-left: 4px solid var(--accent-color);
  border-radius: 4px;
}

footer {
  background: var(--secondary-color);
  color: white;
  padding: 30px 0;
  text-align: center;
  margin-top: 50px;
}

footer p {
  font-size: 14px;
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero, .section, .detail { padding: 20px; }
  .hero h1 { font-size: 22px; }
  .page-header h1 { font-size: 24px; }
  .detail-header h1 { font-size: 24px; }
  .video-grid { grid-template-columns: 1fr; }
  .link-grid { grid-template-columns: 1fr; }
  .info-grid { grid-template-columns: 1fr; }
}