/* ===== 基础 ===== */
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", system-ui, sans-serif;
  color: #1f2d3d;
  background: #f4f7fb;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ===== 顶部 Hero ===== */
.hero {
  position: relative;
  overflow: hidden;
  padding: 72px 20px 84px;
  text-align: center;
  color: #fff;
  background: linear-gradient(135deg, #1e6091 0%, #2a9d8f 55%, #3aa6b9 100%);
}
.hero-bg {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(circle at 12% 20%, rgba(255,255,255,.16) 0 2px, transparent 2px),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,.12) 0 2px, transparent 2px),
    radial-gradient(circle at 70% 75%, rgba(255,255,255,.10) 0 2px, transparent 2px),
    radial-gradient(circle at 30% 80%, rgba(255,255,255,.10) 0 2px, transparent 2px);
  background-size: 90px 90px, 120px 120px, 140px 140px, 100px 100px;
  opacity: .9;
}
.hero-inner { position: relative; z-index: 1; }
.logo-mark {
  width: 76px; height: 76px; margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 20px;
  background: rgba(255,255,255,.16);
  border: 1.5px solid rgba(255,255,255,.55);
  backdrop-filter: blur(2px);
  color: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
}
.hero h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: 4px;
  font-weight: 800;
  text-shadow: 0 2px 10px rgba(0,0,0,.18);
}
.hero-sub {
  margin: 14px 0 0;
  font-size: 16px;
  opacity: .92;
  letter-spacing: 1px;
}

/* ===== 卡片网格 ===== */
.wrap {
  flex: 1;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 20px 40px;
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 22px;
  margin-top: -46px;          /* 让卡片上移压住 hero 底部 */
  position: relative;
  z-index: 2;
}
.loading {
  grid-column: 1 / -1;
  text-align: center;
  color: #8a98a8;
  padding: 60px 0;
}

/* ===== 单个导航卡片 ===== */
.card {
  --c: #1e6091;
  position: relative;
  display: block;
  text-decoration: none;
  color: inherit;
  background: #fff;
  border-radius: 16px;
  padding: 26px 22px 22px;
  border: 1px solid #eef1f5;
  box-shadow: 0 6px 20px rgba(31,45,61,.07);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
  overflow: hidden;
}
/* 顶部分色条 —— 栏目特色底纹 */
.card::before {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 6px;
  background: var(--c);
}
/* 角落淡色水印 */
.card::after {
  content: "";
  position: absolute;
  right: -28px; bottom: -28px;
  width: 110px; height: 110px;
  border-radius: 50%;
  background: var(--c);
  opacity: .07;
  pointer-events: none;
}
.card:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 30px rgba(31,45,61,.14);
  border-color: var(--c);
}
.badge {
  width: 56px; height: 56px;
  border-radius: 16px;
  display: flex; align-items: center; justify-content: center;
  background: var(--c);
  color: #fff;
  box-shadow: 0 6px 14px color-mix(in srgb, var(--c) 35%, transparent);
  margin-bottom: 16px;
}
.badge svg { width: 30px; height: 30px; }
/* 栏目名称 —— 特色边框 + 底纹 */
.name {
  display: inline-block;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: 1px;
  color: var(--c);
  padding: 5px 14px;
  border: 1.5px solid var(--c);
  border-radius: 999px;
  background: color-mix(in srgb, var(--c) 10%, #fff);
  margin-bottom: 12px;
}
.desc {
  font-size: 13.5px;
  line-height: 1.7;
  color: #6b7785;
  min-height: 44px;
}
.go {
  margin-top: 14px;
  font-size: 13px;
  font-weight: 600;
  color: var(--c);
  opacity: 0;
  transform: translateX(-4px);
  transition: opacity .18s ease, transform .18s ease;
}
.card:hover .go { opacity: 1; transform: translateX(0); }

/* ===== 底部 ===== */
.foot {
  text-align: center;
  padding: 30px 20px 36px;
  border-top: 1px solid #e9eef4;
  background: #fff;
}
.admin-link {
  display: inline-block;
  font-size: 14px;
  color: #5a6675;
  text-decoration: none;
  padding: 8px 18px;
  border: 1px dashed #c3ccd6;
  border-radius: 10px;
  transition: all .15s ease;
}
.admin-link:hover {
  color: #1e6091;
  border-color: #1e6091;
  background: #f0f6fc;
}
.copyright {
  margin: 14px 0 0;
  font-size: 12.5px;
  color: #9aa6b2;
}

@media (max-width: 600px) {
  .hero h1 { font-size: 28px; }
  .cards { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 16px; }
  .card { padding: 20px 16px 18px; }
  .name { font-size: 16px; }
}
