/* ============================================================
   Linyi Chengli Rigging Co., Ltd. — Apple-style design system
   ============================================================ */

:root {
  --nav-bg: rgba(22, 22, 23, 0.8);
  --text: #1d1d1f;
  --text-2: #86868b;
  --blue: #0071e3;
  --blue-hover: #0077ed;
  --bg: #ffffff;
  --bg-2: #f5f5f7;
  --border: #d2d2d7;
  --radius: 18px;
  --max-w: 1024px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro SC",
    "PingFang SC", "Helvetica Neue", "Microsoft YaHei", "Noto Sans SC", sans-serif;
  color: var(--text);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.47;
  overflow-x: hidden;
}

a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

.container { max-width: var(--max-w); margin: 0 auto; padding: 0 22px; }

/* ---------- Nav (apple.com.cn dark translucent bar) ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 999;
  height: 48px;
  background: var(--nav-bg);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
}
.nav-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 0 22px;
  height: 100%;
  display: flex; align-items: center; justify-content: space-between;
}
.nav-logo {
  color: #f5f5f7; font-size: 19px; font-weight: 600; letter-spacing: .2px;
  opacity: .9; transition: opacity .3s;
}
.nav-logo:hover { opacity: 1; text-decoration: none; }
.nav-logo .logo-dot { color: #2997ff; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a {
  color: rgba(245, 245, 247, 0.82); font-size: 12.5px; font-weight: 400;
  transition: color .3s;
}
.nav-links a:hover { color: #fff; text-decoration: none; }
.nav-links a.lang-switch {
  border: 1px solid rgba(245,245,247,.35); border-radius: 999px;
  padding: 2px 10px; font-size: 11px; color: #f5f5f7;
}
.nav-links a.lang-switch:hover { border-color: #f5f5f7; }

/* Mobile hamburger */
.nav-burger {
  display: none; background: none; border: none; cursor: pointer;
  width: 40px; height: 40px; position: relative; z-index: 1001;
}
.nav-burger span {
  display: block; width: 17px; height: 1.5px; background: #f5f5f7;
  position: absolute; left: 11px; transition: transform .3s, opacity .3s, top .3s;
}
.nav-burger span:nth-child(1) { top: 15px; }
.nav-burger span:nth-child(2) { top: 21px; }
.nav-burger.open span:nth-child(1) { top: 18px; transform: rotate(45deg); }
.nav-burger.open span:nth-child(2) { top: 18px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 1000;
  background: #000;
  display: flex; flex-direction: column; justify-content: center;
  padding: 60px 40px;
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.mobile-menu.open { opacity: 1; pointer-events: auto; }
.mobile-menu a {
  color: #f5f5f7; font-size: 28px; font-weight: 600;
  padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.08);
}
.mobile-menu a:hover { text-decoration: none; color: #2997ff; }

/* ---------- Hero (index) — light Apple product-page stage ---------- */
.hero {
  min-height: 92vh;
  background:
    radial-gradient(1000px 520px at 50% -10%, rgba(0, 113, 227, .10), transparent 62%),
    radial-gradient(760px 420px at 88% 105%, rgba(88, 86, 214, .08), transparent 60%),
    linear-gradient(180deg, #fbfbfd 0%, #f5f5f7 100%);
  color: var(--text);
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
  padding: 140px 22px 80px;
  position: relative; overflow: hidden;
}
.hero-eyebrow {
  font-size: 19px; font-weight: 600; color: var(--blue);
  letter-spacing: .5px; margin-bottom: 8px;
}
.hero h1 {
  font-size: clamp(44px, 7.2vw, 84px);
  font-weight: 700; line-height: 1.05; letter-spacing: -.015em;
  background: linear-gradient(180deg, #1d1d1f 35%, #6e6e73 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-sub {
  margin-top: 18px; font-size: clamp(19px, 2.4vw, 26px);
  color: var(--text-2); font-weight: 500; max-width: 640px;
}
.hero-links { margin-top: 26px; display: flex; gap: 30px; flex-wrap: wrap; justify-content: center; }
.hero-links a { color: var(--blue); font-size: 19px; font-weight: 500; }
.hero-links a:hover { text-decoration: underline; }
.hero-stage {
  margin-top: 56px;
  max-width: 640px; width: 90%;
  background: #fff;
  border-radius: 24px;
  padding: 18px;
  box-shadow:
    0 2px 6px rgba(0,0,0,.04),
    0 30px 70px rgba(0,0,0,.12);
  transition: transform .5s cubic-bezier(.2,.8,.2,1), box-shadow .5s;
}
.hero-stage:hover {
  transform: translateY(-4px);
  box-shadow:
    0 2px 6px rgba(0,0,0,.05),
    0 40px 90px rgba(0,0,0,.16);
}
.hero-img {
  width: 100%; border-radius: 12px;
  object-fit: cover; aspect-ratio: 4 / 3;
}
.hero-scroll {
  position: absolute; bottom: 22px; left: 50%; transform: translateX(-50%);
  color: #86868b; font-size: 20px; animation: bounce 2s infinite;
}
@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 8px); }
}

