:root {
  --bg: #f2f4f8;
  --card: #ffffff;
  --text: #1a1d23;
  --muted: #6b7280;
  --line: #e6eaf0;
  --brand: #1a5fd0;
  --brand-2: #2b7cf0;
  --brand-soft: #eef4ff;
  --red: #e63946;
  --radius: 12px;
  --shadow: 0 2px 6px rgba(16, 24, 40, .05), 0 12px 32px rgba(16, 24, 40, .08);
  --maxw: 1200px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }

/* ---------- 顶部公告 ---------- */
.notice {
  background: #10182b;
  color: #c7d3e8;
  font-size: 12.5px;
  line-height: 1.5;
  padding: 8px 20px;
  text-align: center;
}

/* ---------- 导航 ---------- */
.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, .94);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}

.topbar-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  height: 62px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: -.2px;
  white-space: nowrap;
}

.brand-mark {
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-2) 100%);
  position: relative;
  flex: 0 0 auto;
}

.brand-mark::after {
  content: "";
  position: absolute;
  left: 7px;
  top: 8px;
  width: 12px;
  height: 2px;
  background: #fff;
  box-shadow: 0 5px 0 #fff, 0 10px 0 rgba(255,255,255,.6);
  border-radius: 1px;
}

.nav {
  display: flex;
  gap: 4px;
  overflow-x: auto;
  scrollbar-width: none;
  margin-left: auto;
}

.nav::-webkit-scrollbar { display: none; }

.nav a {
  flex: 0 0 auto;
  padding: 7px 14px;
  border-radius: 8px;
  font-size: 14px;
  color: #4b5563;
  transition: all .15s;
  white-space: nowrap;
  cursor: pointer;
}

.nav a:hover { background: #f1f4f9; color: var(--brand); }

.nav a.active {
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 600;
}

/* ---------- 轮播 ---------- */
.hero {
  position: relative;
  overflow: hidden;
  background: #0b1730;
}

.hero .slides {
  display: flex;
  transition: transform .65s cubic-bezier(.4, 0, .2, 1);
  will-change: transform;
}

.hero .slide {
  flex: 0 0 100%;
  height: 400px;
  display: block;
}

.hero .slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero .dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 18px;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 2;
}

.hero .dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  border: none;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  padding: 0;
  transition: all .3s;
}

.hero .dot.active {
  width: 28px;
  background: #fff;
}

.hero .arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: none;
  background: rgba(10, 20, 40, .35);
  color: #fff;
  font-size: 18px;
  cursor: pointer;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background .2s;
}

.hero .arrow:hover { background: rgba(10, 20, 40, .6); }
.hero .arrow.prev { left: 18px; }
.hero .arrow.next { right: 18px; }

/* ---------- 主体 ---------- */
.main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px 20px;
}

.section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 28px 0 18px;
  flex-wrap: wrap;
}

.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -.2px;
}

.section-title .bar {
  width: 4px;
  height: 18px;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--brand) 0%, var(--brand-2) 100%);
}

.search-box {
  position: relative;
  width: 300px;
  max-width: 100%;
}

.search-box svg {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 17px;
  height: 17px;
  stroke: #9ca3af;
  pointer-events: none;
}

.search-box input {
  width: 100%;
  height: 40px;
  padding: 0 14px 0 38px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  font-size: 14px;
  color: var(--text);
  outline: none;
  transition: border-color .15s, box-shadow .15s;
}

.search-box input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(26, 95, 208, .1);
}

/* ---------- 卡片 ---------- */
.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px 18px 16px;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  display: flex;
  flex-direction: column;
}

.card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow);
  border-color: #d6e0f0;
}

.card-head {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
}

.card-head h2 {
  margin: 0;
  font-size: 16.5px;
  font-weight: 700;
  line-height: 1.45;
  letter-spacing: -.2px;
  flex: 1;
  min-width: 0;
}

.badge-pin {
  flex: 0 0 auto;
  height: 20px;
  padding: 0 7px;
  border-radius: 5px;
  background: #fff2e8;
  color: #c2410c;
  font-size: 11.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
}

/* 按钮组 */
.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 14px;
}

.btn-row a {
  display: inline-flex;
  align-items: center;
  height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  font-size: 12.5px;
  color: #fff;
  transition: filter .15s, transform .1s;
  white-space: nowrap;
}

