/* ========== 全新主题色：基于用户提供的色板 ==========
   主色板: #916588, #d8c1b3, #a881a0, #73506c, #e9dcd5, #c7a691
   主色调: #73506c (深邃紫檀)
   强调色: #916588 (玫瑰紫)
   辅助暖色: #c7a691 (暖杏色)
   浅背景: #e9dcd5 / #d8c1b3
*/
:root {
  --primary: #73506c;      /* 深紫檀色 — 主品牌色 */
  --accent: #916588;       /* 玫瑰紫 — 强调色 */
  --accent-light: #a881a0; /* 淡紫罗兰 */
  --warm: #c7a691;         /* 暖杏色 — 按钮/点缀 */
  --bg-light: #e9dcd5;     /* 柔和米灰 */
  --card-bg: #fffef7;
  --text-dark: #2c1e2a;
  --text-muted: #5e4b58;
  --border-light: #d8c1b3;
  --shadow: 0 12px 28px rgba(115, 80, 108, 0.12);
  --radius: 16px;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.5;
}
.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
a { text-decoration: none; color: inherit; }

/* 顶部条 - 现在固定在顶部，和导航栏一样滚动时可见 */
.top-bar {
  background: var(--primary);
  color: rgba(255,245,240,0.85);
  font-size: 13px;
  padding: 8px 0;
  position: sticky;
  top: 0;
  z-index: 102;           /* 高于导航栏，确保在最上层 */
  backdrop-filter: blur(2px);
  border-bottom: 1px solid rgba(255,245,240,0.15);
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.top-bar a {
  color: rgba(255,245,240,0.85);
  margin-left: 16px;
  transition: 0.2s;
}
.top-bar a:hover { color: var(--warm); }
.lang-switch { display: flex; gap: 8px; }
.lang-switch span {
  cursor: pointer;
  padding: 2px 10px;
  border-radius: 30px;
  font-size: 12px;
  transition: 0.2s;
}
.lang-switch .active {
  background: var(--warm);
  color: var(--primary);
  font-weight: 600;
}
.lang-switch span:not(.active):hover { background: rgba(255,255,240,0.2); }

/* 导航栏 — 移除原有的 top:0，改为通过 JS 动态设置 top 值（高度 = top-bar 高度） */
.navbar {
  background: var(--card-bg);
  border-bottom: 1px solid var(--border-light);
  position: sticky;
  /* top 值将由 JS 动态计算，确保紧贴 top-bar 下方 */
  z-index: 101;
  backdrop-filter: blur(8px);
  background: rgba(255, 254, 247, 0.96);
  transition: top 0.1s ease;
}
.navbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
/* ----- 全新 LOGO 区域：好运如旗 + LOTLOGISTICS 图案 ----- */
.logo {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
}
.logo-icon {
  width: 52px;
  height: 52px;
  background-image: url('images/logo.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border-radius: 18px;
  box-shadow: 0 6px 12px rgba(115,80,108,0.2);
  transition: 0.2s;
}
.logo-icon span {
display: none;
}
.logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}
.logo-chinese {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 1px;
}
.logo-sub {
  font-size: 11px;
  font-weight: 600;
  color: var(--accent-light);
  letter-spacing: 0.5px;
}
.nav-links {
  display: flex;
  gap: 6px;
  align-items: center;
}
.nav-links a {
  padding: 8px 18px;
  border-radius: 40px;
  font-size: 15px;
  font-weight: 500;
  color: var(--text-dark);
  transition: all 0.2s;
}
.nav-links a:hover,
.nav-links a.active {
  background: #f0e4e8;
  color: var(--accent);
}
.nav-cta {
  background: var(--warm) !important;
  color: var(--primary) !important;
  padding: 10px 26px !important;
  font-weight: 700 !important;
  box-shadow: 0 2px 6px rgba(199,166,145,0.3);
}
.nav-cta:hover {
  background: #b88d74 !important;
  color: white !important;
}
.mobile-toggle {
  display: none;
  background: none;
  border: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary);
}

