* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: #1a1a2e;
  color: #eee;
  font-family: "Microsoft YaHei", "PingFang SC", sans-serif;
  min-height: 100vh;
}

/* ── 顶部标题区 ── */
.header {
  text-align: center;
  padding: 60px 20px 30px;
  background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
  border-bottom: 1px solid rgba(233,69,96,.18);
}
.header h1 {
  font-size: 32px;
  color: #e94560;
  letter-spacing: 4px;
  text-shadow: 0 0 20px rgba(233,69,96,.25);
  margin-bottom: 10px;
}
.header p {
  font-size: 14px;
  color: #8899aa;
  max-width: 500px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── 分类导航标签 ── */
.tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  padding: 24px 20px;
  flex-wrap: wrap;
}
.tab-btn {
  padding: 10px 28px;
  border-radius: 20px;
  border: 1px solid rgba(233,69,96,.25);
  background: rgba(233,69,96,.08);
  color: #ccc;
  font-size: 14px;
  cursor: pointer;
  transition: all .25s;
  user-select: none;
}
.tab-btn:hover {
  background: rgba(233,69,96,.2);
  color: #fff;
}
.tab-btn.active {
  background: rgba(233,69,96,.25);
  color: #e94560;
  border-color: #e94560;
  box-shadow: 0 0 16px rgba(233,69,96,.2);
}

/* ── 卡片容器 ── */
.card-wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ── 卡片 ── */
.card {
  background: rgba(22,33,62,.6);
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.05);
  overflow: hidden;
  transition: background .2s, border-color .2s;
}
.card:hover {
  background: rgba(233,69,96,.06);
  border-color: rgba(233,69,96,.15);
}

/* ── 卡片上部（品字上口）：左对齐 ── */
.card-top {
  display: flex;
  align-items: baseline;
  gap: 10px;
  padding: 14px 18px 12px;
  border-bottom: 1px solid rgba(255,255,255,.05);
}
.card-cat {
  font-size: 12px;
  color: #8899aa;
  flex-shrink: 0;
}
.card-name {
  font-size: 15px;
  font-weight: bold;
  color: #eee;
  line-height: 1.4;
}

/* ── 卡片下部（品字下口）：居中 ── */
.card-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 14px 18px;
  flex-wrap: wrap;
}
.card-bottom .duration {
  font-size: 12px;
  color: #8899aa;
  margin-left: 0;
}

/* ── 链接按钮 ── */
.link-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 16px;
  border-radius: 6px;
  font-size: 13px;
  text-decoration: none;
  transition: all .25s;
  white-space: nowrap;
}
.link-btn.doc {
  background: rgba(233,69,96,.12);
  color: #e94560;
  border: 1px solid rgba(233,69,96,.25);
}
.link-btn.doc:hover {
  background: rgba(233,69,96,.28);
  border-color: #e94560;
  box-shadow: 0 2px 12px rgba(233,69,96,.2);
}
.link-btn.video {
  background: rgba(0,200,150,.1);
  color: #00c896;
  border: 1px solid rgba(0,200,150,.25);
}
.link-btn.video:hover {
  background: rgba(0,200,150,.25);
  border-color: #00c896;
  box-shadow: 0 2px 12px rgba(0,200,150,.2);
}

.link-btn .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
  flex-shrink: 0;
}

/* ── 时长标签 ── */
.duration {
  display: inline-block;
  font-size: 12px;
  color: #8899aa;
  margin-left: 6px;
}

/* ── 底部 ── */
.footer {
  text-align: center;
  padding: 30px 20px 40px;
  color: #555;
  font-size: 12px;
}
.footer a {
  color: #e94560;
  text-decoration: none;
}
.footer a:hover {
  text-decoration: underline;
}

/* ── 回到顶部 ── */
.back-top {
  position: fixed;
  right: 24px;
  bottom: 30px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(233,69,96,.15);
  border: 1px solid rgba(233,69,96,.3);
  color: #e94560;
  cursor: pointer;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all .25s;
  z-index: 100;
  opacity: 0;
  pointer-events: none;
}
.back-top.show {
  opacity: 1;
  pointer-events: auto;
}
.back-top:hover {
  background: rgba(233,69,96,.3);
  transform: translateY(-3px);
}

/* ── 响应式：平板 ── */
@media (max-width: 768px) {
  .header { padding: 36px 16px 20px; }
  .header h1 { font-size: 24px; letter-spacing: 2px; }
  .header p { font-size: 13px; }

  .tab-bar { gap: 8px; padding: 16px 12px; }
  .tab-btn { padding: 8px 14px; font-size: 12px; border-radius: 16px; }

  .card-wrap { padding: 0 12px 40px; }

  .card-top { padding: 12px 14px 10px; }
  .card-name { font-size: 14px; }
  .card-bottom { padding: 12px 14px; }

  .link-btn { padding: 5px 10px; font-size: 11px; gap: 4px; }
  .link-btn .icon { width: 14px; height: 14px; }
  .duration { font-size: 11px; }
}

/* ── 响应式：手机 ── */
@media (max-width: 640px) {
  .header { padding: 28px 14px 18px; }
  .header h1 { font-size: 22px; }
  .header p { font-size: 12px; }

  .tab-bar {
    gap: 6px;
    padding: 12px 10px;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    justify-content: flex-start;
  }
  .tab-bar::-webkit-scrollbar { display: none; }
  .tab-btn {
    padding: 7px 14px;
    font-size: 12px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .card-wrap { padding: 0 10px 40px; gap: 10px; }

  .card-top { padding: 10px 12px 8px; gap: 8px; }
  .card-cat { font-size: 11px; }
  .card-name { font-size: 13px; }

  .card-bottom {
    padding: 10px 12px;
    gap: 8px;
    justify-content: center;
  }

  .link-btn {
    padding: 6px 14px;
    font-size: 12px;
    border-radius: 6px;
  }
  .link-btn .icon { width: 14px; height: 14px; }

  .card-bottom .duration {
    font-size: 11px;
    width: 100%;
    text-align: center;
  }

  .footer {
    padding: 20px 14px 30px;
    font-size: 11px;
    line-height: 2;
  }

  .back-top {
    right: 14px;
    bottom: 20px;
    width: 38px;
    height: 38px;
    font-size: 18px;
  }
}