/* CSS Reset */
html,
body,
div,
span,
applet,
object,
iframe,
h1,
h2,
h3,
h4,
h5,
h6,
p,
blockquote,
pre,
a,
abbr,
acronym,
address,
big,
cite,
code,
del,
dfn,
em,
img,
ins,
kbd,
q,
s,
samp,
small,
strike,
strong,
sub,
sup,
tt,
var,
b,
u,
i,
center,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
table,
caption,
tbody,
tfoot,
thead,
tr,
th,
td,
article,
aside,
canvas,
details,
embed,
figure,
figcaption,
footer,
header,
hgroup,
menu,
nav,
output,
ruby,
section,
summary,
time,
mark,
audio,
video {
  margin: 0;
  padding: 0;
  border: 0;
  font-size: 100%;
  font: inherit;
  vertical-align: baseline;
}

/* HTML5 display-role reset for older browsers */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
  display: block;
}

body {
  line-height: 1;
  background-color: #e8e1cf;
}

a {
  text-decoration: none;
}

ol,
ul {
  list-style: none;
}

blockquote,
q {
  quotes: none;
}

blockquote:before,
blockquote:after,
q:before,
q:after {
  content: '';
  content: none;
}

table {
  border-collapse: collapse;
  border-spacing: 0;
}

/* 现代浏览器的额外重置 */
* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

img {
  max-width: 100%;
  height: auto;
}

button,
input,
select,
textarea {
  font-family: inherit;
  font-size: 100%;
  margin: 0;
}

button,
input {
  overflow: visible;
}

button,
select {
  text-transform: none;
}
strong{
  font-weight: 900;
}
button,
[type="button"],
[type="reset"],
[type="submit"] {
  cursor: pointer;
}

button::-moz-focus-inner,
[type="button"]::-moz-focus-inner,
[type="reset"]::-moz-focus-inner,
[type="submit"]::-moz-focus-inner {
  border-style: none;
  padding: 0;
}

button:-moz-focusring,
[type="button"]:-moz-focusring,
[type="reset"]:-moz-focusring,
[type="submit"]:-moz-focusring {
  outline: 1px dotted ButtonText;
}

fieldset {
  padding: 0.35em 0.75em 0.625em;
}

legend {
  box-sizing: border-box;
  color: inherit;
  display: table;
  max-width: 100%;
  padding: 0;
  white-space: normal;
}

progress {
  vertical-align: baseline;
}

textarea {
  overflow: auto;
}

[type="checkbox"],
[type="radio"] {
  box-sizing: border-box;
  padding: 0;
}

[type="number"]::-webkit-inner-spin-button,
[type="number"]::-webkit-outer-spin-button {
  height: auto;
}

[type="search"] {
  -webkit-appearance: textfield;
  outline-offset: -2px;
}

[type="search"]::-webkit-search-decoration {
  -webkit-appearance: none;
}

::-webkit-file-upload-button {
  -webkit-appearance: button;
  font: inherit;
}

details {
  display: block;
}

summary {
  display: list-item;
}

template {
  display: none;
}

[hidden] {
  display: none;
}

/* ================================
   自定义样式 - 都匀一中120周年纪念
   ================================ */

/* 基础样式 */
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  min-height: 100vh;
  position: relative;
  overflow-x: hidden;
}

/* 背景层 */
.background-layer {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url('images/bg.jpg') no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  z-index: -1;
  /* 性能优化 */
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  transform: translateZ(0);
}

/* 导航栏样式 */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background-color: #c41e3a;
  /* 红色背景 */
  z-index: 1000;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
}

.nav-container {
  max-width: 1300px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  height: 80px;
}

/* Logo样式 */
.nav-logo {
  flex-shrink: 0;
}

.logo-img {
  height: 60px;
  width: auto;
  transition: transform 0.3s ease;
  /* 初始状态：透明并向左偏移 */
  opacity: 0;
  transform: translateX(-30px);
  /* 进入动画 */
  animation: logoSlideIn 1s ease-out 0.5s forwards;
}

.logo-img:hover {
  transform: translateX(0) scale(1.05);
}

/* 移动端菜单按钮 */
.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 48px;
  height: 48px;
  min-width: 48px;
  min-height: 48px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 12px;
  z-index: 1001;
  border-radius: 8px;
  transition: background-color 0.2s ease;
}

.mobile-menu-toggle:hover {
  background-color: rgba(255, 255, 255, 0.1);
}

.mobile-menu-toggle:focus {
  outline: 2px solid #ffeb3b;
  outline-offset: 2px;
}

.menu-btn-line {
  width: 24px;
  height: 2px;
  background-color: white;
  margin: 3px 0;
  transition: all 0.3s ease;
  transform-origin: center;
}

/* 汉堡菜单动画状态 */
.mobile-menu-toggle.active .menu-btn-line:nth-child(1) {
  transform: translateY(8px) rotate(45deg);
}

.mobile-menu-toggle.active .menu-btn-line:nth-child(2) {
  opacity: 0;
}

.mobile-menu-toggle.active .menu-btn-line:nth-child(3) {
  transform: translateY(-8px) rotate(-45deg);
}

/* 移动端菜单遮罩层 */
.mobile-menu-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 999;
  /* 调整为999，在导航栏下方，菜单面板下方 */
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-menu-overlay.active {
  display: block;
  opacity: 1;
}

/* 导航菜单样式 */
.nav-menu {
  flex-shrink: 0;
}

.menu-list {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 20px;
}

.menu-item {
  position: relative;
}

.menu-link {
  color: white;
  text-decoration: none;
  font-size: 18px;
  font-weight: 500;
  padding: 10px 0;
  transition: color 0.3s ease;
  position: relative;
  display: flex;
  align-items: center;
  gap: 4px;
}

.menu-icon {
  width: 24px;
  height: 24px;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.menu-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background-color: #ffeb3b;
  transition: width 0.3s ease;
}

.menu-link:hover {
  color: #ffeb3b;
}

.menu-link:hover .menu-icon {
  transform: scale(1.1);
}

.menu-link:hover::after {
  width: 100%;
}