.btn-row a:hover { filter: brightness(1.08); }
.btn-row a:active { transform: scale(.97); }

.btn-row a.red { background: var(--red); }
.btn-row a.blue { background: var(--brand); }
.btn-row a.green { background: #0f9d58; }
.btn-row a.orange { background: #ea8c1b; }
.btn-row a.gray { background: #6b7280; }

/* 封面 */
.card-cover {
  position: relative;
  aspect-ratio: 16 / 9;
  border-radius: 9px;
  overflow: hidden;
  background: linear-gradient(135deg, #e8eef8 0%, #dbe6f5 100%);
  margin-bottom: 14px;
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.card:hover .card-cover img { transform: scale(1.03); }

.card-cover .ph {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #93a6c4;
  font-size: 13px;
}

/* 字段行 */
.fields {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}

.fields li {
  display: flex;
  gap: 6px;
  font-size: 13px;
  line-height: 1.55;
  color: #374151;
}

.fields .k {
  flex: 0 0 auto;
  color: var(--brand);
  font-weight: 600;
  white-space: nowrap;
}

.fields .v {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-meta {
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px dashed #e8ecf2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
  color: #9ca3af;
}

.card-meta .tag {
  display: inline-flex;
  align-items: center;
  height: 21px;
  padding: 0 8px;
  border-radius: 5px;
  background: #f3f6fb;
  color: #5b6b85;
  font-size: 12px;
}

/* ---------- 空状态 / 分页 ---------- */
.empty {
  display: none;
  padding: 72px 0;
  text-align: center;
  color: var(--muted);
}

.empty.show { display: block; }

.empty strong {
  display: block;
  color: var(--text);
  font-size: 16px;
  margin-bottom: 6px;
}

.pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 32px 0 48px;
  flex-wrap: wrap;
}

.pager button {
  min-width: 36px;
  height: 36px;
  padding: 0 12px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  font-size: 13.5px;
  cursor: pointer;
  transition: all .15s;
}

.pager button:hover:not(:disabled) { border-color: #b9cdf0; color: var(--brand); }

.pager button.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
}

.pager button:disabled { opacity: .4; cursor: not-allowed; }
.pager .info { color: var(--muted); font-size: 13px; margin: 0 4px; }

/* ---------- 页脚 ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  background: #fff;
  padding: 22px 0 36px;
}

.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  color: #9ca3af;
  font-size: 12.5px;
}

.footer-inner a { color: var(--muted); }
.footer-inner a:hover { color: var(--brand); }

/* ---------- 骨架屏 ---------- */
.skeleton {
  height: 420px;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #e9edf4 25%, #f3f6fa 37%, #e9edf4 63%);
  background-size: 400% 100%;
  animation: shimmer 1.4s ease infinite;
}

@keyframes shimmer {
  0% { background-position: 100% 50%; }
  100% { background-position: 0 50%; }
}

/* ---------- 响应式 ---------- */
@media (max-width: 1024px) {
  .grid { grid-template-columns: repeat(2, 1fr); }
  .hero .slide { height: 320px; }
}

@media (max-width: 720px) {
  .topbar-inner {
    height: auto;
    flex-wrap: wrap;
    gap: 8px;
    padding: 10px 14px 8px;
  }
  .brand { font-size: 15.5px; }
  .nav {
    width: 100%;
    margin-left: 0;
    padding-bottom: 2px;
    -webkit-mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
    mask-image: linear-gradient(90deg, #000 88%, transparent 100%);
  }
  .nav a { padding: 6px 11px; font-size: 13px; }
  .hero .slide { height: 200px; }
  .hero .slide img { object-position: left center; }
  .hero .arrow { display: none; }
  .hero .dots { bottom: 10px; }
  .section-head { padding: 20px 0 14px; gap: 12px; }
  .section-title { font-size: 17px; }
  .search-box { width: 100%; }
  .grid { grid-template-columns: 1fr; gap: 14px; }
  .card { padding: 15px; }
  .card-head h2 { font-size: 15.5px; }
  .main { padding: 0 14px 10px; }
  .topbar-inner { padding: 0 14px; }
  .footer-inner { padding: 0 14px; }
  .notice { font-size: 11.5px; padding: 7px 14px; }
}
