/* ============================================================
   Yinhai-Tianzhong Cranes (Dalian) Co., Ltd. — Corporate Website
   Design: industrial navy + machine-yellow accent, responsive
   ============================================================ */
:root {
  --navy-900: #0b1826;
  --navy-800: #10243a;
  --navy-700: #16324f;
  --navy-600: #1d4066;
  --accent: #f5a800;
  --accent-dark: #d18e00;
  --steel-100: #f4f6f8;
  --steel-200: #e6eaef;
  --steel-400: #9aa8b6;
  --text-900: #17222e;
  --text-600: #45566a;
  --white: #ffffff;
  --shadow: 0 10px 30px rgba(11, 24, 38, 0.10);
  --radius: 10px;
  --maxw: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "Microsoft YaHei", "PingFang SC", sans-serif;
  color: var(--text-900);
  background: var(--white);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
section { padding: 72px 0; }
.section-alt { background: var(--steel-100); }

/* ---------- Section headings ---------- */
.sec-head { max-width: 760px; margin: 0 auto 44px; text-align: center; }
.sec-head .kicker {
  display: inline-block; color: var(--accent-dark); font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase; font-size: 0.8rem; margin-bottom: 10px;
}
.sec-head h2 { font-size: clamp(1.6rem, 3.4vw, 2.3rem); color: var(--navy-800); line-height: 1.25; }
.sec-head h2 .cn { display: block; font-size: 0.62em; color: var(--text-600); font-weight: 500; margin-top: 6px; letter-spacing: 4px; }
.sec-head p { margin-top: 14px; color: var(--text-600); }

/* ---------- Top bar + Header ---------- */
.topbar { background: var(--navy-900); color: #c6d2de; font-size: 0.82rem; }
.topbar .container { display: flex; justify-content: space-between; align-items: center; height: 36px; }
.topbar a { color: #e8eef4; }
.topbar a:hover { color: var(--accent); }
.topbar .tb-right { display: flex; gap: 20px; align-items: center; }

header.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--steel-200);
  box-shadow: 0 2px 12px rgba(11, 24, 38, 0.06);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { height: 34px; width: auto; }
.brand .brand-name { display: flex; flex-direction: column; line-height: 1.15; }
.brand .brand-name b { font-size: 1rem; color: var(--navy-800); letter-spacing: 0.3px; }
.brand .brand-name span { font-size: 0.72rem; color: var(--text-600); }

nav.main-nav ul { display: flex; gap: 6px; }
nav.main-nav a {
  display: block; padding: 10px 16px; font-weight: 600; font-size: 0.93rem;
  color: var(--navy-800); border-radius: 6px; transition: all 0.18s ease;
}
nav.main-nav a:hover { background: var(--steel-100); color: var(--accent-dark); }
nav.main-nav a.active { color: var(--accent-dark); }
nav.main-nav a.active::after {
  content: ""; display: block; height: 2px; background: var(--accent);
  border-radius: 2px; margin-top: 3px;
}
.nav-cta {
  background: var(--accent); color: var(--navy-900) !important; padding: 10px 20px !important;
  border-radius: 6px; font-weight: 700 !important;
}
.nav-cta:hover { background: var(--accent-dark); color: var(--white) !important; }
.nav-cta.active::after { display: none; }

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 3px; background: var(--navy-800); margin: 5px 0; border-radius: 2px; transition: 0.25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 560px; display: flex; align-items: center;
  color: var(--white); overflow: hidden;
  background: var(--navy-900);
}
.hero .hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  opacity: 0.55;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(11,24,38,0.92) 0%, rgba(11,24,38,0.55) 45%, rgba(11,24,38,0.15) 100%);
}
.hero .container { position: relative; z-index: 2; padding-top: 60px; padding-bottom: 80px; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  background: rgba(245, 168, 0, 0.14); border: 1px solid rgba(245, 168, 0, 0.55);
  color: var(--accent); font-weight: 700; font-size: 0.82rem; letter-spacing: 2px;
  padding: 7px 16px; border-radius: 999px; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(1.9rem, 4.6vw, 3.2rem); line-height: 1.18; font-weight: 800;
  max-width: 780px; text-shadow: 0 2px 14px rgba(0,0,0,0.35);
}
.hero h1 em { color: var(--accent); font-style: normal; }
.hero .hero-cn { margin-top: 10px; font-size: 1rem; color: #d7e0e9; letter-spacing: 2px; }
.hero p.sub { margin-top: 18px; font-size: 1.08rem; color: #dfe7ee; max-width: 640px; }
.hero .hero-actions { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 28px; border-radius: 6px; font-weight: 700; font-size: 0.95rem;
  transition: all 0.2s ease; cursor: pointer; border: 2px solid transparent;
}
.btn-primary { background: var(--accent); color: var(--navy-900); }
.btn-primary:hover { background: var(--accent-dark); color: var(--white); transform: translateY(-2px); }
.btn-ghost { border-color: rgba(255,255,255,0.65); color: var(--white); }
.btn-ghost:hover { background: var(--white); color: var(--navy-900); }
.btn-outline { border-color: var(--navy-800); color: var(--navy-800); }
.btn-outline:hover { background: var(--navy-800); color: var(--white); }

/* ---------- Stats strip ---------- */
.stats { background: var(--navy-800); color: var(--white); padding: 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.stat { text-align: center; padding: 34px 16px; border-right: 1px solid rgba(255,255,255,0.10); }
.stat:last-child { border-right: none; }
.stat .num { font-size: 2.1rem; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat .num small { font-size: 1.1rem; font-weight: 700; }
.stat .label { margin-top: 6px; font-size: 0.88rem; color: #c8d4e0; }

/* ---------- Cards ---------- */
.cards-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.cards-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow); transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex; flex-direction: column; border: 1px solid var(--steel-200);
}
.card:hover { transform: translateY(-6px); box-shadow: 0 18px 40px rgba(11,24,38,0.16); }
.card .card-img { aspect-ratio: 4 / 3; overflow: hidden; background: var(--steel-200); }
.card .card-img img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.card:hover .card-img img { transform: scale(1.05); }
.card .card-body { padding: 22px 22px 26px; flex: 1; display: flex; flex-direction: column; }
.card h3 { color: var(--navy-800); font-size: 1.12rem; margin-bottom: 8px; }
.card .cn-sub { font-size: 0.8rem; color: var(--text-600); letter-spacing: 1px; margin-bottom: 10px; }
.card p { font-size: 0.9rem; color: var(--text-600); flex: 1; }
.card .card-link {
  margin-top: 16px; font-weight: 700; font-size: 0.88rem; color: var(--accent-dark);
  display: inline-flex; align-items: center; gap: 6px;
}
.card .card-link:hover { gap: 10px; }

/* ---------- Feature rows ---------- */
.feature-row { display: grid; grid-template-columns: 1.05fr 1fr; gap: 52px; align-items: center; }
.feature-row.rev { grid-template-columns: 1fr 1.05fr; }
.feature-row .fr-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.feature-row h3 { font-size: 1.5rem; color: var(--navy-800); margin-bottom: 14px; }
.feature-row p { color: var(--text-600); margin-bottom: 14px; }
.feature-row ul.checks { margin: 14px 0 22px; }
.feature-row ul.checks li {
  padding-left: 30px; position: relative; margin-bottom: 10px; color: var(--text-900); font-weight: 500;
}
.feature-row ul.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--accent); color: var(--navy-900); font-size: 0.75rem; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
}

/* ---------- Badges / chips ---------- */
.badge-row { display: flex; flex-wrap: wrap; gap: 10px; }
.badge {
  background: var(--white); border: 1px solid var(--steel-200); border-radius: 999px;
  padding: 9px 18px; font-size: 0.86rem; font-weight: 600; color: var(--navy-700);
  box-shadow: 0 2px 8px rgba(11,24,38,0.05);
}

/* ---------- Tables ---------- */
.spec-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; background: var(--white); box-shadow: var(--shadow); border-radius: var(--radius); overflow: hidden; }
.spec-table th, .spec-table td { padding: 13px 18px; text-align: left; border-bottom: 1px solid var(--steel-200); vertical-align: top; }
.spec-table thead th { background: var(--navy-800); color: var(--white); font-weight: 700; }
.spec-table tbody tr:nth-child(even) { background: var(--steel-100); }
.spec-table tbody tr:last-child td { border-bottom: none; }
.spec-table td.hl { color: var(--accent-dark); font-weight: 700; }
.table-note { font-size: 0.8rem; color: var(--text-600); margin-top: 10px; }

