/* 振邦物流国际网站 - 核心样式 */

/* ==================== CSS变量定义 ==================== */
:root {
  /* 主题颜色 */
  /* --primary-color: #e74c3c; */
  --primary-color:#0061ae;
  --primary-dark: #004a87;
  --secondary-color: #2c3e50;
  --secondary-dark: #1a252f;
  
  /* 辅助颜色 */
  --accent-blue: #3498db;
  --accent-orange: #e67e22;
  --text-dark: #2c3e50;
  --text-light: #7f8c8d;
  --text-white: #ffffff;
  
  /* 背景颜色 */
  --bg-light: #ecf0f1;
  --bg-white: #ffffff;
  --bg-dark: #2c3e50;
  
  /* 字体 */
  --font-main: 'Microsoft YaHei', 'PingFang SC', 'Hiragino Sans GB', sans-serif;
  --font-size-base: 16px;
  --font-size-small: 14px;
  --font-size-large: 18px;
  --font-size-h1: 36px;
  --font-size-h2: 28px;
  --font-size-h3: 22px;
  
  /* 间距 */
  --spacing-xs: 8px;
  --spacing-sm: 16px;
  --spacing-md: 24px;
  --spacing-lg: 40px;
  --spacing-xl: 60px;
  
  /* 圆角 */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  
  /* 阴影 */
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.1);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.15);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.2);
  
  /* 过渡 */
  --transition-fast: 0.2s ease;
  --transition-normal: 0.3s ease;
  --transition-slow: 0.5s ease;
}

/* ==================== 重置样式 ==================== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-main);
  font-size: var(--font-size-base);
  line-height: 1.6;
  color: var(--text-dark);
  background-color: var(--bg-white);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  text-decoration: none;
  color: inherit;
  transition: var(--transition-fast);
}

ul, ol {
  list-style: none;
}

button {
  border: none;
  background: none;
  cursor: pointer;
  font-family: inherit;
}

.flex {
  display: flex;
}

.flex-align-center {
  align-items: center;
}

/* ==================== 通用类 ==================== */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--spacing-sm);
}

.section {
  padding: var(--spacing-xl) 0;
}

.section-title {
  font-size: var(--font-size-h2);
  font-weight: bold;
  text-align: center;
  margin-bottom: var(--spacing-lg);
  color: var(--text-dark);
}

.section-subtitle {
  font-size: var(--font-size-base);
  text-align: center;
  color: var(--text-light);
  margin-bottom: var(--spacing-md);
}

.btn {
  display: inline-block;
  padding: 12px 32px;
  border-radius: var(--radius-sm);
  font-size: var(--font-size-base);
  font-weight: 500;
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
}

.btn-primary {
  background-color: var(--primary-color);
  color: var(--text-white);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.btn-secondary {
  background-color: transparent;
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
}

.btn-secondary:hover {
  background-color: var(--primary-color);
  color: var(--text-white);
}

/* ==================== 顶部导航栏 ==================== */
.header {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.navbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--spacing-sm) 0;
}

.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
}

.logo img {
  height: 50px;
  width: auto;
  transform: scale(1.04);
}

.logo-text {
  font-size: 24px;
  font-weight: bold;
  color: var(--text-dark);
}

.logo-title {
  font-size: 30px;
  font-weight: 600;
  margin-left: 20px;
  color: var(--primary-color);
}

.nav-menu {
  display: flex;
  gap: var(--spacing-md);
  align-items: center;
}

.nav-link {
  padding: 8px 16px;
  color: var(--text-dark);
  font-size: var(--font-size-base);
  position: relative;
}

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background-color: var(--primary-color);
  transition: var(--transition-normal);
  transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
  width: 80%;
}

.nav-link:hover {
  color: var(--primary-color);
}

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  gap: 4px;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 3px;
  background-color: var(--text-dark);
  transition: var(--transition-fast);
}

.breadcrumb {
  font-size: 18px;
  font-weight: 600;
  color: #000000;
}

.title {
  font-size: 21px;
  font-weight: 600;
  color: #000000;
  margin-top: 20px;
  text-align: center;
  padding-bottom: 8px;
  border-bottom: 1px solid #000000;
  margin-bottom: 8px;
}