/* 主体内容样式 */
.main-content {
  padding-top: 10px;
  /* 为固定导航栏留出空间 */
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.content-container {
  text-align: center;
  max-width: 1300px;
  width: 100%;
  margin-top: -60px;
}

/* 历史对比图片样式 */
.history-images {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: -80px;
}

/* 历史图片容器样式 - 已简化为单个容器 */

.history-img {
  width: 100%;
  height: auto;
  border-radius: 15px;
  opacity: 0;
  transition: opacity 1s ease, transform 0.3s ease, box-shadow 0.3s ease;
}

/* shuimo图片的hover效果现在由JavaScript控制 */

/* 120周年大图样式 */
.anniversary-section {
  margin-bottom: 60px;
  text-align: center;
}

.anniversary-img {
  max-width: 100%;
  height: auto;
  opacity: 0;
  transition: opacity 1.2s ease, transform 0.3s ease;
}

.anniversary-img:hover {
  transform: scale(1.02);
}

/* 图片渐入动画效果 - 当前未使用，已注释
.image-fade-in {
  opacity: 0.5;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.image-fade-in-active {
  opacity: 1;
  transform: translateY(0);
}

确保hover效果不被覆盖
.history-img.image-fade-in-active:hover {
  transform: translateY(-40px);
}

.anniversary-img.image-fade-in-active:hover {
  transform: scale(1.02);
}
*/

/* Logo进入动画关键帧 */
@keyframes logoSlideIn {
  0% {
    opacity: 0;
    transform: translateX(-30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 底部曲线呼吸动画关键帧 */
@keyframes quxianBreathing {
  0% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }

  25% {
    transform: translateY(-2px) scale(1.01);
    opacity: 0.9;
  }

  50% {
    transform: translateY(-3px) scale(1.02);
    opacity: 0.8;
  }

  75% {
    transform: translateY(-2px) scale(1.01);
    opacity: 0.9;
  }

  100% {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

/* 呼吸动画关键帧 */
@keyframes breathing {
  0% {
    transform: scale(1);
  }

  50% {
    transform: scale(var(--breathing-scale, 1.05));
  }

  100% {
    transform: scale(1);
  }
}

/* 呼吸动画类 - 当前未使用，已注释
.breathing-animation {
  animation: breathing var(--breathing-duration, 3000ms) ease-in-out infinite;
}
*/

/* 动画优化 - 更新为仅对实际使用的元素生效 */
.history-img,
.anniversary-img,
.quxian-img {
  will-change: transform, opacity;
  backface-visibility: hidden;
  perspective: 1000px;
}

/* 底部曲线图片样式 */
.bottom-quxian {
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  z-index: 1003;
  /* 调整为1003，在老照片上方 */
  pointer-events: none;
}

.quxian-img {
  width: 100%;
  height: auto;
  display: block;
  opacity: 0;
  transform: translateY(100px);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
}

.quxian-img.quxian-animate-in {
  opacity: 1;
  transform: translateY(0);
  /* 添加呼吸动画 */
  animation: quxianBreathing 8s ease-in-out infinite;
}

/* 老照片滚动展示样式 */
.old-photos-scroll {
  position: fixed;
  bottom: 60px;
  left: 0;
  width: 100%;
  z-index: 999;
  /* 调整为1002，在菜单面板上方 */
  /* overflow: hidden; */
  background: rgba(0, 0, 0, 0.1);
  padding: 8px 20px;
  /* 兼容性降级方案 */
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  /* Fallback for older browsers */
  background-color: rgba(0, 0, 0, 0.1);
  background-image: linear-gradient(rgba(0, 0, 0, 0.1), rgba(0, 0, 0, 0.1));
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.old-photos-scroll.show {
  opacity: 1;
}

.scroll-container {
  width: 100%;
  /* overflow: hidden; */
  position: relative;
}

.scroll-track {
  display: flex;
  gap: 60px;
  animation: scrollPhotos 30s linear infinite;
  animation-play-state: paused;
  will-change: transform;
  position: relative;
  z-index: 0;
}

/* 老照片效果 */
.old-photo {
  flex-shrink: 0;
  width: 230px;
  height: 120px;
  object-fit: cover;

  /* 老照片滤镜效果 */
  filter:
    sepia(0.3) contrast(1.1) brightness(0.9) saturate(0.8);

  /* 白色边框 */
  padding: 4px;
  background: white;
  border-radius: 3px;

  /* 阴影效果 */
  box-shadow:
    0 4px 8px rgba(0, 0, 0, 0.3),
    0 2px 4px rgba(0, 0, 0, 0.2),
    inset 0 0 30px rgba(0, 0, 0, 0.1);

  /* 老照片纹理效果 */
  position: relative;

  /* 过渡动画 */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* 老照片hover效果 */
.old-photo:hover {
  transform: scale(1.4) rotate(3deg);
  box-shadow:
    0 8px 16px rgba(0, 0, 0, 0.4),
    0 4px 8px rgba(0, 0, 0, 0.3),
    inset 0 0 40px rgba(0, 0, 0, 0.15);
}

/* 老照片纹理叠加效果 */
.old-photo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image:
    radial-gradient(circle at 20% 80%, transparent 20%, rgba(255, 255, 255, 0.1) 20.5%, transparent 21%),
    radial-gradient(circle at 80% 20%, transparent 20%, rgba(255, 255, 255, 0.1) 20.5%, transparent 21%),
    radial-gradient(circle at 40% 40%, transparent 20%, rgba(0, 0, 0, 0.05) 20.5%, transparent 21%);
  pointer-events: none;
  border-radius: 3px;
}

/* 滚动动画 */
@keyframes scrollPhotos {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
    /* 移动到一半位置，实现无缝循环 */
  }
}

/* 悬停时暂停滚动 */
.scroll-track:hover {
  animation-play-state: paused;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .nav-container {
    height: 60px;
    padding: 0 15px;
  }

  .logo-img {
    height: 40px;
    /* 移动端调整动画参数 */
    animation: logoSlideIn 0.8s ease-out 0.3s forwards;
  }

  .menu-list {
    gap: 20px;
  }

  .menu-link {
    font-size: 16px;
  }

  .main-content {
    align-items: flex-start;
    padding-top: 100px;
  }

  .history-img,
  .anniversary-img {
    width: calc(100% - 20px);
  }

  .content-container {
    padding: 20px 15px;
  }

  .history-images {
    flex-direction: column;
    margin-bottom: 0;
  }

  /* 历史图片在移动端自适应 */

  .theme-title {
    font-size: 36px;
  }

  .theme-subtitle {
    font-size: 20px;
  }

  /* 移动端背景性能优化 */
  .background-layer {
    background-attachment: scroll;
    /* 移动端使用scroll提升性能 */
  }

  /* 移动端菜单样式 */
  .mobile-menu-toggle {
    display: flex;
  }

  .nav-menu {
    position: fixed;
    top: 60px;
    right: 0;
    width: 80%;
    max-width: 300px;
    height: 100vh;
    background-color: rgba(196, 30, 58, 0.98);
    /* 兼容性降级方案 */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    /* Fallback for older browsers */
    background-image: linear-gradient(rgba(196, 30, 58, 0.95), rgba(196, 30, 58, 0.95));
    flex-direction: column;
    padding: 20px;
    transform: translateX(100%);
    transition: transform 0.3s ease;
    z-index: 1001;
    /* 调整为1001，在导航栏上方，遮罩层上方 */
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  }

  .nav-menu.mobile-menu-open {
    transform: translateX(0);
  }

  .menu-list {
    flex-direction: column;
    gap: 15px;
    width: 100%;
    text-align: center;
  }

  .menu-link {
    font-size: 18px;
    padding: 16px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    justify-content: center;
    min-height: 52px;
    transition: background-color 0.2s ease;
  }

  .menu-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
  }

  .menu-link:focus {
    outline: 2px solid #ffeb3b;
    outline-offset: -2px;
    background-color: rgba(255, 255, 255, 0.05);
  }

  .menu-icon {
    width: 24px;
    height: 24px;
  }

  /* 底部曲线图片移动端适配 */
  .bottom-quxian {
    z-index: 1003;
    /* 保持与桌面端一致 */
  }

  /* 老照片滚动移动端适配 */
  .old-photos-scroll {
    bottom: 50px;
    padding: 10px 15px;
  }

  /* 移动端渐变遮罩调整 */
  .old-photos-scroll::before,
  .old-photos-scroll::after {
    width: 100px;
  }

  .old-photo {
    width: 160px;
    height: 100px;
  }

  .scroll-track {
    gap: 40px;
  }
}

/* 桌面端样式（768px以上） */
@media (min-width: 769px) {
  .mobile-menu-toggle {
    display: none !important;
  }
}

@media (max-width: 480px) {
  .menu-list {
    gap: 12px;
  }

  .menu-link {
    font-size: 14px;
  }

  /* 移除无效的主题样式选择器 */
}

/* ================================
   List页面样式 - 学校历史（重构版）
   ================================ */

/* List页面主体内容样式 */
.list-main-content {
  padding-top: 0;
  min-height: calc(60vh);
  position: relative;
  margin-top: -40px;
}

.list-container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 60px;
  background-color: #ffffff;
  background-image: url('images/list-mian-bg-img.png');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain 60%;
  border-top: 8px solid #bd3435;
  position: relative;
  z-index: 10;
  border-radius: 10px 10px 0 0;
  box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.1);
}


/* 顶部Banner样式 */
.list-banner {
  background: url('images/banner.jpg?t=202511') no-repeat center center;
  background-size: cover;
  padding-top: 80px;
  position: relative;
  overflow: hidden;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 100%;
}

/* 移动端Logo - 仅在移动端显示bai-logo.png */
.list-banner::before {
  content: '';
  position: absolute;
  top: 60%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 160px;
  height: 160px;
  background: url('images/bai-logo.png') no-repeat center center;
  background-size: contain;
  z-index: 2;
  display: none; /* 默认隐藏，仅在移动端显示 */
}

.banner-container {
  margin: 0 auto;
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 0 20px;
}

.banner-content {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 60px;
  width: 100%;
}

.banner-image {
  flex-shrink: 0;
  animation: fadeInRight 1s ease-out 0.4s both;
  position: relative;
  display: inline-block;
}

.banner-old-img {
  width: 220px;
  height: auto;
  border-radius: 15px;
  transition: transform 0.3s ease;
  display: block;
}

.banner-old-img:hover {
  transform: scale(1.02);
}

.banner-caption {
  color: #000000;
  font-size: 24px;
  font-weight: 700;
  text-align: center;
  margin-top: 12px;
  text-shadow:
    -1px -1px 0 #ffffff,
    1px -1px 0 #ffffff,
    -1px 1px 0 #ffffff,
    1px 1px 0 #ffffff,
    0 0 2px #ffffff,
    0 0 4px #ffffff;
}

/* 面包屑导航样式 */
.breadcrumb {
  margin-bottom: 30px;
  font-size: 14px;
  color: #666;
  text-align: right;
  line-height: 1.5;
}

.breadcrumb a {
  color: #c41e3a;
  text-decoration: none;
  transition: color 0.3s ease;
}

/* 在第一个链接（首页）前面添加图标 */
.breadcrumb a:first-of-type::before {
  content: '';
  display: inline-block;
  width: 16px;
  height: 16px;
  background-image: url('images/address-icon.png');
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  margin-right: 6px;
  vertical-align: middle;
}

.breadcrumb a:hover {
  color: #e74c3c;
}

/* 首页链接悬停时图标也变色效果 */
.breadcrumb a:first-of-type:hover::before {
  filter: brightness(0) sepia(1) saturate(100) hue-rotate(320deg);
  /* 将图标变为红色调以匹配悬停的文字颜色 */
}

/* 当前页面的样式 - 最后一个链接表示当前页面 */
.breadcrumb a:last-of-type {
  color: #333;
  font-weight: 500;
  pointer-events: none;
  /* 禁用当前页面链接的点击 */
}

.breadcrumb a:last-of-type:hover {
  color: #333;
  /* 悬停时保持不变 */
}

.address-icon {
  width: 16px;
  height: 16px;
  margin-right: 6px;
  display: inline-block;
  vertical-align: middle;
  object-fit: contain;
}

/* 子栏目导航样式 */
.subcategories {
  margin-bottom: 40px;
  display: flex;
  justify-content: center;
}

.subcategory-tabs {
  display: flex;
  gap: 30px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.subcategory-tabs::-webkit-scrollbar {
  display: none;
}

.subcategory-tab {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  background: #bd3535;
  color: #fff;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  font-weight: 700;
  font-size: 16px;
  white-space: nowrap;
  border: 2px solid #bd3535;
  box-shadow: inset 0 0 0 2px white;

}

.subcategory-tab::after {
  content: '';
  position: absolute;
  bottom: 5px;
  left: 50%;
  transform: translateX(-50%);
  width: calc(100% - 1px);
  height: 2px;
  background: white;
  transition: all 0.3s ease;
}


.subcategory-tab:hover::after {
  bottom: 2px;
  height: 3px;
}



.submenu-icon {
  width: 18px;
  height: 18px;
  margin-right: 8px;
  filter: brightness(0) invert(1);
  transition: transform 0.3s ease;
}

.subcategory-tab:hover .submenu-icon {
  transform: scale(1.1);
}

.tab-text {
  font-weight: 700;
  position: relative;
  z-index: 1;
}

/* 文章列表样式 */
.article-list {
  margin-bottom: 40px;
  margin-left: 60px;
  margin-right: 60px;
}

.articles-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  animation: fadeInUp 0.6s ease-out;
}

.article-card {
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  transition: all 0.3s ease;
  position: relative;
  text-decoration: none;
  color: inherit;
  display: block;
}

.article-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-decoration: none;
  color: inherit;
}

.article-card:visited {
  color: inherit;
}

.article-card:focus {
  outline: 2px solid #c41e3a;
  outline-offset: 2px;
}

.article-card.hidden {
  display: none;
}

.article-image {
  position: relative;
  height: 180px;
  overflow: hidden;
}

.article-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.article-card:hover .article-thumb {
  transform: scale(1.1);
}

.article-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(to bottom, transparent 0%, rgba(0, 0, 0, 0.7) 100%);
  display: flex;
  align-items: flex-end;
  padding: 20px;
}

