/* ==========================================================
   Ritsuai 律合官网 · 首页（index.html）自定义样式
   ========================================================== */

/* ----- 装饰性几何元素 ----- */
.geo-accent-line { position: relative; }
.geo-accent-line::before {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 48px;
  height: 2px;
  background: linear-gradient(90deg, transparent, #8b5cf6, transparent);
  border-radius: 1px;
}

/* ----- 微光扫过效果 ----- */
.shimmer-overlay { position: relative; overflow: hidden; }
.shimmer-overlay::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg,
    transparent 40%,
    rgba(255,255,255,0.45) 45%,
    rgba(255,255,255,0.7) 50%,
    rgba(255,255,255,0.45) 55%,
    transparent 60%);
  background-size: 200% 100%;
  transform: translateX(-100%);
  transition: none;
  pointer-events: none;
  z-index: 2;
}
.shimmer-overlay:hover::after { animation: shimmerSweep 0.9s cubic-bezier(0.65, 0, 0.35, 1) forwards; }
@keyframes shimmerSweep { to { transform: translateX(100%); } }

/* ----- 标题下划线装饰 ----- */
.heading-underline { position: relative; display: inline-block; padding-bottom: 8px; }
.heading-underline::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) scaleX(0);
  width: 60%;
  height: 2px;
  background: linear-gradient(90deg, transparent, #6366f1, #8b5cf6, transparent);
  border-radius: 1px;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.heading-underline.visible::after { transform: translateX(-50%) scaleX(1); }

/* ----- 作品卡片悬浮遮罩 ----- */
.work-card {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.06);
  transition: all 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.work-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.5) 100%);
  opacity: 0;
  transition: opacity 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 1;
  pointer-events: none;
}
.work-card:hover::before { opacity: 1; }
.work-card:hover { transform: translateY(-8px); box-shadow: 0 20px 48px rgba(0, 0, 0, 0.15); }
.work-card img { transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1); }
.work-card:hover img { transform: scale(1.06); }
.work-card-label {
  position: absolute;
  bottom: 16px;
  left: 16px;
  z-index: 2;
  opacity: 0;
  transform: translateY(12px);
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1) 0.05s;
  color: #fff;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.05em;
}
.work-card:hover .work-card-label { opacity: 1; transform: translateY(0); }
@media (max-width: 768px) { .work-card:hover { transform: translateY(-4px); } }

/* ----- 公告卡片时间轴风格 ----- */
.announcement-card {
  position: relative;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 12px;
  padding: 28px 32px;
  transition: all 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  overflow: hidden;
}
.announcement-card::before {
  content: '';
  position: absolute;
  left: 0;
  top: 20%;
  height: 60%;
  width: 3px;
  background: linear-gradient(180deg, #6366f1, #8b5cf6);
  border-radius: 0 3px 3px 0;
  transform: scaleY(0);
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}
.announcement-card:hover::before { transform: scaleY(1); }
.announcement-card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  transform: translateX(4px);
}
@media (max-width: 768px) { .announcement-card { padding: 20px 20px; } }

/* ----- 标签徽章 ----- */
.badge-primary {
  background: linear-gradient(135deg, #6366f1, #8b5cf6);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
  box-shadow: 0 2px 8px rgba(99, 102, 241, 0.25);
}
.badge-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: #4b5563;
  font-size: 0.7rem;
  font-weight: 500;
  padding: 4px 12px;
  border-radius: 20px;
  letter-spacing: 0.04em;
}

/* ----- Ritsu「Ai」与你 Banner ----- */
.ritsuai-banner {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.1);
  transition: all 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.ritsuai-banner::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at center, rgba(99, 102, 241, 0.15) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.5s ease;
  pointer-events: none;
  z-index: 1;
}
.ritsuai-banner:hover::after { opacity: 1; }
.ritsuai-banner:hover { transform: translateY(-4px); box-shadow: 0 20px 56px rgba(0, 0, 0, 0.18); }
.ritsuai-banner img { transition: transform 0.7s cubic-bezier(0.16, 1, 0.3, 1); }
.ritsuai-banner:hover img { transform: scale(1.04); }

/* ----- 脉冲光环 ----- */
.pulse-ring {
  position: absolute;
  inset: -4px;
  border-radius: inherit;
  border: 2px solid rgba(99, 102, 241, 0.3);
  animation: pulseRing 2.4s ease-out infinite;
  pointer-events: none;
}
@keyframes pulseRing {
  0% { transform: scale(1); opacity: 0.6; }
  100% { transform: scale(1.06); opacity: 0; }
}
