
/* 全局样式 */
* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Microsoft YaHei', 'PingFang SC', sans-serif;
  line-height: 1.6;
  color: #333;
  background: linear-gradient(135deg, #f5f7fa 0%, #e8eef5 100%);
  min-height: 100vh;
}

a {
  color: #2563eb;
  text-decoration: none;
  transition: all 0.3s ease;
}

a:hover {
  color: #1d4ed8;
  text-decoration: underline;
}

.header {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: #fff;
  border-bottom: 3px solid rgba(255,255,255,0.1);
  padding: 1.5rem 0;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}

.header a { color: #fff; }
.header a:hover {
  color: #fbbf24;
  text-decoration: none;
  transform: translateY(-2px);
}

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

.logo {
  font-size: 1.75rem;
  font-weight: bold;
  margin-bottom: 0.75rem;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
  letter-spacing: 2px;
}

.nav {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
}

.nav a {
  flex: 1 1 0;
  min-width: 0;
  text-align: center;
  padding: 0.6rem 0.5rem;
  background: rgba(255,255,255,0.1);
  border-radius: 8px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 0.95rem;
  font-weight: 500;
}

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

.main {
  padding: 2rem 0 4rem;
}

.section {
  background: #fff;
  padding: 2rem;
  margin-bottom: 2rem;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: all 0.3s ease;
}

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

.card {
  border: 1px solid #e5e7eb;
  padding: 1.25rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: #fafafa;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateX(4px);
  border-color: #cbd5e0;
}

h1 {
  font-size: 2rem;
  margin-bottom: 1rem;
  color: #1f2937;
  border-bottom: 3px solid #667eea;
  padding-bottom: 0.5rem;
}

h2 {
  font-size: 1.5rem;
  margin-bottom: 1rem;
  color: #374151;
  position: relative;
  padding-left: 1rem;
}

h2::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 1.2em;
  background: #667eea;
  border-radius: 2px;
}

h3 {
  font-size: 1.25rem;
  margin-bottom: 0.5rem;
  color: #4b5563;
}

.info {
  color: #6b7280;
  font-size: 0.875rem;
  margin: 0.25rem 0;
}

.info strong {
  color: #374151;
  margin-right: 0.25rem;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .nav a {
    font-size: 0.8rem;
    padding: 0.5rem 0.3rem;
  }

  h1 { font-size: 1.5rem; }
  h2 { font-size: 1.25rem; }

  .section {
    padding: 1.25rem;
    margin-bottom: 1.5rem;
  }

  .card {
    padding: 1rem;
  }

  .logo {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .nav a {
    font-size: 0.75rem;
    padding: 0.4rem 0.2rem;
  }
}
