*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  font-family: "Noto Sans SC", system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  color: #18181b;
  background-color: #fbf4e5;
}

button {
  font-family: inherit;
  border: none;
  background: none;
  cursor: pointer;
}

img {
  max-width: 100%;
  display: block;
}

main {
  flex: 1 0 auto;
  width: 100%;
  /* 顶部预留导航高度(约80px) + 与内容的间距约20px ≈ 100px */
  padding-top: 100px;
  padding-bottom: 0;
}

@media (max-width: 768px) {
  main {
    padding-top: 64px;
  }
}

/* 顶部导航 */
.nav {
  position: fixed;
  inset-inline: 0;
  top: 0;
  z-index: 50;
  transition: background-color 0.3s ease, backdrop-filter 0.3s ease,
    box-shadow 0.3s ease, border-color 0.3s ease;
}

.nav-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.nav-logo {
  font-weight: 700;
  font-size: 20px;
  color: #18181b;
}

.nav-links {
  display: flex;
  gap: 32px;
  align-items: center;
}

.nav-link {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-link:hover {
  color: #18181b;
}

.nav-link.is-active {
  color: #18181b;
}

.nav.scrolled {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e4e4e7;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}

.nav-menu-button {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 4px;
}

.nav-menu-button span {
  width: 22px;
  height: 2px;
  border-radius: 999px;
  background: #18181b;
}

.nav-mobile-menu {
  display: none;
  flex-direction: column;
  padding: 8px 24px 16px;
  background: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid #e5e7eb;
  backdrop-filter: blur(10px);
}

.nav-mobile-item {
  text-align: left;
  padding: 10px 12px;
  border-radius: 999px;
  margin-top: 4px;
  font-size: 15px;
  color: #6b7280;
}

.nav-mobile-item.is-active {
  background: #18181b;
  color: #ffffff;
}

@media (max-width: 768px) {
  .nav-inner {
    padding-inline: 16px;
  }

  .nav-links {
    display: none;
  }

  .nav-menu-button {
    display: inline-flex;
  }

  .nav-mobile-menu.open {
    display: flex;
  }
}

/* 页面区块切换 */
.page-section {
  /* 默认不占布局空间，避免其他页面内容在当前页下面形成大块空白 */
  display: none;
  opacity: 0;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out;
}

.page-section.is-active {
  display: block;
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.section-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 0;
}

.section-title {
  font-size: 32px;
  font-weight: 700;
  margin: 0 0 8px;
}

.section-title.large {
  font-size: 40px;
}

.section-title.center {
  text-align: center;
}

.section-subtitle {
  margin: 0;
  font-size: 16px;
  color: #6b7280;
}

.section-header {
  text-align: center;
  margin-bottom: 16px;
}

/* Hero 区 */
.hero {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: center;
}

.hero-text {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero-hello {
  font-size: 60px;
  font-weight: 900;
  letter-spacing: 4px;
  color: #f0c597;
  text-shadow: 0 2px 3px rgba(238, 238, 238, 0.5);
  animation: fade-in-up 0.8s ease both;
  transition: transform 0.2s ease, filter 0.2s ease;
}

.hero-hello:hover {
  transform: translateY(-2px);
  filter: brightness(1.1);
}

.hero-name-line {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px;
  animation: fade-in-up 0.8s ease 0.2s both;
}

.hero-name-muted {
  font-size: 35px;
  font-weight: 300;
  color: #999999;
}

.hero-name-main {
  font-size: 50px;
  font-weight: 400;
  color: #87aef5;
  padding-inline: 4px;
  opacity: 0;
  transform: translateY(6px);
  animation: fade-in-up 0.6s ease 0.3s forwards;
  transition: color 0.2s ease;
}

.hero-name-alt {
  font-size: 45px;
  font-weight: 400;
  color: #87aef5;
  padding-inline: 4px;
  opacity: 0;
  transform: translateY(6px);
  animation: fade-in-up 0.6s ease 0.6s forwards;
  transition: color 0.2s ease;
}

.hero-name-main:hover,
.hero-name-alt:hover {
  color: #6b8ed4;
}

.hero-subtitle {
  font-size: 25px;
  font-weight: 300;
  line-height: 1.6;
}

.hero-subtitle p {
  margin: 0;
  color: #999999;
}

.hero-subtitle .highlight {
  color: #999999;
  font-weight: 400;
  position: relative;
}

.hero-subtitle .highlight::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -2px;
  height: 1px;
  width: 100%;
  background-color: currentColor;
  transform-origin: left;
  transform: scaleX(0);
  transition: transform 0.2s ease;
}

.hero-subtitle:hover .highlight::after {
  transform: scaleX(1);
}

.hero-tags {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 8px;
}

.hero-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tag {
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.06em;
  padding: 8px 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.tag-solid {
  background: rgba(187, 156, 126, 0.9);
  color: #ffffff;
}

.tag-outline {
  background: transparent;
  border: 1px solid #ffffff;
  color: #bb9c7e;
}

.tag-with-icon .tag-icon {
  font-size: 14px;
}

.hero-photo {
  display: flex;
  justify-content: center;
}

.hero-photo-circle {
  position: relative;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  /* 边缘外 3px 范围轻微阴影 + 轻微发光（初始与 hover 展开都可见） */
  box-shadow:
    0 0 0 5px rgba(0, 0, 0, 0.02),
    0 0 12px rgba(249, 115, 115, 0.22);
  overflow: hidden;
  --feather: 5px; /* 初始分界线羽化宽度 */
}

.hero-photo-piece {
  position: absolute;
  width: 50%;
  height: 50%;
  background-size: cover;
  background-position: center;
  opacity: 1;
  transition: opacity 0.35s ease, transform 0.55s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform, opacity;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
}

.piece-1 {
  top: 0;
  left: 0;
  background-image: url("./thumbs/image/主页-四张照片右上扇形.jpg");
  background-position: center top;
  transform-origin: top left;
  /* 微量重叠 + 5px 分界线羽化（仅初始状态生效） */
  width: calc(50% + var(--feather));
  height: calc(50% + var(--feather));
  -webkit-mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - var(--feather)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      #000 0,
      #000 calc(100% - var(--feather)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;
}

.piece-1::before {
  display: none;
  content: "";
  position: absolute;
  width: 185%;
  height: 185%;
  left: -42.5%;
  top: -42.5%;
  background-image: url("./image/主页-四张照片右上扇形.jpg");
  background-size: cover;
  background-position: center top;
  background-repeat: no-repeat;
  /* 缩小人像（相对当前再缩小约 20%）；并按要求最终向右平移约 5px */
  /* 解决左侧露白 + 头顶仍被切：向下对齐，同时略减小向右平移 */
  /* translate 在 scale 之前写入：这里把“屏幕位移(px)”折算为输入值 */
  /* 按要求：左移 5px、向上 5px（translate 在 scale 前，故用 px/0.6 折算到输入值） */
  /* 按要求：左移 5px、向上 5px（translate 在 scale 之前，因此输入需要按 1/0.6 折算）
     另外保持水平镜像（scale(-0.6)） */
  /* 左上镜像：仅水平翻转（保持缩小比例），不做上下翻转 */
  transform: translateX(-8.3px) translateY(-8.3px) scale(-0.6, 0.6);
}

.piece-2 {
  top: 0;
  right: 0;
  background-image: url("./thumbs/image/主页-四张照片右下扇形.jpg");
  transform-origin: top right;
  /* 微量重叠 + 5px 分界线羽化（仅初始状态生效） */
  width: calc(50% + var(--feather));
  height: calc(50% + var(--feather));
  -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 var(--feather),
      #000 100%
    ),
    linear-gradient(
      to bottom,
      #000 0,
      #000 calc(100% - var(--feather)),
      transparent 100%
    );
  -webkit-mask-composite: source-in;
}

.piece-2::before {
  display: none;
  content: "";
  position: absolute;
  width: 230%;
  height: 230%;
  left: -65%;
  top: -65%;
  background-image: url("./image/主页-四张照片右下扇形.jpg");
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* 按要求再缩小约 20%（由当前 0.88 下调到约 0.70）以匹配下方人像大小 */
  /* 右上头顶被切更多：继续下移对齐，避免露白 */
  /* 向上 10px（translate 会被 scale 折算） */
  /* 按要求：先放大 10%，再向下 5px（translate 在 scale 前，故 translateY 以 5/scale 折算为输入值） */
  /* 先放大 10%：0.4928 * 1.1 = 0.54208；再向下移 5px（translate 在 scale 之前，需折算为 5/0.54208） */
  transform: translateY(9.2px) scale(0.54208);
}

.piece-3 {
  bottom: 0;
  left: 0;
  background-image: url("./thumbs/image/主页-四张照片左下扇形.jpg");
  transform: none;
  transform-origin: bottom left;
  /* 微量重叠 + 5px 分界线羽化（仅初始状态生效） */
  width: calc(50% + var(--feather));
  height: calc(50% + var(--feather));
  -webkit-mask-image: linear-gradient(
      to right,
      #000 0,
      #000 calc(100% - var(--feather)),
      transparent 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      #000 var(--feather),
      #000 100%
    );
  -webkit-mask-composite: source-in;
  /* 左下：仅背景向右平移 8px */
  background-position: calc(50% + 8px) center;
}

.piece-4 {
  bottom: 0;
  right: 0;
  background-image: url("./thumbs/image/主页-四张照片左上扇形.jpg");
  transform: none;
  transform-origin: bottom right;
  /* 微量重叠 + 5px 分界线羽化（仅初始状态生效） */
  width: calc(50% + var(--feather));
  height: calc(50% + var(--feather));
  -webkit-mask-image: linear-gradient(
      to right,
      transparent 0,
      #000 var(--feather),
      #000 100%
    ),
    linear-gradient(
      to bottom,
      transparent 0,
      #000 var(--feather),
      #000 100%
    );
  -webkit-mask-composite: source-in;
}

.hero-photo-circle:hover .hero-photo-piece {
  opacity: 0;
}

.hero-photo-circle:hover .hero-photo-piece:hover {
  opacity: 1;
  transform: scale(2);
  z-index: 2;
  /* hover 展开时移除 mask，避免出现透明空洞影响丝滑与完整性 */
  -webkit-mask-image: none;
  mask-image: none;
}

/* 当某一块被 hover 放大为整圆时，避免仍然缩小/平移导致画面不一致 */
.hero-photo-circle:hover .hero-photo-piece:hover::before {
  display: none;
}

@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
  }

  .hero-photo {
    order: -1;
  }

  .hero-hello {
    font-size: 40px;
  }

  .hero-name-main {
    font-size: 38px;
  }

  .hero-name-alt {
    font-size: 34px;
  }

  .hero-name-muted {
    font-size: 26px;
  }
}