.article-date {
  display: none;
  background: rgba(196, 30, 58, 0.9);
  color: white;
  padding: 6px 12px;
  border-radius: 20px;
  font-size: 12px;
  font-weight: 500;
  backdrop-filter: blur(10px);
}

.list-article-content {
  padding: 25px;
  background: #efefef;
}

.article-title {
  font-size: 16px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-summary {
  font-size: 14px;
  color: #666;
  line-height: 1.6;
  margin-bottom: 18px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.article-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 12px;
  color: #999;
  padding-top: 15px;
  border-top: 1px solid #f0f0f0;
}

.article-category {
  background: rgba(196, 30, 58, 0.1);
  color: #c41e3a;
  padding: 4px 10px;
  border-radius: 12px;
  font-weight: 500;
}

.article-time {
  display: none;
}

/* 翻页区域样式 - 匹配现有HTML结构 */
.fengye {
  margin-top: 50px;
  padding: 30px 20px;
  border-top: 1px solid #f0f0f0;
  text-align: center;
  font-size: 14px;
  color: #666;
  line-height: 1.8;
}

.fengye a {
  display: inline-block;
  padding: 8px 14px;
  margin: 0 3px;
  background: white;
  border: 1px solid #e0e0e0;
  border-radius: 6px;
  color: #666;
  text-decoration: none;
  font-size: 14px;
  transition: all 0.3s ease;
  min-width: 50px;
  text-align: center;
}

.fengye a:hover {
  background: #f8f8f8;
  border-color: #c41e3a;
  color: #c41e3a;
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
}

.fengye a:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

/* 页码数字链接的特殊样式 */
.fengye a[href*="javascript:void(0);"],
.fengye a[href*="_2.html"] {
  font-weight: 500;
  background: rgba(196, 30, 58, 0.05);
  border-color: rgba(196, 30, 58, 0.2);
}

.fengye a[href*="javascript:void(0);"]:hover,
.fengye a[href*="_2.html"]:hover {
  background: #c41e3a;
  border-color: #c41e3a;
  color: white;
}

/* 导航链接样式（首页、上一页、下一页、末页） */
.fengye a:not([href*="javascript:void(0);"]):not([href*="_2.html"]) {
  font-weight: 400;
}

/* 统计信息样式 */
.fengye #totalrecord,
.fengye #totalpage {
  color: #c41e3a;
  font-weight: 600;
}

/* 页脚版权信息样式 */
.page-footer {
  padding: 40px 0;
  margin-top: 0;
}

.footer-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 10px;
  text-align: center;
}

.footer-text {
  font-size: 1rem;
  color: #333;
  font-weight: 600;
  line-height: 1.6;
  margin: 0;
}

/* footer-text 内的 span 样式 */
.footer-text span {
  display: inline-block;
  margin: 0 8px;
  white-space: nowrap;
}

