@charset "utf-8";

/* ==========================================================================
   Design Tokens & Variables (良渚青绿文化色系 + 高端版式)
   ========================================================================== */
:root {
  --primary-teal: #3b8b7e;
  --primary-teal-dark: #2d6f65;
  --primary-teal-light: #52a698;
  --accent-gold: #c5a059;
  --text-main: #1f2d2b;
  --text-muted: #556663;
  --text-light: #ffffff;
  --bg-page: #ffffff;
  --bg-card-soft: #eff4f3;
  --border-soft: #d8e5e2;
  --shadow-card: 0 10px 30px rgba(45, 111, 101, 0.08);
  --shadow-hover: 0 16px 36px rgba(45, 111, 101, 0.16);
  --radius-card: 8px;
  --transition-smooth: all 0.28s cubic-bezier(0.25, 0.8, 0.25, 1);
}

/* 基础重置优化 */
body {
  margin: 0;
  padding: 0;
  background-color: var(--bg-page);
  color: var(--text-main);
  font-family:
    "Open Sans",
    "Source Sans 3",
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    Roboto,
    Arial,
    sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ==========================================================================
   强制规范：图片比例 3:2 与左上对齐
   ========================================================================== */
.card-img-wrapper,
.slide-img-wrapper {
  display: block;
  width: 100%;
  aspect-ratio: 3 / 2;
  overflow: hidden;
  background-color: #e6edea;
}

.card-img-wrapper img,
.slide-img-wrapper img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
  -webkit-user-drag: none;
}

.card-body {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  text-align: left;
}

/* ==========================================================================
   公共页面外壳与版心容器
   ========================================================================== */
.page-shell {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  position: relative;
  overflow-x: hidden;
}

.section-container {
  width: calc(100% - 32px);
  max-width: 1140px;
  margin: 0 auto;
}

/* 栏目标题规范：左对齐，包裹 <a> 标签且具备 Hover 上浮、主题色切换、下划线伸展 */
.section-header {
  text-align: left;
  margin-bottom: 28px;
}

.section-title {
  margin: 0;
  display: inline-block;
  font-size: 42px;
  font-weight: 700;
  line-height: 1.25;
  text-align: left;
}

.section-title a {
  position: relative;
  display: inline-block;
  color: #273432;
  text-decoration: none;
  padding-bottom: 6px;
  transition:
    color 0.25s ease,
    transform 0.25s ease;
}

.section-title a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-teal);
  border-radius: 2px;
  transform: none;
  transition: width 0.3s ease;
}

.section-title a:hover {
  color: var(--primary-teal);
  transform: translateY(-2px);
}

.section-title a:hover::after {
  width: 100%;
}

.svg-icon {
  width: 1em;
  height: 1em;
  display: inline-block;
  vertical-align: middle;
}

/* ==========================================================================
   1. Header / Hero 视觉头图
   ========================================================================== */
.hero-header {
  width: 100%;
  position: relative;
  background-color: #f7faf9;
  z-index: 1;
}

.hero-banner {
  width: 100%;
  max-width: 1920px;
  margin: 0 auto;
  line-height: 0;
}

.hero-banner img {
  width: 100%;
  height: auto;
  display: block;
}
.header-bg-mobile {
  display: none !important;
}

/* ==========================================================================
   Main 主体区域：朝上提升挡住 header 底部一部分
   ========================================================================== */
.page-main {
  position: relative;
  z-index: 2;
  margin: 0 auto;
  margin-top: -8%;
  width: 75%;
  max-width: 1440px;
  background-color: #ffffff;
  padding: 5%;
}

/* ==========================================================================
   2. Forum Updates 轮播图区域 (复用并升级 code 样式)
   ========================================================================== */
.section {
  padding: 48px 0;
}

.section-updates {
  padding-top: 0;
  padding-bottom: 32px;
  background-color: transparent;
}

.updates-swiper {
  width: 100%;
  overflow: hidden;
  border-radius: var(--radius-card);
  box-shadow: var(--shadow-card);
  touch-action: pan-y;
}

.updates-swiper .swiper-slide {
  height: auto;
}

.updates-card {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  background: #ffffff;
  overflow: hidden;
}

.updates-card .card-img-wrapper {
  position: relative;
  width: 100%;
}

