/* =============================================================
 * Series · Nexus 主题
 * 用于首页 index.html 中「Clara Shih · Salesforce AI / Meta」卡片
 * 深海蓝 / 钴蓝 / 信任金 / 银白 —— 呼应企业级 AI 枢纽感
 * ============================================================= */

/* Nexus 主题卡片外层背景 */
.issue-card.issue-nexus-theme {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(46, 134, 222, 0.16) 0%, rgba(46, 134, 222, 0) 50%),
    radial-gradient(100% 120% at 0% 100%, rgba(246, 185, 59, 0.12) 0%, rgba(246, 185, 59, 0) 55%),
    linear-gradient(135deg, #0a1628 0%, #0c2461 52%, #0f1d3a 100%);
  box-shadow:
    0 30px 90px -40px rgba(46, 134, 222, 0.40),
    0 14px 40px -18px rgba(246, 185, 59, 0.20),
    0 0 0 1px rgba(46, 134, 222, 0.35);
  color: #e8eef8;
}

.issue-nexus-theme .issue-card-inner {
  background: transparent;
  border: none;
  box-shadow: none;
  position: relative;
  overflow: hidden;
}

/* 右上角精密网格装饰 —— 呼应企业级 "连接网络" */
.issue-nexus-theme .issue-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background-image:
    linear-gradient(rgba(46, 134, 222, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 134, 222, 0.10) 1px, transparent 1px);
  background-size: 18px 18px;
  mask-image: radial-gradient(closest-side, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

/* 左下角信任金柔光圆斑 */
.issue-nexus-theme .issue-card-inner::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(246, 185, 59, 0.25) 0%, rgba(246, 185, 59, 0) 65%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

.issue-nexus-theme .issue-card-inner > * {
  position: relative;
  z-index: 1;
}

/* 暗色卡片内文字颜色覆盖 */
.issue-nexus-theme .meta-pm-name {
  color: #e8eef8;
}
.issue-nexus-theme .meta-pm-role {
  color: #b8c7dc;
}
.issue-nexus-theme .issue-title {
  color: #e8eef8;
}
.issue-nexus-theme .issue-subtitle {
  color: #b8c7dc;
}
.issue-nexus-theme .issue-excerpt {
  color: #b8c7dc;
}
.issue-nexus-theme .issue-excerpt strong {
  color: #f6b93b;
}
.issue-nexus-theme .issue-readtime,
.issue-nexus-theme .issue-date {
  color: #7a8fa8;
}
.issue-nexus-theme .kw {
  background: rgba(46, 134, 222, 0.12);
  color: #b8c7dc;
  border-color: rgba(46, 134, 222, 0.25);
}

/* ===== 图钉 · Nexus（蓝金主题） ===== */
.avatar-frame-nexus::after {
  background: radial-gradient(circle at 35% 35%, #5dade2, #2e86de) !important;
  box-shadow:
    inset -1px -1px 2px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

/* ===== 头像框 · Nexus ===== */
.avatar-frame-nexus {
  position: relative;
  display: inline-block;
  padding: 6px;
  background:
    linear-gradient(135deg, #2e86de 0%, #0652DD 40%, #f6b93b 100%);
  border-radius: 18px;
  box-shadow:
    0 12px 30px -10px rgba(46, 134, 222, 0.50),
    0 6px 14px -6px rgba(246, 185, 59, 0.30);
}

.avatar-frame-nexus .avatar-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #0f1d3a;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.10);
}

.avatar-frame-nexus .avatar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 无图时的 CSS 占位 */
.avatar-nexus-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(110% 100% at 30% 30%, #0f2b5e 0%, #0c2461 50%, #0a1628 100%);
  position: relative;
}

.avatar-nexus-placeholder::before {
  content: "🔗";
  font-size: 64px;
  filter: drop-shadow(0 6px 12px rgba(46, 134, 222, 0.45));
}

.avatar-nexus-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(46, 134, 222, 0.10) 1px, transparent 1px),
    linear-gradient(90deg, rgba(46, 134, 222, 0.10) 1px, transparent 1px);
  background-size: 14px 14px;
  mix-blend-mode: screen;
  opacity: 0.5;
}

.avatar-corner-nexus {
  position: absolute;
  right: -10px;
  bottom: -10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #2e86de 0%, #0652DD 100%);
  color: #fff;
  border-radius: 10px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  box-shadow:
    0 6px 16px -6px rgba(46, 134, 222, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  border: 1px solid rgba(255, 255, 255, 0.12);
  transform: rotate(-4deg);
  text-align: center;
  white-space: nowrap;
}

/* ===== 标签 · Nexus ===== */
.tag-issue-nexus {
  background: linear-gradient(135deg, #2e86de 0%, #0652DD 100%);
  color: #fff;
  border: none;
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== 主按钮 · Nexus ===== */
.btn-primary-nexus {
  background: linear-gradient(135deg, #2e86de 0%, #0652DD 100%);
  color: #fff;
  border: none;
  box-shadow:
    0 10px 24px -10px rgba(46, 134, 222, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.20);
  font-weight: 700;
}

.btn-primary-nexus:hover {
  background: linear-gradient(135deg, #3498db 0%, #0b42a0 100%);
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px -10px rgba(46, 134, 222, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.25);
}

/* 次按钮在暗色卡片上的覆盖 */
.issue-nexus-theme .btn-secondary {
  color: #b8c7dc;
  border-color: rgba(46, 134, 222, 0.30);
}
.issue-nexus-theme .btn-secondary:hover {
  color: #f6b93b;
  border-color: rgba(246, 185, 59, 0.40);
}

/* 移动端 */
@media (max-width: 720px) {
  .avatar-frame-nexus {
    padding: 4px;
  }
  .avatar-frame-nexus .avatar-img-wrap {
    width: 88px;
    height: 88px;
    border-radius: 12px;
  }
  .avatar-nexus-placeholder::before {
    font-size: 42px;
  }
  .avatar-corner-nexus {
    font-size: 11px;
    right: -6px;
    bottom: -6px;
    padding: 3px 8px;
  }
  .issue-nexus-theme .issue-card-inner::before {
    width: 100px;
    height: 100px;
  }
}

/* =============================================================
 * 头像「白板便签」风 · Nexus 适配（与 01-04 卡片结构一致，仅换主题色）
 * 用法：在 .avatar-frame 之后叠加 .avatar-frame-nexus-light
 * 让头像虚线框背景、虚线、图钉、角标贴纸都呼应深海蓝/信任金主题
 * ============================================================= */
.issue-nexus-theme .avatar-frame.avatar-frame-nexus-light::before {
  background: #0f1d3a;
  border-color: rgba(246, 185, 59, 0.40);
  box-shadow: inset 0 0 0 1px rgba(46, 134, 222, 0.18);
}
.issue-nexus-theme .avatar-frame.avatar-frame-nexus-light::after {
  background: radial-gradient(circle at 35% 35%, #5dade2, #2e86de);
  box-shadow:
    inset -1px -1px 2px rgba(0, 0, 0, 0.25),
    0 2px 6px rgba(46, 134, 222, 0.45);
}
.issue-nexus-theme .avatar-frame.avatar-frame-nexus-light .avatar-img-wrap {
  background: #0a1628;
  box-shadow: 0 6px 22px rgba(0, 0, 0, 0.5);
}
.issue-nexus-theme .avatar-corner-quote.avatar-corner-nexus-light {
  background: linear-gradient(135deg, #2e86de 0%, #0652DD 100%);
  color: #ffffff;
  font-family: 'Caveat', cursive;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 6px 16px -6px rgba(46, 134, 222, 0.55);
  border: 1px solid rgba(246, 185, 59, 0.30);
}
