/* 全局基础设置 */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  color: #222;
  background: #f5f7fb;
  line-height: 1.6;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
  display: block;
}

/* 通用宽度 */
.container {
  width: 100%;
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 16px;
}

/* 顶部导航 */
.site-header {
  background: #ffffff;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 100;
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 8px;
}

.logo img {
  height: 40px;
  width: auto;
}

.site-name {
  font-size: 20px;
  font-weight: 600;
  color: #0058b0; /* 接近 logo 蓝色 */
}

.main-nav a {
  margin-left: 24px;
  font-size: 15px;
  color: #374151;
  padding: 4px 0;
  position: relative;
}

.main-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #ff6b3d; /* 接近 logo 日出橙 */
  transition: width 0.2s;
}

.main-nav a:hover::after {
  width: 100%;
}

/* 主体 */
.site-main {
  padding: 32px 0 48px;
}

/* 通用块 */
.section {
  margin-bottom: 40px;
}

.section-title {
  font-size: 24px;
  margin-bottom: 16px;
  color: #111827;
}

.section-subtitle {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 24px;
}

/* 首页 hero 区 */
.hero {
  display: grid;
  grid-template-columns: 2fr 1.3fr;
  gap: 32px;
  align-items: center;
  margin-bottom: 40px;
}

.hero-title {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 16px;
  color: #111827;
}

.hero-desc {
  font-size: 16px;
  color: #4b5563;
  margin-bottom: 24px;
}

.btn-primary {
  display: inline-block;
  padding: 10px 22px;
  border-radius: 999px;
  background: linear-gradient(90deg, #ff6b3d, #ff9155);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}

.card-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.card {
  background: #ffffff;
  border-radius: 12px;
  padding: 18px 16px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.04);
}

.card h3 {
  font-size: 16px;
  margin-bottom: 8px;
  color: #111827;
}

.card p {
  font-size: 14px;
  color: #6b7280;
}

/* 列表页面 */
.list {
  list-style: none;
}

.list-item {
  padding: 14px 0;
  border-bottom: 1px solid #e5e7eb;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.list-item-title {
  font-size: 15px;
  color: #111827;
}

.list-item-meta {
  font-size: 13px;
  color: #9ca3af;
}

/* 页脚 */
.site-footer {
  border-top: 1px solid #e5e7eb;
  background: #ffffff;
  padding: 16px 0;
  font-size: 13px;
  color: #6b7280;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.footer-right a {
  color: #2563eb;
}

/* 响应式：手机 */
@media (max-width: 768px) {
  .header-inner {
    flex-direction: column;
    align-items: flex-start;
    height: auto;
    padding: 8px 0 10px;
    gap: 6px;
  }

  .main-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
  }

  .main-nav a {
    margin-left: 0;
  }

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

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