:root {
  --primary-color: #1d9344;
  --primary-dark: #167a36;
  --text-light: #ffffff;
  --bg-light: #f5f5f5;
  --text-dark: #333333;
  --border-radius: 8px;
  --box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Arial", sans-serif;
}

body {
  background-color: #fff;
  color: var(--text-dark);
  line-height: 1.6;
}

/* 顶部导航栏 */
.top-bar {
  width: 100%;
  background-color: #fff;
  padding: 0 5%;
  height: 70px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  box-shadow: var(--box-shadow);
  position: sticky;
  top: 0;
  z-index: 100;
}

.logo {
  display: flex;
  align-items: center;
}

.logo img {
  height: 70px;
}
.logo p {
  font-weight: bold;
  font-size: 25px;
  color: #1d9344;
  margin-left: 15px;
}
.lang-switch {
  display: flex;
  gap: 10px;
}

.lang-btn {
  background: transparent;
  border: 1px solid #1d9344;
  color: #1d9344;
  padding: 6px 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s;
}

.lang-btn.active {
  background-color: #1d9344;
  color: #fff;
  font-weight: bold;
}

/* 主要内容容器 */
.container {
  max-width: 1200px;
  margin: 30px auto;
  padding: 0 20px;
}

/* 查询区域 */
.query-section {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

/* 左侧查询框 */
.tracking-input {
  flex: 1;
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.tracking-input h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

.input-group {
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.input-group input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ddd;
  border-radius: var(--border-radius);
  font-size: 16px;
  transition: border 0.3s;
}

.input-group input:focus {
  border-color: var(--primary-color);
  outline: none;
}

.btn {
  background-color: var(--primary-color);
  color: white;
  border: none;
  padding: 12px 24px;
  font-size: 16px;
  cursor: pointer;
  border-radius: var(--border-radius);
  transition: background-color 0.3s;
  width: 100%;
}

.btn:hover {
  background-color: var(--primary-dark);
}

/* 右侧结果区 */
.tracking-result {
  flex: 2;
  background-color: white;
  padding: 25px;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.tracking-result h2 {
  font-size: 22px;
  margin-bottom: 20px;
  color: var(--primary-color);
  border-bottom: 2px solid var(--primary-color);
  padding-bottom: 10px;
}

/* 物流轨迹时间线 */
.timeline {
  position: relative;
  padding-left: 30px;
}

.timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background-color: var(--primary-color);
}

.timeline-item {
  position: relative;
  margin-bottom: 25px;
  padding: 15px;
  background-color: #f9f9f9;
  border-radius: var(--border-radius);
  transition: transform 0.3s;
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -27px;
  top: 20px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background-color: var(--primary-color);
  border: 2px solid white;
}

.timeline-date {
  font-weight: bold;
  color: var(--primary-color);
  margin-bottom: 5px;
}

.timeline-location {
  font-weight: bold;
  margin-bottom: 5px;
}

.timeline-status {
  color: #666;
}

/* 底部区域 */
.footer {
  background-color: #222;
  color: white;
  padding: 40px 5%;
}

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

.footer-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #444;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 15px;
}

.footer-logo {
  height: 50px;
}

.brand-name {
  font-size: 24px;
  font-weight: bold;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background-color: #444;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}

.social-icon:hover {
  background-color: var(--primary-color);
}

.footer-nav {
  display: flex;
  gap: 20px;
  margin-bottom: 30px;
}

.footer-nav a {
  color: white;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-nav a:hover {
  color: var(--primary-color);
}

.footer-nav span {
  color: #666;
}

.footer-address {
  margin-bottom: 30px;
}

.address-title {
  font-size: 18px;
  font-weight: bold;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.address-item {
  margin-bottom: 10px;
  line-height: 1.6;
}

.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #444;
  color: #999;
  font-size: 14px;
}

/* 语言切换功能 */
.lang-zh,
.lang-en {
  display: none;
}

.lang-zh.active,
.lang-en.active {
  display: block;
}

.partners {
  padding: 40px 0;
}
.partners h2 {
  color: #1d9344;
  font-size: 30px;
  margin-bottom: 30px;
  text-align: center;
  font-weight: bold;
  position: relative;
}
.partners h2:after {
  content: "";
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  bottom: 0;
  background: rgba(29, 147, 68, 0.1);
  width: 150px;
  height: 25px;
}
.partners-logos {
  display: flex;
  flex-wrap: wrap;
  margin-top: 15px;
  width: 100%;
}
.partners-logos div {
  width: 25%;
  height: 140px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  padding: 10px;
  overflow: hidden;
  margin-bottom: 15px;
}
.partners-logos div img {
  max-width: 100%;
  max-height: 100%;
}

.search-p {
  text-align: center;
  padding: 70px 0;
  color: #167a36;
  font-size: 17px;
}

@media screen and (max-width: 750px) {
  .top-bar {
    height: 55px;
    padding: 0 10px;
  }
  .logo img {
    height: 55px;
  }
  .logo p {
    font-size: 16px;
    margin-left: 10px;
    display: none !important;
  }
  .query-section {
    flex-direction: column;
  }
  .brand-name {
    font-size: 19px;
  }
}
