/* ========================================
   首页样式 - 高端极简 + 克制多边形装饰 + 鼠标互动
   ======================================== */

/* ---- 光标小多边形跟随（替代脏光晕） ---- */
.cursor-orb {
  position: fixed;
  width: 14px;
  height: 14px;
  pointer-events: none;
  z-index: 9999;
  transform: translate(-50%, -50%) rotate(45deg);
  mix-blend-mode: difference;
  will-change: transform, opacity;
  opacity: 0;
  transition: opacity 0.3s ease;
}
.cursor-orb::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1.5px solid rgba(29,29,31,0.35);
  border-radius: 2px;
}
body:hover .cursor-orb { opacity: 1; }

/* 光标尾迹粒子 */
.cursor-trail {
  position: fixed;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: rgba(29,29,31,0.08);
  pointer-events: none;
  z-index: 9998;
  will-change: transform, opacity;
  transform: translate(-50%, -50%) scale(0);
  animation: trailFade 0.8s ease forwards;
}
@keyframes trailFade {
  0% { transform: translate(-50%,-50%) scale(1); opacity: 0.25; }
  100% { transform: translate(-50%,-50%) scale(0); opacity: 0; }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  background: var(--bg);
}

/* 合照背景：放大让脚可见，调整位置 */

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url('../images/group.jpg');
  background-size: auto 75%;
  background-position: center 60%;
  background-repeat: no-repeat;
  opacity: 0.38;
  filter: saturate(0.85);
  z-index: 0;
  will-change: transform;
}
/* 渐变叠加：底部降低，让脚可见 */
.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0.15) 40%, rgba(255,255,255,0.15) 65%, rgba(255,255,255,0.3) 100%);
  z-index: 1;
}

/* 克制的多边形装饰 */
.hero-shapes {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
.shape {
  position: absolute;
  opacity: 0.38;
}
.shape-1 {
  top: 15%; left: 8%;
  width: 80px; height: 80px;
  background: linear-gradient(135deg, rgba(74,111,165,0.12), rgba(74,111,165,0.03));
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
  animation: floatShape 8s ease-in-out infinite;
}
.shape-2 {
  top: 25%; right: 10%;
  width: 60px; height: 60px;
  background: linear-gradient(135deg, rgba(232,168,124,0.12), rgba(232,168,124,0.03));
  clip-path: polygon(0% 0%, 100% 0%, 100% 100%, 0% 100%);
  transform: rotate(15deg);
  animation: floatShape 10s ease-in-out infinite reverse;
}
.shape-3 {
  bottom: 20%; left: 12%;
  width: 100px; height: 100px;
  background: linear-gradient(135deg, rgba(123,160,91,0.1), rgba(123,160,91,0.02));
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
  animation: floatShape 12s ease-in-out infinite;
}
.shape-4 {
  bottom: 15%; right: 8%;
  width: 70px; height: 70px;
  border: 1.5px solid rgba(29,29,31,0.06);
  clip-path: polygon(50% 0%, 100% 38%, 82% 100%, 18% 100%, 0% 38%);
  animation: floatShape 9s ease-in-out infinite reverse;
}
@keyframes floatShape {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50% { transform: translateY(-16px) rotate(8deg); }
}
.shape-2 { animation-name: floatShape2; }
@keyframes floatShape2 {
  0%, 100% { transform: translateY(0) rotate(15deg); }
  50% { transform: translateY(-12px) rotate(25deg); }
}

.hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  padding: 0 var(--space-lg);
}
.hero-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-md);
  font-weight: 400;
}
.hero-title-zh {
  font-size: clamp(40px, 7vw, 88px);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  color: var(--text);
  margin-bottom: var(--space-sm);
}
.hero-title-en {
  font-size: clamp(24px, 4vw, 44px);
  font-weight: 400;
  font-style: italic;
  color: var(--text-soft);
  letter-spacing: 0.01em;
  margin-bottom: var(--space-lg);
}
.hero-subtitle {
  font-size: clamp(16px, 1.8vw, 19px);
  color: var(--text-soft);
  max-width: 560px;
  margin: 0 auto var(--space-xl);
  line-height: 1.7;
  font-weight: 300;
}
.hero-cta {
  display: flex;
  gap: var(--space-sm);
  justify-content: center;
  flex-wrap: wrap;
}

/* 按钮磁吸效果容器 */
.btn-magnetic {
  display: inline-block;
  position: relative;
}

/* 滚动提示 */
.hero-scroll-hint {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  letter-spacing: 0.15em;
  color: var(--text-muted);
  cursor: pointer;
  transition: color var(--transition);
}
.hero-scroll-hint:hover { color: var(--text); }
.scroll-line {
  width: 1px;
  height: 40px;
  background: linear-gradient(180deg, var(--text-muted), transparent);
  animation: scrollHint 2s ease-in-out infinite;
}
@keyframes scrollHint {
  0%, 100% { transform: scaleY(1); transform-origin: top; opacity: 0.6; }
  50% { transform: scaleY(0.5); transform-origin: bottom; opacity: 1; }
}

/* ---- 通用 Section ---- */
section { padding: var(--space-3xl) 0; position: relative; }
.section-eyebrow {
  font-size: 13px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  font-weight: 400;
}
.section-title {
  font-size: clamp(28px, 4vw, 48px);
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.25;
  color: var(--text);
  margin-bottom: var(--space-md);
}
.section-desc {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-soft);
  line-height: 1.8;
  font-weight: 300;
  max-width: 680px;
}

