/* 全局重置 + 基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
body {
  font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
  background: #fdf2f8;
  color: #333;
  line-height: 1.6;
  scroll-behavior: smooth;
}
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2; /* 确保内容在樱花上层 */
}

/* 一级导航栏（渐变+阴影+悬浮效果） */
.top-nav {
  background: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%);
  color: #fff;
  padding: 12px 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: sticky;
  top: 0;
  z-index: 999;
  box-shadow: 0 4px 15px rgba(255,77,136,0.3);
  transition: all 0.3s ease;
}
.top-nav:hover {
  box-shadow: 0 6px 20px rgba(255,77,136,0.4);
}
.nav-left {
  display: flex;
  align-items: center;
}
.logo-main {
  font-size: 22px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.logo-main::before {
  content: "";
  display: inline-block;
  width: 20px;
  height: 20px;
  background-color: #fff;
  border-radius: 2px;
  box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
}
.clock {
  font-size: 16px;
  color: #fff;
  text-shadow: 0 1px 3px rgba(0,0,0,0.1);
}
.logout-btn {
  border: 1px solid #fff;
  padding: 5px 12px;
  border-radius: 4px;
  cursor: pointer;
  color: #fff;
  transition: all 0.3s ease;
  font-size: 14px;
  background: rgba(255,255,255,0.1);
}
.logout-btn:hover {
  background: #fff;
  color: #ff4d88;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

/* 二级导航栏（紧凑+图标垂直+高亮） */
.sub-nav {
  background: #fff;
  padding: 15px 30px;
  display: flex;
  justify-content: flex-start;
  align-items: center;
  box-shadow: 0 2px 15px rgba(0,0,0,0.08);
  gap: 25px;
  position: sticky;
  top: 60px;
  z-index: 998;
  transition: all 0.3s ease;
}
.sub-nav:hover {
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
}
.sub-nav-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  margin-right: 30px;
}
.sub-logo-main {
  font-size: 32px;
  font-weight: 700;
  color: #ff4d88;
  line-height: 1;
  text-shadow: 0 1px 2px rgba(255,77,136,0.2);
}
.sub-logo-sub {
  font-size: 20px;
  color: #ff4d88;
  line-height: 1;
  margin-top: 4px;
  opacity: 0.8;
}
.sub-nav-center {
  display: flex;
  align-items: center;
  gap: 25px;
  flex-wrap: nowrap;
}
.sub-nav-center span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 6px 8px;
  cursor: pointer;
  font-size: 16px;
  color: #666;
  transition: all 0.3s ease;
  position: relative;
  min-width: 80px;
  border-radius: 8px;
}
.sub-nav-center span i {
  font-size: 20px;
  transition: all 0.3s ease;
}
.sub-nav-center span::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 3px;
  background: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%);
  transition: all 0.3s ease;
  transform: translateX(-50%);
  border-radius: 3px;
}
.sub-nav-center span:hover {
  color: #ff4d88;
  background: rgba(255,77,136,0.05);
  transform: translateY(-2px);
}
.sub-nav-center span:hover i {
  transform: scale(1.1);
}
.sub-nav-center span:hover::after {
  width: 70%;
}
.nav-active {
  color: #ff4d88 !important;
  font-weight: 600;
  background: rgba(255,77,136,0.08);
}
.nav-active::after {
  width: 70% !important;
}

/* 轮播图（适配目标尺寸，宽高比≈3.67:1） */
.banner {
  width: 100%;
  height: calc(100vw / 3.67); 
  max-height: 500px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
  margin-bottom: 40px;
  border-radius: 15px;
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  z-index: 2;
}
.carousel-item {
  position: absolute;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1s ease-in-out;
}
.carousel-item.active {
  opacity: 1;
}
.carousel-item img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background-color: #ffffff;
  transform: scale(1.02);
  transition: transform 6s ease;
}
.carousel-item.active img {
  transform: scale(1);
}
.carousel-prev, .carousel-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.9);
  color: #ff4d88;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  font-size: 18px;
  z-index: 10;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}
