/* 基础设置与 CSS 变量 */
:root {
  --primary-color: #0052a6;
  --hover-color: #0a6dd8;
  --accent-color: #0a6dd8;
  --text-dark: #333333;
  --text-gray: #666666;
  --text-light: #999999;
  --bg-gray: #f2f6fc;
  --bg-light: #f2f6fc;
  --panel-bg: #ffffff;
  --panel-hover-bg: #f0f6ff;
  --tape-color: rgba(200, 220, 255, 0.85);
  --primary-rgb: 0, 82, 166;
  --accent-rgb: 10, 109, 216;
  --glow-color-rgb: 10, 109, 216;
  --primary-deep: #00224e;
  --section-pattern-url: url("../images/section-pattern.png");
  --topic1-start: rgba(0, 82, 166, 0.85);
  --topic1-end: rgba(10, 109, 216, 0.9);
  --topic2-start: rgba(42, 140, 255, 0.85);
  --topic2-end: rgba(10, 109, 216, 0.9);
  --topic3-start: rgba(0, 170, 220, 0.85);
  --topic3-end: rgba(0, 140, 200, 0.9);
  --topic4-start: rgba(0, 170, 220, 0.85);
  --topic4-end: rgba(0, 140, 200, 0.9);
  --white: #ffffff;
  --border-color: #e0e6ed;
  --transition: all 0.3s ease;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue",
    Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji",
    "Segoe UI Symbol", "Noto Color Emoji";
  color: var(--text-dark);
  line-height: 1.6;
  background-color: var(--bg-gray); /* 全局使用带有一点蓝调的浅灰色背景 */
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition);
}

ul {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.section {
  padding: 80px 0;
  position: relative; /* 为视差背景做准备 */
  overflow: hidden; /* 确保视差背景不溢出 */
}

/* 视差背景层统一样式 */
.parallax-bg {
  position: absolute;
  top: -20%; /* 预留上下滚动的空间 */
  left: 0;
  width: 100%;
  height: 140%; /* 高度比容器大，才能产生滚动差 */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 0;
  opacity: 0.05; /* 默认透明度，作为极淡的底纹 */
  pointer-events: none;
  will-change: transform;
}

/* 确保容器内容在背景之上 */
.section .container {
  position: relative;
  z-index: 2;
}

/* 为四个主要模块分别指定视差背景图 */
.news-section .parallax-bg {
  background-image: var(--section-pattern-url);
  opacity: 0.03;
}

.topics-section .parallax-bg {
  background-image: var(--section-pattern-url);
  opacity: 0.04;
}

.videos-section .parallax-bg {
  background-image: var(--section-pattern-url);
  opacity: 0.03;
}

.experts-section .parallax-bg {
  background-image: url("https://images.unsplash.com/photo-1577415124269-dba114436123?auto=format&fit=crop&w=1920&q=80");
  opacity: 0.03;
}

/* 移除特定的隔断背景类，因为现在全局背景统一了，各个区块可以只依靠留白或卡片的白色背景来区分 */

/* 新闻动态 News Section */
.news-section {
  background-color: var(--bg-gray);
  position: relative;
  padding-bottom: 80px;
}

/* 专家信息 Experts Section */
.experts-section {
  background-color: var(--bg-gray);
  overflow: hidden;
}

/* 精选视频 Video Section */
.videos-section {
  background-color: var(--bg-gray);
}

/* 导航栏 Navbar */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1000;
  transition: var(--transition);
  padding: 20px 0;
  background: transparent;
}

#navbar.fade-out {
  opacity: 0;
  transform: translateY(-10px);
}

#navbar.fade-in {
  opacity: 1;
  transform: translateY(0);
}

#navbar.scrolled {
  background: rgba(var(--primary-rgb), 0.95);
  padding: 10px 0;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.nav-container {
  display: flex;
  align-items: center;
}

.logo img {
  height: 68px;
  object-fit: contain;
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
  transform: translateY(6px) scale(1);
  transition: height 0.3s ease, transform 0.3s ease, filter 0.3s ease;
}

#navbar.scrolled .logo img {
  height: 42px;
  transform: translateY(0) scale(0.9);
  filter: drop-shadow(0 0 0 rgba(0,0,0,0));
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-links li {
  position: relative;
}

.nav-links li.has-sub {
  padding-bottom: 10px;
}

.nav-links a {
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  position: relative;
  padding-bottom: 5px;
}

.nav-links a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: var(--white);
  transition: var(--transition);
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

/* 二级导航（悬停显示） */
.nav-links .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  min-width: 180px;
  background: rgba(var(--primary-rgb), 0.95);
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.15);
  padding: 8px 0;
  opacity: 0;
  transform: translateY(4px);
  pointer-events: none;
  transition: var(--transition);
  z-index: 1200;
}

.nav-links .sub-menu li a {
  display: block;
  padding: 10px 16px;
  color: #fff;
  font-size: 14px;
  white-space: nowrap;
}

.nav-links .sub-menu li a:hover {
  background: rgba(255, 255, 255, 0.08);
  padding-left: 20px;
}

.nav-links li.has-sub:hover > .sub-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

/* 顶部横幅 Hero */
.hero {
  position: relative;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.hero-slides {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-attachment: fixed; /* 视差滚动 */
  opacity: 0;
  transition: opacity 1s ease-in-out;
}

.hero-slide.active {
  opacity: 1;
}

.hero::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0) 50%,
    rgba(0, 0, 0, 0.3) 100%
  );
  z-index: 0;
}

.carousel-indicators {
  position: absolute;
  bottom: 30px;
  right: 30px;
  display: flex;
  gap: 10px;
  z-index: 10;
}

.carousel-indicators .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-indicators .dot.active {
  background-color: var(--white);
  transform: scale(1.2);
}

.scroll-down {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  color: var(--white);
  font-size: 30px;
  animation: bounce 2s infinite;
  cursor: pointer;
  z-index: 10;
  opacity: 0.8;
}

@keyframes bounce {
  0%,
  20%,
  50%,
  80%,
  100% {
    transform: translateY(0) translateX(-50%);
  }
  40% {
    transform: translateY(-15px) translateX(-50%);
  }
  60% {
    transform: translateY(-7px) translateX(-50%);
  }
}

