@charset "utf-8";

/* ==========================================================================
   首页
   ========================================================================== */

/* ---------------- 首屏：吸收光谱 ---------------- */
.hero {
  position: relative;
  background-color: var(--ly-navy);
  /* 光谱仪坐标纸 */
  background-image:
    linear-gradient(rgba(142, 197, 255, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(142, 197, 255, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center top;
  color: #FFFFFF;
  overflow: hidden;
}

.hero-inner {
  max-width: var(--ly-container-max);
  margin: 0 auto;
  padding: 72px var(--ly-gutter) 8px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 48px;
}

.hero h1 {
  margin: 0;
  font-weight: 700;
}

.hero-display {
  display: block;
  font-size: clamp(2.5rem, 5.4vw, 4.5rem);
  line-height: 1.12;
  letter-spacing: 0.06em;
  color: #FFFFFF;
}

.hero-kicker {
  display: block;
  margin-top: 20px;
  font-size: 1.125rem;
  font-weight: 500;
  line-height: 1.5;
  letter-spacing: 0.04em;
  color: var(--ly-sky);
}

.hero-lead {
  max-width: 38em;
  margin: 18px 0 30px;
  font-size: 1rem;
  line-height: 1.85;
  color: #B8C7D8;
}

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

.hero-actions .ly-btn {
  padding: 13px 26px;
  font-size: 1rem;
}

.hero-facts {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 200px;
  margin: 0 0 6px;
}

.hero-facts > div {
  padding: 14px 0;
  border-top: 1px solid rgba(142, 197, 255, 0.22);
}

.hero-facts > div:last-child {
  border-bottom: 1px solid rgba(142, 197, 255, 0.22);
}

.hero-facts dt {
  font-size: 0.8125rem;
  color: #8FA3B8;
}

.hero-facts dd {
  font-size: 2.25rem;
  line-height: 1.1;
  color: #FFFFFF;
}

.hero-spectrum {
  max-width: var(--ly-container-max);
  margin: 12px auto 0;
  padding: 0 var(--ly-gutter) 28px;
}

.hero-spectrum-svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}

.spectrum-grid line {
  stroke: rgba(142, 197, 255, 0.35);
  stroke-width: 1;
  vector-effect: non-scaling-stroke;
}

.spectrum-grid text {
  fill: #7F93A8;
  font-family: var(--ly-font-din);
  font-size: 13px;
  text-anchor: middle;
}

.spectrum-grid .spectrum-unit {
  text-anchor: end;
}

.spectrum-fill {
  fill: rgba(142, 197, 255, 0.07);
  stroke: none;
}

/* 描边宽度使用 SVG 用户坐标（不用 non-scaling-stroke，否则 pathLength 虚线动画会画不完整） */
.spectrum-trace {
  fill: none;
  stroke: var(--ly-sky);
  stroke-width: 1.6;
  stroke-linejoin: round;
  stroke-dasharray: 1;
  stroke-dashoffset: 0;
}

.spectrum-labels line {
  stroke: rgba(255, 255, 255, 0.45);
  stroke-width: 1;
  stroke-dasharray: 3 3;
  vector-effect: non-scaling-stroke;
}

.spectrum-labels text {
  fill: #FFFFFF;
  font-family: var(--ly-font-din);
  font-size: 18px;
  text-anchor: middle;
}

.spectrum-labels .anchor-start {
  text-anchor: start;
}

.hero-spectrum figcaption {
  margin-top: 10px;
  font-size: 0.75rem;
  color: #7F93A8;
}

/* 唯一的入场动画：光谱曲线像仪器读数一样被描绘出来 */
@media (prefers-reduced-motion: no-preference) {
  .spectrum-trace {
    stroke-dashoffset: 1;
    animation: ly-trace-draw 2.4s cubic-bezier(0.45, 0, 0.2, 1) 0.2s forwards;
  }
  .spectrum-fill,
  .spectrum-labels {
    opacity: 0;
    animation: ly-fade-in 0.8s ease 2.2s forwards;
  }
}

@keyframes ly-trace-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes ly-fade-in {
  to { opacity: 1; }
}

/* ---------------- 监测参数 ---------------- */
.params-band {
  background: #FFFFFF;
  border-bottom: 1px solid var(--ly-border);
}

.params-inner {
  max-width: var(--ly-container-max);
  margin: 0 auto;
  padding: 22px var(--ly-gutter);
  display: flex;
  align-items: center;
  gap: 32px;
}

.params-title {
  flex: none;
  font-size: 0.9375rem;
  font-weight: 700;
  color: var(--ly-text-heading);
}

.params-list {
  display: flex;
  flex-wrap: wrap;
  flex: 1;
}

.params-list li {
  display: flex;
  align-items: baseline;
  gap: 8px;
  padding: 4px 18px;
  font-size: 0.8125rem;
  color: var(--ly-text-muted);
  border-left: 1px solid var(--ly-border);
  white-space: nowrap;
}

.params-list b {
  font-weight: 400;
  font-size: 1.25rem;
  color: var(--ly-navy);
}

/* ---------------- 通用区块 ---------------- */
.home-section {
  padding: 88px 0;
}

.section-inner {
  max-width: var(--ly-container-max);
  margin: 0 auto;
  padding: 0 var(--ly-gutter);
}

.section-head {
  margin-bottom: 36px;
}

.section-title {
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: 0.02em;
  color: var(--ly-text-heading);
}

.section-lead {
  margin-top: 8px;
  max-width: 40em;
  color: var(--ly-text-muted);
}

/* ---------------- 产品目录 ---------------- */
.catalog-group {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 40px;
  padding: 32px 0;
  border-top: 1px solid var(--ly-border);
}

.catalog-group:last-child {
  border-bottom: 1px solid var(--ly-border);
}

.catalog-group-head h3 {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--ly-text-heading);
  line-height: 1.4;
}

.catalog-group-head p {
  margin-top: 8px;
  font-size: 0.875rem;
  color: var(--ly-text-muted);
}

.catalog-items {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.catalog-item {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  grid-template-rows: auto auto 1fr;
  column-gap: 20px;
  height: 100%;
  padding: 14px;
  background: #FFFFFF;
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius-md);
  color: inherit;
}

.catalog-item img {
  grid-row: 1 / span 3;
  width: 140px;
  height: 96px;
  object-fit: contain;
  background: #FFFFFF;
  align-self: center;
}

.catalog-model {
  font-family: var(--ly-font-din);
  font-size: 1.625rem;
  line-height: 1.15;
  color: var(--ly-navy);
}

.catalog-name {
  margin-top: 2px;
  font-weight: 700;
  color: var(--ly-text-heading);
}

.catalog-desc {
  margin-top: 4px;
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ly-text-muted);
}