/* 新动画关键帧 */
@keyframes fadeInUp {
  0% {
    opacity: 0;
    transform: translateY(30px);
  }

  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeInRight {
  0% {
    opacity: 0;
    transform: translateX(30px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

/* 响应式设计 - List页面重构版 */
@media (max-width: 1024px) {
  .articles-grid {
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 25px;
  }

  .banner-content {
    justify-content: center;
    gap: 0;
  }

  .banner-old-img {
    width: 240px;
  }
}

@media (max-width: 768px) {
  .list-main-content {
    min-height: calc(100vh - 60px);
  }

  .list-container {
    padding: 20px 8px 40px;
    margin-top: -40px;
    border-top: 6px solid #c41e3a;
    background-size: 35% auto !important;
    background-position: bottom center !important;
    background-repeat: no-repeat !important;
  }

  /* 移动端article-list边距进一步优化 */
  .article-list {
    margin-left: 5px !important;
    margin-right: 5px !important;
    padding: 0 !important;
  }

  .banner-title {
    font-size: 32px;
  }

  .banner-subtitle {
    font-size: 16px;
  }

  .banner-content {
    justify-content: center;
    gap: 0;
  }

  .banner-old-img {
    width: 200px;
  }

  /* 移动端显示bai-logo */
  .list-banner::before {
    display: block;
  }

  .subcategory-tabs {
    gap: 8px;
    padding: 0 8px;
    justify-content: center;
  }

  .subcategory-tab {
    padding: 8px 12px;
    font-size: 13px;
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .tab-text {
    font-size: 13px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
    padding: 0;
  }

  /* 移动端分页区域优化 */
  .fengye {
    margin-top: 30px;
    padding: 20px 10px;
    font-size: 13px;
  }

  .fengye a {
    padding: 8px 12px;
    margin: 0 2px;
    font-size: 13px;
    min-width: 45px;
    border-radius: 8px;
    touch-action: manipulation;
  }

  /* 移动端隐藏部分统计信息，简化显示 */
  .fengye span {
    display: inline-block;
    margin: 0 2px;
  }

  /* 移动端隐藏"当前页："文字，只保留页码 */
  .fengye span:nth-child(2) {
    display: none;
  }

  /* 移动端子菜单图标优化 */
  .submenu-icon {
    width: 16px;
    height: 16px;
    margin-right: 4px;
  }

  /* 移动端背景图片透明度调整 */
  .list-container {
    opacity: 0.95;
  }

  /* 移动端确保背景图片大小生效 */
  .list-container {
    background-size: 35% auto !important;
    background-position: bottom center !important;
    background-repeat: no-repeat !important;
  }

  .article-image {
    height: 140px;
  }

  .article-title {
    font-size: 16px;
    line-height: 1.3;
    margin-bottom: 8px;
  }

  .article-summary {
    font-size: 13px;
    line-height: 1.4;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .list-article-content {
    padding: 15px;
  }

  .article-meta {
    font-size: 12px;
    gap: 8px;
  }

  .breadcrumb {
    font-size: 13px;
    text-align: center;
    /* 移动端居中对齐 */
    margin-bottom: 25px;
  }

  .breadcrumb a:first-of-type::before {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }

  .address-icon {
    width: 14px;
    height: 14px;
    margin-right: 4px;
  }
}

@media (max-width: 480px) {
  .list-banner {
    padding: 40px 15px;
  }

  .banner-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

  .banner-subtitle {
    font-size: 14px;
  }

  .banner-old-img {
    width: 160px;
  }

  /* 小屏幕设备调整bai-logo大小 */
  .list-banner::before {
    width: 80px;
    height: 80px;
  }

  .subcategory-tabs {
    gap: 5px;
    padding: 0 5px;
    justify-content: space-between;
  }

  .subcategory-tab {
    padding: 6px 8px;
    font-size: 12px;
    flex: 1;
    min-width: 0;
    text-align: center;
  }

  .tab-text {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* 小屏幕手机子菜单图标优化 */
  .submenu-icon {
    width: 14px;
    height: 14px;
    margin-right: 2px;
  }

  /* 小屏幕手机上的文章列表样式 */
  .articles-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    padding: 0;
  }

  .article-image {
    height: 120px;
  }

  .article-title {
    font-size: 14px;
    line-height: 1.3;
    margin-bottom: 6px;
  }

  .article-summary {
    font-size: 12px;
    line-height: 1.3;
    margin-bottom: 10px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .list-article-content {
    padding: 12px;
  }

  .article-meta {
    font-size: 11px;
    gap: 6px;
  }

  .article-card {
    border-radius: 3px;
  }

  .article-card:hover {
    transform: translateY(-2px);
  }

  .article-overlay {
    padding: 15px;
  }

  /* 小屏幕手机article-list边距进一步优化 */
  .article-list {
    margin-left: 2px !important;
    margin-right: 2px !important;
    padding: 0 !important;
  }

  /* 小屏幕手机背景图片进一步缩小 */
  .list-container {
    background-size: 25% auto !important;
    background-position: bottom center !important;
    opacity: 0.9;
  }

  /* 小屏幕手机分页优化 */
  .fengye {
    margin-top: 25px;
    padding: 15px 5px;
    font-size: 12px;
    line-height: 2.0;
  }

  .fengye a {
    padding: 8px 10px;
    margin: 0 1px;
    font-size: 12px;
    min-width: 40px;
    border-radius: 6px;
    touch-action: manipulation;
  }

  /* 小屏幕手机进一步简化统计信息 */
  .fengye span {
    margin: 0 1px;
  }

  /* 小屏幕手机可以隐藏更多文字，只保留关键信息 */
  .fengye span:nth-child(1),
  .fengye span:nth-child(2) {
    display: none;
  }

  /* 小屏幕手机hover效果优化 */
  .fengye a:hover {
    transform: translateY(-1px);
    box-shadow: 0 1px 4px rgba(196, 30, 58, 0.2);
  }

  .page-footer {
    padding: 30px 0;
  }

  .footer-content {
    padding: 0 15px;
  }

  .footer-text {
    font-size: 11px;
    line-height: 1.6;
    padding: 0 10px;
  }

  /* 移动端 footer span 换行显示 */
  .footer-text span {
    display: block;
    margin: 4px 0;
    white-space: normal;
    text-align: center;
  }
}

/* ================================
   Content页面样式 - 大会安排
   ================================ */

/* Content页面主体内容样式 */
.content-main-content {
  margin-top: -40px;
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.content-container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 20px;
}

/* 庆典日程样式 */
.celebration-schedule {
  margin-bottom: 80px;
}

.schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
  gap: 30px;
}

.schedule-card {
  background: rgba(255, 255, 255, 0.95);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  display: flex;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.schedule-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.schedule-date {
  flex-shrink: 0;
  width: 100px;
  background: linear-gradient(135deg, #c41e3a, #e74c3c);
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
}

.date-day {
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
}

.date-month {
  font-size: 14px;
  margin-top: 5px;
}

.schedule-content {
  flex: 1;
  padding: 25px;
}

.schedule-content h3 {
  color: #c41e3a;
  font-size: 20px;
  margin-bottom: 10px;
}

.schedule-time {
  color: #666;
  font-size: 14px;
  margin-bottom: 5px;
}

.schedule-location {
  color: #999;
  font-size: 14px;
  margin-bottom: 15px;
}

.schedule-details {
  list-style: none;
  padding: 0;
}

.schedule-details li {
  color: #333;
  font-size: 14px;
  margin-bottom: 5px;
  padding-left: 15px;
  position: relative;
}

.schedule-details li::before {
  content: '•';
  color: #c41e3a;
  position: absolute;
  left: 0;
  font-weight: 700;
}

/* 参与方式样式 */
.participation-info {
  margin-bottom: 80px;
}

.participation-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.participation-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.participation-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 35px rgba(0, 0, 0, 0.15);
}

.participation-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto 20px;
  background: linear-gradient(135deg, #c41e3a, #e74c3c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.participation-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.participation-card h3 {
  color: #c41e3a;
  font-size: 20px;
  margin-bottom: 15px;
}

.participation-card p {
  color: #666;
  line-height: 1.6;
  margin-bottom: 25px;
}

.participation-btn {
  display: inline-block;
  padding: 12px 30px;
  background: linear-gradient(135deg, #c41e3a, #e74c3c);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  font-weight: 500;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.participation-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(196, 30, 58, 0.3);
}

/* 联系方式样式 */
.contact-info {
  margin-bottom: 60px;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.contact-item {
  background: rgba(255, 255, 255, 0.95);
  padding: 30px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.contact-item:hover {
  transform: translateY(-3px);
}

.contact-icon {
  font-size: 36px;
  margin-right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c41e3a, #e74c3c);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.contact-details h4 {
  color: #c41e3a;
  font-size: 16px;
  margin-bottom: 5px;
}

.contact-details p {
  color: #666;
  font-size: 14px;
}

/* 活跃菜单项样式 */
.menu-link.active {
  color: #ffeb3b;
  background-color: rgba(255, 255, 255, 0.1);
}

.menu-link.active::after {
  width: 100%;
}

/* 动画关键帧 */
@keyframes slideInLeft {
  0% {
    opacity: 0;
    transform: translateX(-50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes slideInRight {
  0% {
    opacity: 0;
    transform: translateX(50px);
  }

  100% {
    opacity: 1;
    transform: translateX(0);
  }
}

@keyframes fadeIn {
  0% {
    opacity: 0;
  }

  100% {
    opacity: 1;
  }
}

/* 响应式设计 - List页面 */
@media (max-width: 768px) {

  /* 隐藏移动端的banner图片区域 */
  .banner-image {
    display: none !important;
  }

  .list-main-content,
  .content-main-content {
    padding-top: 80px;
  }

  .page-title {
    font-size: 32px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .timeline-year {
    margin: 0 0 20px 0;
  }

  .timeline-content::before {
    display: none;
  }

  .schedule-card {
    flex-direction: column;
  }

  .schedule-date {
    width: 100%;
    flex-direction: row;
    padding: 15px;
  }

  .date-day {
    font-size: 24px;
    margin-right: 10px;
  }

  .date-month {
    margin-top: 5px;
  }

  .contact-item {
    flex-direction: column;
    text-align: center;
  }

  .contact-icon {
    margin-right: 0;
    margin-bottom: 15px;
  }
}

@media (max-width: 480px) {
  .page-title {
    font-size: 28px;
  }

  .section-title {
    font-size: 28px;
  }

  .timeline-content {
    padding: 20px;
  }

  .schedule-content {
    padding: 20px;
  }

  .participation-card {
    padding: 30px 20px;
  }

  .contact-item {
    padding: 20px;
  }
}

/* 内容页样式 */
.content-main-content {
  padding-top: 0;
  padding-bottom: 0;
}

.content-container {
  max-width: 1300px;
  width: 100%;
  margin: 0 auto;
  padding: 30px 20px 60px;
  background-color: #ffffff;
  background-image: url('images/list-mian-bg-img.png');
  background-position: bottom;
  background-repeat: no-repeat;
  background-size: contain 60%;
  border-top: 8px solid #bd3435;
  min-height: calc(100vh - 300px);
}

/* 文章内容样式 */
.article-content {
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 40px;
  /* max-width: 900px; */
  margin-left: auto;
  margin-right: auto;
}

.article-header {
  padding: 40px 40px 20px;
}

.content-article-title {
  font-size: 32px;
  font-weight: 700;
  color: #2c3e50;
  line-height: 1.4;
  margin-bottom: 20px;
  text-align: center;
}

.content-article-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 20px;
  font-size: 14px;
  color: #666;
  margin-bottom: 30px;
}

.share-button-container {
  display: flex !important;
  justify-content: center;
  margin-bottom: 30px;
  visibility: visible !important;
  opacity: 1 !important;
}

.share-btn-top {
  display: flex !important;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #c41e3a 0%, #e74c3c 50%, #c41e3a 100%);
  background-size: 200% 200%;
  color: white;
  border: 2px solid rgba(255, 255, 255, 0.2);
  padding: 14px 28px;
  border-radius: 30px;
  cursor: pointer;
  font-size: 15px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow:
    0 4px 15px rgba(196, 30, 58, 0.3),
    0 1px 2px rgba(0, 0, 0, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
  visibility: visible !important;
  opacity: 1 !important;
  position: relative;
  overflow: hidden;
}

.share-btn-top::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: left 0.5s;
}

.share-btn-top:hover::before {
  left: 100%;
}

.share-btn-top:hover {
  background: linear-gradient(135deg, #a01832 0%, #c41e3a 50%, #a01832 100%);
  background-position: 100% 0;
  transform: translateY(-3px) scale(1.02);
  box-shadow:
    0 8px 25px rgba(196, 30, 58, 0.4),
    0 2px 4px rgba(0, 0, 0, 0.15),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
  border-color: rgba(255, 255, 255, 0.3);
}

.share-btn-top:active {
  transform: translateY(-1px) scale(1.01);
  transition: all 0.1s ease;
}

.share-btn-top .share-icon {
  width: 20px;
  height: 20px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  transition: all 0.3s ease;
  position: relative;
  z-index: 2;
}

.share-btn-top:hover .share-icon {
  transform: rotate(15deg) scale(1.1);
}

.share-btn-top span {
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* 添加脉冲动画效果 */
@keyframes shareButtonPulse {
  0% {
    box-shadow:
      0 4px 15px rgba(196, 30, 58, 0.3),
      0 1px 2px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }

  50% {
    box-shadow:
      0 4px 15px rgba(196, 30, 58, 0.4),
      0 1px 2px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1),
      0 0 0 4px rgba(196, 30, 58, 0.1);
  }

  100% {
    box-shadow:
      0 4px 15px rgba(196, 30, 58, 0.3),
      0 1px 2px rgba(0, 0, 0, 0.1),
      inset 0 1px 0 rgba(255, 255, 255, 0.1);
  }
}

/* 页面加载时的脉冲效果 */
.share-btn-top {
  animation: shareButtonPulse 3s ease-in-out infinite;
}

/* 悬停时停止脉冲 */
.share-btn-top:hover {
  animation: none;
}

/* 通用分享按钮样式 - 确保在所有设备上显示 */
@media (max-width: 768px) {

  .share-button-container,
  .share-btn-top {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative !important;
    z-index: 10 !important;
  }

  /* 确保移动端导航栏稳定 */
  .navbar {
    transform: translateY(0) !important;
    transition: all 0.3s ease !important;
  }
}

/* 强制显示分享按钮 */
.share-button-container,
.share-btn-top {
  display: flex !important;
  visibility: visible !important;
  opacity: 1 !important;
}

/* 确保导航栏稳定性 - 禁用自动隐藏 */
.navbar {
  transform: translateY(0) !important;
}

/* 移动端分页通用优化 */
@media (max-width: 768px) {
  .pagination {}

  .page-link:hover:not(.disabled),
  .page-number:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(196, 30, 58, 0.15);
  }

  .page-link:active,
  .page-number:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
  }

  /* 移动端子菜单容器优化 */
  .subcategory-tabs {
    display: flex;
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
  }

  .subcategory-tabs::-webkit-scrollbar {
    display: none;
  }
}

/* 移动端隐藏banner图片区域 - 通用规则 */
@media (max-width: 768px) {
  .banner-image {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
  }

  /* 调整banner-content的布局，因为图片被隐藏了 */
  .banner-content {
    justify-content: center;
    align-items: center;
    min-height: 100px;
  }

  /* 调整list-banner的高度和布局 */
  .list-banner {
    min-height: 200px;
    padding-top: 80px;
  }
}

/* 二维码弹窗样式 */
.qr-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 9999;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.qr-modal.show {
  display: block;
  opacity: 1;
  visibility: visible;
}

.qr-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
}

.qr-modal-content {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.8);
  background: white;
  border-radius: 12px;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  max-width: 320px;
  width: 90%;
  text-align: center;
  transition: transform 0.3s ease;
}

.qr-modal.show .qr-modal-content {
  transform: translate(-50%, -50%) scale(1);
}

.qr-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 24px 0;
  margin-bottom: 20px;
}

.qr-modal-header h3 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  color: #333;
}

.qr-modal-close {
  background: none;
  border: none;
  font-size: 24px;
  color: #666;
  cursor: pointer;
  padding: 0;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: all 0.2s ease;
}

.qr-modal-close:hover {
  background-color: #f5f5f5;
  color: #333;
}

.qr-modal-body {
  padding: 0 24px 24px;
}

.qr-code-container {
  margin-bottom: 16px;
  display: flex;
  justify-content: center;
}

.qr-code {
  width: 200px;
  height: 200px;
  border: 1px solid #eee;
  border-radius: 8px;
}

.qr-tip {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 1.4;
}


.publish-date,
.content-article-category,
.reading-time,
.view-count {
  display: flex;
  align-items: center;
}

.content-article-summary {
  padding: 25px 40px;
  background: #f8f9fa;
  border-bottom: 1px solid #f0f0f0;
}

.content-article-summary p {
  font-size: 16px;
  line-height: 1.6;
  color: #555;
  font-style: italic;
}

.content-article-image {
  margin: 30px 40px;
  text-align: center;
}

.article-main-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  padding: 1px;
  border: 1px solid #f6f6f6;
}

.image-caption {
  margin-top: 12px;
  font-size: 14px;
  color: #666;
  text-align: center;
}

.article-body h2 {
  font-size: 24px;
  font-weight: 600;
  color: #2c3e50;
  margin: 40px 40px 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid #e74c3c;
  position: relative;
}

.article-body h2::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background: #e74c3c;
}

.article-body p {
    font-size: 18px;
    line-height: 1.8;
    color: #333;
    margin: 0 20px 5px;
    text-align: justify;
}

.article-body blockquote {
  margin: 30px 40px;
  padding: 20px 30px;
  background: #f8f9fa;
  border-left: 4px solid #e74c3c;
  font-style: italic;
  color: #555;
  font-size: 16px;
  line-height: 1.6;
  border-radius: 0 8px 8px 0;
}

.article-body img {
  margin: 4px 40px;
  text-align: center;
  max-width: calc(100% - 80px);
  height: auto;
  border-radius: 6px;
  padding: 1px;
  border: 1px solid #f6f6f6;
}

/* 文章标签 */
.article-tags {
  padding: 25px 40px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tag {
  padding: 6px 15px;
  background: #e8f4fd;
  color: #1976d2;
  border-radius: 20px;
  font-size: 13px;
  transition: all 0.3s ease;
}

.tag:hover {
  background: #1976d2;
  color: white;
  transform: translateY(-2px);
}

/* 相关文章推荐 */
.related-articles {
  padding: 30px 40px;
  border-top: 1px solid #f0f0f0;
}

.related-title {
  font-size: 20px;
  font-weight: 600;
  color: #2c3e50;
  margin-bottom: 25px;
  text-align: center;
}

.related-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 20px;
}

.related-card {
  background: #fff;
  box-shadow: rgba(0, 0, 0, 0.05) 1px 1px 1px;
  display: flex;
  transition: all 0.3s ease;
  text-decoration: none;
  color: inherit;
  align-items: center;
  gap: 15px;
}

.related-card:hover {
  transform: translateY(-2px);
}

.related-image {
  width: 80px;
  height: 80px;
  flex-shrink: 0;
  border-radius: 8px;
  overflow: hidden;
}

.related-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.related-content {
  flex: 1;
}

.related-article-title {
  font-size: 16px;
  font-weight: 600;
  color: #2c3e50;
  margin: 0;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* 文章操作按钮 */
.article-actions {
  padding: 25px 40px;
  border-top: 1px solid #f0f0f0;
  display: flex;
  justify-content: center;
  gap: 20px;
}

.action-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 25px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-size: 14px;
  color: #666;
}

.action-btn:hover {
  background: #e74c3c;
  border-color: #e74c3c;
  color: white;
  transform: translateY(-2px);
}

.action-icon {
  width: 18px;
  height: 18px;
}

/* 响应式设计 */
@media (max-width: 768px) {

  /* 确保在所有移动端媒体查询中都隐藏banner图片 */
  .banner-image {
    display: none !important;
  }

  .content-container {
    padding: 20px 15px 40px;
    margin-top: -40px;
    border-top: 6px solid #c41e3a;
    background-size: contain 50%;
    background-position: bottom;
  }

  .article-header {
    padding: 30px 25px 15px;
  }

  .content-article-title {
    font-size: 24px;
  }

  /* 确保分享按钮在移动端显示 */
  .share-button-container {
    display: flex !important;
    justify-content: center;
    margin-bottom: 25px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .share-btn-top {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    font-size: 14px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .content-article-meta {
    gap: 15px;
    font-size: 13px;
  }

  .content-article-summary {
    padding: 20px 25px;
  }

  .content-article-image {
    margin: 25px 25px;
  }

  .article-body h2 {
    font-size: 20px;
    margin: 30px 25px 15px;
  }

  .article-body p {
    font-size: 15px;
    margin: 0 25px 15px;
  }

  .article-body blockquote {
    padding: 15px 20px;
    margin: 25px;
  }

  .article-body img {
    margin: 25px;
    max-width: calc(100% - 50px);
  }

  .article-tags {
    padding: 20px 25px;
  }

  .related-articles {
    padding: 25px;
  }

  .related-grid {
    grid-template-columns: 1fr;
  }

  .related-card {
    flex-direction: column;
  }

  .related-image {
    width: 100%;
    height: 150px;
  }

  .article-actions {
    padding: 20px 25px;
    flex-wrap: wrap;
    gap: 15px;
  }

  .action-btn {
    flex: 1;
    justify-content: center;
    min-width: 100px;
  }
}

@media (max-width: 480px) {

  /* 在小屏幕手机上也隐藏banner图片 */
  .banner-image {
    display: none !important;
  }

  .content-article-title {
    font-size: 22px;
  }

  .breadcrumb {
    font-size: 12px;
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.4;
  }

  .breadcrumb a:first-of-type::before {
    width: 12px;
    height: 12px;
    margin-right: 3px;
  }

  .article-body h2 {
    font-size: 18px;
    margin: 25px 20px 12px;
  }

  .article-body p {
    font-size: 14px;
    line-height: 1.7;
    margin: 0 20px 12px;
  }

  .article-body blockquote {
    font-size: 14px;
    margin: 20px;
    padding: 12px 15px;
  }

  .article-body img {
    margin: 20px;
    max-width: calc(100% - 40px);
  }

  /* 确保分享按钮在小屏幕手机上显示 */
  .share-button-container {
    display: flex !important;
    justify-content: center;
    margin-bottom: 20px;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .share-btn-top {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 600;
    border-radius: 25px;
    visibility: visible !important;
    opacity: 1 !important;
    box-shadow:
      0 4px 12px rgba(196, 30, 58, 0.3),
      0 1px 2px rgba(0, 0, 0, 0.1);
  }

  .share-btn-top:active {
    transform: translateY(-1px) scale(1.01);
  }

  .share-btn-top .share-icon {
    width: 18px;
    height: 18px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
  }

  .share-btn-top:hover .share-icon {
    transform: rotate(12deg) scale(1.08);
  }

  .content-article-meta {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .share-button-container {
    display: flex !important;
    justify-content: center;
    margin-bottom: 30px;
  }

  .share-btn-top {
    display: flex !important;
    align-items: center;
    gap: 8px;
    padding: 11px 20px;
    font-size: 13px;
    font-weight: 600;
    border-radius: 22px;
  }

  .share-btn-top .share-icon {
    width: 16px;
    height: 16px;
    filter: brightness(0) invert(1);
    transition: all 0.3s ease;
  }

  .share-btn-top:hover .share-icon {
    transform: rotate(10deg) scale(1.06);
  }

  /* 小屏幕手机 footer 进一步优化 */
  .page-footer {
    padding: 25px 0;
  }

  .footer-content {
    padding: 0 8px;
  }

  .footer-text {
    font-size: 10px;
    line-height: 1.8;
    padding: 0 5px;
  }

  .footer-text span {
    margin: 3px 0;
    font-size: 10px;
  }
}

/* ================================
  大事记时间轴样式
  ================================ */
.timeline-section {
  width: 100%;
  max-width: 1200px;
  margin: 40px auto;
  padding: 0 20px;
}

/* 年份导航栏 */
.timeline-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 40px;
  position: relative;
}

.years-container {
  flex: 1;
  position: relative;
  overflow: hidden;
  margin: 0 20px;
}

.years-track {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 20px 0;
  transition: transform 0.3s ease;
  will-change: transform;
  position: relative;
  z-index: 2;
}

.year-btn {
  background: #ffffff;
  border: 2px solid #8B4513;
  border-radius: 25px;
  padding: 8px 20px;
  font-size: 16px;
  font-weight: 600;
  color: #8B4513;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  position: relative;
  z-index: 2;
}

.year-btn:hover {
  background-color: #8B4513;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.year-btn.active {
  background-color: #8B4513;
  color: #fff;
  transform: scale(1.1);
  box-shadow: 0 4px 6px rgba(139, 69, 19, 0.3);
}

/* 时间轴连接线 */
.timeline-line {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(to right,
    transparent 0%,
    #8B4513 10%,
    #8B4513 90%,
    transparent 100%);
  z-index: 1;
}

/* 翻页按钮 */
.nav-btn {
  background: #8B4513;
  border: none;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
  flex-shrink: 0;
}

.nav-btn:hover {
  background: #A0522D;
  transform: scale(1.1);
  box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

.nav-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
  box-shadow: none;
}

.nav-arrow {
  font-size: 24px;
  color: #fff;
  font-weight: bold;
}

/* 内容展示区 */
.timeline-content {
  border-radius: 12px;
  /* overflow: hidden; */
  min-height: 400px; /* 最小高度，内容可以撑开 */
  height: auto; /* 高度自适应 */
  position: relative;
}

.timeline-events {
  display: flex;
  flex-direction: row; /* 改为横向排列 */
  height: auto; /* 高度自适应 */
  min-height: 100%; /* 最小高度占满容器 */
  transition: transform 0.5s ease;
  will-change: transform;
}

/* 事件卡片 */
.timeline-event {
  display: flex;
  gap: 30px;
  align-items: flex-start;
  padding: 40px;
  background: #faf8f5;
  border-radius: 12px;
  border-left: 4px solid #8B4513;
  transition: all 0.3s ease;
  min-width: 100%; /* 每个卡片占满宽度 */
  height: 100%;
  box-sizing: border-box;
}

/* 桌面端样式保持不变 */
@media (min-width: 769px) {
  .timeline-content {
    min-height: 400px;
  }

  .timeline-events {
    height: 100%;
  }

  .timeline-event {
    height: 100%;
  }
}

.timeline-event:hover {
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.15);
}

.event-image {
  flex-shrink: 0;
  width: 420px;
  height: 100%;
  background: #f8f8f8;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  color: #999;
  font-size: 14px;
  text-align: center;
  border: 1px solid #e0e0e0;
}

.image-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  width: 100%;
}

.event-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  cursor: zoom-in;
  transition: opacity 0.3s ease;
}

/* 图片放大镜效果 */
.image-container {
  position: relative;
}

/* 移除CSS悬停控制，改用JavaScript控制 */

.image-magnifier {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 1000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  border-radius: 8px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.3);
  background: #fff;
  padding: 4px;
  max-width: min(600px, 90vw);
  max-height: min(450px, 80vh);
  display: flex;
  align-items: center;
  justify-content: center;
}

.image-magnifier img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  cursor: zoom-out;
  max-width: 100%;
  max-height: 100%;
  display: block;
}

/* 半透明背景遮罩 */
.image-magnifier::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: -1;
  pointer-events: none;
}

/* 放大镜加载状态 */
.image-magnifier.loading {
  width: 200px;
  height: 150px;
  background: #f8f8f8;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 14px;
}

.image-magnifier.loading::before {
  display: none;
}

.event-image .image-error {
  background: #fafafa;
  border-radius: 4px;
  padding: 10px;
  font-size: 12px;
}

.image-caption {
  padding: 12px 8px;
  font-size: 13px;
  color: #666;
  background: #f0f0f0;
  border-top: 1px solid #e0e0e0;
  line-height: 1.4;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.event-content {
  flex: 1;
}

.event-year {
  font-size: 24px;
  font-weight: bold;
  color: #8B4513;
  margin-bottom: 12px;
}

.event-title {
  font-size: 20px;
  font-weight: 600;
  color: #333;
  margin-bottom: 12px;
}

.event-details {
  font-size: 16px;
  line-height: 1.6;
  color: #666;
  white-space: pre-line; /* 保留换行符，折叠其他空白字符 */
}

/* 响应式设计 - 平板 */
@media (max-width: 768px) {
  .timeline-section {
    margin: 30px auto;
    padding: 0 15px;
  }

  .years-container {
    margin: 0 15px;
  }

  .years-track {
    gap: 40px;
    justify-content: flex-start; /* 改为左对齐，让JavaScript控制居中 */
    padding: 20px 0;
  }

  .year-btn {
    font-size: 14px;
    padding: 6px 16px;
  }

  .timeline-content {
    min-height: 350px; /* 平板端最小高度 */
    height: auto; /* 高度自适应 */
  }

  .timeline-event {
    flex-direction: column;
    gap: 20px;
    padding: 25px;
    min-height: auto; /* 移除固定高度，让内容撑开 */
  }

  .event-image {
    width: 100%;
    height: auto;
    max-height: 250px;
  }

  .image-caption {
    font-size: 12px;
    padding: 8px 6px;
    min-height: 32px;
  }

  .event-year {
    font-size: 20px;
    margin-bottom: 10px;
  }

  .event-title {
    font-size: 18px;
    margin-bottom: 10px;
  }

  .event-details {
    font-size: 15px;
    line-height: 1.5;
    white-space: pre-line; /* 保留换行符，折叠其他空白字符 */
  }

  .nav-btn {
    width: 40px;
    height: 40px;
  }

  .nav-arrow {
    font-size: 20px;
  }
}

/* 响应式设计 - 手机 */
@media (max-width: 480px) {
  .timeline-section {
    margin: 20px auto;
    padding: 0 10px;
  }

  .years-container {
    margin: 0 10px;
  }

  .years-track {
    gap: 25px;
    justify-content: flex-start; /* 改为左对齐，让JavaScript控制居中 */
    padding: 15px 0;
  }

  .year-btn {
    font-size: 12px;
    padding: 4px 10px;
  }

  .timeline-content {
    min-height: 300px; /* 手机端最小高度 */
    height: auto; /* 高度自适应 */
  }

  .timeline-event {
    padding: 18px;
    gap: 15px;
    min-height: auto; /* 移除固定高度，让内容撑开 */
  }

  .event-image {
    width: 100%;
    height: auto;
    max-height: 200px;
  }

  .image-caption {
    font-size: 11px;
    padding: 6px 4px;
    min-height: 28px;
  }

  .event-year {
    font-size: 18px;
    margin-bottom: 8px;
  }

  .event-title {
    font-size: 16px;
    margin-bottom: 8px;
    line-height: 1.3;
  }

  .event-details {
    font-size: 14px;
    line-height: 1.5;
    white-space: pre-line; /* 保留换行符，折叠其他空白字符 */
  }

  .nav-btn {
    width: 35px;
    height: 35px;
  }

  .nav-arrow {
    font-size: 18px;
  }
}

/* 触摸滑动支持 */
@media (hover: none) {
  .years-track {
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
  }

  .year-btn {
    scroll-snap-align: center;
  }
}


/* 时间轴入场动画 */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.timeline-section {
  animation: fadeInUp 0.8s ease-out;
}

/* 年份按钮入场动画 */
.year-btn {
  animation: fadeInUp 0.6s ease-out backwards;
}

.year-btn:nth-child(1) { animation-delay: 0.1s; }
.year-btn:nth-child(2) { animation-delay: 0.2s; }
.year-btn:nth-child(3) { animation-delay: 0.3s; }
.year-btn:nth-child(4) { animation-delay: 0.4s; }
.year-btn:nth-child(5) { animation-delay: 0.5s; }
.year-btn:nth-child(6) { animation-delay: 0.6s; }
.year-btn:nth-child(7) { animation-delay: 0.7s; }
.year-btn:nth-child(8) { animation-delay: 0.8s; }

/* ================================ */
/* 毕业合照页面样式 */
/* ================================ */

/* 合照页面主体内容 */
.hezhao-main-content {
  background: linear-gradient(135deg, #f8f6f3 0%, #f0e9e0 100%);
  min-height: 100vh;
  padding: 20px 0 40px;
}

.hezhao-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 学部切换Tab */
.school-tabs {
  margin-bottom: 30px;
}

.tab-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-bottom: 20px;
}

.tab-btn {
  background: #ababab;
  color: white;
  border: none;
  padding: 12px 30px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.tab-btn:hover {
  background: #A0522D;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

.tab-btn.active {
  background: #D2691E;
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(210, 105, 30, 0.5);
}

/* 搜索和筛选区域 */
.filter-section {
  background: white;
  border-radius: 15px;
  padding: 25px;
  margin-bottom: 30px;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.1);
  border: 1px solid rgba(139, 69, 19, 0.1);
}

/* 搜索框 */
.search-container {
  display: flex;
  justify-content: center;
  gap: 15px;
  margin-bottom: 25px;
}

#yearSearch {
  background: #f8f6f3;
  border: 2px solid #e0d5c7;
  border-radius: 25px;
  padding: 12px 20px;
  font-size: 16px;
  width: 300px;
  transition: all 0.3s ease;
}

#yearSearch:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.search-btn {
  background: #8B4513;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 25px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.search-btn:hover {
  background: #A0522D;
  transform: translateY(-2px);
}

/* 年份时间轴 - 优化版 */
/* 年份时间轴 - 可拖动版本 */
.year-timeline-draggable {
  position: relative;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.1);
  border-radius: 20px;
  margin: 15px 0;
  overflow: hidden;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  /* 提高拖动性能 */
  will-change: transform;
  contain: layout style paint;
}

.year-timeline-draggable.dragging {
  cursor: grabbing;
  /* 拖动时优化性能 */
  will-change: scroll-position;
}

.timeline-draggable-container {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 10px 6px;
  position: relative;
  z-index: 1;
  cursor: inherit;
  /* 移除 min-width: max-content，让容器根据内容自然计算宽度 */
}

.timeline-draggable-container::-webkit-scrollbar {
  display: none;
}

.timeline-draggable-container.has-left-overflow::before {
  opacity: 1;
}

.timeline-draggable-container.has-right-overflow::after {
  opacity: 1;
}

.timeline-draggable-container.has-overflow::before,
.timeline-draggable-container.has-overflow::after {
  opacity: 1;
}

.year-btn {
  background: #f8f6f3;
  border: 2px solid #e0d5c7;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 14px;
  font-weight: 500;
  color: #8B4513;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  text-align: center;
  position: relative; /* 确保按钮在正确的层级 */
  z-index: 2; /* 设置较低的z-index，避免覆盖导航按钮 */
}

.year-btn:hover {
  border-color: #8B4513;
  background: #8B4513;
  color: white;
  transform: translateY(-2px);
}

.year-btn.active {
  background: #D2691E;
  border-color: #D2691E;
  color: white;
  transform: scale(1.05);
}

/* 拖动时禁用按钮的悬停效果，避免干扰 */
.year-timeline-draggable.dragging .year-btn {
  pointer-events: none;
  cursor: grabbing;
}

/* 年份按钮进入视图时的动画效果 */
.year-btn.in-view {
  animation: fadeInScale 0.3s ease-out;
}

@keyframes fadeInScale {
  from {
    opacity: 0.7;
    transform: scale(0.95);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

/* 移动端年份筛选 */
.mobile-year-filter {
  display: none;
}

/* 桌面端和移动端的年份筛选显示控制 */
@media (min-width: 769px) {
  .mobile-year-filter {
    display: none !important;
  }

  .year-timeline-draggable {
    display: block;
  }
}

#mobileYearSelect {
  width: 100%;
  background: #f8f6f3;
  border: 2px solid #e0d5c7;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  color: #8B4513;
}

/* 当前筛选信息 */
.current-filter {
  text-align: center;
  margin-bottom: 30px;
}

.filter-info {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
}

.school-type {
  background: #8B4513;
  color: white;
  padding: 8px 16px;
  border-radius: 20px;
  font-weight: 500;
}

.year-info {
  color: #8B4513;
  font-size: 18px;
  font-weight: 500;
}

.photo-count {
  color: #666;
  font-size: 14px;
}

/* 照片网格展示 */
.photos-grid-section {
  background: white;
  border-radius: 15px;
  padding: 30px;
  box-shadow: 0 8px 32px rgba(139, 69, 19, 0.1);
  border: 1px solid rgba(139, 69, 19, 0.1);
}

.photos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 35px;
  margin-bottom: 30px;

  /* 确保网格布局正常工作 */
  width: 100%;
  align-items: start;
}

.photo-item {
  position: relative;
  background: #f8f6f3;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
  transition: all 0.3s ease;
  cursor: pointer;

  /* 合并布局设置 */
  display: flex;
  flex-direction: column;
  height: auto;
  min-height: 280px;

  /* 动画效果 */
  animation: fadeInUp 0.5s ease backwards;
}

/* .photo-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 24px rgba(139, 69, 19, 0.2);
} */


.photo-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(139, 69, 19, 0.7), transparent);
  color: white;
  padding: 15px;
  /* 始终显示，不需要悬停效果 */
  transform: translateY(0);
  opacity: 0;
  visibility: hidden;
  /* 隐藏 overlay，因为现在标题直接显示在外面 */
}