/* 模块标题 Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 40px;
  border-bottom: 2px solid var(--border-color);
  padding-bottom: 15px;
}

.section-title {
  font-size: 28px;
  font-weight: bold;
  color: var(--text-dark);
  position: relative;
}

.section-title span {
  color: var(--primary-color);
  font-style: italic;
  font-size: 32px;
  margin-right: 5px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: -17px;
  left: 0;
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
}

.view-more {
  color: var(--primary-color);
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.view-more i {
  transition: transform 0.3s ease;
}

.view-more:hover {
  color: var(--hover-color);
}

.view-more:hover i {
  transform: translateX(5px);
}

/* 新闻动态 News */
.news-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.news-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-bottom: 20px;
}

.news-card {
  background: var(--white);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 12px 30px rgba(var(--primary-rgb), 0.15);
}

.news-img {
  height: 160px;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-card:hover .news-img {
  transform: scale(1.08);
}

.news-info {
  padding: 15px 15px 5px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-info .tag {
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  padding: 2px 8px;
  font-size: 12px;
  border-radius: 4px;
}

.news-info .date {
  color: var(--text-light);
  font-size: 12px;
}

.news-card-title {
  padding: 0 15px 15px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.news-card:hover .news-card-title {
  color: var(--primary-color);
}

.news-list-simple li {
  padding: 15px 0;
  border-bottom: 1px dashed var(--border-color);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-list-simple a {
  font-size: 15px;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-right: 20px;
  position: relative;
  padding-left: 15px;
}

.news-list-simple a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  background-color: var(--text-light);
  border-radius: 50%;
}

.news-list-simple a:hover {
  color: var(--primary-color);
}

.news-list-simple .date {
  color: var(--text-light);
  font-size: 14px;
}

.news-list-dated li {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid var(--border-color);
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.news-list-dated li:hover {
  background-color: var(--bg-gray);
  padding-left: 15px;
  border-radius: 4px;
  transform: translateX(5px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.date-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--bg-gray);
  width: 80px;
  height: 80px;
  border-radius: 8px;
  margin-right: 20px;
  flex-shrink: 0;
  transition: var(--transition);
}

.news-list-dated li:hover .date-box {
  background-color: var(--primary-color);
  color: var(--white);
}

.date-box .day {
  font-size: 28px;
  font-weight: bold;
  line-height: 1.2;
  color: var(--text-gray);
}

.news-list-dated li:hover .date-box .day {
  color: var(--white);
}

.date-box .year-month {
  font-size: 12px;
  color: var(--text-light);
}

.news-list-dated li:hover .date-box .year-month {
  color: rgba(255, 255, 255, 0.8);
}

.news-list-dated .news-title {
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  flex: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0; /* 修复 flex 子元素溢出问题 */
}

.news-list-dated li:hover .news-title {
  color: var(--primary-color);
}

/* 专题热点 Topics */
.topics-section {
  background-color: var(--bg-gray);
}

.topics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.topic-card {
  height: 120px;
  border-radius: 8px;
  overflow: hidden;
  position: relative;
  background-size: cover;
  background-position: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: all 0.5s cubic-bezier(0.165, 0.84, 0.44, 1);
}

/* 专题卡片扫光特效基础 */
.topic-card::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 50%;
  height: 100%;
  background: linear-gradient(
    to right,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 0.4) 50%,
    rgba(255, 255, 255, 0) 100%
  );
  transform: skewX(-25deg);
  z-index: 3;
  transition: none;
}

.topic-card:hover {
  transform: translateY(-8px) scale(1.03);
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

/* 悬浮时触发扫光动画 */
.topic-card:hover::after {
  animation: shine 0.8s ease-in-out forwards;
}

@keyframes shine {
  100% {
    left: 200%;
  }
}

.topic-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  transition: var(--transition);
}

.topic-overlay h3 {
  color: var(--white);
  font-size: 18px;
  font-weight: bold;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
  z-index: 2;
  transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform: translateY(0);
}

.topic-card:hover .topic-overlay h3 {
  transform: translateY(-3px) scale(1.05);
  text-shadow: 2px 4px 8px rgba(0, 0, 0, 0.6);
}

.topic-overlay::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0.8;
  transition: var(--transition);
}

.topic-card:hover .topic-overlay::before {
  opacity: 0.95;
}

.topic-overlay.red::before {
  background: linear-gradient(135deg, var(--topic1-start), var(--topic1-end));
}
.topic-overlay.blue::before {
  background: linear-gradient(135deg, var(--topic2-start), var(--topic2-end));
}
.topic-overlay.light-blue::before {
  background: linear-gradient(135deg, var(--topic3-start), var(--topic3-end));
}
.topic-overlay.green::before {
  background: linear-gradient(135deg, var(--topic4-start), var(--topic4-end));
}

/* 精选视频 Videos */
.videos-grid {
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 30px;
}

/* 彻底重构后的左侧视频列表样式 */
.video-list {
  display: flex;
  flex-direction: column;
  height: 400px; /* 固定列表总高度与视频播放器一致 */
  border-right: 1px solid rgba(0, 0, 0, 0.05); /* 加个右边框分割 */
}

.video-item {
  flex: 1; /* 平分高度 */
  display: flex;
  flex-direction: row; /* 水平排列 */
  align-items: center; /* 垂直居中 */
  justify-content: space-between; /* 两端对齐 */
  padding: 0 20px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.03);
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  background-color: #fff; /* 默认纯白背景 */
  overflow: hidden;
}

.video-item:last-child {
  border-bottom: none;
}

.video-item:hover {
  background-color: #f9f9f9; /* 悬浮时极淡的灰色 */
}

.video-item.active-video {
  background-color: #fff; /* 选中时保持白色，不要任何背景色 */
}

.video-info {
  flex: 1; /* 占据剩余空间 */
  min-width: 0; /* 防止溢出 */
  display: flex;
  align-items: center;
  padding-right: 15px; /* 与日期保持间距 */
}

/* 标题样式 */
.video-title {
  font-size: 16px;
  font-weight: 500;
  color: #333;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
  position: relative;
  padding-left: 20px; /* 为三角形留出空间 */
}

/* 蓝色三角形图标 */
.video-title::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  width: 0;
  height: 0;
  border-style: solid;
  border-width: 5px 0 5px 8px; /* 三角形大小 */
  border-color: transparent transparent transparent var(--primary-color); /* 蓝色向右三角形 */
}

.video-item.active-video .video-title {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px; /* 选中时放大 */
}

/* 日期样式 */
.video-date {
  flex-shrink: 0; /* 防止日期被挤压 */
  color: #999;
  font-size: 16px;
  font-family: Arial, sans-serif; /* 数字字体 */
}

