* { margin: 0; padding: 0; box-sizing: border-box; }

html, body {
  height: 100%;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  overflow-x: hidden;
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #e8f8f5 0%, #eafaf1 35%, #e8f6f3 70%, #f0fdf4 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 40px 20px;
  position: relative;
}

/* 背景装饰光斑 */
.blob {
  position: fixed;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.55;
  z-index: 0;
  pointer-events: none;
  animation: float 18s ease-in-out infinite;
}
.blob.b1 { width: 360px; height: 360px; background: #52c4a8; top: -80px; left: -80px; }
.blob.b2 { width: 420px; height: 420px; background: #a8e6cf; bottom: -120px; right: -100px; animation-delay: -6s; }
.blob.b3 { width: 280px; height: 280px; background: #7bc47f; top: 40%; left: 55%; animation-delay: -12s; opacity: 0.4; }

@keyframes float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(40px, -30px) scale(1.08); }
  66% { transform: translate(-30px, 25px) scale(0.95); }
}

.container {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 1100px;
  text-align: center;
  /* 用 auto 边距实现垂直居中：内容矮于一屏时居中，超高时自动归零、从顶部排布，避免 flex 居中导致顶部内容被挤出视口 */
  margin-top: auto;
  margin-bottom: auto;
}

/* 语言切换（下拉式） */
.lang-switch {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
}
.lang-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: #2a9d8f;
  cursor: pointer;
  box-shadow: 0 8px 24px rgba(42, 157, 143, 0.12);
  transition: box-shadow 0.3s ease;
}
.lang-trigger:hover {
  box-shadow: 0 10px 28px rgba(42, 157, 143, 0.2);
}
.lang-globe {
  font-size: 15px;
  line-height: 1;
}
.lang-chevron {
  font-size: 10px;
  transition: transform 0.3s ease;
}
.lang-switch.open .lang-chevron,
.lang-switch:hover .lang-chevron {
  transform: rotate(180deg);
}
.lang-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  min-width: 150px;
  margin: 0;
  padding: 6px;
  list-style: none;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 16px;
  box-shadow: 0 16px 40px rgba(42, 157, 143, 0.2);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}
.lang-switch.open .lang-menu,
.lang-switch:hover .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
/* 悬停时填补触发器与菜单之间的间隙，避免鼠标下移时菜单闪退 */
.lang-switch:hover .lang-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  right: 0;
  height: 8px;
}
.lang-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
  text-decoration: none;
  border-radius: 10px;
  transition: all 0.2s ease;
}
.lang-item:hover {
  background: rgba(63, 184, 160, 0.1);
  color: #2a9d8f;
}
.lang-item.active {
  color: #2a9d8f;
  background: rgba(63, 184, 160, 0.12);
}
.lang-item.active::after {
  content: "✓";
  color: #3fb8a0;
  font-size: 12px;
}

/* 顶部小标签 */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 20px;
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 999px;
  font-size: 13px;
  color: #2a9d8f;
  font-weight: 600;
  margin-bottom: 28px;
  box-shadow: 0 8px 24px rgba(42, 157, 143, 0.15);
  animation: fadeDown 0.8s ease both;
}
.badge .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #2a9d8f;
  box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.2);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(42, 157, 143, 0.2); }
  50% { box-shadow: 0 0 0 8px rgba(42, 157, 143, 0.08); }
}

h1 {
  font-size: clamp(27px, 4.4vw, 45px);
  font-weight: 800;
  letter-spacing: 2px;
  background: linear-gradient(120deg, #2a9d8f, #3fb8a0 45%, #7bc47f);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
  animation: fadeUp 0.9s ease 0.1s both;
}

.subtitle {
  font-size: clamp(14px, 1.6vw, 17px);
  color: #64748b;
  margin-bottom: 56px;
  animation: fadeUp 0.9s ease 0.2s both;
}

/* 卡片容器 */
.cards {
  display: flex;
  gap: 36px;
  justify-content: center;
  flex-wrap: wrap;
}

.card {
  position: relative;
  width: 360px;
  max-width: 100%;
  border-radius: 28px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 20px 50px rgba(42, 157, 143, 0.15), 0 4px 12px rgba(0,0,0,0.04);
  cursor: pointer;
  transition: transform 0.5s cubic-bezier(.2,.8,.2,1), box-shadow 0.5s;
  text-decoration: none;
  color: inherit;
}
.card:nth-child(1) { animation: fadeUp 0.9s ease 0.3s both; }
.card:nth-child(2) { animation: fadeUp 0.9s ease 0.45s both; }

.card:hover {
  transform: translateY(-12px) scale(1.02);
  box-shadow: 0 30px 70px rgba(42, 157, 143, 0.3), 0 8px 20px rgba(0,0,0,0.06);
}

/* 图片 */
.img-wrap {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border-radius: 28px 28px 0 0;
}
.img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.7s cubic-bezier(.2,.8,.2,1), filter 0.5s, opacity 0.4s ease;
}
.img-wrap .img-hover {
  position: absolute;
  inset: 0;
  opacity: 0;
}
.card:hover .img-wrap img {
  transform: scale(1.1);
  filter: saturate(1.15) brightness(1.02);
}
.card:hover .img-default { opacity: 0; }
.card:hover .img-hover { opacity: 1; }

