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

:root {
  --primary-color: #f59e0b;
  --primary-dark: #d97706;
  --secondary-color: #ea580c;
  --text-dark: #333333;
  --text-light: #666666;
  --bg-light: #f8f9fa;
  --white: #ffffff;
  --border-color: #e0e0e0;
  --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  --transition: all 0.3s ease;
}

body {
  font-family: 'Microsoft YaHei', 'PingFang SC', sans-serif;
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-light);
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

/* 顶部导航 */
.header {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: var(--white);
  padding: 1rem 0;
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

.header-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.logo {
  font-size: 1.8rem;
  font-weight: bold;
  display: flex;
  align-items: center;
  gap: 10px;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: var(--white);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-color);
  font-weight: bold;
  font-size: 1.2rem;
}

.nav-menu {
  display: flex;
  gap: 5px;
}

.nav-link {
  padding: 10px 20px;
  border-radius: 5px;
  font-weight: 500;
  transition: var(--transition);
}

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

/* 主要内容区域 */
.main {
  min-height: calc(100vh - 200px);
  padding: 40px 0;
}

/* 页面标题 */
.page-title {
  text-align: center;
  margin-bottom: 40px;
}

.page-title h1 {
  font-size: 2.5rem;
  color: var(--primary-dark);
  margin-bottom: 10px;
}

.page-title p {
  color: var(--text-light);
  font-size: 1.1rem;
}

/* 卡片样式 */
.card {
  background: var(--white);
  border-radius: 12px;
  padding: 30px;
  box-shadow: var(--shadow);
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.15);
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  border: none;
  font-size: 1rem;
}

.btn-primary {
  background: var(--primary-color);
  color: var(--white);
}

.btn-primary:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-secondary {
  background: var(--secondary-color);
  color: var(--white);
}

.btn-secondary:hover {
  background: #e65c00;
  transform: translateY(-2px);
}

/* 网格布局 */
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(400px, 1fr));
}

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

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

/* 区块样式 */
.section {
  margin-bottom: 50px;
}

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

/* 列表样式 */
.list-item {
  background: var(--white);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: var(--transition);
  cursor: pointer;
}

.list-item:hover {
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
  transform: translateX(5px);
  border-left: 4px solid var(--primary-color);
}

.list-item h3 {
  color: var(--primary-dark);
  margin-bottom: 8px;
  font-size: 1.2rem;
}

.list-item p {
  color: var(--text-light);
  font-size: 0.95rem;
}

/* 标签样式 */
.tag {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.85rem;
  font-weight: 500;
  margin-right: 8px;
  margin-bottom: 8px;
}

.tag-blue {
  background: #e3f2fd;
  color: #1976d2;
}

.tag-orange {
  background: #fff3e0;
  color: #f57c00;
}

.tag-green {
  background: #e8f5e9;
  color: #388e3c;
}

/* 页脚 */
.footer {
  background: var(--text-dark);
  color: var(--white);
  padding: 40px 0;
  margin-top: 50px;
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 30px;
}

.footer-section h3 {
  margin-bottom: 15px;
  color: var(--white);
  font-size: 1.3rem;
}

.footer-section a {
  display: block;
  color: #ccc;
  margin-bottom: 10px;
}

.footer-section a:hover {
  color: var(--white);
  padding-left: 10px;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  color: #999;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .header-content {
    flex-direction: column;
    gap: 15px;
  }

  .nav-menu {
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-link {
    padding: 8px 15px;
    font-size: 0.9rem;
  }

  .page-title h1 {
    font-size: 1.8rem;
  }

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

/* 动画效果 */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}
