/* =============================================================
 * Series · Visual 主题
 * 用于首页 index.html 中「Nicole Brichtova · Nano Banana」卡片
 * 香蕉黄 / 紫 / 天蓝 / 奶油白 —— 呼应 Google DeepMind 多模态视觉
 * ============================================================= */

/* Visual 主题卡片外层背景 —— 消除白色蒙层 */
.issue-card.issue-visual-theme {
  background:
    radial-gradient(120% 140% at 100% 0%, rgba(255, 217, 61, 0.20) 0%, rgba(255, 217, 61, 0) 50%),
    radial-gradient(100% 120% at 0% 100%, rgba(139, 92, 246, 0.16) 0%, rgba(139, 92, 246, 0) 55%),
    linear-gradient(135deg, #fffdf5 0%, #fff7e3 52%, #f7f0ff 100%);
  box-shadow:
    0 30px 90px -40px rgba(139, 92, 246, 0.35),
    0 14px 40px -18px rgba(255, 180, 0, 0.30),
    0 0 0 1px rgba(255, 217, 61, 0.55);
}

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

/* 右上角像素网格装饰 —— 呼应 "pixel-perfect editing" */
.issue-visual-theme .issue-card-inner::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 240px;
  height: 240px;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
  background-size: 16px 16px;
  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-visual-theme .issue-card-inner::after {
  content: "";
  position: absolute;
  left: -60px;
  bottom: -60px;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(255, 217, 61, 0.45) 0%, rgba(255, 217, 61, 0) 65%);
  filter: blur(8px);
  pointer-events: none;
  z-index: 0;
}

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

/* ===== 图钉 · Visual（黄色主题） ===== */
.avatar-frame-visual::after {
  background: radial-gradient(circle at 35% 35%, #ffe066, #ffb703) !important;
  box-shadow:
    inset -1px -1px 2px rgba(0, 0, 0, 0.2),
    0 2px 4px rgba(0, 0, 0, 0.25) !important;
}

/* ===== 头像框 · Visual ===== */
.avatar-frame-visual {
  position: relative;
  display: inline-block;
  padding: 6px;
  background:
    linear-gradient(135deg, #ffe066 0%, #ffd93d 40%, #a78bfa 100%);
  border-radius: 18px;
  box-shadow:
    0 12px 30px -10px rgba(139, 92, 246, 0.40),
    0 6px 14px -6px rgba(255, 185, 0, 0.35);
}

.avatar-frame-visual .avatar-img-wrap {
  width: 120px;
  height: 120px;
  border-radius: 16px;
  overflow: hidden;
  background: #fffaf0;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid #fffdf5;
}

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

/* 无图时的 CSS 艺术占位（香蕉像素徽标） */
.avatar-visual-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(110% 100% at 30% 30%, #fff4c7 0%, #ffe36b 50%, #ffc94a 100%);
  position: relative;
}

.avatar-visual-placeholder::before {
  content: "🍌";
  font-size: 96px;
  filter: drop-shadow(0 6px 12px rgba(139, 92, 246, 0.35));
  transform: rotate(-16deg);
}

.avatar-visual-placeholder::after {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(139, 92, 246, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(139, 92, 246, 0.08) 1px, transparent 1px);
  background-size: 12px 12px;
  mix-blend-mode: multiply;
  opacity: 0.7;
}

.avatar-corner-visual {
  position: absolute;
  right: -10px;
  bottom: -10px;
  padding: 5px 10px;
  background: linear-gradient(135deg, #ffd93d 0%, #ffb703 100%);
  color: #3a2a00;
  border-radius: 10px;
  font-family: "Caveat", cursive;
  font-weight: 700;
  font-size: 13px;
  line-height: 1.15;
  box-shadow:
    0 6px 16px -6px rgba(255, 185, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  border: 1px solid #fff8e0;
  transform: rotate(-4deg);
  text-align: center;
  white-space: nowrap;
}

/* ===== 标签 · Visual ===== */
.tag-issue-visual {
  background: linear-gradient(135deg, #ffd93d 0%, #ffb703 100%);
  color: #3a2a00;
  border: 1px solid rgba(58, 42, 0, 0.18);
  font-weight: 700;
  letter-spacing: 0.04em;
}

/* ===== 主按钮 · Visual ===== */
.btn-primary-visual {
  background: linear-gradient(135deg, #ffd93d 0%, #ffb703 100%);
  color: #3a2a00;
  border: 1px solid rgba(255, 255, 255, 0.3);
  box-shadow:
    0 10px 24px -10px rgba(255, 185, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.35);
  font-weight: 700;
}

.btn-primary-visual:hover {
  background: linear-gradient(135deg, #ffca28 0%, #ffa900 100%);
  transform: translateY(-1px);
  box-shadow:
    0 14px 30px -10px rgba(255, 185, 0, 0.65),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

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