/*
 Theme Name: HYDE 海德物流
 Theme URI: https://service.hydecargotrans.com
 Description: 海德（广州）国际物流集团官方 WordPress 主题 —— 专注中国到南美（中南美）货运代理，天生可对接 AIEO/GEO 后台自动发文（WordPress REST API + 应用密码）。品牌信息由 brand.json 驱动。
 Version: 1.0.0
 Author: 海德物流 / 多利AI
 Author URI: https://www.hydecargotrans.com
 License: GPL-2.0-or-later
 Text Domain: hyde-wp
*/

:root {
  --brand: #0b4ea2;
  --brand-dark: #073a7a;
  --accent: #f5a623;
  --brand-soft: #eaf2fb;
  --ink: #1f2937;
  --muted: #64748b;
  --line: #e6edf5;
  --bg: #ffffff;
  --bg-soft: #f5f8fc;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(11,78,162,.10);
  --maxw: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", "Hiragino Sans GB", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, h4 { line-height: 1.25; color: var(--ink); margin: 0 0 .5em; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 26px; border-radius: 999px; font-weight: 600; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: .2s;
}
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-dark); color: #fff; }
.btn-accent { background: var(--accent); color: #1f2937; }
.btn-accent:hover { filter: brightness(.95); color: #1f2937; }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.6); }
.btn-ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.section { padding: 72px 0; }
.section-soft { background: var(--bg-soft); }
.section-title { text-align: center; margin-bottom: 8px; font-size: 30px; }
.section-sub { text-align: center; color: var(--muted); margin-bottom: 44px; font-size: 16px; }
.eyebrow { color: var(--brand); font-weight: 700; letter-spacing: 2px; font-size: 13px; text-transform: uppercase; }

/* ===== Header ===== */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92);
  backdrop-filter: blur(8px); border-bottom: 1px solid var(--line);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink); font-size: 19px; }
