/* =========================================================
   光娱资源库 - 前台样式（仿参考页：窄容器 + 垂直卡片列表）
   双端自适应：桌面居中窄容器(max-width:480px)，手机全宽
   ========================================================= */
:root {
  --theme-color: #4fd08a;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; background: #0b1120; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC",
    "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  position: relative;
  /* 深蓝黑夜间质感：线性渐变 + 多层光晕 */
  background:
    radial-gradient(1200px 620px at 50% -12%, rgba(74, 104, 220, .22) 0%, transparent 62%),
    radial-gradient(900px 520px at 88% 22%, rgba(122, 92, 224, .12) 0%, transparent 55%),
    linear-gradient(180deg, #0b1120 0%, #101a30 48%, #16213b 100%);
  min-height: 100vh;
  color: #e8ecf7;
  line-height: 1.5;
}

/* 顶部氛围辉光（跟随文档流，避免长页面滚动时出现断层/变白） */
body::before {
  content: "";
  position: absolute;
  top: -160px; left: 50%;
  transform: translateX(-50%);
  width: 680px; height: 420px;
  background: radial-gradient(ellipse at center, rgba(96, 130, 255, .16) 0%, transparent 68%);
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  padding: 0 12px 28px;
}

.container { width: 100%; }

/* ---------------- 顶部 ---------------- */
.site-header { text-align: center; padding: 34px 0 10px; }

.logo {
  width: 76px; height: 76px;
  margin: 0 auto 12px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 34px; font-weight: 700; color: #fff;
  background: radial-gradient(circle at 32% 30%, #f6d27a, #e59a3a 55%, #c97d22);
  border: 2px solid rgba(255, 216, 132, .85);
  box-shadow: 0 0 20px rgba(255, 180, 90, .35), 0 8px 26px rgba(0, 0, 0, .40), inset 0 1px 0 rgba(255, 255, 255, .50);
  user-select: none;
}

.site-title {
  font-size: 28px; font-weight: 800; color: #f2f5ff;
  letter-spacing: 1px;
  text-shadow: 0 0 18px rgba(130, 160, 255, .35), 0 2px 8px rgba(0, 0, 0, .45);
}

.site-subtitle {
  margin: 10px auto 0;
  font-size: 13px; color: #aab4cc;
  max-width: 420px;
  line-height: 1.75;
  letter-spacing: .3px;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.domain-row {
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.site-domain {
  font-size: 12px; color: #7f8bb0;
  word-break: break-all;
  cursor: pointer;
  transition: color .2s;
}
.site-domain:hover { color: #a5b4e0; }
.site-domain.copied { color: #9fe3bd; }
.domain-copy {
  flex-shrink: 0;
  font-size: 11px;
  line-height: 1;
  color: #9fe3bd;
  background: rgba(34, 92, 64, .35);
  border: 1px solid rgba(110, 210, 150, .35);
  border-radius: 999px;
  padding: 4px 10px;
  cursor: pointer;
  transition: background .2s, color .2s;
}
.domain-copy:hover { background: rgba(34, 92, 64, .55); color: #c8f5dc; }
.domain-copy.copied { background: rgba(34, 92, 64, .55); color: #c8f5dc; }

/* 公告条（圆角胶囊，深色适配柔和绿） */
.notice-bar {
  margin: 18px auto 0;
  max-width: 420px;
  display: flex; align-items: center; gap: 8px;
  background: rgba(34, 92, 64, .30);
  border: 1px solid rgba(110, 210, 150, .35);
  border-radius: 999px;
  padding: 8px 14px;
  font-size: 12px; color: #9fe3bd;
  box-shadow: 0 2px 12px rgba(0, 0, 0, .28);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.notice-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #4fd08a;
  box-shadow: 0 0 9px rgba(79, 208, 138, .85);
  flex: none;
  animation: noticePulse 1.8s ease-in-out infinite;
}
@keyframes noticePulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(79, 208, 138, .55); }
  50%      { box-shadow: 0 0 0 6px rgba(79, 208, 138, 0); }
}
.notice-text {
  text-align: left;
  white-space: normal;
  line-height: 1.6;
  word-break: break-word;
}

/* ---------------- 主体：垂直卡片列表 ---------------- */
.content { margin-top: 22px; }

.list-head {
  font-size: 13px; color: #9aa7c4;
  padding: 6px 4px 2px;
}

.res-list { display: flex; flex-direction: column; gap: 15px; }

/* 深色玻璃质感卡片 */
.res-card {
  display: flex; align-items: center; gap: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .10);
  border-radius: 16px;
  padding: 14px 16px;
  text-decoration: none; color: inherit;
  box-shadow: 0 3px 12px rgba(0, 0, 0, .22);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: transform .14s ease, box-shadow .14s ease, background .14s ease, border-color .14s ease;
}
.res-card:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, .10);
  border-color: rgba(255, 255, 255, .22);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .30);
}
.res-card:active { transform: scale(.985); }

/* 右测“前往”按钮 */
.res-go {
  position: relative;
  overflow: hidden;
  flex: none;
  align-self: center;
  margin-left: 2px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  padding: 7px 13px;
  border-radius: 999px;
  font-size: 12.5px;
  font-weight: 700;
  color: #03291b;
  background: linear-gradient(135deg, #22e68b, #00c46a);
  box-shadow: 0 3px 12px rgba(0, 196, 106, .45);
  transition: box-shadow .14s ease, transform .14s ease, background .14s ease;
  white-space: nowrap;
}
.res-go-arrow { transition: transform .14s ease; }

/* 前往/复制按钮：点击涟漪反馈 */
.res-go::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(circle at center, rgba(255, 255, 255, .55) 0%, transparent 62%);
  opacity: 0;
  transform: scale(.35);
  pointer-events: none;
}
.res-go:active::after {
  animation: resGoRipple .5s ease-out;
}
@keyframes resGoRipple {
  0%   { opacity: .55; transform: scale(.35); }
  100% { opacity: 0;   transform: scale(2.4); }
}
.res-card:hover .res-go {
  background: linear-gradient(135deg, #5bdd97, #37c37a);
  box-shadow: 0 5px 14px rgba(47, 181, 110, .50);
}
.res-card:hover .res-go-arrow { transform: translateX(3px); }
.res-card:active .res-go { transform: scale(.94); }

/* 左侧封面小图标（与封面图统一圆角） */
.res-cover {
  width: 44px; height: 44px;
  flex: none;
  border-radius: 10px;
  overflow: hidden;
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; font-weight: 600; color: rgba(255, 255, 255, .95);
}
.res-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* 右侧信息 */
.res-info { flex: 1 1 0; min-width: 0; max-width: 100%; }
.res-title {
  display: flex; align-items: center; gap: 6px;
  font-size: 15px; font-weight: 700; color: #ffffff;
  line-height: 1.4;
}
.res-title-text {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}
.res-subtitle {
  margin-top: 3px;
  font-size: 12px; color: #9aa7c4;
  overflow: hidden;
  word-break: break-word;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

/* 徽标（最新/热门，橙色胶囊） */
.res-badge {
  flex: none;
  align-self: flex-start;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 12px; line-height: 1.5;
  color: #ffd9ad;
  white-space: nowrap;
  background: rgba(255, 150, 60, .16);
  border: 1px solid rgba(255, 175, 100, .40);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
}

/* 空状态 / 加载 */
.loading, .empty {
  text-align: center; color: #8b96b0;
  font-size: 13px; padding: 40px 0;
}

/* ---------------- 底部 ---------------- */
.site-footer { text-align: center; margin-top: 22px; }

.footer-qr { margin-bottom: 10px; }
.footer-qr img {
  width: 104px; height: 104px;
  border-radius: 14px;
  background: #fff; padding: 6px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .40);
}

.footer-text { font-size: 12px; color: #6b7280; letter-spacing: .3px; }

/* ---------------- 手机端微调 ---------------- */
@media (max-width: 480px) {
  .page { padding: 0 12px 24px; }
  .site-header { padding: 22px 0 4px; }
  .logo { width: 68px; height: 68px; font-size: 30px; }
  .site-title { font-size: 23px; }
  .site-subtitle { font-size: 12px; }
  .res-card { padding: 12px 13px; gap: 10px; }
  .res-cover { width: 40px; height: 40px; }
  .res-title { font-size: 14px; }
  .res-go { padding: 6px 12px; font-size: 12px; }
}