.catalog-item:hover {
  border-color: var(--ly-primary);
  color: inherit;
}

.catalog-item:hover .catalog-model {
  color: var(--ly-primary);
}

/* ---------------- 核心测量技术 ---------------- */
.home-section-tech {
  background: #FFFFFF;
}

.tech-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 32px;
}

.tech-list li {
  padding-top: 18px;
  border-top: 2px solid var(--ly-navy);
}

.tech-method {
  font-size: 1.75rem;
  line-height: 1.1;
  color: var(--ly-primary);
  margin-bottom: 12px;
}

.tech-title {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ly-text-heading);
  margin-bottom: 8px;
}

.tech-desc {
  font-size: 0.875rem;
  line-height: 1.75;
  color: var(--ly-text-muted);
}

/* ---------------- 行业 ---------------- */
.industry-list {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  border-top: 1px solid var(--ly-border);
  border-bottom: 1px solid var(--ly-border);
}

.industry-list li {
  padding: 28px 22px;
  border-left: 1px solid var(--ly-border);
}

.industry-list li:first-child {
  border-left: 0;
  padding-left: 0;
}

.industry-list svg {
  width: 30px;
  height: 30px;
  fill: none;
  stroke: var(--ly-primary);
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  margin-bottom: 16px;
}

.industry-list h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ly-text-heading);
  margin-bottom: 4px;
}

.industry-list p {
  font-size: 0.8125rem;
  line-height: 1.65;
  color: var(--ly-text-muted);
}

/* ---------------- 项目与资质 ---------------- */
.home-section-proof {
  background: #FFFFFF;
  border-top: 1px solid var(--ly-border);
}

.proof-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  gap: 56px;
}

.proof-grid .section-title {
  font-size: 1.5rem;
  margin-bottom: 20px;
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.case-list li {
  padding: 4px 0 4px 18px;
  border-left: 3px solid var(--ly-primary);
}

.case-list h3 {
  font-size: 1.0625rem;
  font-weight: 700;
  color: var(--ly-text-heading);
}

.case-list p {
  margin: 4px 0 6px;
  font-size: 0.875rem;
  color: var(--ly-text-muted);
}

.case-list a {
  font-size: 0.875rem;
  font-weight: 600;
}

.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.cert-thumb {
  display: block;
  padding: 10px;
  background: var(--ly-bg-alt);
  border: 1px solid var(--ly-border);
  border-radius: var(--ly-radius-md);
  color: var(--ly-text-body);
}

.cert-thumb img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #FFFFFF;
}