.brand-logo img { height: 40px; width: auto; }
.brand-logo .en { color: var(--brand); font-weight: 700; }
.brand-logo .cn { color: var(--ink); }
.brand-logo .dot { color: var(--accent); }
.main-nav { display: flex; gap: 26px; align-items: center; }
.main-nav a { color: var(--ink); font-weight: 500; font-size: 15px; }
.main-nav a:hover { color: var(--brand); }
.nav-cta { background: var(--accent); color: #1f2937 !important; padding: 9px 18px; border-radius: 999px; font-weight: 700; }
.nav-toggle { display: none; background: none; border: 0; font-size: 26px; cursor: pointer; color: var(--ink); }

/* ===== Hero ===== */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background: linear-gradient(120deg, var(--brand-dark), var(--brand) 70%);
}
.hero .bg { position: absolute; inset: 0; background-size: cover; background-position: center; opacity: .22; }
.hero .overlay { position: absolute; inset: 0; background: linear-gradient(120deg, rgba(7,58,122,.92), rgba(11,78,162,.78)); }
.hero .container { position: relative; padding: 96px 20px 104px; }
.hero h1 { font-size: 44px; margin-bottom: 18px; color: #fff; }
.hero .lead { font-size: 18px; max-width: 720px; color: #e8f0fb; margin-bottom: 30px; }
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats { display: flex; gap: 40px; margin-top: 48px; flex-wrap: wrap; }
.hero-stats .num { font-size: 32px; font-weight: 800; color: #fff; }
.hero-stats .lab { color: #cfe0f5; font-size: 14px; }
.badge { display: inline-block; background: rgba(245,166,35,.18); color: var(--accent); padding: 6px 14px; border-radius: 999px; font-weight: 700; font-size: 13px; margin-bottom: 18px; }

/* ===== Grids ===== */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: .2s; height: 100%;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #cfe0f5; }
.card .ic { width: 52px; height: 52px; border-radius: 12px; background: var(--brand-soft); color: var(--brand); display: flex; align-items: center; justify-content: center; margin-bottom: 16px; }
.card .ic svg { width: 28px; height: 28px; }
.card h3 { font-size: 19px; }
.card p { color: var(--muted); margin: 0; font-size: 15px; }

/* ===== Countries ===== */
.country-list { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 1px solid var(--line);
  padding: 10px 18px; border-radius: 999px; font-weight: 600; color: var(--ink);
}
.chip svg { width: 18px; height: 18px; color: var(--brand); }
.chip:hover { background: var(--brand-soft); border-color: #cfe0f5; }

/* ===== CTA band ===== */
.cta-band { background: linear-gradient(120deg, var(--brand-dark), var(--brand)); color: #fff; border-radius: 20px; padding: 48px; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #dceafa; margin-bottom: 24px; }

/* ===== About / Story ===== */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.story .photo { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.story .photo img { width: 100%; height: 100%; object-fit: cover; }
.timeline { border-left: 3px solid var(--brand-soft); padding-left: 22px; margin-top: 10px; }
.timeline li { position: relative; margin-bottom: 18px; list-style: none; }
.timeline li::before { content: ""; position: absolute; left: -30px; top: 6px; width: 12px; height: 12px; border-radius: 50%; background: var(--brand); }
.timeline b { color: var(--brand-dark); }

/* ===== Advantages ===== */
.adv { display: flex; gap: 16px; align-items: flex-start; }
.adv .ic { flex: 0 0 44px; }
.adv h4 { margin: 0 0 4px; font-size: 17px; }
.adv p { margin: 0; color: var(--muted); font-size: 14px; }

/* ===== Contact ===== */
.contact-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 36px; }
.info-row { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.info-row .ic { color: var(--brand); flex: 0 0 24px; }
.info-row .ic svg { width: 22px; height: 22px; }
.info-row .k { color: var(--muted); font-size: 13px; }
.info-row .v { font-weight: 600; }
.contact-form input, .contact-form textarea {
  width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: 10px; margin-bottom: 14px; font: inherit;
}
.contact-form input:focus, .contact-form textarea:focus { outline: none; border-color: var(--brand); }

/* ===== Article ===== */
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.post-card { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: #fff; transition: .2s; }
.post-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.post-card .thumb { aspect-ratio: 16/9; background: var(--brand-soft); }
.post-card .thumb img { width: 100%; height: 100%; object-fit: cover; }
.post-card .body { padding: 18px; }
.post-card .cat { color: var(--brand); font-size: 12px; font-weight: 700; }
.post-card h3 { font-size: 17px; margin: 6px 0; }
.post-card .meta { color: var(--muted); font-size: 13px; }
.single-article, .page-wrap { max-width: 820px; margin: 0 auto; padding: 48px 20px; }
.single-article .cat { color: var(--brand); font-weight: 700; }
.single-article h1 { font-size: 34px; }
.single-article .content { font-size: 17px; }
.single-article .content img { border-radius: 12px; margin: 18px 0; }

/* ===== Footer ===== */
.site-footer { background: #0c1b30; color: #cdd9e8; padding: 56px 0 28px; }
.site-footer h4 { color: #fff; margin-bottom: 14px; font-size: 16px; }
.site-footer a { color: #cdd9e8; }
.site-footer a:hover { color: #fff; }
.site-footer .cols { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; }
.site-footer .cols p { margin: 4px 0; font-size: 14px; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.08); margin-top: 36px; padding-top: 18px; font-size: 13px; color: #8aa0bb; text-align: center; }

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid-3, .grid-4, .article-grid { grid-template-columns: repeat(2, 1fr); }
  .story, .contact-grid { grid-template-columns: 1fr; }
  .site-footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  .main-nav { display: none; }
  .nav-toggle { display: block; }
  .grid-2, .grid-3, .grid-4, .article-grid { grid-template-columns: 1fr; }
  .hero h1 { font-size: 32px; }
  .section { padding: 52px 0; }
  .site-footer .cols { grid-template-columns: 1fr; }
}