/* ---------- Timeline ---------- */
.timeline { position: relative; max-width: 860px; margin: 0 auto; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 9px; top: 6px; bottom: 6px; width: 3px;
  background: linear-gradient(var(--accent), var(--navy-600)); border-radius: 3px;
}
.tl-item { position: relative; margin-bottom: 34px; }
.tl-item::before {
  content: ""; position: absolute; left: -33px; top: 7px; width: 17px; height: 17px;
  border-radius: 50%; background: var(--white); border: 4px solid var(--accent);
  box-shadow: 0 0 0 3px rgba(245,168,0,0.25);
}
.tl-item .tl-date { font-weight: 800; color: var(--accent-dark); font-size: 0.88rem; letter-spacing: 1px; text-transform: uppercase; }
.tl-item h4 { color: var(--navy-800); font-size: 1.1rem; margin: 4px 0 6px; }
.tl-item p { color: var(--text-600); font-size: 0.94rem; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.gallery.g-2 { grid-template-columns: repeat(2, 1fr); }
.gallery figure { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4/3; cursor: pointer; box-shadow: var(--shadow); }
.gallery figure img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.gallery figure:hover img { transform: scale(1.06); }
.gallery figcaption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 16px 12px;
  background: linear-gradient(transparent, rgba(11,24,38,0.85));
  color: var(--white); font-size: 0.82rem; font-weight: 600;
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 300; background: rgba(11,24,38,0.93);
  display: none; align-items: center; justify-content: center; flex-direction: column; padding: 30px;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 92vw; max-height: 82vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,0.5); }
