/**
 * @description 港联寰球购静态官网样式：导航栏、Banner、各内容区块、页脚与响应式布局。
 * @author Shaba River
 * @date 2026-07-20
 * @scope
 */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --color-primary: #ec3120;
  --color-text: #1d2129;
  --color-text-secondary: #86909c;
  --color-bg-gray: #f7f8fa;
  --color-footer: #2d292a;
  --color-footer-bottom: #1d1c1c;
  --nav-height: 88px;
  --container-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  padding: 0;
  font-family: "PingFang SC", "Microsoft YaHei", "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
  -webkit-font-smoothing: antialiased;
  color: var(--color-text);
}

[id] {
  scroll-margin-top: var(--nav-height);
}

/* ========== 导航栏 ========== */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  z-index: 1000;
  border-bottom: 0.5px solid rgba(212, 212, 212, 0.2);
}

.nav-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--nav-height);
}

.nav-logo img {
  width: 66px;
  height: 66px;
  object-fit: contain;
}

.nav-menu {
  display: flex;
  gap: 30px;
  height: var(--nav-height);
  align-items: center;
}

.nav-link {
  text-decoration: none;
  color: var(--color-text-secondary);
  font-size: 1rem;
  padding: 0;
  height: var(--nav-height);
  display: flex;
  align-items: center;
  position: relative;
  transition: color 0.3s;
}

.nav-link:hover,
.nav-link.active {
  color: var(--color-primary);
}

.nav-link.active::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 3px;
  background: var(--color-primary);
  border-radius: 3px;
}

.mobile-menu-btn {
  display: none;
  flex-direction: column;
  cursor: pointer;
  gap: 4px;
  background: none;
  border: none;
  padding: 4px;
}

.mobile-menu-btn span {
  width: 25px;
  height: 3px;
  background: #333;
  transition: 0.3s;
}

.mobile-menu-btn.open span:nth-child(1) {
  transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.open span:nth-child(2) {
  opacity: 0;
}

.mobile-menu-btn.open span:nth-child(3) {
  transform: rotate(-45deg) translate(5px, -5px);
}

.mobile-menu {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: var(--nav-height);
  background: white;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  transform: translateY(-100%);
  opacity: 0;
  transition: 0.3s;
}

.mobile-menu.open {
  display: block;
  transform: translateY(0);
  opacity: 1;
}

.mobile-nav-link {
  display: block;
  padding: 15px 20px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #eee;
  transition: background 0.3s;
}

.mobile-nav-link:hover,
.mobile-nav-link.active {
  background: #f8f9ff;
  color: var(--color-primary);
}

/* ========== Banner ========== */
.banner {
  background-color: #fff;
  height: calc(100vh - 228px);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-top: var(--nav-height);
  background-image: url("https://hnsaasstatic.chkmao.com/2025-08-11/b63c1b3128284abfbd587ce5d5bafda0.png");
  background-size: 100% 100%;
}

.banner::before {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(255, 255, 255, 0.1);
  z-index: 1;
}

.banner-content {
  max-width: var(--container-width);
  width: 100%;
  padding: 0 20px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 40px;
  height: 100%;
}

.banner-text {
  flex: 1;
  max-width: 600px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.banner-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin: 0 0 10px;
  line-height: 1.2;
  color: #000;
  text-align: start;
}

.banner-title .highlight {
  color: var(--color-primary);
}

.banner-subtitle {
  font-size: 1.4rem;
  margin: 0 0 40px;
  opacity: 0.9;
  line-height: 1.5;
  color: #5f5b5c;
  text-align: start;
}

.banner-image {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: flex-end;
}

.banner-image img {
  max-width: 50vh;
  height: auto;
  object-fit: contain;
}

/* ========== 品质保证条 ========== */
.quality-bar {
  line-height: 0;
}

.text-img {
  width: 100%;
  max-width: var(--container-width);
  display: block;
  margin: 40px auto;
  height: auto;
  padding: 0 20px;
}

/* ========== 通用区块 ========== */
.section-warp {
  padding: 80px 0;
}

.section-gray {
  background: var(--color-bg-gray);
}

.section-white {
  background: #fff;
}

.section-container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.section-title {
  text-align: center;
  font-size: 2.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin: 0 0 20px;
}

.section-description {
  text-align: center;
  font-size: 1.1rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin: 0 auto 80px;
  max-width: 900px;
}

/* ========== 关于我们卡片 ========== */
.section-images {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  text-align: left;
}

.section-card {
  flex: 1;
  background-color: #fff;
}

.section-card img {
  width: 100%;
  object-fit: cover;
  transition: transform 0.3s;
}

.section-card:hover img {
  transform: scale(1.02);
}

.section-card-title {
  margin-top: 40px;
  padding: 0 35px;
  font-size: 1.3rem;
  letter-spacing: 1px;
  color: var(--color-text);
}

.section-card-description {
  padding: 0 35px;
  font-size: 1rem;
  letter-spacing: 1px;
  margin: 25px 0 100px;
  color: var(--color-text-secondary);
}

/* ========== 服务/产品条目 ========== */
.section-item {
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 40px 0;
}

.section-reverse {
  flex-direction: row-reverse;
}

.section-item-image {
  flex: 1;
  width: 50%;
}

.section-item-image img {
  width: 100%;
  object-fit: cover;
  border-radius: 12px;
}

.section-item-content {
  flex: 1;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
}

.section-item-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 5px;
}

