/*
Theme Name: Leyou Industrial
Theme URI: https://lehave.com/
Description: 南京乐有科技有限公司轻量企业产品展示主题，基于 Astra。
Author: Leyou Technology
Version: 1.3.2
Template: astra
Text Domain: leyou-industrial
*/

:root {
  --ly-blue: #102b6a;
  --ly-blue-2: #1f4fa3;
  --ly-navy: #07162f;
  --ly-orange: #f28a18;
  --ly-ink: #14213d;
  --ly-muted: #61708a;
  --ly-line: #dfe6f1;
  --ly-bg: #f4f7fb;
  --ly-white: #fff;
  --ly-radius: 18px;
  --ly-shadow: 0 18px 45px rgba(16, 43, 106, .12);
  --ly-container: min(1180px, calc(100% - 40px));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ly-ink);
  background: var(--ly-white);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.7;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; height: auto; }
.ly-container { width: var(--ly-container); margin-inline: auto; }
.ly-section { padding: 92px 0; }
.ly-section--soft { background: var(--ly-bg); }
.ly-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ly-orange); font-size: 13px; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase;
}
.ly-eyebrow::before { content: ""; width: 34px; height: 2px; background: currentColor; }
.ly-title { margin: 12px 0 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.18; letter-spacing: -.025em; }
.ly-lead { max-width: 720px; margin: 0; color: var(--ly-muted); font-size: 17px; }
.ly-button {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 24px; border: 1px solid transparent;
  border-radius: 8px; background: var(--ly-orange); color: #fff;
  font-weight: 750; transition: .2s ease;
}
.ly-button:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 12px 30px rgba(242, 138, 24, .3); }
.ly-button--ghost { background: transparent; border-color: rgba(255,255,255,.35); }
.ly-button--ghost:hover { background: rgba(255,255,255,.1); }
.ly-button--outline { background: #fff; border-color: var(--ly-blue); color: var(--ly-blue); }
.ly-button--outline:hover { background: var(--ly-blue); color: #fff; box-shadow: 0 12px 30px rgba(16,43,106,.2); }

.ly-topbar { background: var(--ly-navy); color: rgba(255,255,255,.76); font-size: 13px; }
.ly-topbar__inner { min-height: 36px; display: flex; justify-content: space-between; align-items: center; gap: 18px; }
.ly-topbar__meta { display: flex; gap: 24px; flex-wrap: wrap; }
.ly-header { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.96); border-bottom: 1px solid rgba(16,43,106,.08); backdrop-filter: blur(12px); }
.ly-header__inner { min-height: 78px; display: flex; align-items: center; gap: 34px; }
.ly-brand { display: flex; align-items: center; gap: 13px; min-width: 280px; }
.ly-brand img { width: 46px; height: 46px; object-fit: contain; background: #fff !important; border-radius: 0 !important; padding: 0 !important; }
.ly-brand__name { color: var(--ly-blue); font-weight: 900; font-size: 19px; line-height: 1.2; }
.ly-brand__tag { display: block; color: var(--ly-muted); font-size: 11px; font-weight: 500; letter-spacing: .08em; margin-top: 4px; }
.ly-nav { margin-left: auto; }
.ly-nav ul { display: flex; align-items: center; gap: 28px; margin: 0; padding: 0; list-style: none; }
.ly-nav a { position: relative; display: block; padding: 27px 0; font-weight: 700; font-size: 15px; color: #223353; }
.ly-nav a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 18px; height: 2px; background: var(--ly-orange); transition: .2s; }
.ly-nav a:hover, .ly-nav .current-menu-item > a { color: var(--ly-blue-2); }
.ly-nav a:hover::after, .ly-nav .current-menu-item > a::after { right: 0; }
.ly-header__phone { padding-left: 22px; border-left: 1px solid var(--ly-line); white-space: nowrap; }
.ly-header__phone small { display: block; color: var(--ly-muted); font-size: 11px; }
.ly-header__phone strong { display: grid; color: var(--ly-blue); font-size: 13px; line-height: 1.45; }
.ly-header__phone strong a:hover { color: var(--ly-orange); }
.ly-mobile { display: none; margin-left: auto; }
.ly-mobile summary { list-style: none; cursor: pointer; font-size: 24px; color: var(--ly-blue); }
.ly-mobile summary::-webkit-details-marker { display: none; }
.ly-mobile__panel { position: absolute; left: 20px; right: 20px; top: 76px; padding: 18px; background: #fff; border-radius: 12px; box-shadow: var(--ly-shadow); }
.ly-mobile__panel ul { display: grid; gap: 6px; padding: 0; margin: 0; list-style: none; }
.ly-mobile__panel a { display: block; padding: 10px 12px; font-weight: 700; }

.ly-hero { position: relative; overflow: hidden; min-height: 660px; background: linear-gradient(120deg, #07162f 0%, #102b6a 62%, #1f4fa3 100%); color: #fff; }
.ly-hero::before, .ly-hero::after { content: ""; position: absolute; border-radius: 50%; border: 1px solid rgba(255,255,255,.12); }
.ly-hero::before { width: 620px; height: 620px; right: -180px; top: -280px; }
.ly-hero::after { width: 420px; height: 420px; right: 120px; bottom: -300px; }
.ly-hero__inner { position: relative; z-index: 2; min-height: 660px; display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 70px; }
.ly-hero__content { padding: 80px 0; }
.ly-hero__kicker { display: inline-flex; padding: 8px 13px; border: 1px solid rgba(255,255,255,.2); border-radius: 999px; color: #d9e6ff; font-size: 13px; letter-spacing: .12em; }
.ly-hero h1 { margin: 22px 0 20px; max-width: 680px; font-size: clamp(42px, 5.8vw, 72px); line-height: 1.08; letter-spacing: -.035em; }
.ly-hero h1 span { color: var(--ly-orange); }
.ly-hero p { max-width: 620px; color: rgba(255,255,255,.72); font-size: 18px; }
.ly-hero__actions { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 32px; }
.ly-hero__visual { position: relative; }
.ly-hero__visual::before { content: ""; position: absolute; inset: 10% -6% -6% 12%; background: var(--ly-orange); border-radius: 44% 56% 34% 66%; opacity: .95; transform: rotate(-5deg); }
.ly-hero__visual img { position: relative; z-index: 1; display: block; width: 100%; max-height: 500px; object-fit: contain; object-position: center; background: #fff; border-radius: 36% 64% 44% 56%; box-shadow: 0 28px 70px rgba(0,0,0,.35); }
.ly-hero__spec { position: absolute; z-index: 2; right: -20px; bottom: 20px; width: 210px; padding: 17px 18px; border-radius: 12px; background: #fff; color: var(--ly-ink); box-shadow: var(--ly-shadow); }
.ly-hero__spec strong { color: var(--ly-blue); display: block; font-size: 20px; }
.ly-hero__spec span { color: var(--ly-muted); font-size: 12px; }

.ly-about-grid { display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 74px; }
.ly-about-grid--solo { display: block; }
.ly-about-copy { position: relative; overflow: hidden; max-width: 1040px; padding: 52px 56px; border: 1px solid var(--ly-line); border-radius: var(--ly-radius); background: linear-gradient(135deg, #fff 0%, #f4f7fb 100%); box-shadow: 0 20px 55px rgba(16,43,106,.08); }
.ly-about-copy::after { content: "LY"; position: absolute; right: 28px; bottom: -58px; color: rgba(16,43,106,.035); font-size: 190px; font-weight: 950; line-height: 1; pointer-events: none; }
.ly-about-copy .ly-lead { max-width: 900px; }
.ly-about-visual { position: relative; min-height: 480px; border-radius: var(--ly-radius); overflow: hidden; background: #e8eef8; }
.ly-about-visual img { width: 100%; height: 100%; min-height: 480px; object-fit: cover; }
.ly-about-visual__badge { position: absolute; left: 24px; bottom: 24px; padding: 18px 22px; background: var(--ly-orange); color: #fff; border-radius: 12px; font-weight: 800; }
.ly-feature-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 15px 22px; margin: 28px 0 34px; padding: 0; list-style: none; }
.ly-feature-list li { position: relative; padding-left: 28px; font-weight: 650; }
.ly-feature-list li::before { content: "✓"; position: absolute; left: 0; color: var(--ly-orange); font-weight: 900; }
.ly-stats { display: grid; grid-template-columns: repeat(4, 1fr); background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius); box-shadow: var(--ly-shadow); transform: translateY(-32px); position: relative; z-index: 5; }
.ly-stat { padding: 28px 24px; text-align: center; border-right: 1px solid var(--ly-line); }
.ly-stat:last-child { border-right: 0; }
.ly-stat strong { display: block; color: var(--ly-blue); font-size: 31px; line-height: 1.1; }
.ly-stat span { color: var(--ly-muted); font-size: 13px; }

.ly-section-head { display: flex; justify-content: space-between; align-items: end; gap: 40px; margin-bottom: 38px; }
.ly-section-head .ly-title { max-width: 620px; }
.ly-categories { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 28px; }
.ly-chip { padding: 9px 16px; border: 1px solid var(--ly-line); border-radius: 999px; background: #fff; color: var(--ly-muted); font-size: 13px; font-weight: 700; }
.ly-chip:first-child { background: var(--ly-blue); color: #fff; border-color: var(--ly-blue); }
.ly-products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.ly-products > .ly-product:last-child:nth-child(3n+1) { grid-column: 2; }
.ly-product { overflow: hidden; background: #fff; border: 1px solid var(--ly-line); border-radius: var(--ly-radius); transition: .25s ease; }
.ly-product:hover { transform: translateY(-7px); box-shadow: var(--ly-shadow); border-color: transparent; }
.ly-product__image { position: relative; aspect-ratio: 4 / 3; display: grid; place-items: center; background: #eef2f8; overflow: hidden; }
.ly-product__image img { width: 100%; height: 100%; object-fit: contain; padding: 0; transition: transform .4s ease; }
.ly-product:hover .ly-product__image img { transform: scale(1.04); }
.ly-product__tag { position: absolute; left: 16px; top: 16px; padding: 6px 10px; background: var(--ly-orange); color: #fff; border-radius: 5px; font-size: 11px; font-weight: 800; }
.ly-product__body { padding: 24px; }
.ly-product h3 { margin: 0 0 10px; color: var(--ly-blue); font-size: 22px; }
.ly-product p { margin: 0 0 18px; color: var(--ly-muted); font-size: 14px; }
.ly-more { display: inline-flex; align-items: center; gap: 8px; color: var(--ly-orange); font-weight: 800; font-size: 14px; }
.ly-more::after { content: "→"; transition: transform .2s; }
.ly-more:hover::after { transform: translateX(4px); }

.ly-culture-section { background: linear-gradient(135deg, #07162f, #102b6a); color: #fff; }
.ly-culture-section .ly-title { color: #fff; }
.ly-culture-section .ly-lead { color: rgba(255,255,255,.7); }
.ly-culture { display: grid; grid-template-columns: .8fr .8fr 1.4fr; gap: 20px; }
.ly-culture-card { min-height: 250px; padding: 30px; border: 1px solid rgba(255,255,255,.13); border-radius: var(--ly-radius); background: rgba(255,255,255,.06); }
.ly-culture-card span { color: #ffb457; font-size: 12px; font-weight: 900; letter-spacing: .16em; }
.ly-culture-card h3 { margin: 14px 0 12px; color: #fff; font-size: 24px; }
.ly-culture-card p { margin: 0 0 10px; color: rgba(255,255,255,.75); }
.ly-culture-card strong { color: #fff; }

.ly-applications { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ly-application { position: relative; min-height: 220px; padding: 26px; display: flex; flex-direction: column; justify-content: flex-end; border-radius: 16px; overflow: hidden; color: #fff; background: linear-gradient(150deg, var(--ly-blue), var(--ly-navy)); }
.ly-application::before { content: ""; position: absolute; width: 180px; height: 180px; right: -70px; top: -80px; border: 1px solid rgba(255,255,255,.22); border-radius: 50%; }
.ly-application:nth-child(even) { background: linear-gradient(150deg, #d86b09, var(--ly-orange)); }
.ly-application__num { position: absolute; left: 24px; top: 20px; color: rgba(255,255,255,.38); font-size: 42px; font-weight: 900; }
.ly-application h3 { position: relative; margin: 0 0 6px; font-size: 20px; }
.ly-application p { position: relative; margin: 0; color: rgba(255,255,255,.72); font-size: 13px; }

.ly-cases { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.ly-cases--single { grid-template-columns: minmax(0, 560px); justify-content: center; }
.ly-case { position: relative; min-height: 350px; overflow: hidden; border-radius: var(--ly-radius); background: #dfe8f5; }
.ly-case img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: .35s; }
.ly-case::after { content: ""; position: absolute; inset: 30% 0 0; background: linear-gradient(transparent, rgba(7,22,47,.92)); }
.ly-case__body { position: absolute; z-index: 2; left: 0; right: 0; bottom: 0; padding: 26px; color: #fff; }
.ly-case__body small { color: #ffbd69; font-weight: 800; }
.ly-case h3 { margin: 7px 0 0; font-size: 21px; }
.ly-case:hover img { transform: scale(1.05); }

.ly-news { display: grid; grid-template-columns: 1.15fr .85fr; gap: 26px; }
.ly-news-featured, .ly-news-item { border: 1px solid var(--ly-line); border-radius: var(--ly-radius); background: #fff; overflow: hidden; }
.ly-news-featured__image { aspect-ratio: 16 / 8; background: linear-gradient(135deg, var(--ly-blue), var(--ly-blue-2)); display: grid; place-items: center; color: rgba(255,255,255,.7); font-weight: 900; letter-spacing: .12em; }
.ly-news-featured__body { padding: 28px; }
.ly-news-featured h3 { margin: 8px 0 12px; font-size: 25px; }
.ly-news-date { color: var(--ly-orange); font-size: 12px; font-weight: 800; }
.ly-news-list { display: grid; gap: 14px; }
.ly-news-item { padding: 20px 22px; }
.ly-news-item h3 { margin: 5px 0 7px; font-size: 18px; line-height: 1.35; }
.ly-news-item p { margin: 0; color: var(--ly-muted); font-size: 13px; }

.ly-cta { padding: 62px 0; background: linear-gradient(120deg, var(--ly-blue), var(--ly-blue-2)); color: #fff; }
.ly-cta__inner { display: flex; justify-content: space-between; align-items: center; gap: 40px; }
.ly-cta h2 { margin: 0 0 8px; font-size: clamp(28px, 4vw, 42px); }
.ly-cta p { margin: 0; color: rgba(255,255,255,.72); }

.ly-page-hero { padding: 82px 0; background: linear-gradient(120deg, var(--ly-navy), var(--ly-blue)); color: #fff; }
.ly-page-hero h1 { margin: 0 0 10px; font-size: clamp(36px, 5vw, 58px); }
.ly-page-hero p { max-width: 700px; margin: 0; color: rgba(255,255,255,.7); }
.ly-content { padding: 72px 0; }
.ly-content__inner { max-width: 900px; }
.ly-content h2 { color: var(--ly-blue); margin-top: 36px; }
.ly-contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 32px; }
.ly-contact-card { padding: 24px; border-radius: 14px; background: var(--ly-bg); border: 1px solid var(--ly-line); }
.ly-contact-card strong { color: var(--ly-blue); display: block; margin-bottom: 6px; }
.ly-product-detail { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.ly-product-detail__image { border: 1px solid var(--ly-line); border-radius: var(--ly-radius); overflow: hidden; background: var(--ly-bg); }
.ly-product-detail__image img { width: 100%; display: block; }
.ly-catalog { margin-top: 76px; padding-top: 60px; border-top: 1px solid var(--ly-line); }
.ly-catalog > img { display: block; width: min(760px, 100%); margin: 0 auto; border-radius: var(--ly-radius); box-shadow: var(--ly-shadow); }
.ly-specs { width: 100%; border-collapse: collapse; margin-top: 26px; }
.ly-specs th, .ly-specs td { padding: 12px 14px; border-bottom: 1px solid var(--ly-line); text-align: left; font-size: 14px; }
.ly-specs th { width: 34%; color: var(--ly-blue); background: var(--ly-bg); }
.ly-product-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.ly-footer { padding: 68px 0 0; background: var(--ly-navy); color: rgba(255,255,255,.7); }
.ly-footer__grid { display: grid; grid-template-columns: 1.4fr .7fr .8fr 1fr; gap: 46px; padding-bottom: 48px; }
.ly-footer h3 { margin: 0 0 16px; color: #fff; font-size: 17px; }
.ly-footer p { margin: 0 0 10px; font-size: 14px; }
.ly-phone-indent { display: inline-block; padding-left: 42px; }
.ly-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ly-footer a:hover { color: #fff; }
.ly-footer__brand { color: #fff; font-size: 21px; font-weight: 900; margin-bottom: 14px; }
.ly-footer__bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; display: flex; justify-content: space-between; gap: 20px; font-size: 12px; }

@media (max-width: 1020px) {
  .ly-nav, .ly-header__phone { display: none; }
  .ly-mobile { display: block; }
  .ly-brand { min-width: 0; }
  .ly-hero__inner { grid-template-columns: 1fr; padding-bottom: 70px; }
  .ly-hero__content { padding-bottom: 10px; }
  .ly-hero__visual { max-width: 620px; margin: auto; }
  .ly-about-grid { grid-template-columns: 1fr; }
  .ly-products, .ly-cases { grid-template-columns: repeat(2, 1fr); }
  .ly-products > .ly-product:last-child:nth-child(3n+1) { grid-column: auto; }
  .ly-applications { grid-template-columns: repeat(2, 1fr); }
  .ly-culture { grid-template-columns: 1fr 1fr; }
  .ly-culture-card--wide { grid-column: 1 / -1; }
  .ly-footer__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 700px) {
  :root { --ly-container: min(100% - 28px, 1180px); }
  .ly-topbar__inner { padding: 8px 0; align-items: flex-start; }
  .ly-topbar__meta span:first-child { display: none; }
  .ly-header__inner { min-height: 70px; }
  .ly-brand__name { font-size: 16px; }
  .ly-brand__tag { display: none; }
  .ly-section { padding: 68px 0; }
  .ly-hero, .ly-hero__inner { min-height: auto; }
  .ly-hero__content { padding-top: 66px; }
  .ly-hero h1 { font-size: 42px; }
  .ly-hero__spec { right: 5px; }
  .ly-stats { grid-template-columns: repeat(2, 1fr); }
  .ly-stat:nth-child(2) { border-right: 0; }
  .ly-stat:nth-child(-n+2) { border-bottom: 1px solid var(--ly-line); }
  .ly-section-head, .ly-cta__inner { display: block; }
  .ly-section-head .ly-button, .ly-cta .ly-button { margin-top: 22px; }
  .ly-products, .ly-cases, .ly-applications, .ly-news, .ly-contact-grid, .ly-product-detail { grid-template-columns: 1fr; }
  .ly-culture { grid-template-columns: 1fr; }
  .ly-culture-card--wide { grid-column: auto; }
  .ly-feature-list { grid-template-columns: 1fr; }
  .ly-about-copy { padding: 36px 26px; }
  .ly-footer__grid { grid-template-columns: 1fr; gap: 28px; }
  .ly-footer__bottom { display: block; }
}

/* Site-wide text contrast corrections */
body.leyou-industrial { color: #14213d; --ly-muted: #52617a; }
body.leyou-industrial :is(h1,h2,h3,h4,h5,h6) { color: #102b6a; }
body.leyou-industrial :is(.ly-hero,.ly-page-hero,.ly-cta,.ly-culture-section,.ly-application,.ly-footer,.ly-case__body) :is(h1,h2,h3,h4,h5,h6) { color: #fff; }
body.leyou-industrial .ly-hero h1 span { color: #ffac45; }
body.leyou-industrial :is(.ly-hero,.ly-page-hero,.ly-cta,.ly-culture-section,.ly-footer) p,
body.leyou-industrial .ly-culture-section .ly-lead { color: #e1e9f5; }
body.leyou-industrial .ly-topbar { color: #e1e9f5; }
body.leyou-industrial .ly-footer a { color: #e1e9f5; }
body.leyou-industrial .ly-footer a:hover { color: #fff; }
body.leyou-industrial :is(.ly-more,.ly-eyebrow,.ly-news-date) { color: #a64b00; }
body.leyou-industrial :is(.ly-hero,.ly-culture-section,.ly-cta,.ly-footer) :is(.ly-more,.ly-eyebrow) { color: #ffbd69; }
body.leyou-industrial .ly-button { background: #ad4e00; color: #fff; }
body.leyou-industrial .ly-button:hover { background: #873c00; color: #fff; }
body.leyou-industrial .ly-button--ghost { background: transparent; color: #fff; border-color: #b7c9e5; }
body.leyou-industrial .ly-button--ghost:hover { background: #102b6a; }
body.leyou-industrial .ly-button--outline { background: #fff; color: #102b6a; }
body.leyou-industrial .ly-button--outline:hover { background: #102b6a; color: #fff; }
body.leyou-industrial .ly-application:nth-child(even) { background: linear-gradient(150deg,#713108,#95430a); }
body.leyou-industrial .ly-application p { color: #fff; }
body.leyou-industrial .ly-application__num { color: #e1e9f5; }
body.leyou-industrial .ly-case__body { background: linear-gradient(180deg,rgba(7,22,47,.88),#07162f); }
body.leyou-industrial .ly-case__body small { color: #ffbd69; }
body.leyou-industrial .ly-news-featured__image { color: #e1e9f5; }
body.leyou-industrial .ly-content a:not(.ly-button) { color: #17488e; text-decoration: underline; text-underline-offset: 3px; }
body.leyou-industrial .ly-content a:not(.ly-button):hover { color: #102b6a; }
body.leyou-industrial a:focus-visible { outline: 3px solid #b25a00; outline-offset: 4px; }