.video-date .md {
  font-size: 16px;
  font-weight: normal;
  line-height: 1;
}

.video-item.active-video .video-date {
  color: var(--primary-color);
  font-weight: bold;
  font-size: 18px;
}

/* 彻底隐藏不需要的元素 */
.video-date .year,
.video-desc,
.video-item.active-video::before {
  /* 移除之前的左侧边框指示条 */
  display: none !important;
}

.video-player {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  height: 400px; /* 固定右侧播放器高度 */
}

.player-wrapper {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
}

.player-wrapper::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.2);
  transition: var(--transition);
}

.video-player:hover .player-wrapper::after {
  background-color: rgba(0, 0, 0, 0.4);
}

.play-btn {
  width: 60px;
  height: 60px;
  background-color: rgba(0, 0, 0, 0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 24px;
  z-index: 10;
  cursor: pointer;
  transition: var(--transition);
  border: 2px solid var(--white);
}

.play-btn i {
  margin-left: 5px; /* 光学居中 */
}

.video-player:hover .play-btn {
  background-color: var(--primary-color);
  transform: scale(1.1);
}

.video-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 15px 20px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0));
  color: var(--white);
  font-size: 18px;
  z-index: 10;
}

/* 专家信息 Experts */
.experts-carousel-wrapper {
  position: relative;
  padding: 0 50px;
}

.experts-carousel {
  overflow: hidden;
}

.experts-track {
  display: flex;
  gap: 30px;
  transition: transform 0.5s ease-in-out;
}

.experts-track .expert-card {
  flex: 0 0 calc(25% - 22.5px); /* 每次显示4个卡片 */
  perspective: 1500px; /* 增加3D透视 */
}

.carousel-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: var(--white);
  color: var(--primary-color);
  border: 1px solid var(--primary-color);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  transition: all 0.3s ease;
}

.carousel-btn:hover {
  background: var(--primary-color);
  color: var(--white);
}

.carousel-btn.prev-btn {
  left: 0;
}

.carousel-btn.next-btn {
  right: 0;
}

.expert-card {
  height: 380px;
  background: transparent;
  position: relative;
  cursor: pointer;
}

.expert-card-inner {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1);
  transform-style: preserve-3d;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

.expert-card:hover .expert-card-inner {
  transform: rotateY(180deg);
  box-shadow: 0 15px 35px rgba(var(--primary-rgb), 0.3);
}

.expert-card-front,
.expert-card-back {
  position: absolute;
  width: 100%;
  height: 100%;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: 12px;
}

/* 正面样式 */
.expert-card-front {
  background-color: var(--white);
  display: flex;
  flex-direction: column;
  overflow: hidden; /* 正面需要隐藏图片溢出 */
}

.expert-img {
  flex: 1;
  background-size: cover;
  background-position: top center;
  position: relative;
}

.expert-img::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 50%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85), transparent);
}

.expert-info-front {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 20px;
  color: var(--white);
  z-index: 2;
}

.expert-header .name {
  font-size: 20px;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

.expert-header .title {
  font-size: 13px;
  color: #f0f0f0;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.6);
}

/* 背面样式 */
.expert-card-back {
  background: linear-gradient(135deg, var(--primary-color), #002244);
  color: var(--white);
  transform: rotateY(180deg);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
  text-align: center;
  transform-style: preserve-3d; /* 保持内部元素的3D感 */
}

.expert-back-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  transform: translateZ(50px); /* 悬浮时的弹出深度 */
}

.back-name {
  font-size: 22px;
  margin-bottom: 12px;
  letter-spacing: 1px;
}

.back-divider {
  width: 40px;
  height: 3px;
  background-color: #fff;
  margin-bottom: 15px;
  border-radius: 2px;
}

.expert-desc {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.85);
  display: -webkit-box;
  -webkit-line-clamp: 7;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 25px;
  line-height: 1.6;
  text-align: left;
}

.expert-btn {
  padding: 8px 24px;
  border: 2px solid var(--white);
  border-radius: 20px;
  color: var(--white);
  font-size: 14px;
  font-weight: bold;
  transition: all 0.3s ease;
  text-transform: uppercase;
}

.expert-btn:hover {
  background-color: var(--white);
  color: var(--primary-color);
  transform: scale(1.05);
}

 .stats-section {
  padding: 90px 0 80px;
  background:
    radial-gradient(circle at top, rgba(var(--primary-rgb), 0.08), transparent 38%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.92), rgba(255, 255, 255, 0.98));
  position: relative;
  overflow: hidden;
}

.stats-section::before {
  content: "";
  position: absolute;
  inset: auto 0 18px 0;
  height: 220px;
  background:
    linear-gradient(rgba(var(--primary-rgb), 0.05) 2px, transparent 2px) 0 100%/100% 36px no-repeat,
    repeating-linear-gradient(
      90deg,
      rgba(var(--primary-rgb), 0.05) 0,
      rgba(var(--primary-rgb), 0.05) 2px,
      transparent 2px,
      transparent 44px
    );
  opacity: 0.35;
  pointer-events: none;
}

.stats-story {
  position: relative;
  padding: 44px 40px 56px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 60px rgba(65, 36, 12, 0.08);
  border: 1px solid rgba(var(--primary-rgb), 0.08);
  overflow: hidden;
}

.stats-story::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 50% 100%, rgba(var(--primary-rgb), 0.06), transparent 36%),
    repeating-linear-gradient(
      90deg,
      rgba(var(--primary-rgb), 0.03) 0,
      rgba(var(--primary-rgb), 0.03) 1px,
      transparent 1px,
      transparent 28px
    );
  pointer-events: none;
}

.stats-story-header {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 34px;
}

.stats-story-title {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  color: var(--primary-color);
  font-size: 42px;
  font-weight: 700;
  letter-spacing: 2px;
}

.stats-story-title::before,
.stats-story-title::after {
  content: "";
  width: 70px;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(var(--primary-rgb), 0.35), transparent);
}

.stats-story-subtitle {
  margin-top: 14px;
  color: var(--text-gray);
  font-size: 18px;
  font-weight: 500;
}

.stats-story-stage {
  position: relative;
  z-index: 1;
  min-height: 320px;
}

.stats-story-slides {
  position: relative;
  min-height: 250px;
}

.stats-story-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  gap: 28px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(24px);
  transition: opacity 0.45s ease, transform 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
}

.stats-story-slide.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
}