.cert-thumb span {
  display: block;
  margin-top: 8px;
  font-size: 0.8125rem;
  text-align: center;
}

.cert-thumb:hover {
  border-color: var(--ly-primary);
  color: var(--ly-primary);
}

/* ---------------- 联系 ---------------- */
.home-cta {
  background-color: var(--ly-navy-2);
  background-image: url("../images/spectrum.svg");
  background-repeat: no-repeat;
  background-position: right -60px bottom -6px;
  background-size: 760px 52px;
  color: #FFFFFF;
}

.home-cta-inner {
  max-width: var(--ly-container-max);
  margin: 0 auto;
  padding: 64px var(--ly-gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px 56px;
  flex-wrap: wrap;
}

.home-cta-copy {
  max-width: 34em;
}

.home-cta-copy h2 {
  font-size: 1.875rem;
  font-weight: 700;
  line-height: 1.3;
  color: #FFFFFF;
}

.home-cta-copy p {
  margin-top: 10px;
  color: #B8C7D8;
}

.home-cta-contact {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.home-cta-phone {
  font-size: 2.75rem;
  line-height: 1;
  color: #FFFFFF !important;
}

.home-cta-phone:hover {
  color: var(--ly-sky) !important;
}

.home-cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

/* ---------------- 响应式 ---------------- */
@media (max-width: 1100px) {
  .hero-inner {
    grid-template-columns: 1fr;
    gap: 36px;
  }
  .hero-facts {
    flex-direction: row;
  }
  .hero-facts > div {
    flex: 1;
    border-bottom: 1px solid rgba(142, 197, 255, 0.22);
    padding-right: 16px;
  }
  .catalog-group {
    grid-template-columns: 1fr;
    gap: 18px;
  }
  .tech-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px 32px;
  }
  .industry-list {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .industry-list li:nth-child(4) {
    border-left: 0;
    padding-left: 0;
  }
  .industry-list li:nth-child(n+4) {
    border-top: 1px solid var(--ly-border);
  }
}

@media (max-width: 860px) {
  .params-inner {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
    padding: 18px var(--ly-gutter);
  }
  .params-list {
    margin-left: -12px;
  }
  .params-list li {
    padding: 4px 12px;
  }
  .catalog-items {
    grid-template-columns: 1fr;
  }
  .proof-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
}

@media (max-width: 640px) {
  .hero-inner {
    padding-top: 44px;
    gap: 28px;
  }
  .hero-display {
    letter-spacing: 0.04em;
  }
  .hero-kicker {
    font-size: 1rem;
    margin-top: 14px;
  }
  .hero-lead {
    font-size: 0.9375rem;
    margin-bottom: 24px;
  }
  .hero-actions .ly-btn {
    flex: 1 1 auto;
  }
  .hero-facts dd {
    font-size: 1.75rem;
  }
  .hero-facts dt {
    font-size: 0.75rem;
  }
  .hero-spectrum {
    padding-bottom: 20px;
  }
  /* SVG 等比缩小后，按用户坐标放大文字以保持可读 */
  .spectrum-grid text {
    font-size: 38px;
  }
  .spectrum-grid text:nth-of-type(even) {
    display: none;
  }
  .spectrum-labels text {
    font-size: 46px;
  }
  .spectrum-trace {
    stroke-width: 4.5;
  }
  .home-section {
    padding: 56px 0;
  }
  .section-title {
    font-size: 1.625rem;
  }
  .catalog-item {
    grid-template-columns: 104px minmax(0, 1fr);
    column-gap: 14px;
    padding: 12px;
  }
  .catalog-item img {
    width: 104px;
    height: 72px;
  }
  .catalog-model {
    font-size: 1.375rem;
  }
  .tech-list {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .industry-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .industry-list li,
  .industry-list li:nth-child(4) {
    padding: 20px 14px;
    border-left: 1px solid var(--ly-border);
    border-top: 1px solid var(--ly-border);
  }
  .industry-list li:nth-child(odd) {
    border-left: 0;
    padding-left: 0;
  }
  .industry-list li:first-child,
  .industry-list li:nth-child(2) {
    border-top: 0;
  }
  .home-cta {
    background-size: 480px 40px;
  }
  .home-cta-inner {
    padding: 48px var(--ly-gutter);
  }
  .home-cta-copy h2 {
    font-size: 1.5rem;
  }
  .home-cta-phone {
    font-size: 2.25rem;
  }
}