/* .photo-item:hover .photo-overlay {
  transform: translateY(0);
} */

.photo-year {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 4px;
}

.photo-class {
  font-size: 14px;
  opacity: 0.9;
}

/* 图片标题样式 */
.photo-title {
  padding: 12px 16px;
  background: #fff;
  color: #5D4037;
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  line-height: 1.4;
  border-top: 1px solid #f0f0f0;
  /* 确保标题在卡片底部 */
  margin-top: auto;
}

/* 图片容器样式 */
.photo-image-container {
  position: relative;
  width: 100%;
  flex-grow: 1;
  overflow: hidden;
  min-height: 200px;
}

.photo-image-container .photo-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* photo-item 布局已合并到主定义中 */

/* .photo-item:hover .photo-image-container .photo-image {
  transform: scale(1.05);
} */

/* 加载占位符 */
.loading-placeholder {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: #8B4513;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #8B4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 20px;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 加载更多按钮 */
.load-more-container {
  text-align: center;
  margin-top: 30px;
}

.load-more-btn {
  background: #8B4513;
  color: white;
  border: none;
  border-radius: 25px;
  padding: 12px 30px;
  font-size: 16px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.3);
}

.load-more-btn:hover {
  background: #A0522D;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(139, 69, 19, 0.4);
}