.stats-story-item {
  width: min(18vw, 170px);
  min-width: 140px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text-dark);
  cursor: pointer;
  transition: transform 0.35s ease, opacity 0.35s ease;
  animation: statsFloat 5.5s ease-in-out infinite;
}

.stats-story-item:nth-child(2) {
  animation-delay: -1s;
}

.stats-story-item:nth-child(3) {
  animation-delay: -2s;
}

.stats-story-item:nth-child(4) {
  animation-delay: -3s;
}

.stats-story-item:nth-child(5) {
  animation-delay: -4s;
}

.stats-story-icon {
  width: 102px;
  height: 102px;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.2);
  color: var(--primary-color);
  background: rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.4);
  transition: all 0.35s ease;
}

.stats-story-number {
  color: var(--primary-color);
  font-size: 48px;
  line-height: 1;
  font-weight: 700;
  transition: all 0.35s ease;
}

.stats-story-desc {
  max-width: 180px;
  color: var(--text-gray);
  font-size: 16px;
  line-height: 1.55;
  text-align: center;
  transition: color 0.35s ease;
}

.stats-story-item:hover,
.stats-story-item.is-active {
  transform: translateY(-10px) scale(1.02);
}

.stats-story-item:hover .stats-story-icon,
.stats-story-item.is-active .stats-story-icon {
  background: var(--primary-color);
  color: #fff;
  border-color: transparent;
  box-shadow: 0 16px 30px rgba(var(--primary-rgb), 0.26);
}

.stats-story-item:hover .stats-story-number,
.stats-story-item.is-active .stats-story-number {
  transform: scale(1.08);
}

.stats-story-item:hover .stats-story-desc,
.stats-story-item.is-active .stats-story-desc {
  color: var(--primary-color);
}

.stats-story-dots {
  margin-top: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.stats-story-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(var(--primary-rgb), 0.45);
  background: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: all 0.3s ease;
}

.stats-story-dot.is-active {
  background: var(--primary-color);
  transform: scale(1.15);
}

.stats-story-meta {
  margin-top: 18px;
  color: var(--text-light);
  font-size: 14px;
  text-align: right;
}

@keyframes statsFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}

@media (max-width: 1024px) {
  .stats-story {
    padding: 38px 24px 46px;
  }

  .stats-story-slide {
    gap: 18px;
    flex-wrap: wrap;
  }

  .stats-story-item {
    width: calc(50% - 12px);
    min-width: 0;
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 70px 0 60px;
  }

  .stats-story {
    padding: 32px 18px 40px;
    border-radius: 20px;
  }

  .stats-story-title {
    font-size: 28px;
    gap: 10px;
  }

  .stats-story-title::before,
  .stats-story-title::after {
    width: 30px;
  }

  .stats-story-subtitle {
    font-size: 15px;
  }

  .stats-story-stage {
    min-height: 540px;
  }

  .stats-story-slides {
    min-height: 460px;
  }

  .stats-story-slide {
    align-content: flex-start;
  }

  .stats-story-item {
    width: 100%;
  }

  .stats-story-icon {
    width: 88px;
    height: 88px;
    font-size: 28px;
  }

  .stats-story-number {
    font-size: 40px;
  }

  .stats-story-desc {
    font-size: 15px;
  }

  .stats-story-meta {
    text-align: center;
  }
}

.stats-section {
  padding: 96px 0 92px;
  background:
    linear-gradient(180deg, rgba(246, 250, 255, 0.96), rgba(255, 255, 255, 0.98)),
    radial-gradient(circle at 8% 18%, rgba(0, 82, 166, 0.14), transparent 28%),
    radial-gradient(circle at 90% 12%, rgba(15, 145, 134, 0.12), transparent 25%),
    #f3f7fc;
}

.stats-showcase {
  position: relative;
  padding: 40px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(248, 252, 255, 0.84)),
    linear-gradient(90deg, rgba(var(--primary-rgb), 0.04) 1px, transparent 1px),
    linear-gradient(0deg, rgba(var(--primary-rgb), 0.035) 1px, transparent 1px);
  background-size: auto, 36px 36px, 36px 36px;
  box-shadow: 0 24px 60px rgba(0, 34, 78, 0.1);
  scroll-margin-top: 120px;
  overflow: hidden;
}

.stats-showcase::before {
  content: "";
  position: absolute;
  left: 40px;
  right: 40px;
  top: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), #0f9186, #c58c1a);
}

.stats-showcase::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -160px;
  width: 360px;
  height: 360px;
  border: 54px solid rgba(var(--primary-rgb), 0.06);
  border-radius: 50%;
  pointer-events: none;
}

.stats-showcase-head {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  margin-bottom: 34px;
}

.stats-showcase-kicker {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #a06d09;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.stats-showcase-kicker::before {
  content: "";
  width: 28px;
  height: 2px;
  background: #c58c1a;
}

.stats-showcase-title {
  color: var(--primary-deep);
  font-size: 44px;
  line-height: 1.2;
  margin-top: 6px;
  font-weight: 800;
  letter-spacing: 0;
}

.stats-showcase-subtitle {
  max-width: 660px;
  margin-top: 10px;
  color: #506176;
  font-size: 17px;
  line-height: 1.75;
}

.stats-dashboard {
  min-height: 560px;
  display: grid;
  grid-template-columns: minmax(300px, 0.68fr) 1.42fr;
  gap: 24px;
  align-items: stretch;
}

.stats-hero-card {
  position: relative;
  min-height: 560px;
  padding: 38px;
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(145deg, rgba(0, 31, 72, 0.94), rgba(0, 82, 166, 0.86)),
    url("../images/hero-2.jpg") center/cover;
  overflow: hidden;
  box-shadow: 0 24px 46px rgba(0, 34, 78, 0.22);
}

.stats-hero-card::after {
  content: "";
  position: absolute;
  inset: auto -14% -28% 22%;
  height: 250px;
  border-radius: 50%;
  border: 42px solid rgba(255, 255, 255, 0.1);
}

.stats-hero-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(0deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.35;
}

.stats-card-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  padding: 7px 14px;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
}

.stats-hero-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 38px;
  font-size: 104px;
  line-height: 0.9;
  font-weight: 800;
}

.stats-hero-card > span:not(.stats-card-label) {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 18px;
  font-size: 18px;
  color: rgba(255, 255, 255, 0.86);
}

