/* 全局重置与基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "PingFang SC", "Microsoft YaHei", "Helvetica Neue", Arial, sans-serif;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  color: #333;
  line-height: 1.6;
  font-size: 16px;
}

a {
  text-decoration: none;
  color: #1890ff;
  transition: color 0.3s ease;
}

a:hover {
  color: #40a9ff;
}

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

/* 导航栏 */
nav {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

nav .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  padding: 0 20px;
}

nav .logo {
  font-size: 24px;
  font-weight: bold;
  color: #1890ff;
  padding: 15px 0;
  white-space: nowrap;
}

nav ul {
  display: flex;
  list-style: none;
  flex-wrap: nowrap;
  align-items: center;
  flex: 1;
  justify-content: flex-end;
}

nav ul li {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
}

nav ul li a {
  display: block;
  padding: 15px 10px;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background 0.3s ease;
}

nav ul li a:hover {
  background: #f0f0f0;
}

/* 移动端导航 */
@media (max-width: 768px) {
  nav .logo {
    font-size: 18px;
    padding: 12px 0;
  }

  nav ul li a {
    padding: 12px 5px;
    font-size: 13px;
  }
}

/* 首页 Hero 区域 */
.hero {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  text-align: center;
}

.hero h1 {
  font-size: 32px;
  color: #1890ff;
  margin-bottom: 20px;
  line-height: 1.4;
}

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

/* 区块 */
.section {
  background: #fff;
  border-radius: 12px;
  padding: 30px;
  margin-bottom: 30px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.section h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 2px solid #1890ff;
}

.section-desc {
  color: #666;
  margin-bottom: 20px;
  line-height: 1.8;
}

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

.works-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.work-card {
  background: #f9f9f9;
  border-radius: 8px;
  padding: 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e8e8e8;
  position: relative;
}

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

.work-card .work-index {
  position: absolute;
  top: 10px;
  right: 10px;
  background: #1890ff;
  color: #fff;
  font-weight: bold;
  font-size: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.work-card h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

.work-card h3 a {
  color: #333;
}

.work-card h3 a:hover {
  color: #1890ff;
}

.work-meta {
  font-size: 14px;
  color: #999;
  margin-bottom: 8px;
}

.work-genre {
  font-size: 14px;
  color: #666;
  margin-bottom: 10px;
}

.work-oneline {
  font-size: 15px;
  color: #555;
  line-height: 1.6;
}

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

.link-card {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  border-radius: 8px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.link-card a {
  font-size: 20px;
  color: #fff;
  font-weight: bold;
  display: block;
  margin-bottom: 10px;
}

.link-card p {
  color: rgba(255,255,255,0.9);
  font-size: 14px;
}

/* 详情页 */
.detail {
  background: #fff;
  border-radius: 12px;
  padding: 40px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.detail h1 {
  font-size: 36px;
  color: #1890ff;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 3px solid #1890ff;
}

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

.detail h2 {
  font-size: 24px;
  color: #333;
  margin-bottom: 15px;
  padding-left: 12px;
  border-left: 4px solid #1890ff;
}

.detail-info ul {
  list-style: none;
  line-height: 2;
}

.detail-info li {
  font-size: 16px;
  color: #555;
  padding: 8px 0;
  border-bottom: 1px solid #f0f0f0;
}

.detail-info strong {
  color: #333;
  margin-right: 10px;
}

.detail-highlight p {
  font-size: 18px;
  color: #1890ff;
  font-weight: bold;
  line-height: 1.8;
  padding: 20px;
  background: #f0f8ff;
  border-radius: 8px;
  border-left: 4px solid #1890ff;
}

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

.detail-related .works-grid {
  margin-top: 20px;
}

/* 页面介绍 */
.page-intro {
  font-size: 16px;
  color: #666;
  line-height: 1.8;
  margin-bottom: 30px;
  padding: 20px;
  background: #f9f9f9;
  border-radius: 8px;
  border-left: 4px solid #1890ff;
}

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

  .hero .intro {
    font-size: 16px;
  }

  .section {
    padding: 20px;
  }

  .section h2 {
    font-size: 20px;
  }

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

  .detail {
    padding: 20px;
  }

  .detail h1 {
    font-size: 28px;
  }

  .detail h2 {
    font-size: 20px;
  }
}

/* 页脚 */
footer {
  background: #fff;
  text-align: center;
  padding: 30px 20px;
  margin-top: 40px;
  box-shadow: 0 -2px 8px rgba(0,0,0,0.05);
  color: #666;
  font-size: 14px;
}

/* UI 风格变体 (ui-style-0 ~ ui-style-15) */
.ui-style-0 { --primary-color: #1890ff; }
.ui-style-1 { --primary-color: #52c41a; }
.ui-style-2 { --primary-color: #fa8c16; }
.ui-style-3 { --primary-color: #eb2f96; }
.ui-style-4 { --primary-color: #722ed1; }
.ui-style-5 { --primary-color: #13c2c2; }
.ui-style-6 { --primary-color: #2f54eb; }
.ui-style-7 { --primary-color: #fa541c; }
.ui-style-8 { --primary-color: #eb2f96; }
.ui-style-9 { --primary-color: #52c41a; }
.ui-style-10 { --primary-color: #faad14; }
.ui-style-11 { --primary-color: #1890ff; }
.ui-style-12 { --primary-color: #722ed1; }
.ui-style-13 { --primary-color: #13c2c2; }
.ui-style-14 { --primary-color: #fa8c16; }
.ui-style-15 { --primary-color: #2f54eb; }