/* ---- 简介卡片 ---- */
.intro { background: var(--bg-soft); overflow: hidden; }
.intro-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-lg);
  margin-top: var(--space-2xl);
}
.intro-card {
  background: #fff;
  border-radius: var(--radius-md);
  padding: var(--space-lg);
  border: 1px solid var(--border);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
  transform-style: preserve-3d;
  will-change: transform;
}
.intro-card:hover {
  box-shadow: 0 20px 60px rgba(0,0,0,0.08);
}
.intro-card-num {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 400;
  color: var(--text-muted);
  margin-bottom: var(--space-sm);
  line-height: 1;
  transition: color var(--transition);
}
.intro-card:hover .intro-card-num { color: var(--text); }
.intro-card h3 {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.intro-card p {
  font-size: 15px;
  color: var(--text-soft);
  line-height: 1.7;
  font-weight: 300;
}

/* ---- 四维度（修复可见性） ---- */
.dimensions { background: var(--bg); overflow: hidden; }
.dim-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-md);
  margin-top: var(--space-2xl);
}
.dim-item {
  text-align: center;
  padding: var(--space-xl) var(--space-md);
  border-radius: var(--radius-lg);
  background: var(--bg-soft);
  border: 1px solid transparent;
  transition: all 0.4s var(--ease);
  will-change: transform;
}
.dim-item:hover {
  background: #fff;
  border-color: var(--border);
  transform: translateY(-6px);
  box-shadow: 0 16px 48px rgba(0,0,0,0.06);
}
.dim-poles {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin-bottom: var(--space-md);
}
.pole {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--text);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 18px;
  transition: transform 0.4s var(--ease);
}
.dim-item:hover .pole { transform: scale(1.1); }
.dim-axis {
  width: 32px;
  height: 2px;
  background: var(--border);
  transition: background var(--transition);
}
.dim-item:hover .dim-axis { background: var(--text-muted); }
.dim-item h3 {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: var(--space-sm);
  color: var(--text);
}
.dim-item p {
  font-size: 14px;
  color: var(--text-soft);
  line-height: 1.7;
  font-weight: 400;
}
.dim-subs {
  margin-top: var(--space-xs);
  font-size: 12px;
  color: var(--text-muted);
  letter-spacing: 0.03em;
  font-weight: 500;
}

/* ---- CTA 粒子网络 Canvas ---- */
.particle-canvas {
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0.85;
}

/* ---- CTA Section ---- */
.cta-section {
  background: var(--text);
  color: #fff;
  padding: var(--space-3xl) 0;
  position: relative;
  overflow: hidden;
}
/* CTA 区域多边形装饰 */
.cta-shapes {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.cta-shape {
  position: absolute;
  opacity: 0.4;
}
.cta-shape-1 {
  top: 20%; left: 15%;
  width: 120px; height: 120px;
  border: 1px solid rgba(255,255,255,0.08);
  clip-path: polygon(50% 0%, 100% 50%, 50% 100%, 0% 50%);
}
.cta-shape-2 {
  bottom: 25%; right: 12%;
  width: 80px; height: 80px;
  background: rgba(255,255,255,0.03);
  clip-path: polygon(25% 0%, 75% 0%, 100% 50%, 75% 100%, 25% 100%, 0% 50%);
}
.cta-section .section-title { color: #fff; }
.cta-section .section-desc { color: rgba(255,255,255,0.7); margin: 0 auto var(--space-xl); }
.btn-large {
  padding: 20px 56px;
  font-size: 16px;
  background: #fff;
  color: var(--text);
}
.btn-large:hover {
  background: rgba(255,255,255,0.9);
  transform: translateY(-2px);
  box-shadow: 0 12px 32px rgba(255,255,255,0.2);
}

/* ---- 标题打字机效果 ---- */
.typewriter-wrap {
  display: inline-block;
}
.typewriter-text {
  overflow: hidden;
  white-space: nowrap;
  border-right: 2px solid var(--text);
  animation: blinkCaret 0.8s step-end infinite;
  display: inline-block;
}
@keyframes blinkCaret {
  0%, 100% { border-color: transparent; }
  50% { border-color: var(--text); }
}
.hero-title-zh.typewriter-done {
  border-right: none;
}
.typewriter-done .typewriter-text {
  border-right: none;
  animation: none;
}
.site-footer {
  padding: var(--space-xl) 0;
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.site-footer p:first-child {
  font-size: 22px;
  font-weight: 600;
  margin-bottom: var(--space-xs);
}
.site-footer p:last-child {
  font-size: 13px;
}

/* ---- Modal 标题 ---- */
.modal-title { font-size: 22px; font-weight: 600; margin-bottom: var(--space-xs); }
.modal-desc { font-size: 14px; color: var(--text-muted); margin-bottom: var(--space-lg); }

/* ---- 响应式 ---- */
@media (max-width: 768px) {
  .intro-cards { grid-template-columns: 1fr; }
  .dim-grid { grid-template-columns: repeat(2, 1fr); }
  .hero-cta { flex-direction: column; align-items: center; }
  .hero-cta .btn { width: 100%; max-width: 280px; }
  .hero-bg { background-size: contain; }
  .shape { display: none; }
}