@keyframes fade-in-up {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* 价值展示区 */
.value-section {
  background-color: transparent;
  padding: 10px 24px 10px;
}

.value-cards {
  max-width: 1280px;
  margin: 32px auto 0;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.value-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 24px 24px 28px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.value-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.value-emoji {
  font-size: 40px;
  margin-bottom: 16px;
  transition: transform 0.2s ease;
}

.value-card:hover .value-emoji {
  transform: scale(1.1);
}

.value-card-title {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
}

.value-card-desc {
  margin: 0;
  font-size: 14px;
  color: #6b7280;
  line-height: 1.6;
}

@media (max-width: 900px) {
  .value-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .value-card-desc {
    line-height: 1.8;
    letter-spacing: 0.015em;
  }
}

/* 经历页面 */
.experience-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
  margin-top: 16px;
}

.block-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 24px;
}

.block-title h3 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
}

.block-icon {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
  color: #ffffff;
  font-size: 18px;
}

.block-icon.briefcase::before {
  content: "💼";
}

.block-icon.graduation::before {
  content: "🎓";
}

.block-icon.award::before {
  content: "🏅";
}

.experience-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  padding: 16px 20px;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.experience-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
}

.experience-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
}

.logo-red {
  background: #d91124;
}

.logo-orange {
  background: #ff5900;
}

