/* =========================================================
   DALONG — Hangzhou Dalong Packing Material Co., Ltd.
   Global stylesheet
   ========================================================= */
:root {
  --paper: #faf7f2;
  --surface: #ffffff;
  --ink: #21252e;
  --muted: #6d7480;
  --line: #e8e2d8;
  --accent: #c8342b;
  --accent-dark: #9e241d;
  --accent-soft: #fbeeec;
  --blue: #2b3990;
  --gold: #c99a3f;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(33, 37, 46, 0.08);
  --shadow-sm: 0 4px 14px rgba(33, 37, 46, 0.06);
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body: "Inter", "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.7;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

.container { width: min(1180px, 92%); margin: 0 auto; }

/* ---------- Top bar ---------- */
.topbar {
  background: var(--ink);
  color: #cfd4dd;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  min-height: 38px; gap: 16px; flex-wrap: wrap;
}
.topbar a { color: #fff; }
.topbar span.dot { color: var(--gold); margin-right: 6px; }
.topbar .tb-right { display: flex; gap: 18px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav-wrap { display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img.mark { width: 44px; height: 44px; border-radius: 8px; object-fit: cover; }
.brand .b-name { font-weight: 800; font-size: 19px; letter-spacing: 0.5px; line-height: 1.2; }
.brand .b-sub { font-size: 11px; color: var(--muted); letter-spacing: 1.6px; text-transform: uppercase; }

.main-nav ul { display: flex; gap: 6px; align-items: center; }
.main-nav a {
  display: block; padding: 10px 15px; font-size: 15px; font-weight: 600;
  color: var(--ink); border-radius: 8px; transition: 0.2s;
}
.main-nav a:hover { color: var(--accent); background: var(--accent-soft); }
.main-nav a.active { color: var(--accent); }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent); color: #fff !important;
  padding: 11px 22px; border-radius: 999px; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: 0.2s;
}
.btn:hover { background: var(--accent-dark); transform: translateY(-1px); }
.btn.ghost {
  background: transparent; color: var(--ink) !important;
  border: 1.5px solid var(--ink);
}
.btn.ghost:hover { background: var(--ink); color: #fff !important; }
.btn.light { background: #fff; color: var(--ink) !important; }
.btn.light:hover { background: var(--gold); color: #fff !important; }

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

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: linear-gradient(120deg, #f6efe3 0%, #fbf7ef 55%, #f3e9d7 100%);
}
.hero-inner {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 40px;
  align-items: center; padding: 72px 0 84px;
}
.hero-kicker {
  display: inline-flex; align-items: center; gap: 8px;
  background: #fff; border: 1px solid var(--line);
  padding: 7px 16px; border-radius: 999px;
  font-size: 13px; font-weight: 700; color: var(--accent);
  letter-spacing: 1px; text-transform: uppercase; margin-bottom: 22px;
}
.hero h1 {
  font-family: var(--font-display);
  font-size: clamp(34px, 4.6vw, 56px);
  line-height: 1.15; font-weight: 700; margin-bottom: 20px;
}
.hero h1 em { font-style: normal; color: var(--accent); }
.hero p.lead { color: var(--muted); font-size: 18px; max-width: 520px; margin-bottom: 32px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-media { position: relative; }
.hero-media img {
  border-radius: 20px; box-shadow: var(--shadow); width: 100%; object-fit: cover;
  aspect-ratio: 4 / 3;
}
.hero-badge {
  position: absolute; left: -18px; bottom: 26px;
  background: #fff; border-radius: 16px; box-shadow: var(--shadow);
  padding: 14px 20px; display: flex; gap: 14px; align-items: center;
}
.hero-badge .num { font-family: var(--font-display); font-size: 34px; font-weight: 700; color: var(--accent); line-height: 1; }
.hero-badge .lbl { font-size: 12.5px; color: var(--muted); line-height: 1.4; }

/* ---------- Section scaffolding ---------- */
.section { padding: 84px 0; }
.section.tight { padding: 60px 0; }
.section.alt { background: #fff; }
.sec-head { text-align: center; max-width: 680px; margin: 0 auto 52px; }
.sec-kicker {
  color: var(--accent); font-weight: 800; letter-spacing: 2.5px;
  text-transform: uppercase; font-size: 13px; margin-bottom: 12px;
}
.sec-head h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.4vw, 40px); line-height: 1.2; margin-bottom: 14px;
}
.sec-head p { color: var(--muted); }
.sec-head.left { text-align: left; margin-left: 0; }

/* ---------- Stats ---------- */
.stats-band { background: var(--ink); color: #fff; padding: 52px 0; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; text-align: center; }
.stat .n { font-family: var(--font-display); font-size: 46px; font-weight: 700; color: var(--gold); line-height: 1.1; }
.stat .t { font-size: 14px; color: #b9c0cc; margin-top: 6px; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px 26px;
  box-shadow: var(--shadow-sm); transition: 0.25s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.card h3 { font-size: 19px; margin: 16px 0 10px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .ico {
  width: 54px; height: 54px; border-radius: 13px; overflow: hidden;
  background: var(--accent-soft); display: flex; align-items: center; justify-content: center;
}
.card .ico img { width: 34px; height: 34px; object-fit: contain; }

/* ---------- Product cards ---------- */
.prod-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: 0.25s; display: flex; flex-direction: column;
}
.prod-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.prod-thumb { position: relative; aspect-ratio: 1; overflow: hidden; background: #f1ece3; }
.prod-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.prod-card:hover .prod-thumb img { transform: scale(1.06); }
.prod-tag {
  position: absolute; top: 12px; left: 12px;
  background: rgba(33,37,46,0.82); color: #fff; font-size: 11.5px;
  padding: 4px 12px; border-radius: 999px; letter-spacing: 0.6px;
}
.prod-body { padding: 18px 20px 22px; }
.prod-body h3 { font-size: 16.5px; margin-bottom: 6px; }
.prod-body p { color: var(--muted); font-size: 13.5px; margin-bottom: 12px; }
.prod-body .more { color: var(--accent); font-weight: 700; font-size: 13.5px; }

/* Filter pills */
.filter-bar { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; margin-bottom: 44px; }
.pill {
  padding: 9px 22px; border-radius: 999px; border: 1.5px solid var(--line);
  background: #fff; font-weight: 600; font-size: 14px; cursor: pointer; transition: 0.2s;
}
.pill:hover { border-color: var(--accent); color: var(--accent); }
.pill.active { background: var(--ink); border-color: var(--ink); color: #fff; }

/* ---------- Split / about ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.split .img-stack { position: relative; }
.split .img-stack img.main { border-radius: 20px; box-shadow: var(--shadow); width: 100%; }
.split .img-stack img.over {
  position: absolute; right: -24px; bottom: -34px; width: 46%;
  border-radius: 16px; border: 6px solid #fff; box-shadow: var(--shadow);
}
.check-list { margin: 22px 0 30px; display: grid; gap: 12px; }
.check-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; }
.check-list li::before {
  content: "✓"; flex: 0 0 22px; height: 22px; margin-top: 3px;
  background: var(--accent-soft); color: var(--accent);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
  font-size: 12px; font-weight: 800;
}

/* ---------- Process ---------- */
.process-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; counter-reset: step; }
.step-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; position: relative; transition: 0.25s;
}
.step-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.step-card::before {
  counter-increment: step; content: "0" counter(step);
  font-family: var(--font-display); font-size: 46px; font-weight: 700;
  color: var(--accent-soft); -webkit-text-stroke: 1.4px var(--accent);
  position: absolute; top: 18px; right: 22px; line-height: 1;
}
.step-card h3 { font-size: 18px; margin: 14px 0 10px; padding-right: 60px; }
.step-card p { color: var(--muted); font-size: 14.5px; }

/* ---------- Gallery ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.gallery img {
  width: 100%; aspect-ratio: 4 / 3; object-fit: cover;
  border-radius: 12px; transition: 0.3s; cursor: zoom-in;
}
.gallery img:hover { transform: scale(1.02); box-shadow: var(--shadow); }
.gallery.cols-3 { grid-template-columns: repeat(3, 1fr); }

/* ---------- News ---------- */
.news-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: 0.25s; display: flex; flex-direction: column;
}
.news-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.news-card .thumb { aspect-ratio: 16 / 9; overflow: hidden; }
.news-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s; }
.news-card:hover .thumb img { transform: scale(1.05); }
.news-card .body { padding: 22px 24px 26px; }
.news-meta { font-size: 12.5px; color: var(--accent); font-weight: 700; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 8px; }
.news-card h3 { font-size: 18px; line-height: 1.4; margin-bottom: 10px; }
.news-card p { color: var(--muted); font-size: 14px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(115deg, var(--ink) 0%, #2c3340 100%);
  color: #fff; border-radius: 22px; padding: 60px 56px;
  display: flex; align-items: center; justify-content: space-between; gap: 30px; flex-wrap: wrap;
}
.cta-band h2 { font-family: var(--font-display); font-size: clamp(24px, 3vw, 34px); margin-bottom: 8px; }
.cta-band p { color: #b9c0cc; max-width: 560px; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; }
.info-card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px; display: flex; gap: 16px; align-items: flex-start; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.info-card .ic {
  flex: 0 0 46px; height: 46px; border-radius: 12px; background: var(--accent-soft);
  display: flex; align-items: center; justify-content: center; font-size: 20px;
}
.info-card h4 { font-size: 15px; margin-bottom: 3px; }
.info-card p, .info-card a { color: var(--muted); font-size: 14.5px; word-break: break-word; }
.info-card a:hover { color: var(--accent); }

.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: 36px; box-shadow: var(--shadow-sm);
}
.form-card h3 { font-family: var(--font-display); font-size: 26px; margin-bottom: 6px; }
.form-card .sub { color: var(--muted); font-size: 14.5px; margin-bottom: 24px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; color: var(--ink); }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border: 1.5px solid var(--line);
  border-radius: 10px; font-family: inherit; font-size: 14.5px; background: var(--paper);
  transition: 0.2s; color: var(--ink);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--accent); background: #fff;
}
.form-note { font-size: 12.5px; color: var(--muted); margin-top: 12px; }

/* ---------- Text tile (categories without photos) ---------- */
.tile-text {
  background: linear-gradient(135deg, #f3ead9 0%, #fbf7ef 100%);
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; justify-content: center;
  min-height: 150px; transition: 0.25s; position: relative; overflow: hidden;
}
.tile-text::after {
  content: attr(data-glyph); position: absolute; right: 10px; bottom: -12px;
  font-family: var(--font-display); font-size: 84px; font-weight: 700;
  color: rgba(200, 52, 43, 0.07); line-height: 1;
}
.tile-text:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile-text h3 { font-size: 17px; margin-bottom: 6px; }
.tile-text p { color: var(--muted); font-size: 13.5px; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero {
  background: linear-gradient(120deg, #f6efe3, #fbf7ef);
  border-bottom: 1px solid var(--line);
  padding: 64px 0 56px; text-align: center;
}
.page-hero h1 { font-family: var(--font-display); font-size: clamp(30px, 4vw, 46px); margin-bottom: 10px; }
.page-hero .crumb { font-size: 13.5px; color: var(--muted); letter-spacing: 1px; }
.page-hero .crumb a:hover { color: var(--accent); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #a7aeb9; margin-top: 90px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; padding: 64px 0 48px; }
.site-footer h4 { color: #fff; font-size: 15px; letter-spacing: 1px; margin-bottom: 18px; text-transform: uppercase; }
.site-footer ul { display: grid; gap: 10px; font-size: 14px; }
.site-footer a:hover { color: var(--gold); }
.f-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; }
.f-brand img { width: 40px; height: 40px; border-radius: 8px; }
.f-brand span { color: #fff; font-weight: 800; font-size: 18px; }
.footer-bottom { border-top: 1px solid #363c47; padding: 20px 0; font-size: 13px; 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.in { opacity: 1; transform: none; }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; background: rgba(15, 17, 22, 0.88);
  display: none; align-items: center; justify-content: center; z-index: 300; padding: 4vh 4vw;
}
.lightbox.open { display: flex; }
.lightbox img { max-height: 92vh; max-width: 100%; border-radius: 10px; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-inner, .split, .contact-grid { grid-template-columns: 1fr; }
  .grid-3, .process-grid { grid-template-columns: repeat(2, 1fr); }
  .grid-4, .gallery { grid-template-columns: repeat(2, 1fr); }
  .stats-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .split .img-stack img.over { right: 8px; }
  .hero-media { order: -1; }

  .nav-toggle { display: block; }
  .main-nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: #fff; box-shadow: -10px 0 40px rgba(0,0,0,0.15);
    transition: right 0.3s; padding: 90px 28px 30px; z-index: 200;
  }
  .main-nav.open { right: 0; }
  .main-nav ul { flex-direction: column; align-items: stretch; gap: 4px; }
  .main-nav a { padding: 13px 12px; font-size: 16px; }
  .nav-close {
    position: absolute; top: 22px; right: 22px; background: none; border: none;
    font-size: 26px; cursor: pointer; color: var(--ink);
  }
  .nav-cta { display: none; }
}
@media (max-width: 620px) {
  .grid-2, .grid-3, .process-grid { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 26px; }
  .hero-badge { left: 10px; }
  .section { padding: 60px 0; }
}