.load-more-btn:disabled {
  background: #ccc;
  cursor: not-allowed;
  transform: none;
}

/* 图片模态弹窗 */
.photo-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1000;
  animation: fadeIn 0.3s ease;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  width: 90%;
  max-width: 1200px;
  max-height: 90vh;
  margin: 5vh auto;
  background: white;
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: slideInUp 0.3s ease;
}

.modal-close {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(0, 0, 0, 0.5);
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 24px;
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.8);
  transform: scale(1.1);
}

.modal-image-container {
  position: relative;
  width: 100%;
  height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8f6f3;
}

#modalImage {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.modal-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(139, 69, 19, 0.9), transparent);
  color: white;
  padding: 30px 20px 20px;
}

/* 模态弹窗加载指示器样式 */
.modal-loading-indicator {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #333;
  z-index: 10;
}

.modal-loading-indicator .loading-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid #f3f3f3;
  border-top: 4px solid #8B4513;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  margin: 0 auto 15px;
}

.modal-loading-indicator p {
  margin: 0;
  font-size: 16px;
  font-weight: 500;
  background: rgba(255, 255, 255, 0.9);
  padding: 8px 16px;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.modal-loading-indicator .error-text {
  color: #d32f2f;
  font-weight: 600;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
}

#modalTitle {
  font-size: 24px;
  font-weight: 600;
  margin: 0;
  flex: 1;
  min-width: 0; /* 允许文本在必要时省略 */
}