.logo-blue {
  background: #4fa9f7;
}

.logo-deep-red {
  background: #e85a4f;
}

.experience-content {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.experience-role {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
}

.experience-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 14px;
  color: #6b7280;
}

.experience-desc {
  margin: 0;
  font-size: 14px;
  color: #4b5563;
}

.experience-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.exp-tag {
  font-size: 12px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #f3f4f6;
  color: #4b5563;
}

.experience-photos-placeholder {
  display: none;
}

/* 彻底移除经历卡片右侧装饰阴影/圆形图案 */
.experience-card::before,
.experience-card::after {
  content: none !important;
  display: none !important;
}

@media (max-width: 900px) {
  .experience-card {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .experience-photos-placeholder {
    display: none;
  }
}

/* 教育背景 */
.education-section {
  margin-top: 32px;
}

.education-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.education-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 18px 20px 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
}

.education-card h4 {
  margin: 0 0 6px;
  font-size: 16px;
  font-weight: 700;
}

.education-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  font-size: 13px;
  color: #6b7280;
  margin-bottom: 6px;
}

.education-card p {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.education-achievements {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .education-list {
    grid-template-columns: 1fr;
  }
}

/* 专业认证 */
.cert-section {
  margin-top: 32px;
}

.cert-list {
  margin: 12px 0 0;
  padding-left: 20px;
  color: #4b5563;
  font-size: 14px;
}

.cert-list li + li {
  margin-top: 4px;
}

/* 名言 */
.quote-block {
  margin: 32px 0 0;
  padding: 20px 24px;
  border-radius: 20px;
  background: linear-gradient(135deg, #18181b, #333333);
  color: #f9fafb;
}

.quote-block blockquote {
  margin: 0 0 8px;
}

.quote-block figcaption {
  font-size: 14px;
  color: #e5e7eb;
}

/* 影像作品 */
.photo-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px;
  margin-bottom: 24px;
}

.filter-btn {
  padding: 8px 16px;
  border-radius: 999px;
  font-size: 14px;
  background: #ffffff;
  color: #6b7280;
  border: 1px solid #e5e7eb;
  transition: background-color 0.2s ease, color 0.2s ease,
    border-color 0.2s ease;
}

.filter-btn.is-active {
  background: #18181b;
  color: #ffffff;
  border-color: #18181b;
}

.photo-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.photo-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.photo-card .photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 12px;
  font-size: 14px;
  color: #4b5563;
  background: linear-gradient(145deg, #e5e7eb, #f9fafb);
  transition: transform 0.3s ease;
}

img.photo-placeholder {
  width: 100%;
  aspect-ratio: 3 / 4;
  height: auto;
  object-fit: cover;
  display: block;
}

.photo-card.span-large .photo-placeholder {
  aspect-ratio: 3 / 4;
  height: auto;
}

.photo-card.span-large img.photo-placeholder {
  aspect-ratio: 3 / 4;
  height: auto;
}

.photo-card:hover .photo-placeholder {
  transform: scale(1.05);
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.45),
    rgba(0, 0, 0, 0.02)
  );
  opacity: 0;
  transition: opacity 0.3s ease;
}