.carousel-prev { left: 20px; }
.carousel-next { right: 20px; }
.carousel-prev:hover, .carousel-next:hover {
  background: #ff4d88;
  color: #fff;
  transform: translateY(-50%) scale(1.15);
  box-shadow: 0 6px 15px rgba(255,77,136,0.3);
}
.banner-text {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  text-align: center;
  background: linear-gradient(90deg, rgba(0,0,0,0.4) 0%, rgba(255,77,136,0.3) 100%);
  padding: 15px 30px;
  border-radius: 10px;
  backdrop-filter: blur(8px);
  text-shadow: 0 2px 4px rgba(0,0,0,0.2);
  box-shadow: 0 4px 15px rgba(0,0,0,0.2);
  transition: all 0.3s ease;
  z-index: 3;
}
.banner-text:hover {
  transform: translateX(-50%) translateY(-5px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.3);
}
.banner-text h2 {
  font-size: 24px;
  margin-bottom: 8px;
  font-weight: 600;
}
.banner-text p {
  font-size: 16px;
  margin-bottom: 12px;
}
.banner-btn {
  padding: 8px 20px;
  font-size: 14px;
  border-radius: 20px;
  background: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255,77,136,0.3);
}
.banner-btn:hover {
  background: linear-gradient(90deg, #ff6b9e 0%, #ff80b0 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255,107,158,0.4);
}
.banner-btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(255,77,136,0.3);
}

/* 首页三栏布局核心样式 */
.home-layout {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr; /* 左1:中2:右1 */
  gap: 25px;
  margin-top: 20px;
}
.home-left, .home-center, .home-right {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

/* 侧边栏卡片（悬浮上移+渐变边框+阴影） */
.widget {
  background: #fff;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  border-top: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%) 1;
}
.widget:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0,0,0,0.15);
  border-top: 3px solid #ff4d88;
}
.widget h3 {
  color: #ff4d88;
  margin-bottom: 12px;
  border-bottom: 2px solid #fdf2f8;
  padding-bottom: 8px;
  font-size: 18px;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,77,136,0.1);
}
.letter-img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.letter-img:hover {
  transform: scale(1.02);
  box-shadow: 0 5px 12px rgba(0,0,0,0.15);
}
.letter-txt, .wish-txt {
  font-size: 13px;
  color: #666;
  line-height: 1.5;
  text-align: left;
  margin-bottom: 12px;
}

/* 通用按钮样式（补全所有按钮效果） */
.btn {
  background: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%);
  color: #fff;
  border: none;
  padding: 10px 20px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  transition: all 0.3s ease;
  box-shadow: 0 3px 10px rgba(255,77,136,0.2);
}
.btn:hover {
  background: linear-gradient(90deg, #ff6b9e 0%, #ff4d88 100%);
  transform: translateY(-3px);
  box-shadow: 0 6px 15px rgba(255,77,136,0.3);
}
.btn:active {
  transform: translateY(-1px);
  box-shadow: 0 3px 8px rgba(255,77,136,0.25);
}
.btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
  background: #ccc !important;
}
.btn.small {
  padding: 8px 15px;
  font-size: 12px;
  border-radius: 6px;
}
.btn.secondary {
  background: transparent;
  color: #ff4d88;
  border: 2px solid #ff8fab;
  box-shadow: none;
}
.btn.secondary:hover {
  background: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%);
  color: #fff;
  border-color: transparent;
}