.updates-card .card-body {
  padding: 30px 28px;
  color: #ffffff;
  background: linear-gradient(135deg, #449588 0%, #2f7469 100%);
  flex: 1;
}

.updates-card .card-title {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  line-height: 1.35;
  color: #ffffff;
}

.updates-card .card-title a {
  color: #ffffff;
  transition: color 0.2s ease;
}

.updates-card .card-title a:hover {
  color: #f1dfa8;
}

.updates-card .divider {
  width: 44px;
  height: 2px;
  margin: 16px 0;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 1px;
}

.updates-card .summary {
  margin: 0;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
}

/* 轮播控制器 (圆点与左右按钮) */
.slider-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  margin-top: 26px;
}

.slider-arrow {
  display: inline-flex;
  width: 38px;
  height: 38px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  color: #ffffff;
  background: var(--primary-teal);
  box-shadow: 0 4px 12px rgba(45, 111, 101, 0.24);
  cursor: pointer;
  transition: var(--transition-smooth);
}

.slider-arrow .svg-icon {
  font-size: 20px;
}

.slider-arrow:hover,
.slider-arrow:focus-visible {
  background: var(--primary-teal-dark);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(45, 111, 101, 0.32);
}

.updates-pagination {
  display: flex;
  align-items: center;
  gap: 8px;
  width: auto !important;
  position: static;
}

.updates-pagination .swiper-pagination-bullet {
  width: 10px;
  height: 10px;
  margin: 0 !important;
  border-radius: 50%;
  background: #a9cfc8;
  opacity: 1;
  transition: var(--transition-smooth);
}

.updates-pagination .swiper-pagination-bullet-active {
  background: var(--primary-teal);
  transform: scale(1.2);
}

/* ==========================================================================
   3. Voices and Insights 媒体图集 (2行3列网格)
   ========================================================================== */
.section-voices {
  background-color: #ffffff;
}

.voices-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.voice-card {
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  background-color: #ffffff;
  transition: var(--transition-smooth);
}

.voice-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

.voice-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

/* ==========================================================================
   4. Global Collaboration (双列卡片，左文右图)
   ========================================================================== */
.section-collaboration {
  background-color: #ffffff;
}

.collaboration-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.collab-card {
  display: flex;
  align-items: stretch;
  background-color: var(--bg-card-soft);
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.collab-card:hover {
  border-color: var(--primary-teal-light);
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

.collab-card .card-body {
  flex: 1;
  padding: 24px 20px;
  justify-content: flex-start;
}

.collab-title {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
  transition: color 0.2s ease;
}

.collab-title a {
  color: inherit;
}

.collab-card:hover .collab-title a {
  color: var(--primary-teal-dark);
}

.collab-thumb {
  width: 36%;
  flex-shrink: 0;
  aspect-ratio: 3 / 2;
}

.collab-card:hover .collab-thumb img {
  transform: scale(1.06);
}

/* ==========================================================================
   5. Side Events (三列卡片，深色标题头 + 描述 + READ MORE)
   ========================================================================== */
.section-events {
  background-color: #ffffff;
}

.events-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.event-card {
  position: relative;
  display: flex;
  flex-direction: column;
  background-color: var(--bg-card-soft);
  border-radius: var(--radius-card);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: var(--transition-smooth);
}

.event-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-hover);
}

/* 卡片顶部副标题横幅：用纯 CSS 梯形替代原 kuangzi.png 装饰框。
   梯形四条边：上、下边为水平且相互平行；左边垂直（与上下边成直角）；
   右边自右上向左下倾斜。颜色 #65ae90 */
.event-card-header {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  max-width: 100%;
  /* padding: 14px 20px; */
  padding-top: 8px;
  padding-bottom: 8px;
  padding-left: 8px;
  padding-right: 24px;
  background-color: #65ae90;
  clip-path: polygon(0 0, 100% 0, calc(100% - 20px) 100%, 0 100%);
}

/* 副标题可能不存在或没有内容：缺失、整体为空、或其中的链接为空时，
   隐藏整个横幅 */
.event-card-header:not(:has(.event-banner-title)),
.event-card-header:has(.event-banner-title:empty),
.event-card-header:has(.event-banner-title a:empty) {
  display: none;
}

.event-banner-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
  color: #ffffff;
}

.event-banner-title a {
  color: #ffffff;
  transition: opacity 0.2s;
}

.event-banner-title a:hover {
  opacity: 0.85;
}

.event-card:hover .card-img-wrapper img {
  transform: scale(1.05);
}

.event-card .card-body {
  padding: 20px 18px 22px;
  flex: 1;
}

/* 作为卡片主标题，字号加大 */
.event-desc {
  margin: 0 0 20px;
  font-size: 20px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--text-main);
}