.photo-card:hover::after {
  opacity: 1;
}

.photo-zoom {
  position: absolute;
  right: 8px;
  top: 8px;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-size: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transform: translateY(-4px);
  transition: all 0.2s ease;
}

.photo-card:hover .photo-zoom {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 1024px) {
  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .photo-grid {
    grid-template-columns: 1fr;
  }

  .photo-card.span-large .photo-placeholder {
    aspect-ratio: 3 / 4;
    height: auto;
  }
}

.photo-note {
  margin-top: 24px;
  font-size: 16px;
  font-style: italic;
  color: #4b5563;
  text-align: center;
}

/* 影像大图弹窗 */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: none;
  align-items: center;
  justify-content: center;
}

.photo-lightbox.open {
  display: flex;
}

.photo-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.8);
}

.photo-lightbox-inner {
  position: relative;
  z-index: 1;
  width: 80vw;
  height: 80vh;
  max-width: 80vw;
  max-height: 80vh;
  margin: 0;
  padding: 16px;
}

.photo-lightbox-close {
  position: absolute;
  right: 24px;
  top: 16px;
  background: none;
  color: #ffffff;
  font-size: 28px;
}

.photo-lightbox-image {
  border-radius: 16px;
  overflow: hidden;
  background: #111827;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

#photo-lightbox-placeholder {
  color: #e5e7eb;
  font-size: 18px;
}

.photo-lightbox-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* 联系我 */
.contact-inner {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* 与其他版块一致：联系页不再额外垫高底部，避免页脚区域视觉过高 */
#section-contact {
  margin-bottom: 0;
  padding-bottom: 0;
}

#section-contact .section-inner {
  padding-bottom: 0;
}

/* 联系页内容区与页脚之间不留额外外边距（与其它页统一） */
#section-contact .contact-inner {
  margin-bottom: 0;
  padding-bottom: 0;
}

.contact-layout {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 50px;
}

.contact-card {
  background: #ffffff;
  border-radius: 16px;
  padding: 16px 20px;
  border: 1px solid #f3f4f6;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  margin-top: 20px;
}

.contact-card:hover {
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  transform: translateY(-2px);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.contact-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #18181b;
  color: #ffffff;
  font-size: 20px;
}

.contact-label {
  font-size: 14px;
  color: #6b7280;
}

.contact-text {
  font-size: 16px;
  font-weight: 500;
}

.contact-qrcodes {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.qrcode-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}

