/* 鸿美利物流科技 官网主页 设计系统
   品牌基调：深蓝科技（首屏主图同源）+ HML 红/蓝点缀
   中文站与 en/ 英文站共用本样式；全部相对路径。 */

:root {
  --navy-950: #06152B;
  --navy-900: #081A33;
  --navy-800: #0C2347;
  --navy-700: #103059;
  --blue: #1D4ED8;
  --blue-dark: #1A44BC;
  --sky: #38BDF8;
  --red: #E63946;
  --text: #1F2937;
  --muted: #5B6B7F;
  --line: #E4EAF2;
  --bg-soft: #F4F7FB;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(8, 26, 51, 0.10);
  --maxw: 1180px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  color: var(--text);
  background: var(--white);
  line-height: 1.75;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; }

.container { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ================= 顶栏 ================= */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.site-header .container {
  display: flex; align-items: center; gap: 28px;
  height: 68px;
}
.brand { display: flex; align-items: center; gap: 10px; margin-right: auto; }
.brand img { width: 34px; height: 34px; }
.brand-name { font-size: 19px; font-weight: 700; color: var(--navy-900); letter-spacing: 0.5px; }
.brand-name small { display: block; font-size: 10px; font-weight: 500; color: var(--muted); letter-spacing: 2.5px; line-height: 1.1; }

.main-nav { display: flex; align-items: center; gap: 26px; }
.main-nav a { font-size: 15px; color: var(--text); padding: 6px 2px; position: relative; }
.main-nav a:hover { color: var(--blue); }
.main-nav a.active { color: var(--blue); font-weight: 600; }
.main-nav a.active::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; border-radius: 2px; background: var(--blue);
}