#modalDescription {
  font-size: 16px;
  opacity: 0.9;
}

/* 下载按钮样式 */
.download-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.95);
  color: #8B4513;
  border: none;
  border-radius: 20px;
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  user-select: none;
  -webkit-user-select: none;
  flex-shrink: 0; /* 防止按钮被压缩 */
  white-space: nowrap;
}

.download-btn:hover {
  background: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.download-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.download-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.download-icon {
  font-size: 14px;
  font-weight: bold;
  line-height: 1;
}

.download-text {
  font-size: 13px;
  line-height: 1;
  white-space: nowrap;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .hezhao-container {
    padding: 0 15px;
  }

  .tab-buttons {
    gap: 15px;
  }

  .tab-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .search-container {
    flex-direction: column;
    align-items: center;
  }

  #yearSearch {
    width: 100%;
    max-width: 300px;
  }

  .year-timeline {
    /* 移动端显示优化版本的时间轴 */
    padding: 10px 40px; /* 减少左右内边距 */
  }

  .scroll-indicator {
    width: 50px !important; /* 移动端也增加宽度，确保可点击 */
  }

  .scroll-nav-btn {
    width: 32px;
    height: 32px; /* 移动端减小按钮尺寸 */
  }

  .mobile-year-filter {
    display: block;
    margin-bottom: 20px;
  }

  /* 移动端隐藏时间轴，只显示下拉框 */
  .year-timeline-draggable {
    display: none;
  }

  .filter-info {
    flex-direction: column;
    gap: 10px;
  }

  .photos-grid-section {
    padding: 20px 15px;
  }

  .photos-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 25px;
  }

  .photo-item {
    min-height: 260px;
  }

  .modal-content {
    width: 95%;
    margin: 2.5vh auto;
  }

  .modal-image-container {
    height: 60vh;
  }

  .modal-info {
    padding: 20px 15px 15px;
  }

  .modal-header {
    gap: 12px;
  }

  #modalTitle {
    font-size: 20px;
  }

  #modalDescription {
    font-size: 14px;
  }

  .download-btn {
    padding: 8px 12px;
    font-size: 12px;
  }

  .download-icon {
    font-size: 12px;
  }

  .download-text {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .filter-section {
    padding: 20px 15px;
  }

  .photos-grid-section {
    padding: 20px 15px;
  }

  .photos-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .photo-item {
    min-height: 240px;
  }

  .photo-title {
    padding: 8px 10px;
    font-size: 12px;
    line-height: 1.2;
  }

  .tab-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .tab-btn {
    width: 100%;
  }

  .current-filter {
    margin-bottom: 20px;
  }

  .filter-info {
    font-size: 14px;
  }

  .modal-content {
    width: 95%;
    margin: 2.5vh auto;
    border-radius: 10px;
  }

  .modal-close {
    width: 35px;
    height: 35px;
    font-size: 20px;
    top: 15px;
    right: 15px;
  }

  .modal-image-container {
    height: 50vh;
  }

  .modal-info {
    padding: 15px;
  }

  .modal-header {
    gap: 10px;
  }

  #modalTitle {
    font-size: 18px;
  }

  #modalDescription {
    font-size: 13px;
  }

  .download-btn {
    padding: 6px 10px;
    font-size: 11px;
  }

  .download-icon {
    font-size: 11px;
  }

  .download-text {
    font-size: 11px;
  }
}

/* 超小屏幕优化 */
@media (max-width: 320px) {
  .hezhao-container {
    padding: 0 10px;
  }

  .filter-section {
    padding: 15px 10px;
  }

  .photos-grid-section {
    padding: 15px 10px;
  }

  .tab-btn {
    padding: 8px 15px;
    font-size: 13px;
  }

  #yearSearch {
    font-size: 14px;
    padding: 10px 15px;
  }

  .search-btn {
    padding: 10px 20px;
    font-size: 14px;
  }

  .photo-year {
    font-size: 14px;
  }

  .photo-class {
    font-size: 12px;
  }

  /* 移动端图片标题样式 */
  .photo-title {
    padding: 10px 12px;
    font-size: 13px;
    line-height: 1.3;
  }

  /* min-height 已在上方媒体查询中定义 */
}

/* 触摸设备优化 */
@media (hover: none) and (pointer: coarse) {
  .photo-item:active {
    transform: scale(0.98);
  }

  .tab-btn:active {
    transform: scale(0.95);
  }

  .year-btn:active {
    transform: scale(0.95);
  }

  .search-btn:active {
    transform: scale(0.95);
  }

  .load-more-btn:active {
    transform: scale(0.95);
  }
}