/* 按钮 */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary {
  background: var(--warm);
  color: var(--primary);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: #f0bc9a;
  transform: translateY(-3px);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,245,0.6);
  color: white;
}
.btn-outline:hover {
  background: rgba(255,255,240,0.15);
  border-color: white;
}
.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-white:hover { background: #f9efea; transform: translateY(-3px); }

/* 表单通用样式 */
.form-container {
  max-width: 500px;
  margin: 80px auto;
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 40px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border-light);
}
.form-container h2 {
  text-align: center;
  color: var(--primary);
  margin-bottom: 30px;
}
.form-group {
  margin-bottom: 20px;
}
.form-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: var(--text-dark);
}
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 12px 16px;
  border: 1px solid var(--border-light);
  border-radius: 30px;
  font-size: 14px;
  outline: none;
  transition: 0.2s;
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 2px rgba(145,101,136,0.2);
}
.submit-btn {
  width: 100%;
  background: var(--accent);
  color: white;
  border: none;
  padding: 12px;
  border-radius: 30px;
  font-weight: 700;
  cursor: pointer;
  transition: 0.2s;
}
.submit-btn:hover {
  background: var(--primary);
}
.page-footer-link {
  text-align: center;
  margin-top: 20px;
}
.page-footer-link a {
  color: var(--accent);
}

/* 通用页面内容区域 */
.page-content {
  padding: 60px 0;
  background: white;
  border-radius: var(--radius);
  margin: 40px auto;
  box-shadow: var(--shadow);
}
.page-content h1 {
  font-size: 36px;
  color: var(--primary);
  margin-bottom: 20px;
}
.page-content h2 {
  font-size: 24px;
  margin: 30px 0 15px;
  color: var(--accent);
}
.page-content p {
  margin-bottom: 16px;
  color: var(--text-muted);
  line-height: 1.7;
}
.page-content ul, .page-content ol {
  margin-left: 24px;
  margin-bottom: 20px;
}
.page-content li {
  margin-bottom: 8px;
  color: var(--text-muted);
}


