/* ═══════════════════════════════════════════════════════════════
   HOMEPAGE — index.html specific styles
   ═══════════════════════════════════════════════════════════════ */

/* ═══ HERO SECTION ═══ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  background: var(--color-surface);
  overflow: hidden;
}

.hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.08;
  filter: saturate(0.5);
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg,
      rgba(255, 255, 255, 0.95) 0%,
      rgba(255, 255, 255, 0.7) 50%,
      rgba(255, 255, 255, 0.85) 100%
    );
}

/* Grid texture on hero */
.hero .bg-grid-light {
  position: absolute;
  inset: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: var(--container-xl);
  margin-inline: auto;
  padding-inline: var(--container-px);
  padding-top: 72px; /* header offset */
  width: 100%;
}

.hero-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.hero-label::before {
  content: '';
  width: 32px;
  height: 1px;
  background: var(--color-accent);
}

.hero-title {
  font-size: clamp(2.5rem, 5vw, var(--text-5xl));
  color: var(--color-text-primary);
  line-height: var(--leading-tight);
  margin-bottom: var(--space-5);
  max-width: 600px;
}

.hero-subtitle {
  font-size: clamp(1rem, 2vw, var(--text-xl));
  color: var(--color-text-secondary);
  margin-bottom: var(--space-10);
  max-width: 500px;
  line-height: var(--leading-relaxed);
}

/* ═══ HERO SLOGAN — 右侧醒目展示 ═══ */
.hero-slogan {
  position: absolute;
  right: var(--container-px);
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  animation: sloganSlideIn 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.4s both;
}

.hero-slogan-inner {
  position: relative;
  padding: var(--space-8) var(--space-10);
  text-align: right;
}

/* 右侧装饰线 — 从上往下生长 */
.hero-slogan-inner::after {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 3px;
  height: 0;
  background: linear-gradient(to bottom, var(--color-cta), var(--color-cta-hover));
  animation: borderGrow 0.8s cubic-bezier(0.23, 1, 0.32, 1) 0.6s forwards;
}

/* 装饰线底部小方块 */
.hero-slogan-inner::before {
  content: '';
  position: absolute;
  bottom: 0;
  right: -1px;
  width: 5px;
  height: 5px;
  background: var(--color-cta);
  opacity: 0;
  animation: dotAppear 0.3s ease-out 1.8s forwards;
}

.hero-slogan-label {
  font-family: var(--font-display);
  font-size: var(--text-xs);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-text-tertiary);
  margin-bottom: var(--space-4);
  display: block;
  opacity: 0;
  animation: labelReveal 0.5s ease-out 0.9s forwards;
}

.hero-slogan-text {
  font-family: "Source Han Sans SC", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: clamp(1.5rem, 3vw, var(--text-4xl));
  font-weight: 700;
  color: var(--color-text-primary);
  letter-spacing: 0.04em;
  line-height: 1.5;
  margin: 0;
  opacity: 0;
  animation: textReveal 0.7s cubic-bezier(0.23, 1, 0.32, 1) 1.1s forwards;
}

.hero-slogan-text--accent {
  color: var(--color-cta);
  font-size: clamp(1.75rem, 3.5vw, calc(var(--text-4xl) + 4px));
  font-weight: 900;
  opacity: 0;
  animation:
    accentReveal 0.8s cubic-bezier(0.23, 1, 0.32, 1) 1.4s forwards,
    shimmer 3s ease-in-out 2.5s infinite,
    glowPulse 2.5s ease-in-out 3s infinite;
}

/* ═══ 动画关键帧 ═══ */

/* 整体从右滑入 */
@keyframes sloganSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50%) translateX(60px);
    filter: blur(4px);
  }
  to {
    opacity: 1;
    transform: translateY(-50%) translateX(0);
    filter: blur(0);
  }
}

/* 右侧竖线从上往下生长 */
@keyframes borderGrow {
  from { height: 0; }
  to   { height: 100%; }
}

/* 底部小方块出现 */
@keyframes dotAppear {
  from { opacity: 0; transform: scale(0); }
  to   { opacity: 1; transform: scale(1); }
}

/* 标签淡入 + 展开 */
@keyframes labelReveal {
  from {
    opacity: 0;
    letter-spacing: 0.3em;
    filter: blur(2px);
  }
  to {
    opacity: 1;
    letter-spacing: var(--tracking-wider);
    filter: blur(0);
  }
}

