/**
 * anime-theme.css
 * 星梦云 · 彩虹登录系统首页 二次元风格主题层
 * 说明：本文件为增量覆盖层，仅作用于引入它的首页模板（index.php）。
 * 关闭本文件即可回退到默认 style.css 主题，不影响其他页面。
 * 设计语言：梦幻星空粉紫系二次元 —— 糖果渐变 / 大圆角 / 星光闪烁 / 漂浮云朵与光点
 * 兼容：Bootstrap 4.6.2 + FontAwesome 5.15.4 + 原生 style.css
 */
:root {
  --acg-purple: #7b2ff7;
  --acg-blue: #4f7cf7;
  --acg-cyan: #37c6ff;
  --acg-pink: #ff7ac3;
  --acg-peach: #ffb98a;
  --acg-ink: #2a1a5e;
  --acg-text: #5b4a7a;
  --acg-card-shadow: 0 10px 30px rgba(123, 47, 247, .10);
  --acg-card-shadow-hover: 0 18px 42px rgba(123, 47, 247, .20);
}

body {
  background: #fdf7ff;
  color: var(--acg-text);
}

/* ========== 顶部导航：星空糖果渐变 ========== */
.clogin-header {
  background-image: linear-gradient(90deg, #7b2ff7 0%, #4f7cf7 45%, #37c6ff 100%);
  box-shadow: 0 6px 24px rgba(42, 26, 94, .22);
}

.clogin-header .navbar-brand {
  font-weight: 700;
  letter-spacing: .5px;
}

.clogin-header .navbar-brand img {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(42, 26, 94, .28);
}

.clogin-header .navbar-nav .nav-link {
  border-radius: 999px;
  padding: .5rem 1.05rem;
  transition: background .3s ease, transform .3s ease;
}

.clogin-header .navbar-nav .nav-item.active .nav-link,
.clogin-header .navbar-nav .nav-link:hover {
  background: rgba(255, 255, 255, .20);
  transform: translateY(-1px);
}

/* 滚动后：毛玻璃半透明 */
.clogin-header.clogin-header-white {
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  box-shadow: 0 8px 30px rgba(123, 47, 247, .14);
}

.clogin-header.clogin-header-white a {
  color: #6b4fa8 !important;
}

.clogin-header.clogin-header-white .navbar-nav .nav-item.active .nav-link,
.clogin-header.clogin-header-white .navbar-nav .nav-link:hover {
  background: rgba(123, 47, 247, .10);
}

/* ========== Banner：梦幻星空 + 星光闪烁 ========== */
.clogin-banner {
  position: relative;
  overflow: hidden;
  background-image:
    radial-gradient(2px 2px at 12% 26%, #ffffff 50%, transparent 51%),
    radial-gradient(2px 2px at 24% 66%, #ffe9f5 50%, transparent 51%),
    radial-gradient(3px 3px at 36% 18%, #ffffff 50%, transparent 51%),
    radial-gradient(2px 2px at 50% 78%, #ffffff 50%, transparent 51%),
    radial-gradient(3px 3px at 62% 30%, #ffe9f5 50%, transparent 51%),
    radial-gradient(2px 2px at 74% 60%, #ffffff 50%, transparent 51%),
    radial-gradient(3px 3px at 86% 24%, #ffffff 50%, transparent 51%),
    radial-gradient(2px 2px at 10% 84%, #ffe9f5 50%, transparent 51%),
    radial-gradient(2px 2px at 44% 42%, #ffffff 50%, transparent 51%),
    radial-gradient(3px 3px at 92% 70%, #ffffff 50%, transparent 51%),
    linear-gradient(120deg, #2a1a5e 0%, #7b2ff7 34%, #ff7ac3 72%, #ffb98a 100%);
}

.clogin-banner::before,
.clogin-banner::after {
  content: "";
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  animation: acgTwinkle 4.5s ease-in-out infinite;
}

/* 底部柔光 */
.clogin-banner::before {
  width: 560px;
  height: 560px;
  right: -140px;
  bottom: -220px;
  background: radial-gradient(circle, rgba(255, 255, 255, .38), transparent 68%);
  filter: blur(8px);
}

/* 右上星光 */
.clogin-banner::after {
  width: 240px;
  height: 240px;
  top: -60px;
  right: 12%;
  background: radial-gradient(circle, rgba(255, 255, 255, .30), transparent 70%);
  animation-delay: 1.2s;
}

.clogin-banner .row {
  position: relative;
  z-index: 3;
}

.clogin-banner h1 {
  margin: 20px;
  text-shadow: 0 2px 14px rgba(42, 26, 94, .45);
  letter-spacing: 1px;
}

.clogin-banner p {
  color: rgba(255, 255, 255, .92);
  text-shadow: 0 1px 8px rgba(42, 26, 94, .35);
}

.clogin-banner .banner-title {
  padding: 56px 0 96px;
}

/* 按钮组：糖果渐变胶囊 */
.clogin-banner .clogin-banner-buttons a {
  background: linear-gradient(90deg, #ff7ac3, #7b2ff7);
  color: #ffffff !important;
  border: none;
  border-radius: 999px;
  padding: 11px 28px;
  font-weight: 600;
  box-shadow: 0 10px 24px rgba(42, 26, 94, .35);
  transition: transform .3s ease, box-shadow .3s ease;
}

.clogin-banner .clogin-banner-buttons a:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(42, 26, 94, .45);
}

/* Hero 插画：圆角卡片 + 光晕 + 浮动 */
.acg-hero-wrap {
  position: relative;
  display: inline-block;
  margin: 26px 0 20px;
}

.acg-hero-wrap::before,
.acg-hero-wrap::after {
  content: "✦";
  position: absolute;
  color: #fff7ff;
  font-size: 30px;
  line-height: 1;
  text-shadow: 0 0 12px rgba(255, 122, 195, .9);
  z-index: 4;
  animation: acgTwinkle 3.2s ease-in-out infinite;
}

.acg-hero-wrap::before {
  top: -16px;
  left: 6%;
}

.acg-hero-wrap::after {
  content: "✧";
  bottom: -12px;
  right: 8%;
  font-size: 24px;
  animation-delay: 1.4s;
}

.acg-hero-img {
  display: block;
  max-width: 100%;
  height: auto;
  max-height: 330px;
  border-radius: 28px;
  border: 5px solid rgba(255, 255, 255, .55);
  box-shadow: 0 20px 50px rgba(61, 20, 120, .40);
  animation: acgFloat 5s ease-in-out infinite;
}

@keyframes acgFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@keyframes acgTwinkle {
  0%, 100% { opacity: .5; }
  50% { opacity: 1; }
}

/* ========== 区块标题：渐变文字 + 星光 ========== */
.clogin-section-title h2 {
  background: linear-gradient(90deg, #7b2ff7, #ff5fae);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent !important;
  position: relative;
  display: inline-block;
  padding: 0 6px;
}

.clogin-section-title h2::before,
.clogin-section-title h2::after {
  content: "✦";
  color: #ff7ac3;
  font-size: .72em;
  vertical-align: .18em;
  padding: 0 4px;
  text-shadow: 0 0 10px rgba(255, 122, 195, .8);
}

/* ========== 简介区 ========== */
.clogin-section.clogin-info {
  background: #ffffff;
}

.clogin-section.clogin-info p {
  color: #6d5b8f;
  line-height: 1.9;
  font-size: 15px;
}

/* ========== 功能区：淡紫渐变 + 二次元卡片 ========== */
.clogin-section.clogin-functions {
  background: linear-gradient(180deg, #fdf6ff 0%, #f0e9ff 100%);
}

.clogin-section .um-uapp-insight-card {
  background: #ffffff;
  border-radius: 22px;
  padding: 26px 26px 30px;
  box-shadow: var(--acg-card-shadow);
  transition: transform .35s ease, box-shadow .35s ease;
  overflow: hidden;
}

.clogin-section .um-uapp-insight-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--acg-card-shadow-hover);
}

.clogin-section .um-uapp-insight-card .um-uapp-insight-card-img {
  height: 200px;
  width: 500px;
  border-radius: 16px;
  border: 4px solid #f3e8ff;
  object-fit: cover;
}

.clogin-section .um-uapp-insight-card .um-uapp-insight-card-content .um-uapp-insight-card-title {
  color: #3a2b66;
  font-weight: 700;
}

.clogin-section .um-uapp-insight-card .um-uapp-insight-card-content .um-uapp-insight-card-desc {
  color: #76669c;
  line-height: 1.85;
}

/* ========== 友情链接区 ========== */
.clogin-section.clogin-links {
  background: linear-gradient(180deg, #f0e9ff 0%, #fdf7ff 100%);
}

.clogin-section.clogin-links .clogin-links-title {
  color: #4a3a7d;
}

/* ========== Footer：星空渐变 ========== */
.clogin-footer {
  background: linear-gradient(135deg, #3b1d78 0%, #7b2ff7 55%, #ff7ac3 100%);
  color: rgba(255, 255, 255, .90);
  padding: 18px 15px;
}

.clogin-footer a {
  color: #ffe9f5;
}

/* ========== 响应式微调 ========== */
@media (max-width: 991.98px) {
  .clogin-header .navbar-collapse {
    background: rgba(123, 47, 247, .96);
    border-radius: 14px;
    padding: 8px 12px;
    margin-top: 8px;
    box-shadow: 0 12px 30px rgba(42, 26, 94, .35);
  }

  .clogin-header.clogin-header-white .navbar-collapse {
    background: rgba(255, 255, 255, .97);
  }

  .clogin-header .navbar-nav .nav-link {
    padding: .55rem 1rem;
  }
}

@media (max-width: 767.98px) {
  .clogin-banner .banner-title {
    padding: 40px 0 60px;
  }

  .acg-hero-wrap {
    margin: 6px 0 14px;
  }
}

@media (max-width: 575.98px) {
  .clogin-section {
    padding: 38px 0;
  }

  .clogin-section .um-uapp-insight-card {
    padding: 18px;
  }

  .clogin-section .um-uapp-insight-card .um-uapp-insight-card-imgwrap {
    width: 88% !important;
  }

  .clogin-section .um-uapp-insight-card .um-uapp-insight-card-content {
    width: 92% !important;
  }

  .acg-hero-img {
    max-height: 250px;
    border-radius: 22px;
  }
}