/* HERO 区 — 渐变采用色板 */
.hero {
  background: linear-gradient(125deg, #73506c 0%, #916588 45%, #c7a691 100%);
  color: white;
  padding: 80px 0 70px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -30%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(233,220,213,0.2) 0%, transparent 70%);
  border-radius: 50%;
}
.hero .container {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.hero h1 {
  font-size: 46px;
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 20px;
}
.hero h1 span {
  color: #ffecb3;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}
.hero > p {
  font-size: 18px;
  opacity: 0.92;
  margin-bottom: 32px;
}
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 32px;
  border-radius: 60px;
  font-size: 16px;
  font-weight: 700;
  border: none;
  cursor: pointer;
  transition: 0.2s;
}
.btn-primary {
  background: var(--warm);
  color: var(--primary);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}
.btn-primary:hover {
  background: #f0bc9a;
  transform: translateY(-3px);
}
.btn-outline {
  background: transparent;
  border: 2px solid rgba(255,255,245,0.6);
  color: white;
}
.btn-outline:hover {
  background: rgba(255,255,240,0.15);
  border-color: white;
}
.hero-card {
  background: rgba(255, 250, 240, 0.12);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(255,250,240,0.3);
  border-radius: 28px;
  padding: 28px;
}
.hero-card h3 {
  font-size: 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}
.tracking-input {
  display: flex;
  gap: 12px;
  margin-bottom: 20px;
}
.tracking-input input {
  flex: 1;
  padding: 14px 18px;
  border-radius: 60px;
  border: 1px solid rgba(255,255,240,0.4);
  background: rgba(255,250,240,0.2);
  color: white;
  font-size: 14px;
  outline: none;
}
.tracking-input input::placeholder { color: rgba(255,245,235,0.7); }
.tracking-input button {
  padding: 12px 28px;
  background: var(--warm);
  border: none;
  border-radius: 60px;
  font-weight: 700;
  color: var(--primary);
  cursor: pointer;
}
.quick-services {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.quick-service {
  background: rgba(255,255,240,0.1);
  border: 1px solid rgba(255,250,240,0.25);
  border-radius: 20px;
  padding: 12px;
  text-align: center;
  transition: 0.2s;
}
.quick-service:hover {
  background: rgba(255,245,230,0.25);
  transform: translateY(-3px);
}
.quick-service .icon { font-size: 28px; margin-bottom: 6px; }
.quick-service .label { font-size: 12px; font-weight: 500; }

/* 数据条 */
.stats-bar {
  background: white;
  border-bottom: 1px solid var(--border-light);
  padding: 24px 0;
}
.stats-bar .container {
  display: flex;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 24px;
}
.stat-num {
  font-size: 32px;
  font-weight: 800;
  color: var(--accent);
}
.stat-label {
  font-size: 13px;
  color: var(--text-muted);
  margin-top: 6px;
}

/* 通用区块 */
.section { padding: 70px 0; }
.section-header {
  text-align: center;
  margin-bottom: 48px;
}
.section-header h2 {
  font-size: 34px;
  font-weight: 800;
  color: var(--primary);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--text-muted);
  font-size: 16px;
  max-width: 600px;
  margin: 0 auto;
}
.section-header .line {
  width: 70px;
  height: 4px;
  background: linear-gradient(90deg, var(--accent), var(--warm));
  border-radius: 4px;
  margin: 16px auto 0;
}

/* 服务卡片 */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.service-card {
  background: var(--card-bg);
  border-radius: var(--radius);
  padding: 32px 24px;
  border: 1px solid var(--border-light);
  transition: 0.25s ease;
}
.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow);
  border-color: var(--accent-light);
}
.service-icon {
  width: 64px;
  height: 64px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 20px;
}
.si-blue { background: #ede4e8; color: #73506c; }
.si-orange { background: #f9efe8; color: #c7a691; }
.si-green { background: #ece3e8; color: #a881a0; }
.si-purple { background: #f2e6f0; color: #916588; }
.service-card h3 {
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 12px;
}
.service-card p {
  font-size: 14px;
  color: var(--text-muted);
  line-height: 1.6;
}
.learn-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  color: var(--accent);
  font-weight: 600;
}

/* 全球路线 (深色背景) */
.routes-section {
  background: var(--primary);
  color: white;
}
.routes-section .section-header h2 { color: white; }
.routes-section .section-header p { color: rgba(255,245,235,0.7); }
.routes-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}
.route-card {
  background: rgba(255,245,235,0.08);
  border: 1px solid rgba(255,245,235,0.2);
  border-radius: 24px;
  padding: 24px;
  text-align: center;
  transition: 0.2s;
}
.route-card:hover {
  background: rgba(255,240,225,0.16);
  transform: translateY(-5px);
}
.route-card .flag { font-size: 38px; margin-bottom: 12px; }
.route-card h4 { font-size: 18px; margin-bottom: 6px; }
.route-card p { font-size: 12px; opacity: 0.7; }
.route-card .time {
  display: inline-block;
  background: rgba(199,166,145,0.25);
  color: var(--warm);
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 600;
  margin-top: 14px;
}

/* 为什么选择我们 */
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.why-card {
  display: flex;
  gap: 20px;
  padding: 28px;
  background: white;
  border-radius: 24px;
  border: 1px solid var(--border-light);
  transition: 0.2s;
}
.why-card:hover { box-shadow: 0 12px 20px rgba(115,80,108,0.08); }
.why-icon {
  width: 54px;
  height: 54px;
  border-radius: 18px;
  background: linear-gradient(135deg, var(--accent), var(--accent-light));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  flex-shrink: 0;
  color: white;
}
.why-card h4 { font-size: 18px; font-weight: 800; margin-bottom: 6px; color: var(--primary); }
.why-card p { font-size: 13px; color: var(--text-muted); }

/* 资讯 */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 28px;
}
.news-card {
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border-light);
  transition: 0.2s;
}
.news-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.news-img {
  height: 170px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
}
.ni-1 { background: linear-gradient(145deg, #a881a0, #73506c); }
.ni-2 { background: linear-gradient(145deg, #916588, #c7a691); }
.ni-3 { background: linear-gradient(145deg, #73506c, #a881a0); }
.news-body { padding: 22px; }
.news-tag {
  display: inline-block;
  background: #f2e6f0;
  color: #73506c;
  padding: 4px 14px;
  border-radius: 30px;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 12px;
}
.news-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 10px;
  color: var(--primary);
}
.news-card > p { font-size: 13px; color: var(--text-muted); }
.news-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
  color: var(--text-muted);
}

/* 合作伙伴 */
.partners-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 32px;
  flex-wrap: wrap;
  padding: 24px 0;
  opacity: 0.7;
}
.partner-logo {
  font-size: 14px;
  font-weight: 700;
  background: white;
  padding: 10px 24px;
  border-radius: 60px;
  color: var(--accent);
  border: 1px solid var(--border-light);
  letter-spacing: 1px;
}

/* CTA 区 */
.cta-section {
  background: linear-gradient(115deg, #916588, #73506c);
  color: white;
  text-align: center;
  padding: 64px 0;
}
.cta-section h2 { font-size: 34px; font-weight: 800; margin-bottom: 12px; }
.cta-section p { font-size: 16px; opacity: 0.9; margin-bottom: 32px; max-width: 520px; margin-left: auto; margin-right: auto; }
.btn-white {
  background: white;
  color: var(--primary);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}
.btn-white:hover { background: #f9efea; transform: translateY(-3px); }

/* 页脚 - 完全移除下划线 */
.footer {
  background: var(--primary);
  color: rgba(255,245,235,0.75);
  padding: 48px 0 30px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 36px;
  margin-bottom: 40px;
}
.footer h4 {
  color: #ffe6dc;
  font-size: 18px;
  margin-bottom: 20px;
  font-weight: 700;
}
.footer ul { list-style: none; }
.footer li { margin-bottom: 10px; font-size: 13px; }
.footer li a:hover { 
  color: var(--warm); 
  text-decoration: none;
}
.footer-bottom {
  border-top: 1px solid rgba(255,245,235,0.2);
  padding-top: 24px;
  text-align: center;
  font-size: 12px;
}

/* 响应式 */
@media (max-width: 768px) {
  .hero .container { grid-template-columns: 1fr; text-align: center; }
  .hero h1 { font-size: 32px; }
  .nav-links {
    display: none;
    flex-direction: column;
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    border-bottom: 1px solid var(--border-light);
    box-shadow: 0 20px 30px rgba(0,0,0,0.05);
    z-index: 99;
  }
  .nav-links.show { display: flex; }
  .nav-links a { width: 100%; text-align: center; padding: 12px; }
  .mobile-toggle { display: block; }
  .stats-bar .container { gap: 20px; }
  .tracking-input { flex-wrap: wrap; }
  .tracking-input button { width: 100%; }
  .hero-card { padding: 20px; }
}
@media (min-width: 769px) {
  .nav-links { display: flex !important; }
}

/* 为所有可能作为锚点目标的 section / div 设置滚动偏移，避免被固定头部遮挡 */
#services, #routes, #about, #news,
.service-card, .route-card, .why-card, .news-card,
.hero, .stats-bar, .cta-section,
[class*="section"] {
  scroll-margin-top: 110px;  /* 根据实际头部高度调整，一般等于 top-bar + navbar 总高度 */
}

/* 或者为了更广泛的兼容，使用 :target */
:target {
  scroll-margin-top: 110px;
}

/* 如果 top-bar 和 navbar 都是固定/粘性，确保滚动偏移量足够 */
@media (max-width: 768px) {
  html {
    scroll-padding-top: 90px;  /* 移动端头部可能更小 */
  }
}
