/* 全局样式重置 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: #333;
  line-height: 1.6;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  text-decoration: none;
  color: inherit;
}

ul, ol {
  list-style: none;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 顶部导航栏 */
.header {
  background: #fff;
  box-shadow: 0 2px 8px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-wrapper {
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: 70px;
}

.logo {
  font-size: 26px;
  font-weight: 700;
  color: #E31837;
  letter-spacing: 1px;
  text-decoration: none;
  transition: opacity 0.3s;
}

.logo:hover {
  opacity: 0.8;
}

.nav-menu {
  display: flex;
  gap: 30px;
}

.nav-item {
  position: relative;
}

.nav-item > a {
  display: block;
  padding: 25px 0;
  font-size: 18px;
  font-weight: 700;
  transition: color 0.3s;
}

.nav-item > a:hover {
  color: #1a1a2e;
}

.nav-item > a.highlight {
  color: #1a1a2e;
  font-weight: 600;
  position: relative;
}

.nav-item > a.highlight::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 100%;
  height: 2px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
}

.dropdown {
  position: absolute;
  top: 100%;
  left: -20px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
  min-width: 200px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s;
}

.nav-item:hover .dropdown {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.dropdown a {
  display: block;
  padding: 12px 20px;
  font-size: 14px;
  border-bottom: 1px solid #f5f5f5;
}

.dropdown a:hover {
  background: #f8f8f8;
  color: #E31837;
}

/* Hero区域 */
.hero {
  background: linear-gradient(135deg, #E31837, #c41230);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
}

/* 首页Hero背景图 */
.home-hero {
  background: none;
}

.home-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: url('../images/backgroud-with-plane-and-global-map.png') center/cover no-repeat;
  z-index: 0;
}

.home-hero::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(227,24,55,0.85), rgba(196,18,48,0.9));
  z-index: 1;
}

.home-hero .container {
  position: relative;
  z-index: 2;
}

.hero h1 {
  font-size: 48px;
  margin-bottom: 20px;
}

.hero p {
  font-size: 20px;
  opacity: 0.9;
}

/* 按钮样式 */
.btn {
  display: inline-block;
  padding: 12px 30px;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
  border: none;
  text-decoration: none;
}

.btn-primary {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: #fff;
  box-shadow: 0 4px 15px rgba(26, 26, 46, 0.3);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(26, 26, 46, 0.4);
}

.btn-outline {
  background: transparent;
  color: #fff;
  border: 2px solid #fff;
}

.btn-outline:hover {
  background: #fff;
  color: #1a1a2e;
}

/* Hero 区域的 btn-outline 特殊样式 */
.hero .btn-outline:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: #fff;
}

/* 卡片样式 */
.card {
  background: #fff;
  border-radius: 8px;
  padding: 30px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  transition: transform 0.3s, box-shadow 0.3s;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

/* 服务卡片特殊样式 */
.service-card {
  position: relative;
  overflow: hidden;
  border: none;
}

.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #1a1a2e, #16213e, #E31837);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s ease;
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-card img {
  transition: transform 0.4s ease;
}

.service-card:hover img {
  transform: scale(1.05);
}

.service-card .btn-primary {
  position: relative;
  z-index: 1;
  transition: all 0.3s ease;
}

.service-card:hover .btn-primary {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(26, 26, 46, 0.3);
}

/* 页脚 */
.footer {
  background: #1a1a1a;
  color: #999;
  padding: 60px 0 30px;
}

.footer-content {
  display: flex;
  justify-content: space-between;
  gap: 40px;
}

.footer-section h4 {
  color: #fff;
  margin-bottom: 20px;
  font-size: 16px;
}

.footer-section a {
  display: block;
  color: #999;
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-section a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid #333;
  margin-top: 40px;
  padding-top: 20px;
  text-align: center;
  font-size: 13px;
}

/* 通用间距 */
.section {
  padding: 80px 0;
}

/* 横幅背景覆盖层 */
.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(26,26,46,0.55), rgba(22,33,62,0.65));
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
}

/* 首页专用横幅覆盖层 */
.hero-overlay-home {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(20,30,48,0.55));
  z-index: 0;
}

/* 追踪结果卡片 */
.tracking-result {
  display: none;
  margin-top: 40px;
  text-align: left;
}

.tracking-result-header {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: white;
  padding: 25px 30px;
  border-radius: 12px 12px 0 0;
  margin-bottom: 0;
}

.tracking-number {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 8px;
}

.tracking-status {
  font-size: 16px;
  opacity: 0.9;
}

/* 时间线样式 */
.timeline {
  background: white;
  padding: 30px 35px;
  border-radius: 0 0 12px 12px;
  border: 1px solid #eee;
  border-top: none;
}

.timeline-item {
  display: flex;
  gap: 20px;
  padding-bottom: 30px;
  position: relative;
}

.timeline-item:last-child {
  padding-bottom: 0;
}

.timeline-item:not(:last-child)::after {
  content: '';
  position: absolute;
  left: 15px;
  top: 40px;
  width: 2px;
  height: calc(100% - 40px);
  background: #e0e0e0;
}

.timeline-dot {
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
  z-index: 1;
}

.timeline-dot.completed {
  background: linear-gradient(135deg, #22c55e, #16a34a);
}

.timeline-content {
  flex: 1;
  padding-top: 4px;
}

.timeline-time {
  font-size: 13px;
  color: #888;
  margin-bottom: 6px;
}

.timeline-title {
  font-size: 16px;
  font-weight: 600;
  color: #1a1a2e;
  margin-bottom: 4px;
}

.timeline-location {
  font-size: 14px;
  color: #666;
}

/* 状态圆点样式 */
.status-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  flex-shrink: 0;
}

