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

body {
  background: #fdfaf5;
  color: #2d2a26;
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  line-height: 1.5;
  min-height: 100vh;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 12px;
}

/* Header ── 更紧凑 */
.sun-header {
  text-align: center;
  padding: 20px 0 24px;
}

.sun-logo {
  max-width: 430px;
  height: auto;
  display: block;
  margin: 0 auto 12px;
}

.sun-header h1 {
  font-size: 1.9rem;
  font-weight: 700;
  color: #c2410c;
  margin: 0;
}

/* Notice ── 更窄 */
.notice-area {
  background: #fef2e8;
  color: #9c3c00;
  padding: 8px 12px;
  margin: 0 0 16px;
  text-align: center;
  border: 1px solid #f4c49f;
  border-radius: 6px;
  font-size: 0.92rem;
}

.notice-area a {
  color: #9f1239;
  font-weight: 600;
  text-decoration: underline;
}

/* Banner ── 收紧 */
.banner-area {
  margin: 0 0 20px;
  text-align: center;
}

.banner-area img {
  width: 100%;
  max-height: 70px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid #e5d9cc;
}

/* 各区域 ── 更紧凑 */
.icon-area,
.video-area,
.nav-area,
.novel-area {
  background: #f8f5f1;
  padding: 16px 12px;
  margin-bottom: 20px;
  border: 1px solid #e5d9cc;
  border-radius: 6px;
}

.section-title {
  font-size: 1.28rem;
  font-weight: 700;
  color: #c2410c;
  margin: 0 0 12px;
  padding-bottom: 6px;
  border-bottom: 2px solid #f4c49f;
}

/* ── 核心网格调整 ── */
.icon-grid,
.video-grid,
.nav-grid,
.novel-grid {
  display: grid;
  grid-template-columns: repeat(10, 1fr);           /* 电脑默认10列 */
  gap: 4px 5px;                                    /* 更小的间距 */
  text-align: center;
}

/* 图标区专属样式：图标在上，文字在下 */
.icon-grid a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  text-decoration: none;
  color: #2d2a26;
  font-size: 0.88rem;          /* 文字更小一点 */
  font-weight: 500;
  padding: 6px 4px;
  border-radius: 6px;
  transition: background-color 0.12s ease;
}

.icon-grid img {
  width: 52px;
  height: 52px;
  margin-bottom: 6px;          /* 图标和文字间距缩小 */
  border-radius: 8px;
  object-fit: contain;
}

/* 其他网格（文字为主的） */
.video-grid a,
.nav-grid a,
.novel-grid a {
  display: flex;
  align-items: center;
  justify-content: center;
  color: #2d2a26;
  text-decoration: none;
  font-size: 0.9rem;
  font-weight: 500;
  padding: 8px 6px;
  border-radius: 6px;
  text-align: center;
  line-height: 1.3;
  transition: background-color 0.12s ease;
}

/* hover 统一 */
.icon-grid a:hover,
.video-grid a:hover,
.nav-grid a:hover,
.novel-grid a:hover {
  background: #f0e8df;
}

/* Footer ── 更紧凑 */
.footer {
  margin-top: 32px;
  padding: 20px 0 28px;
  text-align: center;
  font-size: 0.86rem;
  color: #5c554a;
  border-top: 1px solid #d4cdc4;
}

.footer a {
  color: #9f1239;
}

.footer a:hover {
  text-decoration: underline;
}

.apply-btn {
  display: inline-block;
  margin-top: 12px;
  padding: 8px 20px;
  background: #e9c6b7;
  color: white;
  font-weight: 600;
  border: none;
  border-radius: 6px;
  text-decoration: none;
  font-size: 0.95rem;
}



/* ── 响应式：手机端收窄到4列 ── */
@media (max-width: 1024px) {
  .container {
    padding: 12px 10px;
  }
  .sun-logo {
    max-width: 220px;
  }
}

@media (max-width: 768px) {
  .icon-grid,
  .video-grid,
  .nav-grid,
  .novel-grid {
    grid-template-columns: repeat(4, 1fr);    /* 手机4列 */
    gap: 10px 8px;
  }

  .icon-grid img {
    width: 54px;
    height: 54px;
    margin-bottom: 5px;
  }

  .icon-grid a,
  .video-grid a,
  .nav-grid a,
  .novel-grid a {
    font-size: 0.84rem;
    padding: 6px 4px;
  }

  .section-title {
    font-size: 1.18rem;
  }
}

@media (max-width: 480px) {
  .icon-grid img {
    width: 50px;
    height: 50px;
  }
  .icon-grid a,
  .video-grid a,
  .nav-grid a,
  .novel-grid a {
    font-size: 0.82rem;
  }
}