/* 首页 v3 — 包装标签设计 + 标签印刷（静态方案 A） */

.homeV3 {
  --hv3-primary: #0f766e;
  --hv3-primary-dark: #0d655e;
  --hv3-dark: #0f172a;
  --hv3-dark-card: #1e293b;
  --hv3-accent: #2563eb;
  --hv3-bg: #f8fafc;
  --hv3-border: #e5e7eb;
  --hv3-text: #475569;
  --hv3-heading: #0f172a;
  --hv3-light: #f8fafc;
  color: var(--hv3-text);
  font-size: 1rem;
  line-height: 1.75;
}

.homeV3__container {
  width: min(100% - 2.5rem, 72rem);
  margin-inline: auto;
}

.homeV3__section {
  padding: clamp(3.5rem, 6vw, 5.5rem) 0;
}

.homeV3__section--white {
  background: #fff;
}

.homeV3__section--muted {
  background: var(--hv3-bg);
}

.homeV3__section--dark {
  background: var(--hv3-dark);
  color: rgba(248, 250, 252, 0.88);
}

/* Typography */
.homeV3__eyebrow {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--hv3-primary);
}

.homeV3__h1 {
  margin: 0 0 1rem;
  font-size: clamp(2rem, 4.2vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--hv3-heading);
}

.homeV3__h2 {
  margin: 0 0 1rem;
  font-size: clamp(1.625rem, 3vw, 2.375rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--hv3-heading);
}

.homeV3__h2--light {
  color: var(--hv3-light);
}

.homeV3__h3 {
  margin: 0 0 0.625rem;
  font-size: clamp(1.125rem, 2vw, 1.5rem);
  font-weight: 600;
  line-height: 1.35;
  color: var(--hv3-heading);
}

.homeV3__h3--light {
  color: var(--hv3-light);
}

.homeV3__heroSubtitle {
  margin: 0 0 1rem;
  font-size: clamp(1.125rem, 2vw, 1.375rem);
  font-weight: 500;
  color: var(--hv3-heading);
}

.homeV3__lead,
.homeV3__sectionLead {
  margin: 0 0 1.5rem;
  max-width: 42rem;
  font-size: clamp(1rem, 1.5vw, 1.125rem);
}

.homeV3__sectionLead {
  margin-bottom: 2.5rem;
}

.homeV3__sectionLead--light {
  color: rgba(248, 250, 252, 0.82);
}

.homeV3__cardBody {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.7;
}

.homeV3__cardBody--light {
  color: rgba(248, 250, 252, 0.78);
}

/* Hero */
.homeV3__hero {
  padding: clamp(3rem, 7vw, 5rem) 0 clamp(3.5rem, 6vw, 4.5rem);
  background: linear-gradient(180deg, #fff 0%, var(--hv3-bg) 100%);
}

.homeV3__heroGrid {
  display: grid;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 960px) {
  .homeV3__heroGrid {
    grid-template-columns: 1fr 1fr;
    gap: 3.5rem;
  }
}

.homeV3__heroActions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2rem;
}

/* Buttons */
.homeV3__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.75rem 1.5rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.homeV3__btn--primary {
  background: var(--hv3-primary);
  color: #fff;
  border: 1px solid var(--hv3-primary);
}

.homeV3__btn--primary:hover {
  background: var(--hv3-primary-dark);
  border-color: var(--hv3-primary-dark);
}

.homeV3__btn--secondary {
  background: #fff;
  color: var(--hv3-heading);
  border: 1px solid var(--hv3-border);
}

.homeV3__btn--secondary:hover {
  border-color: var(--hv3-primary);
  color: var(--hv3-primary);
}

/* Placeholder images */
.homeV3__ph {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin: 0;
  border-radius: 1.5rem;
  border: 1px solid var(--hv3-border);
}

.homeV3__ph--4-3 {
  aspect-ratio: 4 / 3;
}

.homeV3__ph--16-10 {
  aspect-ratio: 16 / 10;
}