.qrcode-placeholder {
  width: 150px;
  height: 150px;
  border-radius: 16px;
  background: repeating-linear-gradient(
      45deg,
      #e5e7eb,
      #e5e7eb 6px,
      #f9fafb 6px,
      #f9fafb 12px
    );
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.qrcode-placeholder img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.qrcode-caption {
  font-size: 14px;
  color: #4b5563;
  text-align: center;
}

/* 活动详情弹出层 */
.activity-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: none;
}

.activity-modal.open {
  display: block;
}

.activity-modal-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at top left, #fdeddd, #ffffff);
}

.activity-modal-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  margin: 40px auto;
  max-height: calc(100vh - 80px);
  background: radial-gradient(circle at top left, #fdeddd, #ffffff);
  border-radius: 24px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 20px 60px rgba(15, 23, 42, 0.25);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.activity-modal-header {
  position: sticky;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid #e5e7eb;
  z-index: 1;
}

.back-button {
  padding: 6px 14px;
  border-radius: 999px;
  background: #f3f4f6;
  font-size: 14px;
}

.activity-modal-title {
  font-weight: 600;
  font-size: 16px;
  color: #18181b;
}

.activity-modal-body {
  padding: 20px;
  overflow-y: auto;
}

.activity-company-header {
  display: flex;
  gap: 16px;
  margin-bottom: 20px;
}

.activity-company-logo {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #ffffff;
  text-align: center;
  line-height: 1.2;
  white-space: pre-line;
}

.activity-company-text h3 {
  margin: 0 0 4px;
  font-size: 20px;
}

.activity-company-meta {
  font-size: 14px;
  color: #6b7280;
  margin-bottom: 6px;
}

.activity-company-desc {
  font-size: 14px;
  color: #4b5563;
  margin: 0;
}

.activity-block {
  margin-top: 20px;
}

.activity-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.activity-block-title-bar {
  width: 4px;
  height: 20px;
  border-radius: 999px;
  background: #16a34a;
}

.activity-block-title h4 {
  margin: 0;
  font-size: 16px;
}

.activity-card {
  margin-top: 12px;
  padding: 16px 18px 18px;
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #f3f4f6;
}

.activity-card + .activity-card {
  margin-top: 16px;
}


.carousel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #f3f4f6;
  height: 320px;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 16px;
}

.carousel-track {
  width: 100%;
  height: 100%;
}

.carousel-track img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: none;
}

.carousel-track img.is-active {
  display: block;
}

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  background: rgba(0, 0, 0, 0.55);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  cursor: pointer;
}

.carousel-arrow-prev {
  left: 12px;
}

.carousel-arrow-next {
  right: 12px;
}

.activity-item-title {
  margin: 0 0 4px;
  font-size: 14px;
  font-weight: 600;
  color: #111827;
}

.activity-item-desc {
  margin: 0;
  font-size: 13px;
  color: #4b5563;
}

.activity-modal-footer {
  border-top: 1px solid #e5e7eb;
  padding: 12px 20px 16px;
  text-align: center;
}

.back-pill {
  padding: 8px 18px;
  border-radius: 999px;
  background: #18181b;
  color: #ffffff;
  font-size: 14px;
  margin-bottom: 10px;
}

.activity-disclaimer {
  margin: 0;
  font-size: 16px;
  font-style: italic;
  color: #4b5563;
}

@media (max-width: 900px) {
  .activity-modal-content {
    margin: 16px;
    max-height: calc(100vh - 32px);
  }

  .activity-company-header {
    flex-direction: column;
  }
}

/* 页脚：固定总高度不随视口变化；多余留白由 main（flex:1）吸收，落在主内容区 */
.site-footer {
  flex-shrink: 0;
  background-color: #fbf4e5;
  border-top: 1px solid #e5e7eb;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
  /* 1px 分割线 + 30px 内容行，总高恒为 31px（border-box） */
  height: 31px;
  min-height: 31px;
  max-height: 31px;
  overflow: hidden;
}

.footer-inner {
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  height: 30px;
  min-height: 30px;
  max-height: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: nowrap;
  gap: 8px;
  overflow: hidden;
  box-sizing: border-box;
}

.footer-left {
  font-size: 15px;
  font-weight: 700;
  line-height: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  white-space: nowrap;
}

.footer-center {
  font-size: 15px;
  line-height: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  color: #6b7280;
  white-space: nowrap;
}

@media (max-width: 768px) {
  .footer-inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    height: 30px;
    min-height: 30px;
    max-height: 30px;
    padding: 0 24px;
  }
}