.btn-read-more {
  margin-top: auto;
  align-self: flex-end;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--primary-teal);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.04em;
  transition: var(--transition-smooth);
}

.btn-read-more .icon-circle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--primary-teal);
  color: #ffffff;
  transition: var(--transition-smooth);
}

.btn-read-more .icon-circle .svg-icon {
  font-size: 14px;
}

.btn-read-more:hover {
  color: var(--primary-teal-dark);
}

.btn-read-more:hover .icon-circle {
  background-color: var(--primary-teal-dark);
  transform: translateX(3px);
}

/* ==========================================================================
   6. Footer 底部版权
   ========================================================================== */
.site-footer {
  width: 100%;
  margin-top: 40px;
  padding: 36px 16px;
  background-color: #559f93;
  color: #ffffff;
  text-align: center;
}

.footer-wrap {
  max-width: 1140px;
  margin: 0 auto;
}

.copyright-text {
  margin: 4px 0;
  font-size: 16px;
  line-height: 1.6;
  opacity: 0.95;
}

/* ==========================================================================
   置顶按钮 (#backToTop)
   ========================================================================== */
.back-to-top {
  position: fixed;
  right: 28px;
  bottom: 32px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background-color: var(--primary-teal);
  color: #ffffff;
  border: none;
  box-shadow: 0 6px 18px rgba(45, 111, 101, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all 0.3s ease;
  z-index: 999;
}

.back-to-top .svg-icon {
  font-size: 24px;
}

.back-to-top.is-visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.back-to-top:hover {
  background-color: var(--primary-teal-dark);
  box-shadow: 0 8px 24px rgba(45, 111, 101, 0.45);
  transform: translateY(-2px);
}

/* ==========================================================================
   响应式断点规范 (1024px / 768px / 480px)
   ========================================================================== */

/* 1. 1024px 宽屏/平板微调 */
@media screen and (max-width: 1024px) {
  .section-container {
    width: calc(100% - 40px);
  }

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

  .voices-grid {
    gap: 16px;
  }

  .collaboration-grid {
    gap: 16px;
  }

  .events-grid {
    gap: 16px;
  }

  .updates-card .card-body {
    padding: 24px 20px;
  }
}

/* 1024px 以上：轮播横向排版（左图右文） */
@media screen and (min-width: 1025px) {
  .updates-card {
    flex-direction: row;
  }

  .updates-card .card-img-wrapper {
    width: 58.5%;
    flex: 0 0 58.5%;
  }

  .updates-card .card-body {
    width: 41.5%;
    flex: 0 0 41.5%;
    padding: 36px 32px;
  }

  .updates-card .card-title {
    font-size: 28px;
  }
}

@media screen and (max-width: 768px) {
  .page-main {
    width: 90%;
    padding: 3%;
  }

  .header-bg-mobile {
    display: block !important;
  }
  .header-bg-pc {
    display: none !important;
  }

  .section {
    padding: 32px 0;
  }

  .section-header {
    margin-bottom: 20px;
  }

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

  /* 轮播在 768px 以下自动纵向折叠 */
  .updates-card {
    flex-direction: column;
  }

  .updates-card .card-img-wrapper {
    width: 100%;
  }

  .updates-card .card-body {
    width: 100%;
    padding: 10px 12px;
  }

  .updates-card .card-title {
    font-size: 20px;
  }

  /* 视界图集由 3 列收缩为 2 列 */
  .voices-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  /* 全球合作转单列 */
  .collaboration-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .collab-thumb {
    width: 32%;
  }

  /* 活动卡片转单列/双列 */
  .events-grid {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .back-to-top {
    right: 18px;
    bottom: 22px;
    width: 40px;
    height: 40px;
  }
}

/* 480px 超小屏手机精细适配 */
@media screen and (max-width: 480px) {
  .page-main {
    width: 95%;
  }
  .section-container {
    width: calc(100% - 20px);
  }

  /* 图集转单列排版 */
  .voices-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .collab-card {
    flex-direction: column-reverse;
  }

  .collab-thumb {
    width: 100%;
  }

  .collab-card .card-body {
    padding: 16px;
  }

  .collab-title {
    font-size: 16px;
  }

  .event-banner-title {
    font-size: 14px;
  }

  .event-card .card-body {
    padding: 16px 14px;
  }

  .slider-arrow {
    width: 34px;
    height: 34px;
  }
}

.center {
  text-align: center;
}