/* 新闻模块（5条+正方形图片+悬浮效果） */
.section-title {
  font-size: 24px;
  background: linear-gradient(90deg, #ff8fab, #ffc2d1, #ff8fab);
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: textShine 5s ease-in-out infinite;
  margin-bottom: 20px;
  padding-left: 15px;
  position: relative;
  font-weight: 600;
  text-shadow: 0 1px 2px rgba(255,77,136,0.1);
}
@keyframes textShine {
  0% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}
.section-title::before {
  content: '';
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 6px;
  height: 24px;
  background: linear-gradient(180deg, #ff4d88 0%, #ff6b9e 100%);
  border-radius: 3px;
}
.news-item {
  display: flex;
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  margin-bottom: 15px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
}
.news-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.news-item img {
  width: 160px;
  height: 160px; /* 正方形 */
  object-fit: cover;
}
.news-info {
  padding: 15px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.news-info h3 {
  font-size: 16px;
  margin-bottom: 6px;
  color: #333;
  font-weight: 600;
  transition: all 0.3s ease;
}
.news-item:hover .news-info h3 {
  color: #ff4d88;
}
.news-info span {
  color: #999;
  font-size: 12px;
}

/* 新闻动态页列表样式（和首页新闻一致） */
.news-full-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}
.news-full-item {
    display: flex;
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.08);
    transition: all 0.4s ease;
}
.news-full-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.news-full-item img {
    width: 160px;
    height: 160px; /* 正方形，和首页新闻一样大 */
    object-fit: cover;
}
.news-full-item div {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.news-full-item h3 {
    font-size: 16px;
    margin-bottom: 6px;
    color: #333;
    font-weight: 600;
    transition: all 0.3s ease;
}
.news-full-item:hover h3 {
    color: #ff4d88;
}
.news-full-item p {
    color: #666;
    font-size: 13px;
    margin-bottom: 6px;
}
.news-full-item span {
    color: #999;
    font-size: 12px;
}

/* 通知列表（悬浮变色+位移） */
.notice-list {
  list-style: none;
}
.notice-list li {
  padding: 10px 0;
  border-bottom: 1px solid #f5f5f5;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  position: relative;
  padding-left: 12px;
}
.notice-list li::before {
  content: '*';
  position: absolute;
  left: 0;
  color: #ff4d88;
  font-size: 16px;
  transition: all 0.3s ease;
}
.notice-list li:hover {
  color: #ff4d88;
  padding-left: 15px;
  transform: translateX(3px);
}
.notice-list li:hover::before {
  transform: scale(1.2);
}

/* 主席团卡片（呼吸灯+旋转+缩放） */
.president-card {
  text-align: center;
}
.avatar-box {
  width: 90px;
  height: 90px;
  margin: 0 auto 12px;
  border-radius: 50%;
  overflow: hidden;
  border: 3px solid #fdf2f8;
  animation: avatarPulse 3s infinite ease-in-out;
  box-shadow: 0 6px 15px rgba(255,107,158,0.2);
}
@keyframes avatarPulse {
  0% { box-shadow: 0 0 0 0 rgba(255,77,136,0.4); }
  70% { box-shadow: 0 0 0 15px rgba(255,77,136,0); }
  100% { box-shadow: 0 0 0 0 rgba(255,77,136,0); }
}
.avatar-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: all 0.5s ease;
}
.avatar-box:hover img {
  transform: scale(1.15) rotate(5deg);
}
.slogan {
  font-size: 13px;
  color: #ff6b9e;
  font-style: italic;
  margin-top: 6px;
}

/* 二维码（悬浮缩放+阴影） */
.qrcode {
  width: 100%;
  max-width: 160px;
  height: 160px; /* 正方形 */
  object-fit: cover;
  margin: 0 auto;
  display: block;
  border-radius: 8px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}
.qrcode:hover {
  transform: scale(1.05) rotate(2deg);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 学生会简介图片（适配） */
.intro-imgs {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}
.intro-imgs img {
  width: 32%;
  height: 200px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}
.intro-imgs img:hover {
  transform: translateY(-5px) scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.intro-text p {
  margin-bottom: 15px;
  font-size: 15px;
  color: #555;
  line-height: 1.7;
}

/* 正方形图片通用样式 */
.square-img {
  width: 180px;
  height: 180px; /* 严格正方形 */
  object-fit: cover;
  border-radius: 10px;
  margin: 0 auto 15px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}
.square-img:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

/* 成员/活动网格（适配8个活动） */
.member-grid, .activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 25px;
  margin-bottom: 25px;
}
.member-card, .activity-card {
  background: #fff;
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  transition: all 0.4s ease;
  border-bottom: 3px solid transparent;
  border-image: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%) 1;
}
.member-card:hover, .activity-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.15);
  border-bottom: 3px solid #ff4d88;
}
.activity-card img {
  width: 180px;         /* 固定宽度 */
  height: 180px;        /* 固定高度，1:1完美正方形 */
  object-fit: cover;    /* 保持图片比例，裁剪多余部分 */
  border-radius: 10px;
  margin: 0 auto 15px;  /* 居中显示，保留底部间距 */
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
  display: block;       /* 消除默认空隙 */
}
.activity-card:hover img {
  transform: scale(1.03);
  box-shadow: 0 6px 15px rgba(0,0,0,0.15);
}
.activity-card h3 {
  font-size: 18px;
  margin-bottom: 8px;
  color: #ff4d88;
  font-weight: 600;
  transition: all 0.3s ease;
}
.activity-card:hover h3 {
  color: #ff6b9e;
  transform: scale(1.05);
}
.activity-card p {
  color: #666;
  font-size: 14px;
}

