:root {
  --primary: #667eea;
  --primary-dark: #764ba2;
  --text: #333;
  --text-light: #666;
  --bg: #f5f7fa;
  --card-bg: #fff;
  --border: #e1e8ed;
  --shadow: rgba(0,0,0,0.08);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', 'Hiragino Sans GB', sans-serif;
  line-height: 1.8;
  color: var(--text);
  background: var(--bg);
  font-size: 16px;
}

.ct {
  max-width: 1200px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

nav {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  padding: 1rem 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px var(--shadow);
}

nav .nc {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

nav a {
  flex: 0 0 auto;
  color: #fff;
  text-decoration: none;
  padding: 0.6rem 1.2rem;
  font-weight: 500;
  transition: all 0.3s ease;
  border-radius: 6px;
  white-space: nowrap;
}

nav a:hover {
  background: rgba(255,255,255,0.2);
  transform: translateY(-2px);
}

.lg {
  font-size: 1.6rem;
  font-weight: 700;
  letter-spacing: 1px;
}

.hero {
  text-align: center;
  padding: 3rem 0;
  background: linear-gradient(135deg, rgba(102,126,234,0.1) 0%, rgba(118,75,162,0.1) 100%);
  border-radius: 12px;
  margin-bottom: 3rem;
}

.hero h1 {
  font-size: 2rem;
  color: var(--primary-dark);
  margin-bottom: 1.5rem;
  line-height: 1.4;
}

.hero p, .hero .intro {
  font-size: 1.1rem;
  color: var(--text-light);
  max-width: 900px;
  margin: 0 auto;
  line-height: 1.8;
}

.hero a {
  color: var(--primary);
  text-decoration: none;
  border-bottom: 1px solid var(--primary);
  transition: all 0.3s;
}

.hero a:hover {
  color: var(--primary-dark);
  border-bottom-color: var(--primary-dark);
}

section {
  margin-bottom: 3rem;
}

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

.vg {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.5rem;
}

.vl {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.vc {
  background: var(--card-bg);
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
}

.vc:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.vc h3 {
  font-size: 1.25rem;
  margin-bottom: 0.75rem;
  color: var(--text);
}

.vc h3 a {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s;
}

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

.mt {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
  font-size: 0.9rem;
}

.mt span {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 4px;
  font-size: 0.85rem;
}

.ol {
  color: var(--text-light);
  margin-bottom: 0.75rem;
  font-size: 0.95rem;
  line-height: 1.6;
}

.tgs {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 0.75rem;
}

.tg {
  background: #f0f2f5;
  color: var(--text-light);
  padding: 0.2rem 0.6rem;
  border-radius: 3px;
  font-size: 0.8rem;
}

.rv {
  color: var(--text-light);
  font-size: 0.9rem;
  font-style: italic;
  border-left: 3px solid var(--primary);
  padding-left: 0.75rem;
  margin-top: 0.75rem;
}

.rk {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: linear-gradient(135deg, #ffd700 0%, #ffed4e 100%);
  color: #333;
  font-weight: 700;
  font-size: 1.2rem;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255,215,0,0.4);
}

.date {
  background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%) !important;
}

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

.rll {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 2px 8px var(--shadow);
  transition: all 0.3s ease;
  border: 2px solid transparent;
}

.rll:hover {
  transform: translateY(-5px);
  border-color: var(--primary);
  box-shadow: 0 8px 20px rgba(0,0,0,0.12);
}

.rll h3 {
  font-size: 1.5rem;
  margin-bottom: 0.75rem;
  color: var(--primary);
}

.rll p {
  color: var(--text-light);
  font-size: 1rem;
}

.dp h1 {
  font-size: 2rem;
  margin-bottom: 2rem;
  color: var(--text);
  border-bottom: 3px solid var(--primary);
  padding-bottom: 1rem;
}

.bi, .hl, .sm, .rw, .rl {
  background: var(--card-bg);
  padding: 2rem;
  border-radius: 10px;
  margin-bottom: 2rem;
  box-shadow: 0 2px 8px var(--shadow);
}

.bi h2, .hl h2, .sm h2, .rw h2, .rl h2 {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  color: var(--primary-dark);
  border-left: 4px solid var(--primary);
  padding-left: 1rem;
}

.bi dl {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 1rem 2rem;
  align-items: start;
}

.bi dt {
  font-weight: 600;
  color: var(--text-light);
}

.bi dd {
  color: var(--text);
}

.page-intro {
  font-size: 1.1rem;
  color: var(--text-light);
  margin-bottom: 2rem;
  padding: 1.5rem;
  background: var(--card-bg);
  border-radius: 10px;
  border-left: 4px solid var(--primary);
}

.ts {
  margin-bottom: 3rem;
  padding: 2rem;
  background: var(--card-bg);
  border-radius: 10px;
  box-shadow: 0 2px 8px var(--shadow);
}

.ts h2 {
  border-left-color: var(--primary-dark);
}

footer {
  background: #2c3e50;
  color: #ecf0f1;
  text-align: center;
  padding: 2rem;
  margin-top: 4rem;
}

footer p {
  font-size: 0.95rem;
}

@media (max-width: 768px) {
  nav .nc {
    justify-content: space-around;
    gap: 0;
    padding: 0 0.5rem;
  }
  
  nav a {
    flex: 1 1 0;
    min-width: 0;
    padding: 0.5rem 0.25rem;
    font-size: 0.8rem;
    text-align: center;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  
  .lg {
    font-size: 1rem;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p, .hero .intro {
    font-size: 1rem;
  }
  
  .vg {
    grid-template-columns: 1fr;
  }
  
  .bi dl {
    grid-template-columns: 100px 1fr;
    gap: 0.75rem 1rem;
  }
  
  .ct {
    padding: 1rem 0.75rem;
  }
}

@media (max-width: 480px) {
  nav a {
    padding: 0.4rem 0.15rem;
    font-size: 0.7rem;
  }
  
  .lg {
    font-size: 0.9rem;
  }
}
