/* ===== 基础重置 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #0f172a;
  background: #0f172a;
  overflow-x: hidden;
}

/* ===== 背景层 ===== */
.bg {
  position: fixed;
  inset: 0;
  z-index: -2;
  background-size: cover;
  background-position: center;
  background-color: #1e293b;
  transition: opacity .6s ease;
}
.overlay {
  position: fixed;
  inset: 0;
  z-index: -1;
  background: rgba(15, 23, 42, .45);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* ===== 布局 ===== */
.container {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 48px 24px;
  gap: 36px;
}

/* ===== 头部 ===== */
.header { text-align: center; color: #fff; }
.header h1 {
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 2px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .25);
}
.subtitle {
  margin-top: 10px;
  font-size: 16px;
  opacity: .85;
  letter-spacing: 2px;
}

/* ===== 板块布局（响应式，2 列自动换行） ===== */
.panels {
  width: min(1100px, 100%);
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.panel {
  background: rgba(255, 255, 255, .94);
  border-radius: 18px;
  padding: 28px 28px 20px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .18);
  display: flex;
  flex-direction: column;
  gap: 16px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  text-decoration: none;
  color: #0f172a;
}
/* 整块可点击的大卡片 */
.panel-link {
  cursor: pointer;
  transition: transform .18s, box-shadow .18s;
  min-height: 140px;
  justify-content: center;
}
.panel-link:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(0, 0, 0, .28);
}
.panel-desc {
  margin: 0;
  font-size: 15px;
  line-height: 1.7;
  color: #475569;
}
.panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 12px;
}
.panel-title { font-size: 22px; font-weight: 600; color: #0f172a; }
.panel-sub { font-size: 13px; color: #64748b; }

/* ===== 链接列表 ===== */
.links { display: flex; flex-direction: column; gap: 6px; }
.link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 10px;
  text-decoration: none;
  color: #0f172a;
  transition: background .15s, transform .15s;
}
.link:hover { background: #f1f5f9; transform: translateX(2px); }
.link-name { font-size: 15px; font-weight: 500; }
.link-desc { font-size: 13px; color: #64748b; }

/* ===== 左上角校徽 ===== */
.badge {
  position: fixed;
  top: 24px;
  left: 28px;
  z-index: 10;
  display: inline-flex;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  overflow: hidden;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 4px 14px rgba(0, 0, 0, .25);
  transition: transform .15s, box-shadow .15s;
}
.badge:hover { transform: scale(1.05); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.badge img { width: 100%; height: 100%; object-fit: contain; }
.badge:empty,
.badge img[src=""] { display: none; }

/* ===== 页脚 ===== */
.footer {
  color: #fff;
  opacity: .8;
  font-size: 13px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 8px;
  line-height: 1.6;
}
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: center;
}
.footer-links a {
  color: #fff;
  text-decoration: none;
  opacity: .85;
  transition: opacity .15s;
}
.footer-links a:hover { opacity: 1; text-decoration: underline; }
.footer-info { display: inline-flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.footer-info a {
  color: #fff;
  text-decoration: none;
  opacity: .85;
  transition: opacity .15s;
}
.footer-info a:hover { opacity: 1; text-decoration: underline; }
.footer-info .sep { opacity: .5; }
.footer-meta { opacity: .7; }

/* ===== 底部免责声明 ===== */
.disclaimer {
  max-width: 720px;
  margin: 0 auto;
  font-size: 12px;
  line-height: 1.7;
  color: #fff;
  opacity: .6;
  text-align: center;
}

/* ===== 响应式 ===== */
@media (max-width: 768px) {
  .panels { grid-template-columns: 1fr; }
  .header h1 { font-size: 30px; }
  .container { padding: 32px 16px; gap: 28px; }
  .badge { width: 48px; height: 48px; top: 16px; right: 16px; }
}

/* ===== 加载占位 ===== */
.loading {
  color: #fff;
  opacity: .7;
  font-size: 14px;
  text-align: center;
}