/* ---------- Section shells ---------- */
.section { padding: 90px 0; }
.section-gray { background: var(--bg-2); }
.section-black { background: #000; color: #f5f5f7; }
.section-head { text-align: center; margin-bottom: 52px; }
.section-head h2 {
  font-size: clamp(32px, 4.6vw, 52px); font-weight: 700;
  letter-spacing: -.01em; line-height: 1.1;
}
.section-black .section-head h2 {
  background: linear-gradient(180deg, #fff 40%, #a1a1a6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.section-head p {
  margin-top: 14px; font-size: 19px; color: var(--text-2);
  max-width: 620px; margin-left: auto; margin-right: auto;
}
.section-black .section-head p { color: #a1a1a6; }

/* ---------- Product tiles grid (homepage) ---------- */
.tile-grid {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}
.tile {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  transition: transform .45s cubic-bezier(.2,.8,.2,1), box-shadow .45s;
}
.tile:hover {
  transform: scale(1.015);
  box-shadow: 0 14px 40px rgba(0,0,0,.10);
}
.tile-img-wrap {
  background: linear-gradient(160deg, #fbfbfd, #f0f0f3);
  display: flex; align-items: center; justify-content: center;
  padding: 26px; min-height: 300px;
  cursor: pointer; position: relative;
}
.tile-img-wrap img {
  max-height: 320px; width: auto; max-width: 100%;
  object-fit: contain; transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.tile:hover .tile-img-wrap img { transform: scale(1.04); }
.tile-body { padding: 22px 26px 26px; text-align: center; }
.tile-body h3 { font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.tile-body .tile-en { font-size: 14px; color: var(--text-2); margin-top: 2px; }
.tile-body .tile-spec {
  font-size: 14px; color: var(--text-2); margin-top: 10px; line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.tile-body .tile-more {
  display: inline-block; margin-top: 14px; font-size: 15px;
  color: var(--blue); font-weight: 500;
}
.tile-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(29, 29, 31, .78); color: #f5f5f7;
  font-size: 11.5px; padding: 4px 12px; border-radius: 999px;
  backdrop-filter: blur(6px); letter-spacing: .3px;
}

/* ---------- Big feature band (dark) ---------- */
.feature-band {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  align-items: center;
}
.feature-band .fb-text h3 {
  font-size: clamp(28px, 3.6vw, 40px); font-weight: 700; line-height: 1.12;
}
.feature-band .fb-text p { margin-top: 16px; font-size: 17px; color: #a1a1a6; line-height: 1.65; }
.feature-band .fb-text ul { margin-top: 18px; list-style: none; }
.feature-band .fb-text li {
  padding: 9px 0 9px 26px; position: relative; color: #d2d2d7; font-size: 16px;
  border-bottom: 1px solid rgba(255,255,255,.07);
}
.feature-band .fb-text li::before {
  content: "✓"; position: absolute; left: 0; color: #2997ff; font-weight: 700;
}
.feature-band img.fb-single {
  border-radius: var(--radius); width: 100%;
  object-fit: cover; aspect-ratio: 4 / 3;
  box-shadow: 0 24px 70px rgba(0,0,0,.5);
}

/* Factory photo carousel (black section) */
.fb-carousel {
  position: relative; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 24px 70px rgba(0,0,0,.5); user-select: none;
}
.fb-track {
  display: flex; transition: transform .6s cubic-bezier(.25,.8,.25,1);
}
.fb-slide {
  min-width: 100%; width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  pointer-events: none;
}
.fb-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(0,0,0,.35); border: none; color: #fff;
  width: 42px; height: 42px; border-radius: 50%; font-size: 22px;
  cursor: pointer; backdrop-filter: blur(4px); transition: background .25s;
  display: flex; align-items: center; justify-content: center;
  line-height: 1;
}
.fb-arrow:hover { background: rgba(0,0,0,.65); }
.fb-prev { left: 12px; }
.fb-next { right: 12px; }
.fb-dots {
  position: absolute; bottom: 14px; left: 0; right: 0;
  display: flex; justify-content: center; gap: 8px;
}
.fb-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: all .3s; cursor: pointer;
}
.fb-dot.active { background: #fff; transform: scale(1.25); }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.stat {
  background: #fff; border-radius: var(--radius); padding: 34px 18px;
  text-align: center; box-shadow: 0 4px 18px rgba(0,0,0,.05);
}
.stat b {
  display: block; font-size: clamp(30px, 4vw, 46px); font-weight: 700;
  background: linear-gradient(135deg, #0071e3, #5856d6);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
}
.stat span { display: block; margin-top: 6px; font-size: 15px; color: var(--text-2); }

/* ---------- Category cards — light cards for white-bg product shots ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat-card {
  border-radius: var(--radius); overflow: hidden;
  display: flex; flex-direction: column;
  background: #fff;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  transition: transform .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s;
}
.cat-card:hover { transform: translateY(-5px); text-decoration: none; box-shadow: 0 16px 44px rgba(0,0,0,.12); }
.cat-card .cat-photo {
  flex: 1; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(170deg, #ffffff 0%, #f5f5f7 100%);
  padding: 26px 18px; min-height: 210px;
}
.cat-card .cat-photo img {
  max-height: 190px; max-width: 100%; object-fit: contain;
  transition: transform .5s cubic-bezier(.2,.8,.2,1);
}
.cat-card:hover .cat-photo img { transform: scale(1.05); }
.cat-card .cat-label {
  padding: 14px 16px 18px; text-align: center; color: var(--text);
}
.cat-card .cat-label b { font-size: 18px; font-weight: 600; display: block; }
.cat-card .cat-label span { font-size: 12.5px; color: var(--text-2); }

/* White podium card for white-bg photos placed on dark sections */
.img-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 2px 6px rgba(0,0,0,.08), 0 26px 70px rgba(0,0,0,.5);
}
.img-card img { width: 100%; display: block; object-fit: cover; aspect-ratio: 4 / 3; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(900px 400px at 50% 0%, rgba(41, 151, 255, .25), transparent 65%),
    #0b0b0d;
  color: #f5f5f7; text-align: center; padding: 110px 22px;
}
.cta-band h2 { font-size: clamp(30px, 4.4vw, 48px); font-weight: 700; }
.cta-band p { margin-top: 12px; color: #a1a1a6; font-size: 19px; }
.btn {
  display: inline-block; margin-top: 28px;
  background: var(--blue); color: #fff;
  padding: 12px 30px; border-radius: 999px;
  font-size: 17px; font-weight: 500;
  transition: background .3s, transform .3s;
}
.btn:hover { background: var(--blue-hover); text-decoration: none; transform: translateY(-1px); }
.btn-ghost {
  background: transparent; border: 1px solid #6e6e73; color: #2997ff;
  margin-left: 14px;
}
.btn-ghost:hover { border-color: #2997ff; background: transparent; }

/* ---------- Page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(1000px 500px at 50% -20%, rgba(41,151,255,.18), transparent 60%),
    #0b0b0d;
  color: #f5f5f7; text-align: center;
  padding: 130px 22px 70px;
}
.page-hero h1 { font-size: clamp(34px, 5vw, 56px); font-weight: 700; }
.page-hero p { margin-top: 12px; color: #a1a1a6; font-size: 20px; }

/* ---------- Filter tabs ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; justify-content: center;
  margin-bottom: 40px;
}
.filter-btn {
  border: 1px solid var(--border); background: #fff; color: var(--text);
  padding: 7px 18px; border-radius: 999px; font-size: 14px; cursor: pointer;
  transition: all .25s;
}
.filter-btn:hover { border-color: var(--blue); color: var(--blue); }
.filter-btn.active { background: var(--blue); border-color: var(--blue); color: #fff; }

/* ---------- Catalog grid ---------- */
.catalog-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
}
.prod-card {
  background: #fff; border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
  transition: transform .4s, box-shadow .4s;
}
.prod-card:hover { transform: translateY(-4px); box-shadow: 0 16px 44px rgba(0,0,0,.1); }
.prod-card .pc-img {
  background: linear-gradient(160deg, #fbfbfd, #efeff2);
  display: flex; align-items: center; justify-content: center;
  padding: 20px; height: 250px; cursor: zoom-in;
}
.prod-card .pc-img img { max-height: 210px; max-width: 100%; object-fit: contain; }
.prod-card .pc-body { padding: 16px 18px 18px; text-align: center; }
.prod-card .pc-body h4 { font-size: 16.5px; font-weight: 600; }
.prod-card .pc-body .pc-en { font-size: 12.5px; color: var(--text-2); margin-top: 2px; }
.prod-card .pc-body .pc-spec { font-size: 13px; color: var(--text-2); margin-top: 6px; font-variant-numeric: tabular-nums; }
.cat-section-title {
  font-size: 30px; font-weight: 700; margin: 64px 0 24px;
  letter-spacing: -.01em;
}
.cat-section-title small {
  display: block; font-size: 15px; font-weight: 400;
  color: var(--text-2); margin-top: 4px;
}

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 2000;
  background: rgba(0,0,0,.92);
  display: flex; align-items: center; justify-content: center;
  opacity: 0; pointer-events: none; transition: opacity .3s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img {
  max-width: 88vw; max-height: 82vh; object-fit: contain;
  border-radius: 10px;
}
.lightbox-caption {
  position: absolute; bottom: 30px; left: 0; right: 0;
  text-align: center; color: #f5f5f7; font-size: 15px;
}
.lb-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,.1); border: none; color: #fff;
  width: 46px; height: 46px; border-radius: 50%; font-size: 20px;
  cursor: pointer; transition: background .25s;
}
.lb-btn:hover { background: rgba(255,255,255,.24); }
.lb-prev { left: 22px; }
.lb-next { right: 22px; }
.lb-close {
  position: absolute; top: 20px; right: 24px; background: none;
  border: none; color: #fff; font-size: 30px; cursor: pointer; opacity: .8;
}
.lb-close:hover { opacity: 1; }

/* ---------- About page ---------- */
.about-hero-img {
  border-radius: var(--radius); overflow: hidden; margin-top: 48px;
  box-shadow: 0 24px 70px rgba(0,0,0,.12);
}
.about-hero-img img { width: 100%; object-fit: cover; aspect-ratio: 21 / 9; }
.about-grid {
  display: grid; grid-template-columns: 1.2fr .8fr; gap: 44px; align-items: start;
}
.about-text p { margin-bottom: 18px; font-size: 17px; line-height: 1.75; color: #424245; }
.about-aside .stat { margin-bottom: 14px; text-align: left; padding: 24px 26px; }
.about-aside .stat b { font-size: 34px; }
.value-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.value-card {
  background: #fff; border-radius: var(--radius); padding: 30px 24px;
  box-shadow: 0 4px 18px rgba(0,0,0,.05); text-align: center;
}
.value-card .vc-icon {
  width: 52px; height: 52px; margin: 0 auto 16px; border-radius: 14px;
  background: linear-gradient(135deg, #0071e3, #5856d6);
  color: #fff; font-size: 24px; line-height: 52px;
}
.value-card h4 { font-size: 18px; font-weight: 600; }
.value-card p { margin-top: 8px; font-size: 14.5px; color: var(--text-2); line-height: 1.6; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.contact-card {
  background: #fff; border-radius: var(--radius); padding: 34px 30px;
  box-shadow: 0 4px 18px rgba(0,0,0,.05);
}
.contact-card h3 { font-size: 22px; font-weight: 600; margin-bottom: 20px; }
.contact-row {
  display: flex; gap: 16px; padding: 15px 0;
  border-bottom: 1px solid var(--border); align-items: flex-start;
}
.contact-row:last-child { border-bottom: none; }
.contact-row .cr-icon {
  width: 40px; height: 40px; flex-shrink: 0; border-radius: 10px;
  background: #eef4ff; color: var(--blue);
  display: flex; align-items: center; justify-content: center; font-size: 18px;
}
.contact-row b { display: block; font-size: 15px; }
.contact-row span { display: block; font-size: 14px; color: var(--text-2); margin-top: 2px; }
.contact-form label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--text-2); margin: 16px 0 6px; text-transform: uppercase; letter-spacing: .4px;
}
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--border); border-radius: 10px;
  padding: 12px 14px; font-size: 16px; font-family: inherit;
  transition: border-color .25s, box-shadow .25s; background: #fff;
}
.contact-form input:focus, .contact-form textarea:focus {
  outline: none; border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(0, 113, 227, .12);
}
.map-wrap {
  border-radius: var(--radius); overflow: hidden; margin-top: 20px;
  background: #e8e8ed; position: relative;
}
.map-wrap iframe { width: 100%; height: 360px; border: 0; display: block; }

/* ---------- Footer (apple.com.cn style) ---------- */
footer { background: var(--bg-2); padding: 44px 0 34px; font-size: 12.5px; color: var(--text-2); }
.footer-cols {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 24px;
  padding-bottom: 26px; border-bottom: 1px solid var(--border);
}
.footer-cols h5 { font-size: 12.5px; font-weight: 600; color: var(--text); margin-bottom: 10px; }
.footer-cols a { display: block; color: var(--text-2); padding: 3px 0; }
.footer-cols a:hover { color: var(--text); }
.footer-brand p { line-height: 1.7; max-width: 300px; }
.footer-note {
  padding: 16px 0 0; display: flex; justify-content: space-between;
  flex-wrap: wrap; gap: 8px;
}

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(34px); transition: opacity .8s ease, transform .8s cubic-bezier(.2,.8,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .cat-grid { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .feature-band { grid-template-columns: 1fr; gap: 30px; }
  .about-grid { grid-template-columns: 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 700px) {
  .nav-links { display: none; }
  .nav-burger { display: block; }
  .tile-grid { grid-template-columns: 1fr; }
  .catalog-grid { grid-template-columns: 1fr; }
  .hero { min-height: 88vh; padding-top: 110px; }
  .hero-stage { margin-top: 40px; padding: 12px; }
  .section { padding: 64px 0; }
  .tile-img-wrap { min-height: 240px; padding: 18px; }
  .tile-img-wrap img { max-height: 250px; }
  .btn-ghost { margin-left: 0; margin-top: 12px; }
  .value-grid { grid-template-columns: 1fr; }
  .footer-cols { grid-template-columns: 1fr; }
  .lb-btn { display: none; }
  .prod-card .pc-img { height: 210px; }
}

@media (max-width: 700px) {
  .fb-arrow { display: none; }
}