/* 文字逐行显现 */
@keyframes textReveal {
  from {
    opacity: 0;
    transform: translateX(20px);
    clip-path: inset(0 0 0 100%);
  }
  to {
    opacity: 1;
    transform: translateX(0);
    clip-path: inset(0 0 0 0);
  }
}

/* 强调行弹出 */
@keyframes accentReveal {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.9);
    clip-path: inset(0 0 0 100%);
  }
  60% {
    transform: translateX(-4px) scale(1.02);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    clip-path: inset(0 0 0 0);
  }
}

/* 光泽扫过效果 */
@keyframes shimmer {
  0%, 100% {
    text-shadow:
      0 2px 12px rgba(193, 127, 62, 0.15);
  }
  50% {
    text-shadow:
      0 2px 12px rgba(193, 127, 62, 0.15),
      -30px 0 20px rgba(212, 168, 79, 0),
      0 0 30px rgba(193, 127, 62, 0.25);
  }
}

/* 持续微光呼吸 */
@keyframes glowPulse {
  0%, 100% {
    filter: brightness(1);
  }
  50% {
    filter: brightness(1.15);
  }
}

/* 移动端：移到左侧内容下方 */
@media (max-width: 1023px) {
  .hero-slogan {
    position: static;
    transform: none;
    margin-top: var(--space-8);
    animation: sloganFadeInMobile 0.8s ease-out 0.4s both;
  }
  .hero-slogan-inner {
    border-right: none;
    border-left: 3px solid var(--color-cta);
    text-align: left;
    padding: var(--space-6) var(--space-8);
  }
  .hero-slogan-inner::after {
    display: none;
  }
  .hero-slogan-inner::before {
    display: none;
  }
  .hero-slogan-text {
    font-size: var(--text-2xl);
  }
  .hero-slogan-text--accent {
    font-size: var(--text-3xl);
  }
}

@keyframes sloganFadeInMobile {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-buttons {
  display: flex;
  gap: var(--space-4);
  flex-wrap: wrap;
}

/* Geometric accent lines on hero */
.hero-deco {
  position: absolute;
  right: 10%;
  top: 50%;
  transform: translateY(-50%);
  width: 300px;
  height: 300px;
  opacity: 0.08;
  pointer-events: none;
}

.hero-deco::before {
  content: '';
  position: absolute;
  inset: 0;
  border: 1px solid var(--color-accent);
}

.hero-deco::after {
  content: '';
  position: absolute;
  inset: 30px;
  border: 1px solid var(--color-accent);
}

@media (max-width: 1023px) {
  .hero-deco { display: none; }
}


/* ═══ STATS BAR ═══ */
.stats-bar {
  background: var(--color-surface-alt);
  border-top: 1px solid var(--color-border-subtle);
  border-bottom: 1px solid var(--color-border-subtle);
}


/* ═══ ABOUT SECTION ═══ */
.about-section {
  padding: var(--section-py-lg) 0;
}

.about-text h2 {
  font-size: var(--text-3xl);
  margin-bottom: var(--space-3);
}

.about-text .eng-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  letter-spacing: var(--tracking-wider);
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-6);
}

.about-text p {
  margin-bottom: var(--space-4);
  font-size: var(--text-base);
}

.about-image {
  position: relative;
}

.about-image img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border: var(--border-thin);
}

/* Decorative corner on about image */
.about-image::before {
  content: '';
  position: absolute;
  top: -8px;
  right: -8px;
  width: 60px;
  height: 60px;
  border-top: 2px solid var(--color-accent);
  border-right: 2px solid var(--color-accent);
}

.about-image::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: -8px;
  width: 60px;
  height: 60px;
  border-bottom: 2px solid var(--color-accent);
  border-left: 2px solid var(--color-accent);
}

@media (max-width: 1023px) {
  .about-image::before,
  .about-image::after {
    display: none;
  }
}


/* ═══ INDUSTRIES SECTION ═══ */
.industries-section {
  padding: var(--section-py-lg) 0;
}


/* ═══ PRODUCTS SECTION ═══ */
.products-section {
  padding: var(--section-py-lg) 0;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-8);
}

@media (max-width: 1023px) {
  .products-grid {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* ═══ PARTNERS SECTION ═══ */
.partners-section {
  padding: var(--section-py) 0;
}


/* ═══ CTA SECTION ═══ */
.home-cta {
  padding: var(--section-py) 0;
}