/* 高分辨率屏幕优化 */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
  .photo-image {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
  }
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideInUp {
  from {
    transform: translateY(100px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

/* 照片项目动画已合并到主定义中 */

.photo-item:nth-child(1) { animation-delay: 0.1s; }
.photo-item:nth-child(2) { animation-delay: 0.2s; }
.photo-item:nth-child(3) { animation-delay: 0.3s; }
.photo-item:nth-child(4) { animation-delay: 0.4s; }
.photo-item:nth-child(5) { animation-delay: 0.5s; }
.photo-item:nth-child(6) { animation-delay: 0.6s; }
.photo-item:nth-child(7) { animation-delay: 0.7s; }
.photo-item:nth-child(8) { animation-delay: 0.8s; }

/* ===================================
   错误处理和验证相关样式
   =================================== */

/* 验证错误提示 Toast */
.validation-error-toast {
  position: fixed;
  top: 20px;
  right: -400px;
  z-index: 10000;
  max-width: 350px;
  background: #fff;
  border: 2px solid #ff4757;
  border-radius: 8px;
  box-shadow: 0 4px 20px rgba(255, 71, 87, 0.3);
  transition: right 0.3s ease-in-out;
}

.validation-error-toast.show {
  right: 20px;
}

.error-content {
  display: flex;
  align-items: center;
  padding: 12px 16px;
  gap: 10px;
}

.error-icon {
  font-size: 18px;
  flex-shrink: 0;
}

.error-message {
  flex: 1;
  font-size: 14px;
  color: #2c3e50;
  font-weight: 500;
}

.error-close {
  background: none;
  border: none;
  font-size: 18px;
  color: #ff4757;
  cursor: pointer;
  padding: 0;
  width: 20px;
  height: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background-color 0.2s ease;
}

.error-close:hover {
  background-color: rgba(255, 71, 87, 0.1);
}

/* 重试按钮样式 */
.retry-btn {
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  margin-top: 10px;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.retry-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.retry-btn:active {
  transform: translateY(0);
}

.retry-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  transform: none;
  box-shadow: 0 2px 8px rgba(102, 126, 234, 0.2);
}

/* 加载状态指示器增强 */
.loading-placeholder {
  text-align: center;
  padding: 40px 20px;
  color: #666;
}

.loading-placeholder p {
  margin: 8px 0;
  font-size: 16px;
}

.loading-placeholder p:first-child {
  font-size: 24px;
  margin-bottom: 16px;
}

/* 错误状态样式增强 */
.loading-placeholder .error-code {
  font-family: 'Courier New', monospace;
  background: #f8f9fa;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  color: #666;
  margin: 8px 0;
}

/* 响应式设计 - 错误提示 */
@media (max-width: 768px) {
  .validation-error-toast {
    top: 10px;
    right: -100%;
    left: 10px;
    max-width: none;
    border-radius: 0 0 8px 8px;
  }

  .validation-error-toast.show {
    right: 10px;
  }

  .error-content {
    padding: 10px 12px;
  }

  .error-message {
    font-size: 13px;
  }

  .retry-btn {
    padding: 8px 16px;
    font-size: 13px;
  }
}

/* ================================
   错误反馈功能样式
   ================================ */

/* 漂浮反馈按钮 */
.feedback-float-btn {
  position: fixed;
  bottom: 30px;
  right: 30px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(139, 69, 19, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-family: inherit;
  font-weight: bold;
}

.feedback-float-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(139, 69, 19, 0.4);
  background: linear-gradient(135deg, #A0522D 0%, #DEB887 100%);
}

.feedback-float-btn:active {
  transform: translateY(0);
}

.feedback-float-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  font-size: 12px;
  line-height: 1.2;
}

.feedback-float-btn .text-line {
  display: block;
  width: 100%;
}

/* 反馈模态弹窗 */
.feedback-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
}

.feedback-modal.show {
  display: flex;
  animation: fadeIn 0.3s ease;
}

.feedback-modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.feedback-modal-content {
  position: relative;
  background: white;
  border-radius: 12px;
  max-width: 500px;
  width: 90%;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
  animation: slideUp 0.3s ease;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 反馈表单头部 */
.feedback-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px 16px;
  border-bottom: 1px solid #f0f0f0;
}

.feedback-header h3 {
  margin: 0;
  color: #333;
  font-size: 18px;
  font-weight: 600;
}

.feedback-close {
  width: 32px;
  height: 32px;
  border: none;
  background: #f5f5f5;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #666;
  transition: all 0.2s ease;
}

.feedback-close:hover {
  background: #e8e1cf;
  color: #333;
}

/* 反馈表单样式 */
.feedback-form {
  padding: 24px;
}

.form-group {
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #333;
  font-size: 14px;
  font-weight: 500;
}

.form-group .required {
  color: #e74c3c;
}

.form-group select,
.form-group textarea,
.form-group input[type="text"] {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid #ddd;
  border-radius: 8px;
  font-size: 14px;
  font-family: inherit;
  transition: border-color 0.2s ease;
  background: white;
}

.form-group select:focus,
.form-group textarea:focus,
.form-group input[type="text"]:focus {
  outline: none;
  border-color: #8B4513;
  box-shadow: 0 0 0 3px rgba(139, 69, 19, 0.1);
}

.form-group textarea {
  resize: vertical;
  min-height: 120px;
}

.form-group input.error,
.form-group select.error,
.form-group textarea.error {
  border-color: #e74c3c;
}

/* 字数统计显示 */
.form-group .char-count {
  font-size: 12px;
  color: #666;
  text-align: right;
  margin-top: 4px;
}

.form-group .char-count.warning {
  color: #e67e22;
}

.form-group .char-count.error {
  color: #e74c3c;
}

.error-message {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.error-message.show {
  display: block;
}

/* 表单操作按钮 */
.form-actions {
  display: flex;
  gap: 12px;
  margin-top: 24px;
}

/* 表单额外操作区域 */
.form-extra-actions {
  margin-top: 16px;
  text-align: center;
  padding-top: 16px;
  border-top: 1px solid #f0f0f0;
}

/* 照片投稿按钮 */
.photo-submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: linear-gradient(135deg, #3498db 0%, #2980b9 100%);
  color: white;
  text-decoration: none;
  border-radius: 25px;
  padding: 10px 20px;
  font-size: 14px;
  font-weight: 500;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(52, 152, 219, 0.3);
  border: none;
  cursor: pointer;
  font-family: inherit;
}

.photo-submit-btn:hover {
  background: linear-gradient(135deg, #2980b9 0%, #21618c 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(52, 152, 219, 0.4);
}

.photo-submit-btn:active {
  transform: translateY(0);
  transition: transform 0.1s ease;
}

.photo-submit-btn .btn-icon {
  font-size: 16px;
  line-height: 1;
}

.photo-submit-btn .btn-text {
  font-size: 14px;
  line-height: 1;
  white-space: nowrap;
}

.btn-cancel,
.btn-submit {
  flex: 1;
  padding: 12px 24px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  border: none;
  font-family: inherit;
}

.btn-cancel {
  background: #f5f5f5;
  color: #666;
}

.btn-cancel:hover {
  background: #e8e1cf;
  color: #333;
}

.btn-submit {
  background: linear-gradient(135deg, #8B4513 0%, #D2691E 100%);
  color: white;
  position: relative;
}

.btn-submit:hover:not(:disabled) {
  background: linear-gradient(135deg, #A0522D 0%, #DEB887 100%);
}

.btn-submit:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

.btn-loading {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-loading::before {
  content: "";
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid white;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* Toast 提示消息 */
.toast-message {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%) translateY(-100px);
  background: white;
  padding: 16px 24px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  z-index: 3000;
  opacity: 0;
  transition: all 0.3s ease;
  max-width: 400px;
  width: 90%;
}

.toast-message.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.toast-message.success {
  border-left: 4px solid #27ae60;
}

.toast-message.error {
  border-left: 4px solid #e74c3c;
}

.toast-message.info {
  border-left: 4px solid #3498db;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .feedback-float-btn {
    bottom: 20px;
    right: 20px;
    width: 50px;
    height: 50px;
  }

  .feedback-float-btn .btn-text {
    font-size: 10px;
  }

  .feedback-modal-content {
    width: 95%;
    margin: 20px;
  }

  .feedback-form {
    padding: 20px 16px;
  }

  .form-actions {
    flex-direction: column;
  }

  .btn-cancel,
  .btn-submit {
    width: 100%;
  }

  .photo-submit-btn {
    width: 100%;
    max-width: 280px;
    margin: 0 auto;
    display: flex;
  }
}

@media (max-width: 480px) {
  .feedback-float-btn {
    bottom: 15px;
    right: 15px;
    width: 45px;
    height: 45px;
  }

  .feedback-float-btn .btn-text {
    font-size: 9px;
  }

  .photo-submit-btn {
    width: 100%;
    max-width: 240px;
    padding: 12px 16px;
    font-size: 13px;
  }

  .photo-submit-btn .btn-icon {
    font-size: 14px;
  }

  .photo-submit-btn .btn-text {
    font-size: 13px;
  }
}

/* ================================
   校友互动悬浮按钮样式
   ================================ */

/* 校友互动悬浮按钮基础样式 */
.alumni-float-btn {
  z-index: 1000;
  position: fixed;
  bottom: 200px;
  right: 20px;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #c41e3a 0%, #ff6b6b 100%);
  border: none;
  border-radius: 30%;
  color: white;
  font-size: 16px;
  font-weight: 600;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  transition: all 0.3s ease;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  outline: none;
  padding: 4px;
}

/* 悬停效果 */
.alumni-float-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
  background: linear-gradient(135deg, #e74c3c 0%, #ff6b6b 100%);
}

/* 点击效果 */
.alumni-float-btn:active {
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 2px 8px rgba(196, 30, 58, 0.2);
  transition: transform 0.1s ease;
}

/* 按钮文字 */
.alumni-float-btn .btn-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  line-height: 1.2;
  text-align: center;
}

/* PC端文字垂直排列 - 每排只显示两个字 */
@media (min-width: 769px) {
  .alumni-float-btn .btn-text {
    writing-mode: vertical-rl;
    text-orientation: mixed;
    letter-spacing: 2px;
  }
}

/* 响应式设计 - 平板端 */
@media (max-width: 768px) {
  .alumni-float-btn {
    right: 15px;
    bottom: 80px;
    width: 50px;
    height: 50px;
    font-size: 12px;
  }
}

/* 响应式设计 - 移动端 */
@media (max-width: 480px) {
  .alumni-float-btn {
    right: 2px;
    top: 50%;
    width: 30px;
    font-size: 11px;
    border-radius: 6px;
  }
}

/* 确保按钮在所有页面都显示 */
.alumni-float-btn {
  visibility: visible;
  opacity: 1;
}

/* 动画效果 - 呼吸效果 */
@keyframes alumniButtonBreathing {
  0% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  }
  50% {
    transform: scale(1.08);
    box-shadow: 0 6px 20px rgba(196, 30, 58, 0.4);
  }
  100% {
    transform: scale(1);
    box-shadow: 0 4px 12px rgba(196, 30, 58, 0.3);
  }
}

/* 页面加载时的呼吸动画 */
.alumni-float-btn.page-loaded {
  animation: alumniButtonBreathing 3s ease-in-out infinite;
}

/* 悬停时停止呼吸动画 */
.alumni-float-btn:hover {
  animation: none;
}

/* 焦点状态 */
.alumni-float-btn:focus {
  /* outline: 2px solid #ffeb3b; */
  outline-offset: 2px;
}

/* 无障碍支持 */
@media (prefers-reduced-motion: reduce) {
  .alumni-float-btn {
    animation: none;
  }

  .alumni-float-btn:hover {
    transform: translateY(-3px) scale(1.05);
  }
}