/* ============================================================
   Dongqi Packaging — Global Styles
   Light theme · Deep green + kraft orange
   ============================================================ */
:root {
  --ink: #1c2721;
  --muted: #6a716b;
  --green: #1b3a34;
  --green-2: #2e5c50;
  --accent: #c8602a;
  --accent-soft: #f6e4d7;
  --bg: #faf8f4;
  --card: #ffffff;
  --line: #e7e1d6;
  --radius: 14px;
  --shadow: 0 8px 28px rgba(28, 39, 33, 0.08);
  --max: 1120px;
}

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

html, body { overflow-x: hidden; }

body {
  font-family: "Segoe UI", "Inter", "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(250, 248, 244, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.logo { display: flex; align-items: center; gap: 10px; font-weight: 700; letter-spacing: 0.02em; }
.logo-mark {
  width: 34px; height: 34px; border-radius: 9px;
  background: var(--green); color: #fff;
  display: grid; place-items: center; font-size: 13px; font-weight: 800;
  letter-spacing: 0.05em;
}
.logo small { display: block; font-size: 11px; color: var(--muted); font-weight: 500; }

.nav { display: flex; align-items: center; gap: 26px; }
.nav a { font-size: 15px; font-weight: 500; color: var(--muted); transition: color 0.15s; }
.nav a:hover { color: var(--ink); }
.nav a.active { color: var(--green); font-weight: 700; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 20px; border-radius: 999px;
  font-size: 15px; font-weight: 600; border: 1px solid transparent;
  cursor: pointer; transition: all 0.18s;
}
.btn-primary { background: var(--green); color: #fff; }
.btn-primary:hover { background: var(--green-2); transform: translateY(-1px); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { filter: brightness(1.08); transform: translateY(-1px); }
.btn-ghost { border-color: var(--green); color: var(--green); background: transparent; }
.btn-ghost:hover { background: var(--green); color: #fff; }
.btn-lg { padding: 14px 28px; font-size: 16px; }

.lang-switch { display: flex; gap: 2px; background: #eee9df; border-radius: 999px; padding: 3px; }
.lang-switch button {
  border: 0; background: transparent; padding: 4px 12px; border-radius: 999px;
  font-size: 13px; font-weight: 600; color: var(--muted); cursor: pointer;
}
.lang-switch button.on { background: #fff; color: var(--green); box-shadow: 0 1px 4px rgba(0,0,0,0.12); }

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

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap;
  max-width: 100%;
  background: var(--accent-soft); color: var(--accent);
  font-size: 13px; font-weight: 700; padding: 6px 14px; border-radius: 999px;
  margin-bottom: 20px;
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
h1 { font-size: clamp(30px, 4.6vw, 46px); line-height: 1.18; color: var(--green); letter-spacing: -0.01em; }
.hero-sub { margin: 20px 0 28px; font-size: 17px; color: var(--muted); max-width: 520px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-img {
  border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 15 / 9.5;
}
.hero-img img { width: 100%; height: 100%; object-fit: cover; }

.stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
  margin-top: 56px;
}
.stat {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px 20px; text-align: center;
}
.stat b { display: block; font-size: 20px; color: var(--green); }
.stat span { font-size: 13px; color: var(--muted); }

/* ---------- Section base ---------- */
section.block { padding: 64px 0; }
.section-head { max-width: 640px; margin-bottom: 40px; }
.section-head h2 { font-size: clamp(24px, 3vw, 34px); color: var(--green); letter-spacing: -0.01em; }
.section-head p { margin-top: 10px; color: var(--muted); font-size: 16px; }
.center { text-align: center; margin-left: auto; margin-right: auto; }

.eyebrow {
  font-size: 13px; font-weight: 800; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 10px;
}

/* ---------- Trust bar ---------- */
.trust { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.trust-inner { padding: 30px 0; text-align: center; }
.trust-title { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.trust-logos { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 36px; }
.trust-logos span { font-weight: 700; font-size: 16px; color: #9aa39c; letter-spacing: 0.03em; }

/* ---------- Capability cards ---------- */
.cap-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.cap-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 26px; transition: transform 0.18s, box-shadow 0.18s;
}
.cap-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.cap-icon {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--accent-soft); color: var(--accent);
  display: grid; place-items: center; font-size: 22px; margin-bottom: 16px;
}
.cap-card h3 { font-size: 19px; color: var(--green); margin-bottom: 10px; }
.cap-card p { color: var(--muted); font-size: 15px; }

/* ---------- Case ---------- */
.case-wrap {
  background: var(--green); color: #fff; border-radius: 20px;
  display: grid; grid-template-columns: 1fr 1fr; overflow: hidden;
}
.case-text { padding: 48px 44px; }
.case-text .eyebrow { color: #e8a97e; }
.case-text h2 { font-size: clamp(24px, 3vw, 32px); line-height: 1.25; margin-bottom: 20px; }
.case-text li { list-style: none; margin: 12px 0; padding-left: 26px; position: relative; color: #d8e2dd; }
.case-text li::before { content: "✓"; position: absolute; left: 0; color: #e8a97e; font-weight: 800; }
.case-note { margin-top: 22px; font-size: 14px; color: #a9bcb3; font-style: italic; }
.case-img { min-height: 320px; }
.case-img img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Process ---------- */
.proc-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; counter-reset: step; }
.proc-step {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 22px 18px; position: relative; counter-increment: step;
}
.proc-step::before {
  content: counter(step);
  display: grid; place-items: center;
  width: 32px; height: 32px; border-radius: 50%;
  background: var(--green); color: #fff; font-weight: 800; font-size: 15px;
  margin-bottom: 14px;
}
.proc-step h4 { font-size: 16px; color: var(--green); margin-bottom: 6px; }
.proc-step p { font-size: 13.5px; color: var(--muted); }

/* ---------- Logistics ---------- */
.logi-grid { display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 22px; align-items: stretch; }
.logi-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px;
}
.logi-card h4 { color: var(--green); font-size: 17px; margin-bottom: 8px; }
.logi-card p { color: var(--muted); font-size: 14.5px; }
.logi-map {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  display: grid; place-items: center; padding: 12px;
}
.logi-note { margin-top: 18px; font-size: 12.5px; color: var(--muted); text-align: center; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--green); border-radius: 20px; color: #fff;
  padding: 52px 44px; text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin-bottom: 10px; }
.cta-band p { color: #c6d5cd; margin-bottom: 26px; }

/* ---------- Products page ---------- */
.prod-hero { background: linear-gradient(180deg, #f1ede4 0%, var(--bg) 100%); padding: 64px 0 40px; text-align: center; }
.product-row {
  display: grid; grid-template-columns: 1fr 1.15fr; gap: 40px; align-items: center;
  padding: 48px 0; border-top: 1px solid var(--line);
}
.product-row:first-of-type { border-top: 0; }
.product-row.flip .p-img { order: 2; }
.p-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); aspect-ratio: 1 / 0.92; }
.p-img img { width: 100%; height: 100%; object-fit: cover; }
.p-tag {
  display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); background: var(--accent-soft);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 14px;
}
.p-body h3 { font-size: clamp(22px, 2.6vw, 28px); color: var(--green); margin-bottom: 12px; }
.p-body > p { color: var(--muted); font-size: 15.5px; margin-bottom: 20px; }
.spec-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.spec-chips span {
  font-size: 13.5px; font-weight: 600; color: var(--green-2);
  background: #eef2ee; border: 1px solid #dde6de; border-radius: 999px; padding: 6px 14px;
}

/* ---------- Supporting supplies grid ---------- */
.supply-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.supply-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.18s, box-shadow 0.18s;
}
.supply-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.supply-card img { width: 100%; aspect-ratio: 1 / 0.72; object-fit: cover; display: block; }
.supply-card .sc-body { padding: 20px 22px 24px; }
.supply-card h4 { color: var(--green); font-size: 17px; margin-bottom: 8px; }
.supply-card p { font-size: 14px; color: var(--muted); line-height: 1.6; }

/* ---------- Gallery（主打产品图库） ---------- */
.gal-tabs { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 32px; }
.gal-tab {
  border: 1px solid var(--line); background: #fff; color: var(--ink);
  padding: 9px 22px; border-radius: 999px; font-size: 14px; font-weight: 600;
  cursor: pointer; transition: all .18s ease; font-family: inherit;
}
.gal-tab:hover { border-color: var(--accent); color: var(--accent); }
.gal-tab.on { background: var(--accent); border-color: var(--accent); color: #fff; }

.gal-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.gal-card {
  margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; cursor: zoom-in; transition: transform .18s ease, box-shadow .18s ease;
}
.gal-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.gal-card img { width: 100%; height: 230px; object-fit: cover; display: block; background: #f6f5f2; }
.gal-card figcaption { padding: 12px 14px 14px; font-size: 13px; line-height: 1.45; }
.gal-card figcaption strong { display: block; color: var(--ink); font-weight: 600; }
.gal-card figcaption span { display: block; margin-top: 3px; color: var(--muted); font-size: 12px; letter-spacing: .3px; }

.gal-lightbox {
  position: fixed; inset: 0; z-index: 200; background: rgba(10, 16, 14, .82);
  display: none; align-items: center; justify-content: center; padding: 30px;
}
.gal-lightbox.open { display: flex; }
.gal-lb-inner { position: relative; max-width: min(920px, 92vw); text-align: center; }
.gal-lb-inner img { max-width: 100%; max-height: 78vh; border-radius: 10px; box-shadow: 0 20px 60px rgba(0,0,0,.45); }
.gal-lb-inner p { color: #eef3f0; font-size: 15px; margin-top: 14px; }
.gal-lb-close {
  position: absolute; top: -16px; right: -16px; width: 38px; height: 38px;
  border-radius: 50%; border: none; background: var(--accent); color: #fff;
  font-size: 20px; cursor: pointer; line-height: 1;
}
@media (max-width: 1024px) { .gal-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 720px)  { .gal-grid { grid-template-columns: repeat(2, 1fr); } .gal-card img { height: 170px; } }

/* ---------- About page ---------- */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }

/* Globe illustration */
.globe-wrap { position: relative; background: #0f1e19; line-height: 0; }
.globe-svg { display: block; width: 100%; height: auto; }
.globe-caption {
  position: absolute; left: 18px; bottom: 16px; line-height: 1.4;
  background: rgba(15, 30, 25, 0.72); border: 1px solid rgba(232, 169, 126, 0.32);
  border-radius: 10px; padding: 10px 14px; backdrop-filter: blur(6px);
}
.globe-caption strong { display: block; color: #fff; font-size: 13.5px; font-weight: 700; }
.globe-caption span { display: block; color: #c9a68d; font-size: 11.5px; margin-top: 2px; }

.route { animation: routeFlow 2.8s linear infinite; }
.route.r2 { animation-delay: -0.45s; }
.route.r3 { animation-delay: -0.95s; }
.route.r4 { animation-delay: -1.45s; }
.route.r5 { animation-delay: -1.9s; }
.route.r6 { animation-delay: -2.35s; }
@keyframes routeFlow { to { stroke-dashoffset: -140; } }

.node-pulse { animation: nodePulse 2.8s ease-out infinite; }
.node-pulse.p2 { animation-delay: 0.45s; }
.node-pulse.p3 { animation-delay: 0.9s; }
.node-pulse.p4 { animation-delay: 1.35s; }
.node-pulse.p5 { animation-delay: 1.8s; }
.node-pulse.p6 { animation-delay: 2.25s; }
@keyframes nodePulse {
  0%   { r: 7;  opacity: 0.5; }
  100% { r: 24; opacity: 0; }
}
.origin-pulse { animation: originPulse 2.2s ease-out infinite; }
@keyframes originPulse {
  0%   { r: 9;  opacity: 0.6; }
  100% { r: 30; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .route, .node-pulse, .origin-pulse { animation: none; }
}
.about-story p { margin-bottom: 16px; color: var(--muted); font-size: 16px; }
.about-story p:first-of-type { color: var(--ink); font-size: 17px; font-weight: 500; }
.why-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.why-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px 20px; }
.why-card .cap-icon { margin-bottom: 12px; }
.why-card h4 { color: var(--green); font-size: 16.5px; margin-bottom: 8px; }
.why-card p { font-size: 14px; color: var(--muted); }
.client-list {
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.client-list span {
  background: var(--card); border: 1px solid var(--line); border-radius: 999px;
  padding: 10px 22px; font-weight: 700; color: var(--green); font-size: 15px;
}

/* ---------- Contact page ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: start; }
.quote-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 36px; box-shadow: var(--shadow);
}
.quote-card h3 { color: var(--green); font-size: 20px; margin-bottom: 20px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-field { margin-bottom: 14px; }
.form-field input, .form-field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px;
  padding: 12px 14px; font: inherit; font-size: 15px; background: #fdfcfa;
  color: var(--ink); transition: border-color 0.15s;
}
.form-field input:focus, .form-field textarea:focus {
  outline: none; border-color: var(--green-2); background: #fff;
}
.form-field textarea { min-height: 130px; resize: vertical; }
.form-msg { margin-top: 14px; font-size: 14.5px; min-height: 20px; }
.form-msg.ok { color: #2e7d4f; }
.form-msg.err { color: #b3402a; }

.info-card {
  background: var(--green); color: #fff; border-radius: var(--radius);
  padding: 36px;
}
.info-card h3 { font-size: 20px; margin-bottom: 22px; }
.info-item { margin-bottom: 18px; }
.info-item .lab { font-size: 12.5px; letter-spacing: 0.1em; text-transform: uppercase; color: #9fb8ad; margin-bottom: 4px; }
.info-item .val { font-size: 15.5px; font-weight: 600; color: #fff; }
.info-item a.val:hover { text-decoration: underline; }
.info-note { margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,0.15); font-size: 14px; color: #b9c9c1; }

/* WhatsApp QR in contact card */
.wa-qr-wrap {
  margin-top: 12px; background: #fff; border-radius: 12px;
  padding: 10px; width: 168px; text-align: center;
}
.wa-qr-wrap img { width: 100%; border-radius: 6px; display: block; }
.wa-qr-wrap span { display: block; font-size: 12px; color: var(--muted); margin-top: 6px; }

/* WhatsApp floating button */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 80;
  width: 54px; height: 54px; border-radius: 50%;
  background: #25d366; color: #fff;
  display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  transition: transform 0.18s, background 0.18s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.05); background: #1fbf5b; }
.wa-tip {
  position: absolute; right: 64px; top: 50%; transform: translateY(-50%);
  background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 600;
  padding: 6px 12px; border-radius: 8px; white-space: nowrap;
  opacity: 0; pointer-events: none; transition: opacity 0.15s;
}
.wa-float:hover .wa-tip { opacity: 1; }

/* ---------- Page hero (inner pages) ---------- */
.page-hero { background: linear-gradient(180deg, #f1ede4 0%, var(--bg) 100%); padding: 64px 0 48px; text-align: center; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); }
.page-hero p { margin: 14px auto 0; max-width: 560px; color: var(--muted); font-size: 16.5px; }

/* ---------- Footer ---------- */
.site-footer { background: #14271f; color: #b9c9c1; margin-top: 64px; }
.footer-inner {
  display: grid; grid-template-columns: 1.6fr 1fr 1.2fr; gap: 40px;
  padding: 52px 0 36px;
}
.footer-inner h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-inner a { display: block; padding: 4px 0; font-size: 14.5px; color: #b9c9c1; }
.footer-inner a:hover { color: #fff; }
.footer-brand .logo-mark { background: var(--accent); margin-bottom: 14px; }
.footer-brand p { font-size: 14.5px; max-width: 320px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding: 18px 0; font-size: 13px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero-grid, .case-wrap, .about-grid, .contact-grid { grid-template-columns: 1fr; }
  .cap-grid, .why-grid { grid-template-columns: repeat(2, 1fr); }
  .supply-grid { grid-template-columns: repeat(2, 1fr); }
  .proc-grid { grid-template-columns: repeat(2, 1fr); }
  .logi-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .product-row { grid-template-columns: 1fr; }
  .product-row.flip .p-img { order: 0; }
  .footer-inner { grid-template-columns: 1fr; gap: 28px; }
  .case-img { min-height: 260px; max-height: 320px; }
}
@media (max-width: 720px) {
  .logo small { display: none; }
  .nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: flex-start; padding: 18px 24px; gap: 14px;
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
  .header-cta { display: none; }
  .cap-grid, .why-grid, .proc-grid { grid-template-columns: 1fr; }
  .supply-grid { grid-template-columns: 1fr; }
  .f-row { grid-template-columns: 1fr; }
  .cta-band { padding: 40px 24px; }
  .case-text { padding: 32px 26px; }
  .quote-card, .info-card { padding: 26px 22px; }
}
