/* ============================================================
   home.css — 公司主页专用样式（专业主流风）
   主题：白底 + 深靛蓝强调 + 中性灰，大量留白
   ============================================================ */

/* ---------- Hero 首屏 ---------- */
.hero {
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: 96px;
  background:
    radial-gradient(ellipse 70% 50% at 85% 0%, rgba(30, 58, 138, 0.06) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 10% 100%, rgba(59, 91, 219, 0.04) 0%, transparent 60%);
  overflow: hidden;
}

.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  align-items: center;
  gap: 64px;
}

.hero-eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 6px 14px;
  border-radius: 100px;
  margin-bottom: 24px;
}

.hero-title {
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: 18px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 540px;
  margin-bottom: 36px;
}

.hero-actions {
  display: flex;
  gap: 16px;
  flex-wrap: wrap;
}

/* Hero 视觉装饰 */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero-stats {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  gap: 20px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 24px 32px;
  box-shadow: var(--shadow-lg);
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-16px); }
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.hero-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.hero-stat-num {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 700;
  color: var(--accent);
  line-height: 1;
}

.hero-stat-label {
  font-size: 12px;
  color: var(--ink-muted);
  letter-spacing: 0.04em;
}

.hero-divider {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ---------- 关于我们卡片网格 ---------- */
.about-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.about-grid .card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.card-icon {
  width: 52px;
  height: 52px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--r-md);
}

.about-grid h3 {
  font-size: 21px;
}

.about-grid p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.75;
}

/* ---------- 自营产品 ---------- */
.section-products {
  background: var(--bg-soft);
}

.product-card {
  display: grid;
  grid-template-columns: 200px 1fr;
  gap: 40px;
  align-items: center;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--r-xl);
  padding: 40px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}

.product-card-media {
  display: flex;
  justify-content: center;
}

.product-card-media img {
  width: 180px;
  height: 180px;
  border-radius: 40px;
  box-shadow: var(--shadow-md);
  object-fit: cover;
}

.product-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 8px;
}

.product-card-head h3 {
  font-size: 30px;
  letter-spacing: 0.02em;
}

.product-badge {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 4px 12px;
  border-radius: 100px;
  letter-spacing: 0.04em;
}

.product-card-tagline {
  font-family: var(--serif);
  font-size: 17px;
  color: var(--ink);
  margin-bottom: 14px;
}

.product-card-desc {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.8;
  margin-bottom: 20px;
}

.product-features {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 24px;
}

.feature-chip {
  font-size: 13px;
  color: var(--ink-soft);
  background: var(--bg-soft);
  border: 1px solid var(--border);
  padding: 6px 14px;
  border-radius: 100px;
}

.product-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 15px;
  font-weight: 600;
  color: var(--accent);
  transition: gap 0.2s ease;
}

.product-card:hover .product-link {
  gap: 12px;
}

/* ---------- 联系我们 ---------- */
.section-contact {
  background:
    radial-gradient(ellipse 60% 60% at 100% 50%, rgba(30, 58, 138, 0.05) 0%, transparent 60%);
}

.contact-inner {
  display: grid;
  grid-template-columns: 1fr 0.6fr;
  align-items: center;
  gap: 48px;
}

.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 24px;
  font-family: var(--serif);
  font-weight: 600;
  color: var(--accent);
  margin-top: 8px;
  transition: gap 0.2s ease;
}

.contact-email:hover {
  gap: 16px;
}

.contact-visual {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 240px;
}

.contact-ring {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent) 0%, var(--accent-lt) 100%);
  box-shadow: var(--shadow-lg);
  animation: orbFloat 6s ease-in-out infinite;
  cursor: pointer;
}

/* 圆球内探索插画（大山/无人区）：日出渐变天空 + 太阳 + 三层山峰剪影 */
.contact-ring-scene {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(180deg, #BFE3F5 0%, #F5D9A8 55%, #F2B876 100%);
  z-index: 1;
  transition: transform 0.4s ease;
}

/* 太阳 */
.crs-sun {
  position: absolute;
  top: 30%;
  left: 50%;
  width: 30px;
  height: 30px;
  margin-left: -15px;
  border-radius: 50%;
  background: #FFF6E0;
  box-shadow: 0 0 16px 6px rgba(255, 240, 200, 0.7);
}

/* 山峰剪影（用 clip-path 三角形拼出山脉） */
.crs-peak {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.crs-peak-far {
  background: rgba(255, 255, 255, 0.32);
  clip-path: polygon(0 78%, 18% 58%, 35% 70%, 52% 50%, 70% 66%, 86% 54%, 100% 68%, 100% 100%, 0 100%);
}

.crs-peak-mid {
  background: rgba(255, 255, 255, 0.55);
  clip-path: polygon(0 88%, 12% 72%, 28% 84%, 45% 66%, 62% 80%, 78% 68%, 100% 82%, 100% 100%, 0 100%);
}

.crs-peak-near {
  background: #FFFFFF;
  clip-path: polygon(0 100%, 0 90%, 14% 82%, 30% 92%, 48% 78%, 66% 90%, 82% 80%, 100% 92%, 100% 100%);
}

/* hover 提示气泡 */
.contact-ring-tip {
  position: absolute;
  bottom: -52px;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 13px;
  color: var(--ink-soft);
  background: #FFFFFF;
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 16px;
  box-shadow: var(--shadow-sm);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 3;
}

.contact-ring:hover,
.contact-ring:focus-visible {
  box-shadow: 0 24px 60px rgba(30, 58, 138, 0.35);
  outline: none;
}

.contact-ring:hover .contact-ring-scene,
.contact-ring:focus-visible .contact-ring-scene {
  transform: scale(1.06);
}

.contact-ring:hover .contact-ring-tip,
.contact-ring:focus-visible .contact-ring-tip {
  opacity: 1;
  transform: translateX(-50%) translateY(4px);
}

.contact-ring::before,
.contact-ring::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(30, 58, 138, 0.15);
  pointer-events: none;
}

.contact-ring::before {
  inset: -28px;
  animation: spin 30s linear infinite;
}

.contact-ring::after {
  inset: -56px;
  border-style: dashed;
  animation: spin 40s linear infinite reverse;
}

.contact-ring:hover::before,
.contact-ring:focus-visible::before {
  animation-duration: 12s;
}

.contact-ring:hover::after,
.contact-ring:focus-visible::after {
  animation-duration: 16s;
}

/* ---------- 响应式 ---------- */
@media (max-width: 768px) {
  .hero {
    padding-top: calc(var(--header-h) + 40px);
    padding-bottom: 64px;
  }

  .hero-inner {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-visual {
    order: -1;
  }

  .hero-stats {
    padding: 18px 20px;
    gap: 12px;
  }

  .hero-stat-num {
    font-size: 22px;
  }

  .about-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .product-card {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 28px;
    text-align: center;
  }

  .product-card-head,
  .product-features,
  .product-link {
    justify-content: center;
  }

  .product-card-media img {
    width: 140px;
    height: 140px;
  }

  .contact-inner {
    grid-template-columns: 1fr;
    gap: 32px;
    text-align: center;
  }

  .contact-email {
    justify-content: center;
  }

  .contact-visual {
    min-height: 180px;
  }

  .contact-ring {
    width: 150px;
    height: 150px;
  }

  .crs-sun {
    width: 22px;
    height: 22px;
    margin-left: -11px;
  }

  .contact-ring-tip {
    bottom: -46px;
    font-size: 12px;
    padding: 5px 12px;
  }
}