.stats-hero-split {
  position: absolute;
  z-index: 1;
  left: 34px;
  right: 34px;
  bottom: 32px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.stats-hero-split span {
  padding: 18px 16px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.16);
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 14px;
  backdrop-filter: blur(8px);
}

.stats-hero-split b {
  display: block;
  font-size: 30px;
  line-height: 1.1;
}

.stats-meter-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
}

.stats-meter {
  position: relative;
  min-height: 126px;
  padding: 20px 16px 22px;
  border: 1px solid rgba(var(--primary-rgb), 0.1);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(249, 252, 255, 0.88));
  text-align: left;
  cursor: pointer;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(21, 58, 99, 0.07);
  transition: var(--transition);
}

.stats-meter::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(182, 123, 16, 0.12), transparent 42%),
    radial-gradient(circle at 100% 0, rgba(var(--primary-rgb), 0.09), transparent 34%);
  opacity: 0;
  transition: var(--transition);
}

.stats-meter::after {
  content: "";
  position: absolute;
  right: 14px;
  top: 14px;
  width: 30px;
  height: 30px;
  border: 1px solid rgba(var(--primary-rgb), 0.14);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(var(--primary-rgb), 0.08), transparent 62%);
}

.stats-meter-num {
  position: relative;
  z-index: 1;
  display: block;
  color: var(--primary-color);
  font-size: 42px;
  line-height: 1;
  font-weight: 800;
}

.stats-meter-text {
  position: relative;
  z-index: 1;
  display: block;
  margin-top: 8px;
  color: #1f2f45;
  font-size: 14px;
  line-height: 1.35;
  font-weight: 700;
}

.stats-meter i {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  height: 5px;
  border-radius: 999px;
  background: rgba(var(--primary-rgb), 0.1);
  overflow: hidden;
}

.stats-meter i::after {
  content: "";
  display: block;
  width: var(--w);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--primary-color), #0f9186, #c58c1a);
}

.stats-meter:hover,
.stats-meter.is-active {
  transform: translateY(-7px);
  border-color: rgba(var(--primary-rgb), 0.28);
  box-shadow: 0 20px 42px rgba(21, 58, 99, 0.13);
}

.stats-meter:hover::before,
.stats-meter.is-active::before {
  opacity: 1;
}

.stats-showcase-foot {
  position: relative;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid rgba(var(--primary-rgb), 0.08);
  color: #748398;
  font-size: 14px;
}

@media (max-width: 1024px) {
  .stats-showcase {
    padding: 34px 28px;
  }

  .stats-showcase-head,
  .stats-showcase-foot {
    align-items: flex-start;
    flex-direction: column;
  }

  .stats-dashboard {
    grid-template-columns: 1fr;
  }

  .stats-meter-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .stats-hero-card {
    min-height: 320px;
  }
}

@media (max-width: 768px) {
  .stats-section {
    padding: 64px 0;
  }

  .stats-showcase {
    padding: 28px 18px;
  }

  .stats-showcase::before {
    left: 18px;
    right: 18px;
  }

  .stats-showcase-head {
    gap: 20px;
    margin-bottom: 24px;
  }

  .stats-showcase-title {
    font-size: 32px;
  }

  .stats-showcase-subtitle {
    font-size: 15px;
  }

  .stats-meter-list {
    grid-template-columns: 1fr;
  }

  .stats-hero-card {
    min-height: 360px;
    padding: 30px 24px;
  }

  .stats-hero-card strong {
    font-size: 74px;
  }

  .stats-hero-split {
    left: 22px;
    right: 22px;
    grid-template-columns: 1fr;
  }

  .stats-showcase-foot {
    font-size: 13px;
  }
}

/* 记忆拼贴 照片墙 (Scrapbook Style) */
.photo-wall-section {
  padding: 60px 0;
  background-color: var(--bg-gray);
  position: relative;
  overflow: hidden;
}

/* 移除软木板纹理，保持干净 */

.scrapbook-board {
  position: relative;
  width: 100%;
  height: 750px;
  background-color: var(--panel-bg);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
  margin-top: 30px;
  overflow: hidden;
  /* 移除纸张纹理，使其更加现代化和干净 */
  background-image: url("https://www.transparenttextures.com/patterns/cream-paper.png");
}

.scrapbook-board.photo-wall-layout-paper {
  background-color: #f9f4e8;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.52), rgba(255, 255, 255, 0.2)),
    url("https://www.transparenttextures.com/patterns/cream-paper.png");
}

.scrapbook-board.photo-wall-layout-gallery {
  background-image: url("../images/photo-wall-bg-gallery.svg");
  background-size: cover;
  background-position: center;
}

.scrapbook-board.photo-wall-layout-river {
  background-image: url("../images/photo-wall-bg-river.svg");
  background-size: cover;
  background-position: center;
}

.scrapbook-board.photo-wall-layout-mosaic {
  background-image: url("../images/photo-wall-bg-mosaic.svg");
  background-size: cover;
  background-position: center;
}

.scrapbook-board.photo-wall-layout-editorial {
  background-image: url("../images/photo-wall-bg-editorial.svg");
  background-size: cover;
  background-position: center;
}

.scrap-item {
  position: absolute;
  transition:
    transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    z-index 0s;
  cursor: pointer;
}

.scrap-item[hidden] {
  display: none !important;
}

.scrap-item:not(.polaroid) .caption {
  display: none;
}

.scrap-item:hover {
  z-index: 20 !important;
  transform: scale(1.1) rotate(0deg) !important;
}

/* 拍立得相框 */
.polaroid {
  background: #fff;
  padding: 10px 10px 40px 10px;
  box-shadow: 2px 5px 15px rgba(0, 0, 0, 0.15);
}

.polaroid img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.polaroid .caption {
  position: absolute;
  bottom: 10px;
  left: 0;
  width: 100%;
  text-align: center;
  font-family: "Kaiti", "Comic Sans MS", cursive, sans-serif;
  font-size: 15px;
  color: #333;
  letter-spacing: 2px;
}

/* 普通照片 (带白边) */
.photo-plain {
  background: #fff;
  padding: 8px;
  box-shadow: 2px 4px 12px rgba(0, 0, 0, 0.12);
}

.photo-plain img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* 圆形照片 */
.photo-circle {
  border-radius: 50%;
  border: 6px solid #fff;
  box-shadow: 2px 4px 15px rgba(0, 0, 0, 0.15);
  overflow: hidden;
}

.photo-circle img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* 胶带特效 */
.tape {
  position: absolute;
  background-color: var(--tape-color);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  z-index: 2;
}