/* 渐变遮罩 */
.img-wrap::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.35), transparent 45%);
  opacity: 0;
  transition: opacity 0.4s;
}
.card:hover .img-wrap::after { opacity: 1; }

/* 悬浮角标 */
.chip {
  position: absolute;
  top: 18px;
  left: 18px;
  padding: 6px 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  color: #2a9d8f;
  z-index: 2;
  transition: transform 0.4s;
}
.card:hover .chip { transform: translateY(-2px); }

/* 卡片内容 */
.card-body {
  padding: 24px 26px 28px;
  text-align: left;
}
.card-title {
  font-size: 24px;
  font-weight: 800;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.card-title .arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #3fb8a0, #7bc47f);
  color: #fff;
  font-size: 18px;
  transition: transform 0.4s, box-shadow 0.4s;
  box-shadow: 0 6px 16px rgba(63, 184, 160, 0.4);
}
.card:hover .arrow {
  transform: translateX(4px) rotate(-45deg);
  box-shadow: 0 10px 22px rgba(123, 196, 127, 0.5);
}
.card-desc {
  font-size: 14px;
  color: #64748b;
  line-height: 1.6;
}

/* 底部版权说明 */
.site-footer {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin-top: 48px;
  padding: 20px 24px 32px;
  text-align: center;
  font-size: 12px;
  line-height: 1.9;
  color: #1f2937;
}
.site-footer a {
  color: #2a9d8f;
  text-decoration: none;
  font-weight: 600;
}
.site-footer a:hover {
  text-decoration: underline;
}
.site-footer .divider {
  margin: 0 6px;
  color: #cbd5e1;
}

/* 建设中弹窗 */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 42, 38, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s;
  padding: 20px;
}
.modal-overlay.show {
  opacity: 1;
  visibility: visible;
}
.modal-content {
  background: #fff;
  border-radius: 24px;
  padding: 40px 36px;
  max-width: 420px;
  width: 100%;
  text-align: center;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.2);
  transform: scale(0.9);
  transition: transform 0.3s cubic-bezier(.2,.8,.2,1);
}
.modal-overlay.show .modal-content {
  transform: scale(1);
}
.modal-img {
  display: block;
  width: 180px;
  margin: 0 auto 16px;
  border-radius: 16px;
}
.modal-title {
  font-size: 20px;
  font-weight: 800;
  color: #1f2937;
  margin-bottom: 10px;
}
.modal-text {
  font-size: 15px;
  color: #64748b;
  line-height: 1.6;
  margin-bottom: 28px;
}
.modal-close {
  padding: 10px 32px;
  background: linear-gradient(135deg, #3fb8a0, #7bc47f);
  color: #fff;
  border: none;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  box-shadow: 0 6px 16px rgba(63, 184, 160, 0.35);
}
.modal-close:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px rgba(63, 184, 160, 0.45);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}
@keyframes fadeDown {
  from { opacity: 0; transform: translateY(-16px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 720px) {
  .cards { gap: 22px; }
  .card { width: 100%; max-width: 420px; }
  .card-body { padding: 20px 22px 24px; }
  .card-title { font-size: 21px; }
  /* 语言切换改为独立一行右对齐，避免窄屏时覆盖顶部标签 */
  .lang-switch {
    position: relative;
    top: auto;
    right: auto;
    display: flex;
    justify-content: flex-end;
    margin-bottom: 20px;
  }
}

/* ===== 根目录着陆页 (index.html) ===== */
body.landing {
  margin: 0;
  font-family: system-ui, -apple-system, "PingFang SC", "Microsoft YaHei", "Segoe UI", sans-serif;
  background: #f0fdf4;
  color: #333;
}
.landing .wrap {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
}
.landing h1 {
  font-size: 1.6rem;
  margin: 0 0 12px;
  color: #2a9d8f;
}
.landing p {
  margin: 0 0 20px;
  color: #64748b;
}
.landing a {
  color: #2a9d8f;
  text-decoration: none;
  font-weight: 600;
}
.landing a:hover {
  text-decoration: underline;
}
.landing .dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #3fb8a0;
  margin: 0 4px;
  vertical-align: middle;
  animation: landing-pulse 1.4s infinite;
}
@keyframes landing-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.3; }
}
