/* ============================================================
   lianxi-women.css — 联系与工单（重设计版）
   依赖：body.home-forest.page-contact + forest-pages.css
   ============================================================ */

/* ── 关键帧 ── */
@keyframes lx-nav-in {
  from { opacity: 0; transform: translateY(-10px); }
  to   { opacity: 1; transform: none; }
}

@keyframes lx-hero-enter {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: none; }
}

@keyframes lx-pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(74, 222, 128, 0.6); }
  60%       { box-shadow: 0 0 0 8px rgba(74, 222, 128, 0); }
}

@keyframes lx-scroll-bob {
  0%, 100% { transform: translateX(-50%) translateY(0); opacity: 0.45; }
  50%       { transform: translateX(-50%) translateY(5px); opacity: 0.85; }
}

@keyframes lx-title-shimmer {
  0%   { background-position: 0% center; }
  100% { background-position: -200% center; }
}

/* ── 导航入场 ── */
.page-contact #main-nav {
  animation: lx-nav-in 0.7s cubic-bezier(0.22, 1, 0.36, 1) both;
}

/* ── 滚动显现 ── */
.lx-reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 0.65s cubic-bezier(0.22, 1, 0.36, 1),
    transform 0.65s cubic-bezier(0.22, 1, 0.36, 1);
}
.lx-reveal.lx-in-view {
  opacity: 1;
  transform: none;
}

