:root {
  --primary: #1f7bf0;
  --primary-dark: #1566d6;
  --page-bg: #f1f4f9;
  --row-bg: #eaf2ff;
  --text: #1b2b41;
  --text-soft: #6b7c93;
  --card: #ffffff;
  --radius: 16px;
  --shadow: 0 6px 18px rgba(31, 95, 175, 0.08);
  --max-width: 560px;
}

* {
  box-sizing: border-box;
  -webkit-tap-highlight-color: transparent;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--page-bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
    'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.page {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 12px 12px 0;
}

/* --------------------------------- 顶部 --------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  padding: 22px 18px 30px;
  background: linear-gradient(135deg, #3a92f8 0%, var(--primary) 45%, var(--primary-dark) 100%);
  box-shadow: 0 10px 24px rgba(21, 102, 214, 0.28);
  color: #fff;
}

.hero::before,
.hero::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  pointer-events: none;
}

.hero::before {
  width: 180px;
  height: 180px;
  right: -60px;
  top: -80px;
}

.hero::after {
  width: 120px;
  height: 120px;
  right: 40px;
  bottom: -70px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 14px;
}

.hero-logo {
  flex: 0 0 auto;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: #fff;
  padding: 3px;
  object-fit: cover;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.16);
}

.hero-logo-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: 700;
  color: var(--primary);
}

.hero-text {
  min-width: 0;
  flex: 1;
}

.hero-title-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-title {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0.5px;
  line-height: 1.2;
}

.hero-tag {
  font-size: 11px;
  font-weight: 500;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.35);
  white-space: nowrap;
}

.hero-sub {
  margin: 8px 0 0;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.5;
  word-break: break-word;
}

/* --------------------------------- 主体 --------------------------------- */

.main {
  position: relative;
  z-index: 2;
  margin-top: -16px;
}

.card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 16px 14px;
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 15.5px;
  font-weight: 700;
  color: #16233a;
}

.card-title .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #ff4d4f;
  box-shadow: 0 0 0 4px rgba(255, 77, 79, 0.14);
}

/* 公告音频播放器 */
.player {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #f4f7fd;
  border-radius: 999px;
  padding: 3px 12px 3px 4px;
}

.player-btn {
  width: 26px;
  height: 26px;
  border-radius: 50%;
  border: none;
  background: linear-gradient(135deg, #4a9bfa, var(--primary-dark));
  color: #fff;
  font-size: 11px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  padding: 0;
}

.player-btn svg {
  width: 12px;
  height: 12px;
  fill: #fff;
}

.player-time {
  font-size: 11px;
  color: #8a97a8;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.notice-bar {
  margin-top: 12px;
  background: #fff1f4;
  color: #e5394b;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13px;
  line-height: 1.5;
  border-left: 3px solid #ffc2cc;
  word-break: break-word;
}

.notice-bar b,
.notice-bar strong {
  font-weight: 700;
}

.quick-list {
  margin-top: 12px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.quick-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--row-bg);
  border-radius: 12px;
  padding: 9px 10px;
}

.quick-num {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 11.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.quick-text {
  flex: 1;
  min-width: 0;
  font-size: 13.5px;
  color: #1f2d3d;
  word-break: break-word;
}

.btn-pill {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 86px;
  padding: 8px 16px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4a9bfa, var(--primary-dark));
  color: #fff !important;
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 4px 10px rgba(31, 123, 240, 0.28);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-pill:active {
  transform: scale(0.97);
}

/* -------------------------------- 分组卡片 -------------------------------- */

.section {
  margin-top: 22px;
}

.section-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
  padding-left: 2px;
}

.section-bar {
  width: 4px;
  height: 17px;
  border-radius: 3px;
  background: var(--primary);
}

.section-title {
  margin: 0;
  font-size: 16.5px;
  font-weight: 800;
  color: #16233a;
  letter-spacing: 0.3px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  background: var(--card);
  border-radius: 14px;
  padding: 14px 6px 12px;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: inherit;
  transition: transform 0.16s ease, box-shadow 0.16s ease;
  min-height: 118px;
}

.tile:active {
  transform: translateY(1px) scale(0.985);
}

.tile-img {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  object-fit: cover;
  background: #f2f6fc;
}

.tile-title {
  margin-top: 9px;
  font-size: 13.5px;
  font-weight: 600;
  color: #1f2d3d;
  text-align: center;
  line-height: 1.25;
  word-break: break-word;
}

.tile-badge {
  margin-top: 7px;
  font-size: 10.5px;
  line-height: 1.6;
  padding: 1px 8px;
  border-radius: 999px;
  background: #3b8ef7;
  color: #fff;
  white-space: nowrap;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
}

.home-indicator {
  width: 120px;
  height: 5px;
  border-radius: 3px;
  background: rgba(0, 0, 0, 0.12);
  margin: 22px auto 0;
}

/* --------------------------------- 页脚 --------------------------------- */

.footer {
  padding: 26px 6px 34px;
  text-align: center;
  color: #93a1b3;
  font-size: 12px;
}

.footer-links {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.footer-links a {
  color: #7d8ca0;
  text-decoration: none;
}

.footer-links a:active {
  color: var(--primary);
}

.footer-copy {
  line-height: 1.8;
  word-break: break-word;
}

.footer-icp {
  margin-top: 4px;
  color: #a6b2c2;
}

.footer-icp a {
  color: #a6b2c2;
  text-decoration: none;
}

/* --------------------------------- 弹窗 --------------------------------- */

.modal[hidden] {
  display: none;
}

.modal {
  position: fixed;
  inset: 0;
  z-index: 99;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 22px;
}

.modal-mask {
  position: absolute;
  inset: 0;
  background: rgba(9, 22, 40, 0.45);
  backdrop-filter: blur(2px);
}

.modal-card {
  position: relative;
  width: 100%;
  max-width: 340px;
  background: #fff;
  border-radius: 16px;
  padding: 20px 18px 16px;
  box-shadow: 0 18px 40px rgba(9, 22, 40, 0.28);
  animation: pop 0.24s ease;
}

@keyframes pop {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.modal-title {
  margin: 0 0 10px;
  font-size: 17px;
  font-weight: 800;
  text-align: center;
  color: #16233a;
}

.modal-body {
  font-size: 14px;
  color: #4a5a70;
  line-height: 1.75;
  text-align: center;
  max-height: 46vh;
  overflow: auto;
  word-break: break-word;
}

.modal-btn {
  display: block;
  margin: 16px 0 0;
  padding: 11px;
  border-radius: 999px;
  text-align: center;
  text-decoration: none;
  color: #fff !important;
  font-weight: 700;
  font-size: 14.5px;
  background: linear-gradient(135deg, #4a9bfa, var(--primary-dark));
  box-shadow: 0 6px 14px rgba(31, 123, 240, 0.3);
}

.modal-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  margin-top: 12px;
}

.modal-ok {
  border: none;
  background: none;
  color: #8a97a8;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 6px;
}

.modal-tip {
  font-size: 12px;
  color: #b3bdcb;
}

.modal-once {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 8px;
  font-size: 12px;
  color: #9aa7b8;
  cursor: pointer;
}

.modal-once input {
  accent-color: var(--primary);
  width: 14px;
  height: 14px;
}

/* -------------------------------- 宽屏适配 -------------------------------- */

@media (min-width: 620px) {
  .page {
    padding-top: 22px;
  }

  .hero {
    padding: 26px 24px 34px;
  }

  .hero-title {
    font-size: 24px;
  }

  .grid {
    gap: 12px;
  }
}