.section-item-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 30px 0;
  text-align: left;
  max-width: 450px;
}

/* ========== 联系我们 ========== */
.contact-grid {
  display: flex;
  justify-content: center;
  gap: 70px;
  flex-wrap: wrap;
  padding: 0 100px;
}

.contact-item {
  width: 420px;
  text-align: left;
}

.contact-item-title {
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--color-text);
  margin-bottom: 5px;
}

.contact-item-description {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin: 30px 0;
}

.section-warp-image {
  background-color: #ec4a3c;
  line-height: 0;
}

.section-banner-image {
  width: 100%;
  display: block;
}

/* ========== 页脚 ========== */
.footer {
  background: var(--color-footer);
  color: #fff;
  padding: 60px 0 0;
}

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 20px;
}

.footer-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  margin-bottom: 40px;
}

.footer-section {
  display: flex;
  flex-direction: column;
}

.footer-subtitle {
  font-size: 1.1rem;
  font-weight: 600;
  color: #fff;
  margin: 0 0 20px;
  text-align: left;
}

.service-methods {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.service-item {
  display: flex;
  align-items: flex-start;
}

.service-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  color: #ccc;
  margin-right: 10px;
  margin-top: 0.4rem;
}

.service-label {
  color: #ccc;
  font-size: 0.95rem;
  transition: color 0.3s;
}

.service-span {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  display: block;
  text-align: left;
}

.footer-right {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.contact-info {
  display: flex;
  flex-direction: row;
  text-align: left;
  align-items: flex-start;
}

.contact-label {
  color: #ccc;
  font-size: 0.95rem;
}

.footer-bottom {
  display: flex;
  justify-content: center;
  align-items: center;
  background-color: var(--color-footer-bottom);
}

.footer-info {
  display: flex;
  gap: 30px;
  justify-content: center;
  padding: 5px 0;
}

.footer-info p {
  font-size: 0.85rem;
  color: #999;
  margin: 0;
}

/* ========== 响应式 ========== */
@media (min-width: 769px) and (max-width: 1959px) {
  :root {
    --nav-height: 90px;
  }

  .banner {
    margin-top: 90px;
    height: calc(100vh - 230px);
  }

  .banner-content {
    max-width: 1200px;
    gap: 50px;
  }

  .banner-text {
    max-width: 550px;
  }

  .banner-title {
    font-size: 2.5rem;
  }

  .banner-subtitle {
    font-size: 1.3rem;
  }
}

@media (max-width: 768px) {
  :root {
    --nav-height: 70px;
  }

  .nav-container {
    height: 70px;
  }

  .nav-menu {
    display: none;
  }

  .nav-logo img {
    width: 44px;
    height: 44px;
  }

  .mobile-menu-btn {
    display: flex;
  }

  .banner {
    height: auto;
    min-height: 600px;
    margin-top: 70px;
    padding: 0;
  }

  .banner-content {
    flex-direction: column;
    gap: 30px;
    height: 100%;
  }

  .banner-text {
    text-align: center;
    width: 100%;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .banner-image {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex: 1;
  }

  .banner-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
  }

  .banner-title {
    font-size: 2.5rem;
    text-align: start;
    margin-top: 20px;
  }

  .banner-subtitle {
    font-size: 1.1rem;
    text-align: start;
    margin: 0 0 20px;
  }

  .text-img {
    width: 100%;
    margin: 10px auto;
    padding: 0 20px;
  }

  .section-warp {
    padding: 40px 0;
  }

  .section-title {
    font-size: 2rem;
  }

  .section-description {
    font-size: 0.9rem;
    margin: 0 auto 30px;
  }

  .section-images {
    flex-direction: column;
    gap: 15px;
  }

  .section-card-description {
    margin-bottom: 40px;
  }

  .section-item,
  .section-reverse {
    flex-direction: column;
    gap: 15px;
  }

  .section-item-image,
  .section-item-content {
    width: 100%;
  }

  .section-item-description {
    width: 100%;
    font-size: 1rem;
  }

  .contact-grid {
    padding: 0 20px;
    gap: 30px;
  }

  .contact-item {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-right {
    gap: 30px;
  }
}

@media (min-width: 2560px) {
  :root {
    --nav-height: 120px;
    --container-width: 1400px;
  }

  .nav-logo img {
    width: 100px;
    height: 100px;
  }

  .banner {
    margin-top: 120px;
    height: calc(100vh - 270px);
  }

  .banner-title {
    font-size: 3rem;
  }

  .banner-subtitle {
    font-size: 1.6rem;
  }
}