/* 新闻详情页图片（正方形/短长方形适配） */
.news-detail-imgs {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 20px 0;
  justify-content: center;
}
.news-detail-imgs img {
  width: 180px; /* 正方形 */
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transition: all 0.4s ease;
}
.news-detail-imgs img:hover {
  transform: translateY(-5px) scale(1.03);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
/* 特殊布局适配 */
.news-detail-imgs.two img {
  width: 220px;
  height: 220px; /* 稍大正方形 */
}
.news-detail-imgs.one img {
  width: 300px;
  height: 300px; /* 大正方形 */
}
.news-detail-imgs.six img {
  width: 120px;
  height: 120px; /* 小正方形 */
}

/* 通知详情页图片（正方形） */
.notice-detail-img {
  width: 250px;
  height: 250px; /* 正方形 */
  object-fit: cover;
  margin: 20px auto;
  display: block;
  border-radius: 10px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.15);
  transition: all 0.3s ease;
}
.notice-detail-img:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 25px rgba(0,0,0,0.2);
}

/* 卡片通用样式（渐变+阴影） */
.news-detail-card, .content-card, .form-card {
  background: #fff;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 6px 20px rgba(0,0,0,0.1);
  margin-bottom: 25px;
  transition: all 0.3s ease;
}
.news-detail-card:hover, .content-card:hover, .form-card:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.15);
}

/* 表单样式（聚焦效果） */
.form-card input, .form-card textarea {
  width: 100%;
  padding: 12px;
  margin: 10px 0;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 14px;
  transition: all 0.3s ease;
}
.form-card input:focus, .form-card textarea:focus {
  outline: none;
  border-color: #ff6b9e;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(255,135,171,0.15);
  transform: translateY(-2px);
}
.form-card textarea {
  min-height: 150px;
  resize: vertical;
  line-height: 1.7;
}