.tape-top-center {
  width: 70px;
  height: 22px;
  top: -10px;
  left: 50%;
  transform: translateX(-50%) rotate(-3deg);
}

.tape-top-left {
  width: 60px;
  height: 20px;
  top: -5px;
  left: -15px;
  transform: rotate(-35deg);
}

.tape-top-right {
  width: 60px;
  height: 20px;
  top: -5px;
  right: -15px;
  transform: rotate(35deg);
}

.tape-bottom-right {
  width: 60px;
  height: 20px;
  bottom: -5px;
  right: -15px;
  transform: rotate(-35deg);
}

/* 各个照片的具体位置、大小、旋转角度 */
.sp-1 {
  top: 8%;
  left: 5%;
  width: 200px;
  transform: rotate(-6deg);
  z-index: 2;
}
.sp-1 img {
  aspect-ratio: 1 / 1;
}

.sp-2 {
  top: 18%;
  left: 20%;
  width: 190px;
  transform: rotate(4deg);
  z-index: 3;
}
.sp-2 img {
  aspect-ratio: 4 / 5;
}

.sp-3 {
  top: 38%;
  left: 34%;
  width: 155px;
  height: 155px;
  transform: rotate(-2deg);
  z-index: 4;
}

.sp-4 {
  top: 8%;
  left: 45%;
  width: 255px;
  transform: rotate(3deg);
  z-index: 2;
}
.sp-4 img {
  aspect-ratio: 3 / 2;
}

.sp-5 {
  top: 45%;
  left: 42%;
  width: 275px;
  transform: rotate(-3deg);
  z-index: 3;
}
.sp-5 img {
  aspect-ratio: 16 / 9;
}

.sp-6 {
  top: 12%;
  left: 66%;
  width: 180px;
  transform: rotate(-5deg);
  z-index: 2;
}
.sp-6 img {
  aspect-ratio: 1 / 1;
}

.sp-7 {
  top: 25%;
  left: 82%;
  width: 165px;
  transform: rotate(6deg);
  z-index: 3;
}
.sp-7 img {
  aspect-ratio: 3 / 4;
}

.sp-8 {
  top: 68%;
  left: 8%;
  width: 290px;
  transform: rotate(2deg);
  z-index: 2;
}
.sp-8 img {
  aspect-ratio: 16 / 9;
}

.sp-9 {
  top: 62%;
  left: 76%;
  width: 200px;
  transform: rotate(-4deg);
  z-index: 4;
}
.sp-9 img {
  aspect-ratio: 4 / 5;
}

.sp-10 {
  top: 70%;
  left: 55%;
  width: 180px;
  height: 180px;
  transform: rotate(2deg);
  z-index: 5;
}

.photo-wall-layout-gallery .scrap-doodle,
.photo-wall-layout-mosaic .scrap-doodle,
.photo-wall-layout-editorial .scrap-doodle {
  display: none;
}

.photo-wall-layout-gallery .tape,
.photo-wall-layout-mosaic .tape,
.photo-wall-layout-editorial .tape {
  display: none;
}

.photo-wall-layout-gallery .scrap-item,
.photo-wall-layout-mosaic .scrap-item {
  padding: 0;
  border: 8px solid #fff;
  box-shadow: 0 14px 30px rgba(24, 54, 86, 0.12);
}

.photo-wall-layout-gallery .scrap-item img,
.photo-wall-layout-river .scrap-item img,
.photo-wall-layout-mosaic .scrap-item img,
.photo-wall-layout-editorial .scrap-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.photo-wall-layout-gallery .sp-1,
.photo-wall-layout-gallery .sp-2,
.photo-wall-layout-gallery .sp-3,
.photo-wall-layout-gallery .sp-4,
.photo-wall-layout-gallery .sp-5,
.photo-wall-layout-gallery .sp-6,
.photo-wall-layout-gallery .sp-7,
.photo-wall-layout-gallery .sp-8,
.photo-wall-layout-gallery .sp-9,
.photo-wall-layout-gallery .sp-10 {
  width: 17%;
  height: 260px;
  transform: rotate(0);
  z-index: 2;
}

.photo-wall-layout-gallery .sp-1 { top: 10%; left: 4%; }
.photo-wall-layout-gallery .sp-2 { top: 10%; left: 23%; }
.photo-wall-layout-gallery .sp-3 { top: 10%; left: 42%; }
.photo-wall-layout-gallery .sp-4 { top: 10%; left: 61%; }
.photo-wall-layout-gallery .sp-5 { top: 10%; left: 80%; }
.photo-wall-layout-gallery .sp-6 { top: 53%; left: 4%; }
.photo-wall-layout-gallery .sp-7 { top: 53%; left: 23%; }
.photo-wall-layout-gallery .sp-8 { top: 53%; left: 42%; }
.photo-wall-layout-gallery .sp-9 { top: 53%; left: 61%; }
.photo-wall-layout-gallery .sp-10 { top: 53%; left: 80%; }

.photo-wall-layout-river .title-text {
  top: 7%;
  left: 7%;
  color: #1f5b72;
}

.photo-wall-layout-river .sp-1 { top: 9%; left: 6%; width: 200px; transform: rotate(-7deg); z-index: 4; }
.photo-wall-layout-river .sp-2 { top: 19%; left: 25%; width: 230px; transform: rotate(4deg); z-index: 3; }
.photo-wall-layout-river .sp-3 { top: 8%; left: 47%; width: 138px; height: 138px; transform: rotate(2deg); z-index: 5; }
.photo-wall-layout-river .sp-4 { top: 16%; left: 63%; width: 255px; transform: rotate(-4deg); z-index: 4; }
.photo-wall-layout-river .sp-5 { top: 43%; left: 8%; width: 252px; transform: rotate(3deg); z-index: 3; }
.photo-wall-layout-river .sp-6 { top: 43%; left: 37%; width: 148px; height: 148px; transform: rotate(-5deg); z-index: 5; }
.photo-wall-layout-river .sp-7 { top: 40%; left: 54%; width: 205px; transform: rotate(5deg); z-index: 3; }
.photo-wall-layout-river .sp-8 { top: 57%; left: 74%; width: 238px; transform: rotate(-3deg); z-index: 4; }
.photo-wall-layout-river .sp-9 { top: 60%; left: 21%; width: 188px; transform: rotate(-2deg); z-index: 4; }
.photo-wall-layout-river .sp-10 { top: 63%; left: 51%; width: 145px; height: 145px; transform: rotate(4deg); z-index: 5; }