/* ══════════════════════════════════════════
   HERO
══════════════════════════════════════════ */
.lx-page {
  overflow-x: hidden;
  color: var(--fr-mist, #ecfdf5);
  padding-bottom: 24px;
}

.lx-hero {
  position: relative;
  padding: calc(var(--nav-height, 68px) + 64px) 0 88px;
  overflow: hidden;
  border-bottom: 1px solid rgba(134, 239, 172, 0.1);
  text-align: center;
}

.lx-hero__aurora {
  position: absolute;
  inset: -20% -10% auto;
  height: 90%;
  background:
    radial-gradient(ellipse 55% 48% at 22% 22%, rgba(74, 222, 128, 0.2), transparent 58%),
    radial-gradient(ellipse 42% 38% at 80% 18%, rgba(34, 197, 94, 0.11), transparent 52%),
    radial-gradient(ellipse 35% 42% at 50% 65%, rgba(20, 83, 45, 0.16), transparent 60%);
  pointer-events: none;
  will-change: transform;
}

.lx-hero__gridlines {
  position: absolute;
  inset: 0;
  opacity: 0.062;
  background-image:
    linear-gradient(rgba(167, 243, 208, 0.5) 1px, transparent 1px),
    linear-gradient(90deg, rgba(167, 243, 208, 0.45) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 68% at 50% 0%, #000 18%, transparent 76%);
  pointer-events: none;
}

.lx-hero__inner {
  position: relative;
  z-index: 1;
  max-width: 660px;
  margin: 0 auto;
}

/* Hero content entrance */
.lx-hero__inner > * {
  animation: lx-hero-enter 0.8s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.lx-eyebrow    { animation-delay: 0.1s; }
.lx-title      { animation-delay: 0.2s; }
.lx-lead       { animation-delay: 0.32s; }
.lx-status     { animation-delay: 0.44s; }

/* Eyebrow */
.lx-eyebrow {
  margin: 0 0 18px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(74, 222, 128, 0.7);
}

/* Title */
.lx-title {
  margin: 0 0 20px;
  font-size: clamp(1.9rem, 5vw, 3rem);
  font-weight: 900;
  letter-spacing: -0.035em;
  line-height: 1.12;
  color: #f8fafc;
}

.lx-title__accent {
  display: block;
  background: linear-gradient(105deg, #bbf7d0 0%, #4ade80 30%, #86efac 48%, #bbf7d0 62%, #4ade80 82%);
  background-size: 200% auto;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  animation: lx-title-shimmer 6s linear infinite;
}

/* Lead */
.lx-lead {
  margin: 0 0 28px;
  font-size: clamp(15px, 1.9vw, 17px);
  line-height: 1.7;
  color: rgba(226, 232, 240, 0.68);
  max-width: 52ch;
  margin-left: auto;
  margin-right: auto;
}

/* Status badge */
.lx-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid rgba(74, 222, 128, 0.25);
  background: rgba(74, 222, 128, 0.07);
  font-size: 13px;
  font-weight: 700;
  color: rgba(167, 243, 208, 0.88);
}

.lx-status__dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #4ade80;
  flex-shrink: 0;
  animation: lx-pulse 2.4s ease-out infinite;
}

/* Scroll hint */
.lx-hero__scroll {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(167, 243, 208, 0.45);
  animation: lx-scroll-bob 2s 2s ease-in-out infinite;
  line-height: 1;
}

/* ══════════════════════════════════════════
   BODY
══════════════════════════════════════════ */
.lx-body {
  padding-top: 56px;
  padding-bottom: 64px;
  display: flex;
  flex-direction: column;
  gap: 52px;
}

.lx-section-title {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.5vw, 1.6rem);
  font-weight: 900;
  letter-spacing: -0.025em;
  color: #f8fafc;
}

.lx-section-sub {
  margin: 0 0 28px;
  font-size: 15px;
  color: rgba(226, 232, 240, 0.5);
  line-height: 1.6;
}

/* ══════════════════════════════════════════
   关键事实横排
══════════════════════════════════════════ */
.lx-facts {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0;
  padding: 28px 32px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: linear-gradient(165deg, rgba(255, 255, 255, 0.03) 0%, transparent 45%),
              rgba(6, 18, 14, 0.52);
}

.lx-fact {
  flex: 1 1 180px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding: 12px 20px;
}

.lx-fact__ico {
  width: 46px;
  height: 46px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
  margin-bottom: 4px;
}

.lx-fact__value {
  font-size: clamp(14px, 1.8vw, 16px);
  font-weight: 900;
  color: #ecfdf5;
  letter-spacing: -0.01em;
}

.lx-fact__label {
  font-size: 12px;
  font-weight: 700;
  color: rgba(226, 232, 240, 0.45);
}

.lx-fact__sep {
  width: 1px;
  height: 50px;
  background: rgba(167, 243, 208, 0.14);
  flex-shrink: 0;
}

@media (max-width: 600px) {
  .lx-facts {
    padding: 20px 16px;
  }
  .lx-fact__sep {
    display: none;
  }
  .lx-fact {
    flex: 1 1 100%;
    padding: 10px 0;
    border-bottom: 1px solid rgba(167, 243, 208, 0.1);
  }
  .lx-fact:last-child {
    border-bottom: none;
  }
}

/* ══════════════════════════════════════════
   主工单卡片（全宽）
══════════════════════════════════════════ */
.lx-ticket {
  border-radius: 22px;
  padding: 36px 40px 40px;
  border: 1px solid rgba(74, 222, 128, 0.2);
  background:
    linear-gradient(165deg, rgba(255, 255, 255, 0.04) 0%, transparent 40%),
    rgba(8, 22, 16, 0.72);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.05) inset,
              0 28px 64px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

@media (max-width: 600px) {
  .lx-ticket {
    padding: 24px 20px 28px;
  }
}

.lx-ticket::before {
  content: '';
  position: absolute;
  top: 0; left: 8%; right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(74, 222, 128, 0.45), transparent);
}

.lx-ticket__header {
  margin-bottom: 28px;
  padding-bottom: 28px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.lx-ticket__badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(167, 243, 208, 0.6);
  margin-bottom: 12px;
}

.lx-ticket__title {
  margin: 0 0 12px;
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 900;
  color: #f8fafc;
  letter-spacing: -0.03em;
}

.lx-ticket__lead {
  margin: 0;
  font-size: clamp(15px, 1.8vw, 16px);
  line-height: 1.68;
  color: rgba(226, 232, 240, 0.65);
  max-width: 62ch;
}

/* ── 横排三步卡片 ── */
.lx-steps {
  list-style: none;
  margin: 0 0 32px;
  padding: 0;
  display: flex;
  gap: 0;
}

.lx-step {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px 18px 22px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.2);
  position: relative;
  margin-right: 36px;
  transition: border-color 0.2s ease;
}