/* 登录页样式（渐变+悬浮） */
.login-container {
  width: 800px;
  max-width: 95%;
  margin: 60px auto;
  display: flex;
  background: #fff;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12);
  transition: all 0.3s ease;
}
.login-container:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.15);
}
.login-left {
  flex: 1;
  background: linear-gradient(135deg, #fdf2f8 0%, #ffe6ef 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px;
}
.login-left img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}
.login-left img:hover {
  transform: scale(1.02);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.login-right {
  flex: 1;
  padding: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.login-form-wrapper {
  text-align: center;
  width: 100%;
  max-width: 300px;
}
.login-form-wrapper h1 {
  color: #ff4d88;
  margin-bottom: 12px;
  font-size: 28px;
  font-weight: 700;
  text-shadow: 0 1px 2px rgba(255,77,136,0.1);
}
.login-form-wrapper p {
  color: #666;
  margin-bottom: 25px;
  font-size: 14px;
}
.login-form-wrapper input {
  width: 100%;
  padding: 12px;
  margin-bottom: 15px;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  background: #f9f9f9;
  font-size: 14px;
  transition: all 0.3s ease;
}
.login-form-wrapper input:focus {
  outline: none;
  border-color: #ff6b9e;
  box-shadow: 0 0 0 4px rgba(255,135,171,0.15);
  transform: translateY(-2px);
}

/* 页面切换动画 */
.page { 
  display: none; 
  animation: fadeIn 0.6s ease forwards; 
  padding-bottom: 30px;
}
.page.show { display: block; }
@keyframes fadeIn {
  from { 
    opacity: 0; 
    transform: translateY(20px); 
  }
  to { 
    opacity: 1; 
    transform: translateY(0); 
  }
}

/* 底部版权（渐变+阴影） */
.footer {
  background: linear-gradient(90deg, #fff 0%, #fdf2f8 100%);
  padding: 25px 0;
  margin-top: 50px;
  border-top: 1px solid #f5f5f5;
  box-shadow: 0 -2px 15px rgba(0,0,0,0.05);
  position: relative;
  z-index: 2;
}
.footer-content {
  text-align: center;
  font-size: 14px;
  color: #888;
  text-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.footer-content strong {
  color: #ff4d88;
  font-weight: 600;
}

/* 唯美樱花+爱心动态效果（最底层） */
@keyframes sakuraFloat {
  0% {
    top: -15%;
    opacity: 0;
    transform: rotate(0deg) translateX(0) scale(0.8);
  }
  10% {
    opacity: 0.8;
  }
  90% {
    opacity: 0.6;
  }
  100% {
    top: 115%;
    opacity: 0;
    transform: rotate(720deg) translateX(60px) scale(1);
  }
}
.sakura {
  position: fixed;
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Cpath fill='%23ffc2d1' d='M50 15c-10 0-15 8-20 15c-5-7-10-15-20-15c0 10 5 18 10 25c-8-7-10-18-10-25c0 12 10 22 20 22s20-10 20-22c0 7-2 18-10 25c5-7 10-15 10-25c-5-7-10-15-20-15z'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: -1;
  animation: sakuraFloat 12s ease-in-out infinite;
}
.sakura-1 { left: 5%; animation-duration: 14s; animation-delay: 0s; }
.sakura-2 { left: 15%; animation-duration: 16s; animation-delay: 1s; }
.sakura-3 { left: 25%; animation-duration: 13s; animation-delay: 2s; }
.sakura-4 { left: 35%; animation-duration: 15s; animation-delay: 0.5s; }
.sakura-5 { left: 45%; animation-duration: 17s; animation-delay: 3s; }
.sakura-6 { left: 55%; animation-duration: 14s; animation-delay: 1.5s; }
.sakura-7 { left: 65%; animation-duration: 16s; animation-delay: 2.5s; }
.sakura-8 { left: 75%; animation-duration: 13s; animation-delay: 0.8s; }
.sakura-9 { left: 85%; animation-duration: 15s; animation-delay: 3.5s; }
.sakura-10 { left: 95%; animation-duration: 17s; animation-delay: 1.2s; }

@keyframes heartFloat {
  0% {
    bottom: -15%;
    opacity: 0;
    transform: rotate(0deg) scale(0.7);
  }
  10% {
    opacity: 0.7;
  }
  90% {
    opacity: 0.5;
  }
  100% {
    bottom: 115%;
    opacity: 0;
    transform: rotate(-720deg) scale(1);
  }
}
.heart {
  position: fixed;
  width: 18px;
  height: 18px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%23ff8fab' d='M12 21.35l-1.45-1.32C5.4 15.36 2 12.28 2 8.5 2 5.42 4.42 3 7.5 3c1.74 0 3.41.81 4.5 2.09C13.09 3.81 14.76 3 16.5 3 19.58 3 22 5.42 22 8.5c0 3.78-3.4 6.86-8.55 11.54L12 21.35z'/%3E%3C/svg%3E") no-repeat center;
  background-size: 100% 100%;
  pointer-events: none;
  z-index: -1;
  animation: heartFloat 14s ease-in-out infinite;
}
.heart-1 { right: 5%; animation-duration: 16s; animation-delay: 0s; }
.heart-2 { right: 15%; animation-duration: 18s; animation-delay: 1s; }
.heart-3 { right: 25%; animation-duration: 15s; animation-delay: 2s; }
.heart-4 { right: 35%; animation-duration: 17s; animation-delay: 0.5s; }
.heart-5 { right: 45%; animation-duration: 19s; animation-delay: 3s; }
.heart-6 { right: 55%; animation-duration: 16s; animation-delay: 1.5s; }
.heart-7 { right: 65%; animation-duration: 18s; animation-delay: 2.5s; }
.heart-8 { right: 75%; animation-duration: 15s; animation-delay: 0.8s; }

/* 按钮呼吸动画 */
@keyframes btnBreath {
  0%,100% { box-shadow: 0 3px 10px rgba(255,143,171,0.2); }
  50% { box-shadow: 0 6px 20px rgba(255,143,171,0.3); }
}

/* 滚动条美化 */
::-webkit-scrollbar { width: 8px; height: 8px; }
::-webkit-scrollbar-track { background: #fff0f5; border-radius: 4px; }
::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #ff8fab, #ffc2d1);
  border-radius: 4px;
}

/* 登录/注册按钮专属美化 */
.login-form-wrapper button {
  background: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%);
  color: #fff;
  border: none;
  padding: 12px 25px;
  border-radius: 25px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  margin: 8px 5px;
  width: 100%;
  box-shadow: 0 4px 12px rgba(255,77,136,0.25);
  transition: all 0.4s ease;
  position: relative;
  overflow: hidden;
}
.login-form-wrapper button::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.2), transparent);
  transition: all 0.8s ease;
}
.login-form-wrapper button:hover::before {
  left: 100%;
}
.login-form-wrapper button:hover {
  background: linear-gradient(90deg, #ff6b9e 0%, #ff4d88 100%);
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255,77,136,0.4);
}
.login-form-wrapper button:active {
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(255,77,136,0.3);
}
.login-form-wrapper button.register-btn {
  background: transparent;
  color: #ff4d88;
  border: 2px solid #ff8fab;
  box-shadow: none;
}
.login-form-wrapper button.register-btn:hover {
  background: linear-gradient(90deg, #ff4d88 0%, #ff6b9e 100%);
  color: #fff;
  border-color: transparent;
  transform: translateY(-4px);
  box-shadow: 0 8px 20px rgba(255,77,136,0.4);
}

/* 全局正文美化（适配所有页面） */
body {
    font-family: "Microsoft Yahei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: #333333;
    line-height: 1.7;
    letter-spacing: 0.5px;
}

/* 标题美化（页面大标题、新闻/通知标题） */
h1, h2, h3, .section-title, #news-detail-title, #notice-detail-title {
    font-family: "Microsoft Yahei", "PingFang SC", sans-serif;
    color: #ff6b9e; /* 温柔粉色，和顶部栏呼应 */
    font-weight: 600;
    line-height: 1.4;
    letter-spacing: 1px;
}

/* 正文段落美化（新闻/通知详情正文） */
#news-detail-content p,
#notice-detail-content p {
    font-family: "Microsoft Yahei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    color: #444444;
    font-size: 16px;
    line-height: 1.8;
    text-indent: 2em; /* 首行缩进，更像正式文章 */
    margin: 15px 0;
    letter-spacing: 0.8px;
}

/* 日期小字美化（新闻/通知日期） */
#news-detail-date, #notice-detail-date {
    font-family: "Microsoft Yahei", sans-serif;
    color: #ff8fab; /* 浅粉色，柔和不刺眼 */
    font-size: 14px;
    opacity: 0.8;
}

/* 按钮美化（返回按钮等） */
.btn, .btn:hover {
    font-family: "Microsoft Yahei", sans-serif;
    background-color: #ff6b9e;
    color: #ffffff;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
}
.btn:hover {
    background-color: #ff4d88;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(255, 107, 158, 0.3);
}