/* ===== 全局样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
  line-height: 2.0;
  color: #333;
  background-color: #fff;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

/* 满宽容器 */
.full-width {
  width: 100%;
}

/* ===== Header / Logo样式 ===== */
.header {
  display: flex;
  align-items: center;
  padding: 15px 0;
  border-bottom: 1px solid #eee;
}
.logo {
  font-size: 24px;
  font-weight: bold;
  color: #2c3e50;
}

/* ===== 导航栏样式 ===== */
.nav-wrapper {
  width: 100%;
  background-color: #000000;
  border-top: 1px solid #333;
  border-bottom: 1px solid #333;
}

.nav {
  display: flex;
  justify-content: center;
  padding: 12px 0;
  background-color: #000000;
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
}

.nav a {
  margin: 0 20px;
  text-decoration: none;
  color: #ffffff;
  font-size: 16px;
  font-weight: 400;
  transition: color 0.3s;
  letter-spacing: 0.3px;
}

.nav a:hover {
  color: #e74c3c;
}

.nav a.active {
  color: #ffffff;
  border-bottom: 2px solid #e74c3c;
  font-weight: 500;
}

/* ===== 底部栏样式 ===== */
.footer {
  background-color: #000000;
  color: #ffffff;
  margin-top: 60px;
  padding: 50px 0 20px;
  width: 100%;
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-nav-title,
.footer-contact-title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 20px;
  color: #ffffff;
  letter-spacing: 0.5px;
  border-bottom: 1px solid #333;
  padding-bottom: 8px;
}

.footer-nav-links {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 12px 20px;
}

.footer-nav-links a {
  color: #cccccc;
  text-decoration: none;
  font-size: 14px;
  transition: color 0.3s;
  line-height: 1.8;
  white-space: nowrap;
}

.footer-nav-links a:hover {
  color: #e74c3c;
}

.footer-contact-info {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  color: #cccccc;
  font-size: 14px;
  line-height: 1.6;
}

.footer-contact-item i {
  color: #e74c3c;
  width: 20px;
  font-size: 16px;
  margin-top: 3px;
}

.footer-bottom {
  max-width: 1200px;
  margin: 0 auto;
  width: 90%;
  border-top: 1px solid #333;
  padding-top: 20px;
  text-align: center;
  color: #888888;
  font-size: 13px;
}

.footer-bottom p {
  margin: 5px 0;
}

/* ===== 响应式公共样式 ===== */
@media (max-width: 768px) {
  .nav {
    flex-wrap: wrap;
    gap: 10px;
    padding: 10px 0;
  }
  .nav a {
    margin: 0 8px;
    font-size: 14px;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 30px;
  }
}

@media (max-width: 480px) {
  .nav a {
    margin: 0 5px;
    font-size: 13px;
  }
}
/* Logo 图片样式 - 精确尺寸 240*50px */
.logo-image {
    width: 240px;
    height: 50px;
    display: block;
    object-fit: contain; /* 保持图片比例，适应容器 */
}

.logo-link {
    display: inline-block;
    text-decoration: none;
}

/* 如果 .header 容器需要调整，可以添加以下样式 */
.header {
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    padding: 10px 0;
}

.logo-contact {
    display: flex;
    flex-direction: row;
    align-items: center;
    margin-left: auto;
    gap: 14px;
    color: #666666;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.logo-contact-item i {
    color: #e74c3c;
    font-size: 12px;
}

/* 响应式设计：在移动端保持相同尺寸或适当缩小 */
@media (max-width: 768px) {
    .logo-image {
        width: 180px;  /* 移动端可以适当缩小到180px */
        height: 38px;  /* 按比例缩小 */
    }
}

/* 如果需要在超小屏幕上进一步缩小 */
@media (max-width: 480px) {
    .logo-image {
        width: 150px;  /* 手机端缩小到150px */
        height: 31px;  /* 按比例缩小 */
    }
}

@media (max-width: 768px) {
    .logo-contact {
        width: 100%;
        margin-left: 0;
        align-items: flex-start;
        font-size: 13px;
    }

    .logo-contact-item {
        white-space: normal;
    }
}

/* Logo contact: force right aligned single-line compact style */
.logo-contact {
    width: auto;
    margin-left: auto;
    flex-direction: row;
    align-items: center;
    gap: 14px;
    font-size: 12px;
    line-height: 1.2;
    white-space: nowrap;
}

.logo-contact-item {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

@media (max-width: 768px) {
    .logo-contact {
        width: auto;
        margin-left: auto;
        align-items: center;
        gap: 10px;
        font-size: 11px;
    }

    .logo-contact-item {
        white-space: nowrap;
    }
}

@media (max-width: 480px) {
    .logo-contact {
        width: auto;
        margin-left: auto;
        align-items: center;
        gap: 8px;
        font-size: 10px;
    }

    .logo-contact-item {
        white-space: nowrap;
    }
}

/* Logo layout: left logo + right section start alignment */
.logo-header {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
}

.logo-header .logo-link {
    justify-self: start;
}

.logo-header .logo-contact {
    justify-self: start;
    margin-left: 0;
}

@media (max-width: 768px) {
    .logo-header {
        display: flex;
    }

    .logo-header .logo-contact {
        margin-left: auto;
    }
}