.photo-wall-layout-river .sp-9 img {
  aspect-ratio: 4 / 3;
}

.photo-wall-layout-mosaic .sp-1 { top: 7%; left: 5%; width: 36%; height: 390px; transform: rotate(0); z-index: 5; }
.photo-wall-layout-mosaic .sp-2 { top: 7%; left: 43%; width: 23%; height: 185px; transform: rotate(0); z-index: 2; }
.photo-wall-layout-mosaic .sp-3 { top: 7%; left: 68%; width: 27%; height: 185px; transform: rotate(0); z-index: 2; }
.photo-wall-layout-mosaic .sp-4 { top: 35%; left: 43%; width: 20%; height: 185px; transform: rotate(0); z-index: 2; }
.photo-wall-layout-mosaic .sp-5 { top: 35%; left: 65%; width: 30%; height: 185px; transform: rotate(0); z-index: 2; }
.photo-wall-layout-mosaic .sp-6 { top: 62%; left: 5%; width: 22%; height: 190px; transform: rotate(0); z-index: 2; }
.photo-wall-layout-mosaic .sp-7 { top: 62%; left: 29%; width: 20%; height: 190px; transform: rotate(0); z-index: 2; }
.photo-wall-layout-mosaic .sp-8 { top: 62%; left: 51%; width: 19%; height: 190px; transform: rotate(0); z-index: 2; }
.photo-wall-layout-mosaic .sp-9 { top: 62%; left: 72%; width: 23%; height: 190px; transform: rotate(0); z-index: 2; }
.photo-wall-layout-mosaic .sp-10 { top: 35%; left: 5%; width: 36%; height: 185px; transform: rotate(0); z-index: 2; }

.photo-wall-layout-editorial .scrap-item {
  box-shadow: 0 16px 34px rgba(72, 54, 26, 0.16);
}

.photo-wall-layout-editorial .sp-1 { top: 9%; left: 6%; width: 230px; transform: rotate(-3deg); z-index: 4; }
.photo-wall-layout-editorial .sp-2 { top: 8%; left: 29%; width: 330px; height: 235px; transform: rotate(0); z-index: 3; }
.photo-wall-layout-editorial .sp-3 { top: 8%; left: 60%; width: 300px; height: 235px; transform: rotate(0); z-index: 3; }
.photo-wall-layout-editorial .sp-4 { top: 34%; left: 10%; width: 165px; height: 165px; transform: rotate(4deg); z-index: 5; }
.photo-wall-layout-editorial .sp-5 { top: 40%; left: 28%; width: 225px; transform: rotate(3deg); z-index: 4; }
.photo-wall-layout-editorial .sp-6 { top: 40%; left: 49%; width: 255px; height: 180px; transform: rotate(0); z-index: 3; }
.photo-wall-layout-editorial .sp-7 { top: 40%; left: 73%; width: 220px; height: 180px; transform: rotate(0); z-index: 3; }
.photo-wall-layout-editorial .sp-8 { top: 68%; left: 7%; width: 155px; height: 155px; transform: rotate(-3deg); z-index: 5; }
.photo-wall-layout-editorial .sp-9 { top: 70%; left: 28%; width: 380px; height: 170px; transform: rotate(0); z-index: 3; }
.photo-wall-layout-editorial .sp-10 { top: 66%; left: 66%; width: 235px; transform: rotate(-4deg); z-index: 4; }

/* 涂鸦和手写文字装饰 */
.scrap-doodle {
  position: absolute;
  z-index: 1;
  pointer-events: none;
  color: var(--primary-color);
}

.doodle-text {
  font-family: "Kaiti", "Comic Sans MS", cursive, sans-serif;
  line-height: 1.4;
  letter-spacing: 2px;
}

.title-text {
  top: 6%;
  left: 8%;
  font-size: 32px;
  font-weight: bold;
  transform: rotate(-3deg);
  border-bottom: 2px solid #333;
  padding-bottom: 5px;
}

.text-1 {
  top: 50%;
  left: 18%;
  font-size: 14px;
  transform: rotate(2deg);
}

.text-2 {
  top: 20%;
  right: 22%;
  font-size: 14px;
  transform: rotate(-5deg);
  background: #fff;
  padding: 8px 12px;
  border: 1px solid #ddd;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.05);
}

.arrow-1 {
  top: 35%;
  left: 28%;
  width: 60px;
  height: 60px;
  transform: rotate(-20deg);
}

.arrow-2 {
  top: 32%;
  left: 55%;
  width: 80px;
  height: 40px;
}

.arrow-3 {
  top: 55%;
  left: 55%;
  width: 30px;
  height: 60px;
}

.arrow-4 {
  top: 78%;
  left: 38%;
  width: 90px;
  height: 45px;
  transform: rotate(-10deg);
}

.arrow-5 {
  top: 42%;
  left: 62%;
  width: 40px;
  height: 60px;
  transform: rotate(20deg);
}

.doodle-heart {
  top: 22%;
  left: 42%;
  font-size: 24px;
  transform: rotate(-15deg);
}

.doodle-heart-2 {
  top: 48%;
  left: 72%;
  font-size: 26px;
  transform: rotate(15deg);
}

.doodle-heart-3 {
  top: 85%;
  left: 32%;
  font-size: 20px;
  transform: rotate(-20deg);
}

.doodle-star {
  top: 35%;
  left: 48%;
  font-size: 20px;
}

.doodle-star-2 {
  top: 72%;
  left: 48%;
  font-size: 24px;
}

.doodle-star-3 {
  top: 45%;
  left: 68%;
  font-size: 18px;
}

.doodle-star-4 {
  top: 15%;
  left: 88%;
  font-size: 22px;
}

.text-3 {
  top: 82%;
  left: 45%;
  font-size: 18px;
  font-weight: bold;
  transform: rotate(-15deg);
}