.footer-info {
  margin-top: 150px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.footer-info .line-1 {
  font-size: 24px;
  font-weight: 600;
}

.footer-info .line-2 {
  font-size: 18px;
  font-weight: 500;
  margin-top: 8px;
}

.footer-info .line-3 {
  margin-top: 40px;
  font-size: 16px;
  font-weight: 500;
  padding: 5px 12px;
  border-radius: 50px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
}

.footer-info .red-color {
  color: var(--primary-color);
}

.footer-img {
  margin: 120px auto 0;
  max-width: 600px;
}

.footer-img .img {
  width: 100%;
  height: auto;
}

.swiper-slide {
  height: auto !important;
}

/* ==================== 首页横幅 ==================== */
.hero {
  position: relative;
  height: 600px;
  background: url(../images/img_home02.jpg) center/cover no-repeat;
  display: flex;
  color: var(--text-white);
  overflow: hidden;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  flex: 1;
  padding: var(--spacing-md);
}

.hero-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: var(--spacing-md);
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
  animation: fadeInUp 1s ease;
}

.hero-subtitle {
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-lg);
  opacity: 0.95;
  animation: fadeInUp 1s ease 0.2s both;
}

.hero-buttons {
  display: flex;
  gap: var(--spacing-sm);
  justify-content: center;
  animation: fadeInUp 1s ease 0.4s both;
}

.ydcx {
  display: flex;
  justify-content: center;
  margin-top: 20px;
}

.ydcx img {
  width: 340px;
  height: auto;
}

.hero .search {
  padding: 20px 100px 30px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  max-width: 1150px;
  margin: 150px auto 0;
}

.hero .search-tit {
  font-size: 46px;
  font-weight: 600;
  color: #2f2f2d;
}

.hero .search-box {
  display: flex;
  font-size: 16px;
  margin-top: 20px;
}

.hero .search-box .ipt {
  border: 1px solid #bebebe;
  font-size: 16px;
  flex: 1;
  padding: 0 20px;
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.hero .search-box .ipt:focus {
    outline: none;
}

.hero .search-btn {
  width: 120px;
  font-size: 16px;
  padding: 16px 0;
  color: #ffffff;
  background-color: var(--primary-color) !important;
  margin-left: 0;
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
}


/* ==================== 信息卡片区域 ==================== */
.info-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-top: -80px;
  position: relative;
  z-index: 10;
}

.info-card {
  background-color: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  transition: var(--transition-normal);
}

.info-card:nth-child(1) {
  background: linear-gradient(135deg, #3498db, #2980b9);
  color: var(--text-white);
}

.info-card:nth-child(2) {
  background: linear-gradient(135deg, #e74c3c, #c0392b);
  color: var(--text-white);
}

.info-card:nth-child(3) {
  background: linear-gradient(135deg, #f39c12, #e67e22);
  color: var(--text-white);
}

.info-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.info-card-title {
  font-size: var(--font-size-h3);
  font-weight: bold;
  margin-bottom: var(--spacing-sm);
}

.info-card-content {
  font-size: var(--font-size-small);
  line-height: 1.8;
}

/* ==================== 服务模块 ==================== */
.services {
  background-color: var(--bg-light);
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.service-item {
  background-color: var(--bg-white);
  padding: var(--spacing-lg);
  border-radius: var(--radius-md);
  text-align: center;
  transition: var(--transition-normal);
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.service-item::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--accent-orange));
  transform: scaleX(0);
  transition: var(--transition-normal);
}

.service-item:hover::before {
  transform: scaleX(1);
}

.service-item:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
}

.service-icon {
  width: 80px;
  height: 80px;
  margin: 0 auto var(--spacing-sm);
  background: linear-gradient(135deg, var(--primary-color), var(--accent-orange));
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
}

.service-item:hover .service-icon {
  transform: rotateY(360deg);
}

.service-icon img {
  width: 40px;
  height: 40px;
  filter: brightness(0) invert(1);
}

.service-title {
  font-size: var(--font-size-large);
  font-weight: bold;
  margin-bottom: var(--spacing-xs);
  color: var(--text-dark);
}

.service-description {
  font-size: var(--font-size-small);
  color: var(--text-light);
}

/* ==================== 优势展示 ==================== */
.advantages {
  background-color: var(--bg-white);
}

.advantage-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: var(--spacing-lg);
}

.advantage-item {
  position: relative;
  padding: var(--spacing-lg);
  background-color: var(--bg-light);
  border-radius: var(--radius-md);
  transition: var(--transition-normal);
}

.advantage-item:hover {
  background-color: var(--bg-white);
  box-shadow: var(--shadow-md);
}

.advantage-number {
  position: absolute;
  top: -20px;
  left: var(--spacing-md);
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, var(--primary-color), var(--accent-orange));
  color: var(--text-white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  font-weight: bold;
  box-shadow: var(--shadow-md);
}

.advantage-title {
  font-size: var(--font-size-h3);
  font-weight: bold;
  margin: var(--spacing-md) 0 var(--spacing-sm);
  color: var(--text-dark);
}

.advantage-description {
  font-size: var(--font-size-base);
  color: var(--text-light);
  line-height: 1.8;
}