.lightbox .lb-cap { color: #dfe7ee; margin-top: 14px; font-size: 0.92rem; }
.lightbox .lb-close {
  position: absolute; top: 18px; right: 26px; font-size: 2rem; color: var(--white);
  background: none; border: none; cursor: pointer; line-height: 1;
}

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(105deg, var(--navy-900) 0%, var(--navy-700) 100%);
  color: var(--white); padding: 84px 0 64px; position: relative; overflow: hidden;
}
.page-hero::after {
  content: ""; position: absolute; right: -80px; top: -80px; width: 380px; height: 380px;
  border: 40px solid rgba(245,168,0,0.12); border-radius: 50%;
}
.page-hero .kicker { color: var(--accent); font-weight: 700; letter-spacing: 3px; text-transform: uppercase; font-size: 0.82rem; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.7rem); margin-top: 8px; }
.page-hero .cn { color: #b9c7d4; letter-spacing: 6px; margin-top: 8px; font-size: 1rem; }
.page-hero p.lead { margin-top: 16px; max-width: 700px; color: #d5dee7; }

/* ---------- Breadcrumb ---------- */
.crumbs { font-size: 0.85rem; color: var(--text-600); padding: 18px 0 0; }
.crumbs a { color: var(--accent-dark); font-weight: 600; }

/* ---------- Advantages grid (numbered) ---------- */
.adv-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.adv-item {
  background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius);
  padding: 26px; box-shadow: 0 4px 14px rgba(11,24,38,0.06); position: relative;
}
.adv-item .adv-num {
  font-size: 2rem; font-weight: 800; color: rgba(245,168,0,0.9); line-height: 1; margin-bottom: 12px;
}
.adv-item h4 { color: var(--navy-800); margin-bottom: 8px; font-size: 1.05rem; }
.adv-item p { font-size: 0.9rem; color: var(--text-600); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; }
.contact-info-card { background: var(--navy-800); color: var(--white); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-info-card h3 { color: var(--accent); margin-bottom: 18px; font-size: 1.2rem; }
.contact-line { display: flex; gap: 14px; margin-bottom: 20px; align-items: flex-start; }
.contact-line .ico {
  flex: 0 0 40px; width: 40px; height: 40px; border-radius: 8px; background: rgba(245,168,0,0.15);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.contact-line b { display: block; font-size: 0.85rem; letter-spacing: 1px; color: #a9bacb; text-transform: uppercase; }
.contact-line span, .contact-line a { color: var(--white); font-size: 0.98rem; word-break: break-word; }
.contact-line a:hover { color: var(--accent); }
.contact-form { background: var(--white); border: 1px solid var(--steel-200); border-radius: var(--radius); padding: 36px; box-shadow: var(--shadow); }
.contact-form h3 { color: var(--navy-800); margin-bottom: 6px; }
.contact-form .form-note { color: var(--text-600); font-size: 0.86rem; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form-group { margin-bottom: 16px; }
.form-group label { display: block; font-weight: 600; font-size: 0.86rem; margin-bottom: 6px; color: var(--navy-800); }
.form-group input, .form-group textarea, .form-group select {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--steel-200); border-radius: 6px;
  font-size: 0.94rem; font-family: inherit; color: var(--text-900); background: var(--steel-100);
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none; border-color: var(--accent); background: var(--white);
}

/* ---------- CTA band ---------- */
.cta-band { background: linear-gradient(100deg, var(--navy-900), var(--navy-700)); color: var(--white); text-align: center; }
.cta-band h2 { font-size: clamp(1.5rem, 3vw, 2.1rem); }
.cta-band p { color: #c8d4e0; margin: 12px auto 26px; max-width: 600px; }

/* ---------- Footer ---------- */
footer.site-footer { background: var(--navy-900); color: #9fb1c2; padding: 60px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding-bottom: 44px; }
.footer-grid h4 { color: var(--white); font-size: 0.95rem; letter-spacing: 1px; margin-bottom: 16px; text-transform: uppercase; }
.footer-grid .f-logo { height: 30px; margin-bottom: 14px; border-radius: 4px; background: #fff; padding: 4px 8px; width: fit-content; }
.footer-grid p, .footer-grid li { font-size: 0.88rem; margin-bottom: 10px; }
.footer-grid a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.08); padding: 20px 0; font-size: 0.8rem; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.visible { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: 0.1s; }
.reveal.d2 { transition-delay: 0.2s; }
.reveal.d3 { transition-delay: 0.3s; }

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
  .cards-grid-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: none; }
  .stat { border-bottom: 1px solid rgba(255,255,255,0.10); }
  .stat:nth-child(3), .stat:nth-child(4) { border-bottom: none; }
  .feature-row, .feature-row.rev { grid-template-columns: 1fr; gap: 30px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  section { padding: 52px 0; }
  .nav-toggle { display: block; }
  nav.main-nav {
    position: absolute; top: 100%; left: 0; right: 0;
    background: var(--white); border-bottom: 1px solid var(--steel-200);
    box-shadow: 0 16px 30px rgba(11,24,38,0.12);
    display: none; padding: 10px 24px 20px;
  }
  nav.main-nav.open { display: block; }
  nav.main-nav ul { flex-direction: column; gap: 2px; }
  nav.main-nav a { padding: 13px 10px; border-bottom: 1px solid var(--steel-100); }
  nav.main-nav a.active::after { display: none; }
  .nav-cta { margin-top: 10px; text-align: center; justify-content: center; display: flex; }
  .cards-grid, .cards-grid-3, .adv-grid, .gallery, .gallery.g-2 { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .hero { min-height: 480px; }
  .topbar .tb-right span.hide-sm { display: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .timeline { padding-left: 28px; }
}
