/* ============================================================
   CityLink Supply Chain Solution — Global Stylesheet
   Palette: Deep Ink Green #0B3B36 / Teal #0E7C6B / Accent #E85D26
   ============================================================ */
:root {
  --ink-green: #0b3b36;
  --ink-green-dark: #072723;
  --teal: #0e7c6b;
  --teal-light: #e6f2ef;
  --accent: #e85d26;
  --accent-dark: #c74a1a;
  --bg: #f5f7f6;
  --card-bg: #ffffff;
  --border: #d8e2df;
  --text: #1f2d2a;
  --text-muted: #5b6b67;
  --shadow: 0 2px 10px rgba(11, 59, 54, 0.08);
}

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  font-size: 16px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { color: var(--accent); }
img { max-width: 100%; }
.container { max-width: 1140px; margin: 0 auto; padding: 0 20px; }

/* ---------------- Top Bar ---------------- */
.topbar {
  background: var(--ink-green-dark);
  color: #cfe3de;
  font-size: 13px;
}
.topbar .container {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 6px; padding-bottom: 6px;
}
.topbar a { color: #cfe3de; margin-left: 16px; }
.topbar a:hover { color: #fff; }
.lang-btn {
  margin-left: 14px; background: transparent; color: #fff;
  border: 1px solid rgba(255,255,255,0.45); border-radius: 4px;
  padding: 2px 10px; font-size: 12px; cursor: pointer; transition: background 0.2s;
}
.lang-btn:hover { background: rgba(255,255,255,0.15); }

/* ---------------- Header / Nav ---------------- */
.site-header {
  background: var(--card-bg);
  border-bottom: 3px solid var(--accent);
  position: sticky; top: 0; z-index: 100;
  box-shadow: var(--shadow);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px;
}
.logo { display: flex; align-items: center; gap: 12px; }
.logo-mark {
  width: 46px; height: 46px; background: var(--ink-green);
  border-radius: 8px; display: flex; align-items: center; justify-content: center;
  color: #fff; font-weight: 800; font-size: 15px; letter-spacing: 0.5px;
  border: 2px solid var(--accent);
}
.logo-text { line-height: 1.15; }
.logo-text strong {
  display: block; color: var(--ink-green); font-size: 19px; font-weight: 800;
  letter-spacing: 0.3px;
}
.logo-text span { font-size: 11px; color: var(--text-muted); letter-spacing: 1.2px; text-transform: uppercase; }

.main-nav ul { list-style: none; display: flex; gap: 4px; }
.main-nav a {
  display: block; padding: 10px 14px; color: var(--ink-green);
  font-weight: 600; font-size: 15px; border-radius: 6px;
  border-bottom: 3px solid transparent;
}
.main-nav a:hover { background: var(--teal-light); color: var(--teal); }
.main-nav a.active { color: var(--accent); border-bottom-color: var(--accent); border-radius: 0; }

.nav-toggle {
  display: none; background: none; border: 2px solid var(--ink-green);
  border-radius: 6px; font-size: 20px; padding: 4px 12px; cursor: pointer;
  color: var(--ink-green);
}

/* ---------------- Buttons ---------------- */
.btn {
  display: inline-block; padding: 13px 30px; border: none; border-radius: 6px;
  font-size: 16px; font-weight: 700; cursor: pointer; text-align: center;
  transition: background 0.2s, transform 0.15s; letter-spacing: 0.3px;
}
.btn:active { transform: scale(0.97); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-dark); color: #fff; }
.btn-outline {
  background: transparent; color: #fff; border: 2px solid #fff;
}
.btn-outline:hover { background: rgba(255,255,255,0.15); color: #fff; }
.btn-teal { background: var(--teal); color: #fff; }
.btn-teal:hover { background: var(--ink-green); color: #fff; }
.btn-sm { padding: 9px 20px; font-size: 14px; }

/* ---------------- Page Banner (inner pages) ---------------- */
.page-banner {
  background: linear-gradient(120deg, var(--ink-green-dark) 0%, var(--ink-green) 55%, var(--teal) 130%);
  color: #fff; padding: 56px 0 48px;
  border-bottom: 4px solid var(--accent);
}
.page-banner h1 { font-size: 34px; margin-bottom: 8px; }
.page-banner p { color: #cfe3de; max-width: 720px; }
.breadcrumb { font-size: 13px; color: #9fc3ba; margin-bottom: 14px; }
.breadcrumb a { color: #9fc3ba; }
.breadcrumb a:hover { color: #fff; }

/* ---------------- Sections ---------------- */
.section { padding: 64px 0; }
.section.alt { background: #eef3f1; }
.section-title { text-align: center; margin-bottom: 44px; }
.section-title .eyebrow {
  display: inline-block; color: var(--accent); font-weight: 800; font-size: 13px;
  letter-spacing: 2.5px; text-transform: uppercase; margin-bottom: 8px;
}
.section-title h2 { font-size: 30px; color: var(--ink-green); }
.section-title p { color: var(--text-muted); max-width: 680px; margin: 10px auto 0; }

/* ---------------- Hero ---------------- */
.hero {
  background:
    linear-gradient(115deg, rgba(7,39,35,0.96) 0%, rgba(11,59,54,0.9) 55%, rgba(14,124,107,0.75) 100%),
    repeating-linear-gradient(45deg, rgba(255,255,255,0.03) 0 18px, transparent 18px 36px);
  color: #fff; padding: 96px 0 110px; text-align: center;
  border-bottom: 4px solid var(--accent);
  position: relative; overflow: hidden;
}
.hero .eyebrow {
  color: #ffb48c; font-weight: 700; letter-spacing: 3px; font-size: 14px;
  text-transform: uppercase;
}
.hero h1 { font-size: 52px; line-height: 1.15; margin: 14px 0 18px; }
.hero h1 .accent { color: var(--accent); }
.hero p.sub { font-size: 19px; color: #d3e6e1; max-width: 760px; margin: 0 auto 36px; }
.hero-btns { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* ---------------- Track Box ---------------- */
.track-strip { margin-top: -58px; position: relative; z-index: 5; }
.track-box {
  background: var(--card-bg); border: 2px solid var(--border);
  border-top: 4px solid var(--accent); border-radius: 10px;
  box-shadow: 0 12px 32px rgba(11,59,54,0.18);
  padding: 30px 34px; max-width: 820px; margin: 0 auto;
}
.track-box h3 { color: var(--ink-green); font-size: 20px; margin-bottom: 6px; }
.track-box p { color: var(--text-muted); font-size: 14px; margin-bottom: 18px; }
.track-form { display: flex; gap: 12px; }
.track-form input {
  flex: 1; padding: 13px 16px; border: 2px solid var(--border); border-radius: 6px;
  font-size: 16px; outline: none; transition: border-color 0.2s;
}
.track-form input:focus { border-color: var(--teal); }
#YQNum {
  flex: 1; padding: 13px 16px; border: 2px solid var(--border); border-radius: 6px;
  font-size: 16px; outline: none; transition: border-color 0.2s;
}
#YQNum:focus { border-color: var(--teal); }
#YQGoBtn { white-space: nowrap; cursor: pointer; font-family: inherit; }
#YQContainer { min-height: 180px; }

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

.card {
  background: var(--card-bg); border: 2px solid var(--border); border-radius: 10px;
  padding: 28px 24px; transition: transform 0.2s, box-shadow 0.2s, border-color 0.2s;
  display: flex; flex-direction: column;
}
.card:hover {
  transform: translateY(-5px); box-shadow: var(--shadow);
  border-color: var(--teal);
}
.card .icon {
  width: 58px; height: 58px; border-radius: 12px; background: var(--teal-light);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
  border: 2px solid var(--teal);
}
.card .icon svg { width: 30px; height: 30px; stroke: var(--teal); }
.card h3 { color: var(--ink-green); font-size: 19px; margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 14.5px; flex: 1; }
.card .learn-more {
  margin-top: 16px; font-weight: 700; color: var(--accent); font-size: 14px;
  display: inline-flex; align-items: center; gap: 6px;
}
.card .learn-more:hover { color: var(--accent-dark); gap: 10px; transition: gap 0.2s; }

/* ---------------- Stats ---------------- */
.stats {
  background: var(--ink-green); color: #fff; padding: 56px 0;
  border-top: 4px solid var(--accent); border-bottom: 4px solid var(--accent);
}
.stats .grid { text-align: center; }
.stat-item { border: 1px solid rgba(255,255,255,0.15); border-radius: 10px; padding: 26px 16px; }
.stat-item .num { font-size: 40px; font-weight: 800; color: var(--accent); line-height: 1.1; }
.stat-item .label { margin-top: 6px; font-size: 15px; color: #cfe3de; letter-spacing: 0.5px; }

/* ---------------- News ---------------- */
.news-meta { font-size: 13px; color: var(--accent); font-weight: 700; margin-bottom: 8px; }
.news-card h3 { font-size: 17px; }
.news-card h3 a { color: var(--ink-green); }
.news-card h3 a:hover { color: var(--teal); }

/* ---------------- Timeline (tracking result) ---------------- */
.trk-summary {
  background: var(--card-bg); border: 2px solid var(--border); border-radius: 10px;
  padding: 26px 30px; margin-bottom: 34px;
  display: flex; flex-wrap: wrap; gap: 30px; justify-content: space-between;
  border-left: 6px solid var(--teal);
}
.trk-summary .field .k { font-size: 12px; text-transform: uppercase; letter-spacing: 1.5px; color: var(--text-muted); }
.trk-summary .field .v { font-weight: 700; color: var(--ink-green); font-size: 16px; }
.badge {
  display: inline-block; padding: 5px 14px; border-radius: 20px; font-size: 13px;
  font-weight: 700; letter-spacing: 0.5px;
}
.badge-delivered { background: var(--teal-light); color: var(--teal); border: 1px solid var(--teal); }

.timeline { list-style: none; position: relative; padding-left: 34px; }
.timeline::before {
  content: ""; position: absolute; left: 12px; top: 8px; bottom: 8px;
  width: 3px; background: var(--border); border-radius: 2px;
}
.timeline li { position: relative; padding: 0 0 34px 14px; }
.timeline li:last-child { padding-bottom: 0; }
.timeline .dot {
  position: absolute; left: -30px; top: 4px; width: 20px; height: 20px;
  border-radius: 50%; background: var(--card-bg); border: 3px solid var(--border);
}
.timeline li.done .dot { background: var(--teal); border-color: var(--teal); }
.timeline li.current .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px rgba(232,93,38,0.2); }
.timeline .step-title { font-weight: 700; color: var(--ink-green); font-size: 17px; }
.timeline li.current .step-title { color: var(--accent); }
.timeline .step-time { font-size: 13px; color: var(--text-muted); margin: 3px 0; }
.timeline .step-desc { font-size: 14.5px; color: var(--text); }
.timeline li.pending .step-title { color: #9aa8a4; }

.track-help {
  margin-top: 40px; background: var(--teal-light); border: 2px dashed var(--teal);
  border-radius: 10px; padding: 22px 26px; text-align: center; color: var(--ink-green);
}

/* ---------------- Feature list (checkmarks) ---------------- */
.check-list { list-style: none; margin-top: 18px; }
.check-list li {
  padding: 8px 0 8px 32px; position: relative; color: var(--text); font-size: 15px;
  border-bottom: 1px dashed var(--border);
}
.check-list li:last-child { border-bottom: none; }
.check-list li::before {
  content: ""; position: absolute; left: 0; top: 12px; width: 20px; height: 20px;
  background: var(--teal); border-radius: 50%;
}
.check-list li::after {
  content: ""; position: absolute; left: 5.5px; top: 16px; width: 8px; height: 5px;
  border-left: 2.5px solid #fff; border-bottom: 2.5px solid #fff;
  transform: rotate(-45deg);
}
.service-block {
  background: var(--card-bg); border: 2px solid var(--border); border-radius: 10px;
  padding: 38px 40px; border-left: 6px solid var(--teal);
}
.service-block .tag {
  display: inline-block; background: var(--ink-green); color: #fff; font-size: 12px;
  font-weight: 700; letter-spacing: 2px; padding: 5px 14px; border-radius: 4px;
  text-transform: uppercase; margin-bottom: 14px;
}
.service-block h2 { color: var(--ink-green); font-size: 25px; margin-bottom: 12px; }
.service-block > p { color: var(--text-muted); }
.service-block .grid-2 { margin-top: 24px; gap: 40px; align-items: center; }
.service-visual {
  background: linear-gradient(135deg, var(--ink-green) 0%, var(--teal) 100%);
  border-radius: 10px; min-height: 200px; display: flex; align-items: center;
  justify-content: center; color: #fff; text-align: center; padding: 24px;
  font-size: 15px; border: 2px solid var(--ink-green-dark);
}
.service-visual .big { font-size: 44px; font-weight: 800; color: var(--accent); display: block; }

/* ---------------- Forms ---------------- */
.form-card {
  background: var(--card-bg); border: 2px solid var(--border); border-radius: 10px;
  padding: 36px 38px; border-top: 5px solid var(--accent); box-shadow: var(--shadow);
}
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-weight: 700; font-size: 14px; color: var(--ink-green);
  margin-bottom: 7px;
}
.form-group label .req { color: var(--accent); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; padding: 12px 14px; border: 2px solid var(--border); border-radius: 6px;
  font-size: 15px; font-family: inherit; outline: none; background: #fff;
  transition: border-color 0.2s;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
  border-color: var(--teal);
}
.form-group textarea { min-height: 120px; resize: vertical; }

/* Modal */
.modal-overlay {
  display: none; position: fixed; inset: 0; background: rgba(7,39,35,0.6);
  z-index: 200; align-items: center; justify-content: center; padding: 20px;
}
.modal-overlay.show { display: flex; }
.modal {
  background: #fff; border-radius: 12px; max-width: 460px; width: 100%;
  padding: 40px 36px; text-align: center; border-top: 6px solid var(--teal);
  animation: pop 0.25s ease;
}
@keyframes pop { from { transform: scale(0.9); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.modal .modal-icon {
  width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--teal-light); border: 3px solid var(--teal);
  display: flex; align-items: center; justify-content: center;
}
.modal .modal-icon svg { width: 34px; height: 34px; stroke: var(--teal); }
.modal h3 { color: var(--ink-green); font-size: 22px; margin-bottom: 10px; }
.modal p { color: var(--text-muted); margin-bottom: 24px; }

/* ---------------- Locations ---------------- */
.loc-card { border-left: 5px solid var(--accent); }
.loc-card h3 { display: flex; align-items: center; gap: 10px; }
.loc-info { list-style: none; font-size: 14.5px; color: var(--text-muted); margin-top: 12px; }
.loc-info li { display: flex; gap: 10px; padding: 4px 0; }
.loc-info .ico { color: var(--teal); font-weight: 700; min-width: 22px; }

/* ---------------- Contact ---------------- */
.contact-card { text-align: center; border-top: 5px solid var(--teal); }
.contact-card .icon { margin: 0 auto 14px; }
.contact-card .val { font-size: 17px; font-weight: 700; color: var(--ink-green); word-break: break-all; }
.contact-card .lbl { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 4px; }

/* ---------------- Footer ---------------- */
.site-footer { background: var(--ink-green-dark); color: #b9d2cc; margin-top: 0; }
.site-footer .footer-main { padding: 54px 0 40px; }
.site-footer .grid-4 { gap: 36px; }
.site-footer h4 {
  color: #fff; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase;
  margin-bottom: 18px; padding-bottom: 10px; border-bottom: 2px solid var(--accent);
  display: inline-block;
}
.site-footer ul { list-style: none; }
.site-footer ul li { padding: 5px 0; font-size: 14.5px; }
.site-footer a { color: #b9d2cc; }
.site-footer a:hover { color: var(--accent); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding: 18px 0; font-size: 13px;
  text-align: center; color: #8aa8a1;
}

/* ---------------- Responsive ---------------- */
@media (max-width: 960px) {
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .hero h1 { font-size: 38px; }
  .nav-toggle { display: block; }
  .main-nav {
    display: none; position: absolute; top: 76px; left: 0; right: 0;
    background: #fff; border-bottom: 3px solid var(--accent); box-shadow: var(--shadow);
  }
  .main-nav.open { display: block; }
  .main-nav ul { flex-direction: column; padding: 10px 20px; }
}
@media (max-width: 640px) {
  .grid-4, .grid-3, .grid-2, .form-row { grid-template-columns: 1fr; }
  .hero h1 { font-size: 30px; }
  .track-form { flex-direction: column; }
  .service-block { padding: 26px 22px; }
  .trk-summary { gap: 14px; }
}

/* ---------------- Brand Assets ---------------- */
.logo-img {
  width: 48px; height: 48px; border-radius: 8px; object-fit: contain;
  flex-shrink: 0;
}
.footer-logo {
  width: 72px; height: 72px; object-fit: contain; margin-bottom: 0;
  filter: drop-shadow(0 2px 8px rgba(0,0,0,0.45));
}

/* --- Dual-brand elements --- */
.logo-partner {
  display: flex; align-items: center; gap: 10px;
  margin-left: 12px; padding-left: 16px; border-left: 2px solid var(--border);
}
.logo-partner img { height: 32px; width: auto; }
.logo-partner .p-label {
  font-size: 9.5px; text-transform: uppercase; letter-spacing: 1px;
  color: var(--text-muted); line-height: 1.4; text-align: right;
}
@media (max-width: 1120px) { .logo-partner { display: none; } }

.footer-brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.footer-x { color: #7fa39a; font-size: 18px; font-weight: 700; }
.footer-logo-wide { width: auto; height: 56px; }
.license-note { font-size: 12.5px; color: #8aa8a1; margin-top: 6px; }
@media (max-width: 1120px) { .logo-partner { display: none; } }

/* Brand strip (combined logo) */
.brand-strip {
  background: #fff; border: 2px solid var(--border); border-radius: 12px;
  padding: 32px 36px; display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow);
}
.brand-strip img { max-height: 240px; max-width: 100%; object-fit: contain; }

/* Poster carousel */
.carousel {
  position: relative; max-width: 780px; margin: 0 auto;
  background: #fff; border: 2px solid var(--border); border-radius: 12px;
  overflow: hidden; box-shadow: var(--shadow);
}
.carousel-track { display: flex; transition: transform 0.55s ease; }
.carousel-slide {
  min-width: 100%; display: flex; align-items: center; justify-content: center;
  background: #fff; padding: 14px;
}
.carousel-slide img {
  max-height: 540px; max-width: 100%; width: auto; object-fit: contain;
  border-radius: 6px;
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 5;
  width: 44px; height: 44px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(11,59,54,0.78); color: #fff; font-size: 24px; line-height: 1;
  transition: background 0.2s;
}
.carousel-btn:hover { background: var(--accent); }
.carousel-btn.prev { left: 14px; }
.carousel-btn.next { right: 14px; }
.carousel-dots {
  position: absolute; bottom: 14px; left: 0; right: 0; z-index: 5;
  display: flex; gap: 9px; justify-content: center;
}
.carousel-dots button {
  width: 12px; height: 12px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(11,59,54,0.35); transition: background 0.2s, transform 0.2s;
}
.carousel-dots button.active { background: var(--accent); transform: scale(1.25); }

/* News thumbnails */
.news-thumb {
  height: 175px; overflow: hidden; border-radius: 8px; margin-bottom: 16px;
  border: 1px solid var(--border); background: #f0f4f3;
}
.news-thumb img {
  width: 100%; height: 100%; object-fit: cover; object-position: top center;
  transition: transform 0.35s;
}
.news-card:hover .news-thumb img { transform: scale(1.05); }