/* ==================== 合作伙伴 ==================== */
.partners {
  background-color: var(--bg-dark);
  color: var(--text-white);
}

.partners .section-title {
  color: var(--text-white);
}

.partner-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: var(--spacing-md);
  margin-top: var(--spacing-lg);
}

.partner-item {
  background-color: var(--bg-white);
  padding: var(--spacing-md);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition-normal);
  height: 100px;
}

/* .partner-item:hover {
  transform: scale(1.05);
  box-shadow: var(--shadow-md);
} */

.partner-item img {
  /* max-height: 60px;
  width: auto;
  transition: var(--transition-normal); */
  max-height: 60px;
  width: auto;
}

.swiper-container {
  overflow: hidden;
}

/* ==================== 联系我们 ==================== */
.contact_us {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 0 !important;
}

.contact_us .content {
  background-color: #f3f1ed;
  width: 100%;
  height: 500px;
  overflow: hidden;
}

.contact_us .contact {
  font-size: 12px;
  font-weight: 500;
}

.contact_us .contact>div {
  margin-top: 12px;
}

/* ==================== 产品服务 ==================== */
.product_services {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 0 !important;
}

.product_services .list {
  margin-top: 35px;
}

.product_services .item {
  font-size: 14px;
  margin-bottom: 10px;
}

.product_services .item:last-child {
  margin-bottom: 30px;
}

.product_services .item .date {
  font-size: 12px;
  color: #bebebe;
  margin-left: 10px;
}

.product_services .mt-25 {
  margin-top: 25px;
}

.product_services .sreach {
  display: flex;
  align-items: center;
  font-size: 12px;
}

.product_services .sreach .ipt {
  border: 1px solid #bebebe;
  width: 140px;
  padding: 6px 0;
}

.product_services .sreach .btn {
  width: 40px;
  border: 1px solid #bebebe;
  background-color: #f0f0f0;
  font-size: 12px;
  padding: 6px 0;
  margin-left: 5px;
  border-radius: 0;
}

/* ==================== 运单查询 ==================== */
.waybill_search {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 0 !important;
}

.waybill_search .search {
  width: 340px;
  display: flex;
  flex-direction: column;
  margin: 30px auto 0;
}

.waybill_search .ipt {
  height: 200px;
  padding: 5px;
}

.waybill_search .btn {
  margin-top: 20px;
  background-color: #0e6eb9;
  color: #ffffff;
  font-size: 12px;
  padding: 8px 0;
  border-radius: 0;
}

/* ==================== 关于我们 ==================== */
.about_us {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px 0 !important;
}

.about_us .content {
  font-size: 14px;
  font-weight: 500;
}

.about_us .item {
  margin-top: 20px;
  font-size: 14px;
  font-weight: 500;
}

/* ==================== 底部信息 ==================== */
.footer {
  background-color: var(--secondary-dark);
  color: var(--text-white);
  padding: var(--spacing-xl) 0 var(--spacing-md);
}

.footer-content {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

.footer-section h3 {
  font-size: var(--font-size-large);
  margin-bottom: var(--spacing-sm);
  color: var(--text-white);
}

.footer-section ul {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-xs);
}

.footer-section a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition-fast);
}

.footer-section a:hover {
  color: var(--primary-color);
  padding-left: 8px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: var(--spacing-md);
  text-align: center;
  color: rgba(255, 255, 255, 0.6);
  font-size: var(--font-size-small);
}

/* ==================== 动画效果 ==================== */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes fadeIn {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

/* ==================== 响应式设计 ==================== */
@media (max-width: 1024px) {
  .service-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .partner-grid {
    grid-template-columns: repeat(4, 1fr);
  }
  
  .footer-content {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .nav-menu {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background-color: var(--bg-white);
    flex-direction: column;
    padding: var(--spacing-md);
    box-shadow: var(--shadow-md);
    display: none;
  }
  
  .nav-menu.active {
    display: flex;
  }
  
  .info-cards {
    grid-template-columns: 1fr;
    margin-top: var(--spacing-md);
  }
  
  .service-grid {
    grid-template-columns: 1fr;
  }
  
  .advantage-grid {
    grid-template-columns: 1fr;
  }
  
  .partner-grid {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .hero-title {
    font-size: 32px;
  }

  .hero .search {
    padding: 20px 20px 30px;
  }
  
  .hero .ipt {
    width: 100px !important;
    padding: 0 10px !important;
  }

  .hero .ipt::placeholder {
    font-size: 14px !important;
  }

  .hero .search-btn {
    width: 80px !important;
  }

  .hero .search-tit {
    font-size: 30px;
  }
}

@media (max-width: 480px) {
  .partner-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .hero-buttons {
    flex-direction: column;
  }
}