.lang-switch {
  font-size: 13px; font-weight: 600; color: var(--blue);
  border: 1px solid currentColor; border-radius: 999px;
  padding: 4px 12px; background: transparent; cursor: pointer;
}
.lang-switch:hover { background: var(--blue); color: #fff; border-color: var(--blue); }

.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { display: block; width: 22px; height: 2px; background: var(--navy-900); margin: 5px 0; border-radius: 2px; transition: 0.2s; }

/* ================= Hero ================= */
.hero { position: relative; background: var(--navy-900); }
.hero img { width: 100%; height: auto; }
.hero-caption {
  position: absolute; inset: 0;
  padding: 28px 0 22px;
  background: linear-gradient(180deg, rgba(6,21,43,0.35) 0%, rgba(6,21,43,0.12) 40%, rgba(6,21,43,0.60) 75%, rgba(6,21,43,0.86) 100%);
}
.hero-caption .container {
  width: 100%; height: 100%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  position: relative;
}
.hero-center { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.hero-brand { display: flex; align-items: center; gap: 28px; min-width: 0; justify-content: center; }
.hero-brand > img {
  width: 128px; height: 128px; flex: none;
  filter: drop-shadow(0 4px 18px rgba(0, 0, 0, 0.7));
}
.hero-brand h1 { font-size: 76px; line-height: 1.2; color: #fff; font-weight: 700; letter-spacing: 3px; text-shadow: 0 3px 20px rgba(4, 16, 34, 0.95), 0 0 6px rgba(4, 16, 34, 0.7); }
.hero-sub {
  font-size: 32px; color: #EAF2FC; letter-spacing: 2px; text-align: center; line-height: 1.4;
  text-shadow: 0 2px 14px rgba(4, 16, 34, 0.95), 0 0 6px rgba(4, 16, 34, 0.75);
}
.hero-note {
  position: absolute; left: 0; bottom: 0; max-width: 58%;
  font-size: 14px; color: #C3D3E8; letter-spacing: 0.5px; line-height: 1.5;
  text-shadow: 0 1px 10px rgba(4, 16, 34, 0.95), 0 0 4px rgba(4, 16, 34, 0.7);
}
.hero-caption .hero-actions {
  position: absolute; right: 0; bottom: 0;
  display: flex; gap: 12px; flex-wrap: wrap; flex: none;
}

/* ================= 区块通用 ================= */
.section { padding: 72px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #EAF1FA; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 44px; }
.section-head .kicker {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--red); margin-bottom: 10px; text-transform: uppercase;
}
.section.dark .section-head .kicker { color: var(--sky); }
.section-head h2 { font-size: 32px; color: var(--navy-900); line-height: 1.3; }
.section.dark .section-head h2 { color: #fff; }
.section-head p { color: var(--muted); margin-top: 12px; }
.section.dark .section-head p { color: #B9C8DC; }

/* ================= 按钮 ================= */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  border-radius: 999px; padding: 11px 26px; font-size: 15px; font-weight: 600;
  cursor: pointer; border: 1px solid transparent; transition: 0.18s;
}
.btn-primary { background: var(--blue); color: #fff; }
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }
.btn-outline { border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); }
.btn-outline-blue { border-color: var(--blue); color: var(--blue); }
.btn-outline-blue:hover { background: var(--blue); color: #fff; }

/* ================= 通达区域 ================= */
.region-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.region-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px 22px; text-align: center; transition: 0.2s;
}
.region-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.region-card .rc-icon { width: 46px; height: 46px; margin: 0 auto 14px; color: var(--blue); }
.region-card h3 { font-size: 18px; color: var(--navy-900); }
.region-card p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ================= 核心业务卡 ================= */
.service-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 18px; }
.service-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 30px 24px; transition: 0.2s; display: flex; flex-direction: column; gap: 10px;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: transparent; }
.service-card .sc-icon { width: 44px; height: 44px; color: var(--red); }
.service-card h3 { font-size: 18px; color: var(--navy-900); }
.service-card p { font-size: 14px; color: var(--muted); flex: 1; }
.service-card .sc-more { font-size: 14px; color: var(--blue); font-weight: 600; }

/* ================= 优势（深色） ================= */
.adv-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.adv-item { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12); border-radius: var(--radius); padding: 28px 22px; }
.adv-item .ai-num { font-size: 13px; font-weight: 700; color: var(--sky); letter-spacing: 2px; }
.adv-item h3 { font-size: 17px; margin: 10px 0 8px; color: #fff; }
.adv-item p { font-size: 13.5px; color: #B9C8DC; }

/* ================= 数字化能力 ================= */
.tech-wrap { display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.tech-wrap h2 { font-size: 28px; color: var(--navy-900); margin-bottom: 14px; }
.tech-wrap > div > p { color: var(--muted); }
.tech-points { display: grid; gap: 16px; }
.tech-point { display: flex; gap: 14px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.tech-point .tp-icon { width: 38px; height: 38px; flex: none; color: var(--blue); }
.tech-point h3 { font-size: 16px; color: var(--navy-900); }
.tech-point p { font-size: 13.5px; color: var(--muted); }

/* ================= 流程 ================= */
.flow-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: flow; }
.flow-step { position: relative; text-align: center; padding: 26px 18px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); }
.flow-step::before {
  counter-increment: flow; content: "0" counter(flow);
  display: inline-block; font-size: 14px; font-weight: 800; color: var(--red); letter-spacing: 1px; margin-bottom: 8px;
}
.flow-step h3 { font-size: 17px; color: var(--navy-900); }
.flow-step p { font-size: 13.5px; color: var(--muted); margin-top: 6px; }

/* ================= 资讯卡 ================= */
.news-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.news-card {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: 0.2s; display: flex; flex-direction: column;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.news-cover { aspect-ratio: 16 / 9; overflow: hidden; background: var(--bg-soft); }
.news-cover img { width: 100%; height: 100%; object-fit: cover; }
.news-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.news-meta { display: flex; gap: 10px; align-items: center; font-size: 12.5px; color: var(--muted); }
.news-meta .cat { color: var(--red); font-weight: 600; }
.news-card h3 { font-size: 16.5px; color: var(--navy-900); line-height: 1.5; }
.news-card p { font-size: 13.5px; color: var(--muted); flex: 1; }
.section-more { text-align: center; margin-top: 36px; }
.news-empty { text-align: center; color: var(--muted); padding: 40px 0; }

/* ================= 公众号引流（深蓝渐变） ================= */
.official-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 44px; align-items: center; }
.official-wrap h2 { font-size: 28px; color: #fff; margin-bottom: 14px; }
.official-wrap .lead { color: #B9C8DC; }
.official-points { margin: 20px 0 26px; display: grid; gap: 10px; }
.official-points li { display: flex; gap: 10px; align-items: baseline; color: #DCE7F5; font-size: 15px; }
.official-points li::before { content: "✓"; color: var(--sky); font-weight: 700; }
.official-actions { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.qr-box { text-align: center; }
.qr-box img, .qr-box .qr-placeholder {
  width: 128px; height: 128px; border-radius: 12px; background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; color: var(--muted); padding: 8px; text-align: center;
}
.qr-box small { display: block; margin-top: 8px; color: #B9C8DC; font-size: 12.5px; }
.video-box { position: relative; border-radius: var(--radius); overflow: hidden; box-shadow: 0 18px 44px rgba(0,0,0,0.4); background: var(--navy-950); }
.video-box video { width: 100%; display: block; }
.video-placeholder {
  aspect-ratio: 16 / 9; display: flex; flex-direction: column; gap: 10px;
  align-items: center; justify-content: center; color: #7E93B4; font-size: 14px;
  border: 1px dashed rgba(255,255,255,0.25); border-radius: var(--radius);
}
.video-box figcaption { font-size: 12.5px; color: #8FA3C0; padding: 10px 4px 2px; }

/* ================= 底部 CTA ================= */
.cta-band { background: linear-gradient(120deg, var(--blue) 0%, #1450C8 55%, #0F3AA8 100%); color: #fff; }
.cta-band .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 40px; padding-bottom: 40px; }
.cta-band h2 { font-size: 24px; }
.cta-band p { color: rgba(255,255,255,0.82); margin-top: 6px; }
.cta-band .btn { background: #fff; color: var(--blue); }
.cta-band .btn:hover { background: #EAF0FF; }

/* ================= 页脚 ================= */
.site-footer { background: var(--navy-950); color: #93A7C4; font-size: 14px; }
.footer-main { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: 52px 0 40px; }
.footer-main h4 { color: #fff; font-size: 15px; margin-bottom: 14px; }
.footer-main li { margin-bottom: 9px; }
.footer-main a:hover { color: #fff; }
.footer-brand img { width: 40px; height: 40px; margin-bottom: 12px; }
.footer-brand p { font-size: 13.5px; line-height: 1.8; }
.footer-contact li { display: flex; gap: 8px; align-items: baseline; }
.footer-contact .fi { color: var(--sky); flex: none; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.09); padding: 18px 0; }
.footer-bottom .container { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: space-between; font-size: 12.5px; }
.footer-bottom a { color: #93A7C4; }
.footer-bottom a:hover { color: #fff; }

/* ================= 服务详情页（services） ================= */
.svc-block { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 44px; align-items: center; padding: 46px 0; border-bottom: 1px solid var(--line); }
.svc-block:last-of-type { border-bottom: 0; }
.svc-block .svc-visual {
  aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(150deg, var(--navy-800), var(--navy-700));
  display: flex; align-items: center; justify-content: center; color: #6E86AB;
}
.svc-block .svc-visual img { width: 100%; height: 100%; object-fit: cover; }
.svc-block .svc-visual svg { width: 72px; height: 72px; color: var(--sky); }
.svc-block h2 { font-size: 24px; color: var(--navy-900); margin-bottom: 12px; }
.svc-block > div > p { color: var(--muted); margin-bottom: 14px; }
.svc-points { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; }
.svc-points li { font-size: 14px; color: var(--text); display: flex; gap: 8px; align-items: baseline; }
.svc-points li::before { content: "•"; color: var(--red); font-weight: 700; }
.svc-routes { margin-top: 14px; padding: 14px 18px; background: var(--bg-soft); border-radius: 12px; font-size: 14px; color: var(--muted); }
.svc-routes strong { color: var(--navy-900); }
.svc-block.flip .svc-visual { order: 2; }

/* ================= 关于页 ================= */
.about-hero { background: linear-gradient(160deg, var(--navy-900), var(--navy-700)); color: #EAF1FA; padding: 64px 0; }
.about-hero h1 { font-size: 34px; color: #fff; }
.about-hero p { color: #B9C8DC; max-width: 760px; margin-top: 14px; }
.about-body { max-width: 860px; margin: 0 auto; }
.about-body h2 { font-size: 24px; color: var(--navy-900); margin: 44px 0 16px; }
.about-body p { color: var(--muted); margin-bottom: 12px; }
.about-facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 28px; }
.about-facts div { background: var(--bg-soft); border-radius: 12px; padding: 20px; text-align: center; }
.about-facts strong { display: block; font-size: 15px; color: var(--navy-900); }
.about-facts span { font-size: 13px; color: var(--muted); }

/* ================= 联系页 ================= */
.contact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 48px; }
.contact-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px 24px; text-align: center; }
.contact-card .cc-icon { width: 42px; height: 42px; margin: 0 auto 12px; color: var(--blue); }
.contact-card h3 { font-size: 16px; color: var(--navy-900); }
.contact-card p { font-size: 15px; color: var(--text); margin-top: 6px; font-weight: 600; word-break: break-all; }
.contact-card small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 4px; font-weight: 400; }
.contact-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: start; }
.contact-form { background: var(--bg-soft); border-radius: var(--radius); padding: 30px; }
.contact-form h3 { font-size: 19px; color: var(--navy-900); margin-bottom: 6px; }
.contact-form > p { font-size: 13.5px; color: var(--muted); margin-bottom: 20px; }
.contact-form label { display: block; font-size: 13.5px; font-weight: 600; color: var(--navy-900); margin: 14px 0 6px; }
.contact-form input, .contact-form textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 10px; background: #fff;
  padding: 11px 14px; font-size: 14px; font-family: inherit; color: var(--text);
}
.contact-form input:focus, .contact-form textarea:focus { outline: 2px solid rgba(29,78,216,0.25); border-color: var(--blue); }
.contact-aside .qr-box { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.contact-aside .qr-box img, .contact-aside .qr-box .qr-placeholder { background: var(--bg-soft); color: var(--muted); }
.contact-aside .qr-box small { color: var(--muted); }

/* ================= 新闻列表 / 文章页 ================= */
.page-head { background: var(--bg-soft); padding: 48px 0; border-bottom: 1px solid var(--line); }
.page-head h1 { font-size: 30px; color: var(--navy-900); }
.page-head p { color: var(--muted); margin-top: 8px; }
.news-list-page .news-grid { margin-top: 8px; }
.article { max-width: 800px; margin: 0 auto; }
.article-header { margin-bottom: 26px; }
.article-header .cat { color: var(--red); font-weight: 700; font-size: 14px; }
.article-header h1 { font-size: 28px; color: var(--navy-900); line-height: 1.4; margin: 10px 0 12px; }
.article-header .meta { font-size: 13px; color: var(--muted); }
.article-cover { border-radius: var(--radius); overflow: hidden; margin-bottom: 26px; background: var(--bg-soft); }
.article-cover img { width: 100%; max-height: 420px; object-fit: cover; }
.article-content { font-size: 16px; color: var(--text); }
.article-content p { margin-bottom: 16px; }
.article-content img { max-width: 100%; height: auto; border-radius: 10px; margin: 18px auto; }
.article-content h2, .article-content h3 { color: var(--navy-900); margin: 26px 0 12px; }
.article-content a { color: var(--blue); }
.article-back { margin-top: 40px; }

/* ================= 响应式 ================= */
@media (max-width: 960px) {
  .main-nav {
    display: none; position: absolute; top: 68px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--line); box-shadow: 0 14px 30px rgba(8,26,51,0.12);
    padding: 8px 24px 16px;
  }
  .main-nav.open { display: flex; }
  .main-nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); }
  .main-nav a.active::after { display: none; }
  .nav-toggle { display: block; }
  .lang-switch { margin-left: 0; }

  .region-grid, .service-grid, .adv-grid, .flow-grid { grid-template-columns: 1fr 1fr; }
  .news-grid, .contact-grid { grid-template-columns: 1fr 1fr; }
  .tech-wrap, .official-wrap, .contact-split, .svc-block { grid-template-columns: 1fr; gap: 28px; }
  .svc-block.flip .svc-visual { order: 0; }
  .about-facts { grid-template-columns: 1fr 1fr; }
  .footer-main { grid-template-columns: 1fr 1fr; gap: 28px; }
  .section { padding: 52px 0; }
  .section-head h2 { font-size: 26px; }
}

@media (max-width: 600px) {
  .region-grid, .service-grid, .adv-grid, .flow-grid, .news-grid, .contact-grid { grid-template-columns: 1fr; }
  .brand-name { font-size: 16px; }
  .hero-caption { position: static; background: var(--navy-900); padding: 18px 0; }
  .hero-brand { gap: 12px; }
  .hero-brand > img { width: 46px; height: 46px; }
  .hero-brand h1 { font-size: 24px; letter-spacing: 1px; }
  .hero-sub { font-size: 13.5px; }
  .hero-note { display: none; }
  .hero-caption .container { height: auto; justify-content: flex-start; gap: 12px; }
  .hero-caption .hero-actions { position: static; justify-content: center; }
  .svc-points { grid-template-columns: 1fr; }
  .footer-main { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; }
  .article-header h1 { font-size: 23px; }
}

/* ================= 官网安全加固：替代原先的内联 style（收紧 CSP style-src 'unsafe-inline'） ================= */
/* Technology 区块的 kicker 不在 .section-head 内，需独立给出与 .kicker 一致的字形 */
.kicker-tech {
  display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: 3px;
  color: var(--red); margin-bottom: 10px; text-transform: uppercase;
}
/* 联系表单“提交”按钮行的上间距 */
.cf-submit-row { margin-top: 20px; }
/* 联系页二维码占位水平居中 */
.qr-center { margin: 0 auto; }