.lx-step:hover {
  border-color: rgba(74, 222, 128, 0.25);
}

.lx-step:last-child {
  margin-right: 0;
}

/* 步骤间连接箭头 */
.lx-step:not(:last-child)::after {
  content: '→';
  position: absolute;
  right: -25px;
  top: 20px;
  font-size: 17px;
  color: rgba(74, 222, 128, 0.38);
  pointer-events: none;
  line-height: 1;
}

.lx-step__num {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 900;
  color: rgba(134, 239, 172, 0.7);
  background: linear-gradient(135deg, rgba(74, 222, 128, 0.09), rgba(34, 197, 94, 0.05));
  border: 1px solid rgba(74, 222, 128, 0.15);
  flex-shrink: 0;
  margin-bottom: 14px;
}

.lx-step__body strong {
  display: block;
  font-size: 16px;
  font-weight: 900;
  color: #f1f5f9;
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.lx-step__body > span {
  display: block;
  font-size: 13.5px;
  line-height: 1.6;
  color: rgba(226, 232, 240, 0.58);
}

/* 响应式：窄屏恢复竖排 */
@media (max-width: 680px) {
  .lx-steps {
    flex-direction: column;
    gap: 10px;
  }
  .lx-step {
    flex-direction: row;
    align-items: flex-start;
    gap: 14px;
    padding: 16px 16px 18px;
    margin-right: 0;
  }
  .lx-step:not(:last-child)::after {
    display: none;
  }
  .lx-step__num {
    margin-bottom: 0;
    flex-shrink: 0;
  }
}

/* Footer CTA */
.lx-ticket__footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.lx-ticket__cta {
  text-decoration: none;
}

.lx-ticket__alt {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.lx-ticket__hint {
  width: 100%;
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  color: rgba(226, 232, 240, 0.4);
  max-width: 64ch;
}

.lx-ghost {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
  color: rgba(236, 253, 245, 0.85);
  border: 1px solid rgba(167, 243, 208, 0.22);
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.lx-ghost:hover {
  background: rgba(74, 222, 128, 0.1);
  border-color: rgba(74, 222, 128, 0.38);
}

/* ══════════════════════════════════════════
   RESOURCES SECTION
══════════════════════════════════════════ */
.lx-res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

@media (max-width: 700px) {
  .lx-res-grid {
    grid-template-columns: 1fr;
  }
}

.lx-res-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 24px 22px 26px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(6, 18, 14, 0.5);
  text-decoration: none;
  transition: border-color 0.22s ease, background 0.22s ease, transform 0.22s ease;
}

.lx-res-card:hover {
  border-color: rgba(74, 222, 128, 0.32);
  background: rgba(74, 222, 128, 0.06);
  transform: translateY(-3px);
}

.lx-res-card__ico {
  width: 48px;
  height: 48px;
  border-radius: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #4ade80;
  background: rgba(74, 222, 128, 0.1);
  border: 1px solid rgba(74, 222, 128, 0.2);
}

.lx-res-card__body {
  flex: 1;
}

.lx-res-card__title {
  display: block;
  font-size: 17px;
  font-weight: 900;
  color: #ecfdf5;
  margin-bottom: 6px;
  letter-spacing: -0.01em;
}

.lx-res-card__desc {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.58;
  color: rgba(226, 232, 240, 0.52);
}

.lx-res-card__arrow {
  color: rgba(74, 222, 128, 0.4);
  flex-shrink: 0;
  transition: transform 0.2s ease, color 0.2s ease;
  align-self: flex-end;
}

.lx-res-card:hover .lx-res-card__arrow {
  transform: translateX(4px);
  color: rgba(74, 222, 128, 0.8);
}

/* ══════════════════════════════════════════
   REDUCED MOTION
══════════════════════════════════════════ */
@media (prefers-reduced-motion: reduce) {
  .lx-title__accent,
  .lx-status__dot,
  .lx-hero__scroll,
  .lx-hero__inner > * {
    animation: none;
  }
  .lx-title__accent {
    background-size: 100% auto;
  }
  .lx-reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  .lx-res-card:hover,
  .lx-tile:hover {
    transform: none;
  }
}