.status-icon.completed {
  background: linear-gradient(135deg, #22c55e, #16a34a);
  color: white;
}

.status-icon.pending {
  background: #f3f4f6;
  color: #9ca3af;
}

/* 验证提示样式 */
.error-message {
  display: none;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #ea580c;
  padding: 12px 16px;
  border-radius: 8px;
  text-align: left;
  margin-top: -10px;
  margin-bottom: 20px;
  font-size: 14px;
}

.error-message.show {
  display: block;
}

input.error {
  border-color: #f97316 !important;
  background: #fff7ed;
}

.btn-primary:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

/* 加载中状态 */
.loading-indicator {
  display: none;
  text-align: center;
  padding: 20px;
}

.loading-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid #e5e7eb;
  border-top-color: #1a1a2e;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 10px;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.loading-text {
  color: #666;
  font-size: 14px;
}

/* 页面横幅背景样式 */
.hero-home {
  background-image: url('../images/backgroud-with-plane-and-global-map.png');
}
.hero-about-overview {
  background-image: url('../images/in-store-work.png');
}
.hero-about-vision {
  background-image: url('../images/plane-with-huge-ship.png');
}
.hero-about-ceo {
  background-image: url('../images/expess-dispatching-goods.png');
}
.hero-about-history {
  background-image: url('../images/backgroud-with-plane-and-global-map.png');
}
.hero-business-parcel {
  background-image: url('../images/expess-dispatching-goods.png');
}
.hero-business-scm {
  background-image: url('../images/backgroud-with-plane-and-global-map.png');
}
.hero-business-global {
  background-image: url('../images/in-store-work.png');
}
.hero-business-consulting {
  background-image: url('../images/plane-with-huge-ship.png');
}
.hero-track {
  background-image: url('../images/backgroud-with-plane-and-global-map.png');
}
.hero-contact {
  background-image: url('../images/backgroud-with-plane-and-global-map.png');
}

/* 联系表单精致样式 */
.contact-form-card {
  border: 1px solid #eee;
  box-shadow: 0 4px 20px rgba(0,0,0,0.05);
}

.contact-form-card h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 35px;
}

.contact-form-card h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, #1a1a2e, #16213e);
  border-radius: 2px;
}

.contact-form-input {
  transition: all 0.3s ease;
}

.contact-form-input:focus {
  border-color: #1a1a2e !important;
  box-shadow: 0 0 0 4px rgba(26, 26, 46, 0.08);
  outline: none;
}

/* 成功提示样式 */
.success-message {
  display: none;
  text-align: center;
  padding: 40px 30px;
  background: linear-gradient(135deg, #ecfdf5, #dcfce7);
  border: 1px solid #bbf7d0;
  border-radius: 12px;
  margin-bottom: 30px;
}

.success-icon {
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #22c55e, #16a34a);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  font-size: 40px;
  color: white;
  box-shadow: 0 4px 15px rgba(34, 197, 94, 0.3);
  animation: successPop 0.5s ease-out;
}

@keyframes successPop {
  0% { transform: scale(0); opacity: 0; }
  50% { transform: scale(1.1); }
  100% { transform: scale(1); opacity: 1; }
}

.success-title {
  font-size: 24px;
  font-weight: 700;
  color: #166534;
  margin-bottom: 12px;
}

.success-text {
  color: #15803d;
  font-size: 15px;
  line-height: 1.6;
}

/* 表单标签优化 */
.contact-form-label {
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.3px;
}

/* 内联错误提示样式 */
.field-error {
  display: none;
  color: #ea580c;
  font-size: 13px;
  margin-top: 6px;
  padding-left: 4px;
}

.field-error.show {
  display: block;
}

input.error-field,
textarea.error-field {
  border-color: #f97316 !important;
  background: #fff7ed !important;
}

input.error-field:focus,
textarea.error-field:focus {
  border-color: #f97316 !important;
  box-shadow: 0 0 0 4px rgba(249, 115, 22, 0.1) !important;
}

/* 追踪查询框样式 */
#trackingInput:focus {
  border-color: #E31837 !important;
}

#trackBtn:hover {
  background: #c41230;
}

.section-title {
  text-align: center;
  margin-bottom: 50px;
}

.section-title h2 {
  font-size: 42px;
  color: #333;
  margin-bottom: 15px;
}

.section-title p {
  font-size: 16px;
  color: #666;
}

/* 网格系统 */
.grid {
  display: grid;
  gap: 30px;
}

.grid-3 {
  grid-template-columns: repeat(3, 1fr);
}

.grid-2 {
  grid-template-columns: repeat(2, 1fr);
}

.grid-4 {
  grid-template-columns: repeat(4, 1fr);
}

.grid-5 {
  grid-template-columns: repeat(5, 1fr);
}

/* 服务卡片 */
.service-card {
  text-align: center;
  transition: all 0.3s ease;
}

.service-card:hover {
  transform: translateY(-8px);
}

.service-icon {
  font-size: 48px;
  margin-bottom: 20px;
}

/* 统计区域 */
.stats-section {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  padding: 80px 0;
  color: #fff;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 40px;
  text-align: center;
}

.stat-number {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 10px;
}

.stat-label {
  font-size: 16px;
  opacity: 0.9;
}

@media (max-width: 992px) {
  .grid-4, .grid-5 {
    grid-template-columns: repeat(2, 1fr);
  }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .grid-3, .grid-2, .grid-4, .grid-5 {
    grid-template-columns: 1fr;
  }
  .stats-grid {
    grid-template-columns: 1fr;
  }
}