/* 照片放大灯箱 (Lightbox) */
.photo-lightbox {
  display: none; /* 默认隐藏 */
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(255, 255, 255, 0.6); /* 半透明白色蒙层 */
  backdrop-filter: blur(8px); /* 增加一点模糊效果来补偿背景变淡 */
  justify-content: center;
  align-items: center;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-lightbox.show {
  display: flex;
  opacity: 1;
}

.lightbox-img {
  max-width: 90%;
  max-height: 90vh;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.2); /* 阴影调淡适应白底 */
  border: 8px solid #fff; /* 给大图加个白边 */
  border-radius: 4px;
  transform: scale(0.8);
  transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.photo-lightbox.show .lightbox-img {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: 20px;
  right: 35px;
  color: #333; /* 改为深色以适应白底 */
  font-size: 40px;
  font-weight: bold;
  cursor: pointer;
  transition: color 0.3s;
  z-index: 10000;
}

.lightbox-close:hover {
  color: #666;
}

/* 响应式调整 */
@media (max-width: 1024px) {
  .scrapbook-board {
    height: 600px;
  }
  .scrap-item {
    transform: scale(0.8) !important;
  }
  .scrap-item:hover {
    transform: scale(1) rotate(0deg) !important;
  }
}

@media (max-width: 768px) {
  .scrapbook-board {
    height: auto;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 30px 15px;
    background-image: none; /* 移动端可以考虑去掉纹理减轻负担 */
  }

  .scrap-item {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;
    transform: rotate(0) !important; /* 取消旋转排成网格 */
    width: 46% !important;
    height: auto !important;
  }

  .sp-3,
  .sp-10 {
    width: 46% !important;
    aspect-ratio: 1 / 1;
    height: auto !important;
  }

  .tape,
  .scrap-doodle {
    display: none;
  } /* 移动端隐藏胶带和涂鸦显得干净 */
}

/* 页脚 Footer */
.footer {
  background-color: var(--primary-color);
  color: var(--white);
  padding: 40px 0 20px;
}

.footer-links {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  flex-wrap: wrap;
}

.footer-label {
  font-weight: bold;
  font-size: 16px;
  margin-right: 10px;
}

.footer-links a {
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
}

.footer-links a:hover {
  color: var(--white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.footer-contact,
.footer-copyright {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
}

.footer-qr {
  display: flex;
  gap: 20px;
}

.qr-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.qr-img {
  width: 80px;
  height: 80px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
}

.qr-item span {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
}

/* 滚动出现动画 Scroll Reveal */
.reveal {
  opacity: 0.2;
  transform: translateY(30px);
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
}
.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

/* 新闻动态专门的 3D 滚动进入动画 */
.news-card.reveal {
  opacity: 0;
  transform: perspective(1200px) rotateX(30deg) translateY(60px) scale(0.9);
  transform-origin: bottom center;
  transition: all 1s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.news-card.reveal.active {
  opacity: 1;
  transform: perspective(1200px) rotateX(0deg) translateY(0) scale(1);
}

.news-list-simple li.reveal {
  opacity: 0;
  transform: perspective(1000px) rotateX(-20deg) translateY(20px);
  transform-origin: top center;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.news-list-simple li.reveal.active {
  opacity: 1;
  transform: perspective(1000px) rotateX(0deg) translateY(0);
}

.news-list-dated li.reveal {
  opacity: 0;
  transform: perspective(1000px) rotateY(-25deg) translateX(40px);
  transform-origin: left center;
  transition: all 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.news-list-dated li.reveal.active {
  opacity: 1;
  transform: perspective(1000px) rotateY(0deg) translateX(0);
}

/* 为新闻列表增加级联延迟效果 */
.news-card:nth-child(1).reveal {
  transition-delay: 0.1s;
}
.news-card:nth-child(2).reveal {
  transition-delay: 0.2s;
}

.news-list-simple li:nth-child(1).reveal {
  transition-delay: 0.3s;
}
.news-list-simple li:nth-child(2).reveal {
  transition-delay: 0.4s;
}
.news-list-simple li:nth-child(3).reveal {
  transition-delay: 0.5s;
}

.news-list-dated li:nth-child(1).reveal {
  transition-delay: 0.1s;
}
.news-list-dated li:nth-child(2).reveal {
  transition-delay: 0.2s;
}
.news-list-dated li:nth-child(3).reveal {
  transition-delay: 0.3s;
}
.news-list-dated li:nth-child(4).reveal {
  transition-delay: 0.4s;
}
.news-list-dated li:nth-child(5).reveal {
  transition-delay: 0.5s;
}

/* 响应式设计 Responsive */
@media (max-width: 1024px) {
  .news-grid,
  .videos-grid {
    grid-template-columns: 1fr;
  }
  .topics-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .experts-track .expert-card {
    flex: 0 0 calc(50% - 15px); /* 显示2个卡片 */
  }
  .stats-row {
    gap: 30px;
    flex-wrap: wrap;
  }
  .nav-links {
    display: none; /* 移动端应实现汉堡菜单 */
  }
}

@media (max-width: 768px) {
  .topics-grid {
    grid-template-columns: 1fr;
  }
  .experts-track .expert-card {
    flex: 0 0 100%; /* 显示1个卡片 */
  }
  .news-cards {
    grid-template-columns: 1fr;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
  }
}

.nav-container.container {
  max-width: 1400px;
}
.logo {
  flex-shrink: 0;
  margin-right: 40px;  
}
.nav-links {
  display: flex;
  gap: 30px;
  flex: 1;  
}
.search {
  flex-shrink: 0;
  margin-left: auto;  /* 新增，推到最右侧 */
}
.search { display: flex; align-items: center; }
.search-form { display: flex; align-items: center; }
.search-input-wrapper {
  position: relative; display: flex; align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 30px; padding: 6px 12px;
  backdrop-filter: blur(10px); transition: all 0.3s ease;
}
.search-input-wrapper:hover {
  background: rgba(255,255,255,0.25);
  border-color: rgba(255,255,255,0.5);
}
.search-input {
  background: transparent; border: none; outline: none;
  color: white; font-size: 14px; width: 160px;
  padding: 4px 0; transition: width 0.3s ease;
}
.search-input::placeholder { color: rgba(255,255,255,0.7); }
.search-input:focus { width: 200px; }
.search-button {
  background: transparent; border: none; color: white;
  cursor: pointer; padding: 4px; display: flex;
  align-items: center; justify-content: center;
  transition: transform 0.2s ease;
}
.search-button:hover { transform: scale(1.1); }
.search-icon { width: 18px; height: 18px; }

#navbar.scrolled .search-input-wrapper {
  background: rgba(255,255,255,0.9);
  border-color: rgba(0,82,166,0.3);
}
#navbar.scrolled .search-input { color: var(--text-dark); }
#navbar.scrolled .search-input::placeholder { color: var(--text-gray); }
#navbar.scrolled .search-button { color: var(--primary-color); }