.homeV3__ph--teal {
  background: linear-gradient(135deg, #ecfdf5 0%, #99f6e4 45%, #0f766e 100%);
}

.homeV3__ph--slate {
  background: linear-gradient(135deg, #f1f5f9 0%, #94a3b8 50%, #334155 100%);
}

.homeV3__ph--blue {
  background: linear-gradient(135deg, #eff6ff 0%, #93c5fd 45%, #2563eb 100%);
}

.homeV3__phLabel {
  position: relative;
  z-index: 1;
  padding: 0.5rem 1rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--hv3-text);
  backdrop-filter: blur(4px);
}

.homeV3__srOnly {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Capabilities grid */
.homeV3__capGrid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .homeV3__capGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .homeV3__capGrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.homeV3__capCard {
  padding: 1.5rem;
  border: 1px solid var(--hv3-border);
  border-radius: 1rem;
  background: #fff;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .homeV3__capCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  }
}

/* Split layouts */
.homeV3__split {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 960px) {
  .homeV3__split--imageRight {
    grid-template-columns: 1fr 1fr;
  }

  .homeV3__split--imageLeft {
    grid-template-columns: 1fr 1fr;
  }

  .homeV3__split--imageLeft .homeV3__splitCopy {
    order: 2;
  }

  .homeV3__split--imageLeft .homeV3__ph {
    order: 1;
  }
}

.homeV3__bulletList {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 0.75rem;
}

.homeV3__bulletList li {
  position: relative;
  padding-left: 1.375rem;
  font-size: 0.9375rem;
}

.homeV3__bulletList li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 0.5rem;
  height: 0.5rem;
  border-radius: 50%;
  background: var(--hv3-primary);
}

/* Tags */
.homeV3__tagRow {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 1rem;
}

.homeV3__tag {
  display: inline-block;
  padding: 0.25rem 0.625rem;
  border-radius: 999px;
  background: var(--hv3-bg);
  border: 1px solid var(--hv3-border);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hv3-text);
}

/* Production cards */
.homeV3__prodGrid {
  display: grid;
  gap: 2.5rem;
}

.homeV3__prodCard {
  padding: 1.5rem;
  border: 1px solid var(--hv3-border);
  border-radius: 1.25rem;
  background: var(--hv3-bg);
}

@media (min-width: 960px) {
  .homeV3__prodCard {
    padding: 2rem;
  }
}

/* Quality section */
.homeV3__qualityGrid {
  display: grid;
  gap: 2.5rem;
  align-items: start;
}

@media (min-width: 960px) {
  .homeV3__qualityGrid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.homeV3__qualityModules {
  display: grid;
  gap: 1rem;
  margin: 2rem 0 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .homeV3__qualityModules {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.homeV3__qualityMod {
  padding: 1.25rem;
  border-radius: 0.875rem;
  background: var(--hv3-dark-card);
  border: 1px solid rgba(248, 250, 252, 0.08);
}

/* Solutions grid — desktop 3 + 2 */
.homeV3__solGrid {
  display: grid;
  gap: 1.25rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

@media (min-width: 640px) {
  .homeV3__solGrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .homeV3__solGrid {
    grid-template-columns: repeat(6, minmax(0, 1fr));
  }

  .homeV3__solGrid > li:nth-child(-n + 3) {
    grid-column: span 2;
  }

  .homeV3__solGrid > li:nth-child(4) {
    grid-column: 2 / span 2;
  }

  .homeV3__solGrid > li:nth-child(5) {
    grid-column: 4 / span 2;
  }
}

.homeV3__solCard {
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  border: 1px solid var(--hv3-border);
  border-radius: 1rem;
  background: #fff;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

@media (hover: hover) {
  .homeV3__solCard:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.1);
  }

  .homeV3__solCard:hover .homeV3__solPh {
    transform: scale(1.03);
  }

  .homeV3__solCard:hover .homeV3__solLink {
    color: var(--hv3-primary);
  }
}

.homeV3__solCardMedia {
  overflow: hidden;
}

.homeV3__solPh {
  border-radius: 0;
  border: 0;
  border-bottom: 1px solid var(--hv3-border);
  transition: transform 0.25s ease;
}

.homeV3__solCardBody {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 1.25rem 1.25rem 1.5rem;
}

.homeV3__solLink {
  margin-top: auto;
  padding-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--hv3-accent);
  transition: color 0.2s ease;
}

@media (prefers-reduced-motion: reduce) {
  .homeV3__btn,
  .homeV3__capCard,
  .homeV3__solCard,
  .homeV3__solPh {
    transition: none;
  }
}
