/* Greel Landing — 左文右图轮播 (Pearl Garden) */
:root {
  --mist: #FFFEFA;
  --paper: #F7F7F2;
  --moss: #7BC69E;
  --olive: #B7E4C7;
  --charcoal: #2D3436;
  --stone: #8E9794;
  --white: #ffffff;
  --shadow: 0 4px 12px rgba(123, 198, 158, 0.12);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", Georgia, serif;
  --font-sans: "Source Han Sans SC", "PingFang SC", -apple-system, BlinkMacSystemFont, sans-serif;
}

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

html,
body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--font-sans);
  font-size: 16px;
  color: var(--charcoal);
  background: var(--mist);
  -webkit-font-smoothing: antialiased;
}

.page {
  display: flex;
  flex-direction: column;
  height: 100vh;
  height: 100dvh;
  padding-left: 64px;
  padding-right: 64px;
}

/* Header */
.header {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 24px;
  background: rgba(255, 254, 250, 0.92);
  backdrop-filter: blur(8px);
}

.logo {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--charcoal);
  text-decoration: none;
  letter-spacing: 0.02em;
}

.logo:hover {
  color: var(--moss);
}

.lang-toggle {
  font-family: var(--font-sans);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--moss);
  background: none;
  border: 1px solid var(--olive);
  border-radius: 999px;
  padding: 5px 12px;
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.lang-toggle:hover {
  background: var(--olive);
  color: var(--charcoal);
}

/* Main: 左文右图，增加左右留白 */
.main {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  max-width: 1280px;
  margin: 0 auto;
  width: 100%;
}

/* 左侧：文案 + 按钮 + 页脚 */
.left {
  flex: 0 0 42%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 32px 48px 32px 56px;
  overflow-y: auto;
  min-height: 0;
}

.tagline {
  font-family: var(--font-serif);
  font-size: clamp(1.5rem, 3.2vw, 2.25rem);
  font-weight: 600;
  color: var(--charcoal);
  margin: 0 0 16px;
  line-height: 1.35;
}

.intro {
  font-size: 0.9375rem;
  color: var(--stone);
  line-height: 1.6;
  margin: 0 0 20px;
  max-width: 380px;
}

/* 仅对 SEO/无障碍保留，界面不显示 */
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.features-list {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  font-size: 0.875rem;
  color: var(--charcoal);
  line-height: 1.7;
}

.features-list li {
  position: relative;
  padding-left: 1.25em;
  margin-bottom: 8px;
}

.features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.5em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--moss);
}

.features-list h3 {
  margin: 0;
  font-size: inherit;
  font-weight: 400;
  color: inherit;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 500;
  text-decoration: none;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  background: var(--moss);
  color: var(--white);
  box-shadow: 0 4px 12px rgba(123, 198, 158, 0.25);
  align-self: flex-start;
}

.btn:active {
  transform: scale(0.98);
}

.btn:hover {
  box-shadow: 0 6px 16px rgba(123, 198, 158, 0.3);
}

.footer {
  margin-top: 32px;
  font-size: 0.8125rem;
  color: var(--stone);
}

.footer a {
  color: var(--moss);
  text-decoration: none;
}

.footer a:hover {
  text-decoration: underline;
}

.footer .sep {
  margin: 0 8px;
  color: var(--stone);
}

.footer .copy {
  color: var(--stone);
}

/* 右侧：轮播 */
.right.carousel-wrap {
  flex: 1;
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px 24px 24px 16px;
}

/* 轮播宽度与图片比例一致：宣传图 800×1200，即 2:3 */
.carousel {
  position: relative;
  height: 100%;
  max-height: min(85vh, 820px);
  width: auto;
  aspect-ratio: 800 / 1200;
  max-width: 100%;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--white);
}

.carousel-track {
  display: flex;
  height: 100%;
  width: 100%;
  transition: transform 0.4s ease;
  will-change: transform;
}

.carousel-slide {
  flex: 0 0 100%;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.carousel-slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* 分页点：Apple Page Control 风格，小圆点、当前页实心、等距 */
.carousel-dots {
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.carousel-dot {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  padding: 0;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  background: rgba(255, 255, 255, 0.5);
}

.carousel-dot:hover {
  background: rgba(255, 255, 255, 0.85);
}

.carousel-dot.is-active {
  background: var(--moss);
  transform: scale(1.15);
}

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
  .btn:active { transform: none; }
}

/* 窄屏：上下堆叠，上文案下图，左右留白缩小 */
@media (max-width: 768px) {
  .page {
    padding-left: 24px;
    padding-right: 24px;
  }

  .main {
    flex-direction: column;
    overflow: auto;
  }

  .left {
    flex: 0 0 auto;
    padding: 24px 0 20px;
    text-align: center;
  }

  .tagline {
    margin-bottom: 12px;
  }

  .intro {
    margin-bottom: 16px;
    max-width: none;
  }

  .features-list {
    margin-bottom: 20px;
  }

  .btn {
    align-self: center;
  }

  .footer {
    margin-top: 20px;
  }

  .right.carousel-wrap {
    flex: 1;
    min-height: 320px;
    padding: 16px 0;
  }

  .carousel {
    max-height: 55vh;
  }
}
