/* ================= 0. 全局变量与重置 ================= */
:root {
  --primary-turquoise: #40E0D0;  /* 全站主色调青绿色 */
  --white: #fff;
  --text-dark: #333;
  --text-gray: #666;
  --half-light-gray: #ccc;  /* 中浅灰(禁用或占位符等) */
  --light-gray: #eee;  /* 浅灰(边框、分割线、浅色块) */
  --light-blue: #0059b3;
  --accent-blue: #4a90e2;
  --footer-dark: #00264d;
  --light-bg-blue: #f0f7ff;
  --transparent-white: #ffffff1a;  /* 微透明白 */
  --transparent-dark: #0000001a;  /* 微透明灰 */
  --half-transparent-dark: #00000080;  /* 半透黑 */
  --border-radius: 6px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "Helvetica Neue", Helvetica, Arial, sans-serif;
  color: var(--text-dark);
  line-height: 1.6;
  background-color: #f9f9f9;
  padding-top: 90px;
}

a {
  text-decoration: none;
  color: inherit;
  transition: all 0.3s ease;
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  display: block;
}

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

/* ================= 1. 导航栏 (Navigation) ================= */
header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 4px 20px var(--transparent-dark);
  z-index: 1000;
  height: 90px;
  display: flex;
  align-items: center;
  padding: 0;
}

/* 导航容器 */
.nav-container {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  margin: 0 auto;
  padding: 0 40px;
  box-sizing: border-box;
}

/* 左侧 Logo 区域 */
.nav-left {
  flex-shrink: 0;
  margin-right: auto;
}

.logo {
  display: flex;
  flex-direction: column;
}

.logo-cn {
  font-size: 28px;
  font-weight: 800;
  color: var(--primary-turquoise);
  line-height: 1.2;
  letter-spacing: 1px;
}

.logo-en {
  font-size: 13px;
  color: var(--text-grey);
  letter-spacing: 1.5px;
  margin-top: 2px;
  text-transform: uppercase;
}

/* 右侧 导航菜单与电话 区域 */
.nav-right {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-left: auto;
}

.nav-menu {
  display: flex;
  gap: 25px;
  align-items: center;
  height: 100%;
}

.nav-item {
  position: relative;
  font-size: 18px;
  font-weight: 700;
  height: 100%;
  display: flex;
  align-items: center;
}

.nav-item > a {
  color: var(--text-dark);
  padding: 10px 0;
  position: relative;
  display: flex;
  align-items: center;
  gap: 5px;
}

/* 下划线动画 */
.nav-item > a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 3px;
  background-color: var(--primary-turquoise);
  transition: width 0.3s ease;
}

.nav-item:hover > a {
  color: var(--primary-turquoise);
}

.nav-item:hover > a::after {
  width: 100%;
}

/* 下拉菜单样式 */
.dropdown {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%) translateY(15px);
  background: var(--white);
  min-width: 160px;
  box-shadow: 0 8px 25px var(--transparent-dark);
  border-radius: 0 0 6px 6px;
  padding: 10px 0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  border-top: 3px solid var(--primary-turquoise);
  z-index: 10;
}

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

.dropdown a {
  display: block;
  padding: 10px 20px;
  color: var(--text-grey);
  font-size: 14px;
  font-weight: 500;
  text-align: center;
  transition: background 0.2s;
}

.dropdown a:hover {
  background: #f5f5f5;
  color: var(--primary-turquoise);
  padding-left: 25px;
}

/* 导航与电话之间的竖线分隔符 */
.nav-divider {
  width: 1px;
  height: 20px;
  background-color: var(--half-light-gray);
  margin: 0 10px;
}

/* 电话按钮样式 */
.nav-phone {
  display: flex;
  align-items: center;
  gap: 8px;
  background: transparent !important;
  padding: 0 !important;
  color: var(--accent-blue) !important;
  font-size: 18px;
  font-weight: 700;
  border: none;
}

.nav-phone img {
  width: 22px;
  height: 22px;
  filter: brightness(0) saturate(100%) invert(65%) sepia(80%) saturate(1000%) hue-rotate(180deg) brightness(95%) contrast(90%);
}

.nav-phone:hover {
  color: var(--primary-turquoise) !important;
  transform: scale(1.05);
}

/* 移动端汉堡按钮 */
.mobile-toggle {
  display: none;
  font-size: 28px;
  cursor: pointer;
  color: var(--primary-turquoise);
}

/* ================= 2. 英雄区 (Hero) ================= */
.hero {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-turquoise) 0%, var(--light-blue) 100%);
  color: var(--white);
  text-align: center;
  padding: 0 20px;
  margin-top: -90px;
  padding-top: 90px;
}

.hero-content {
  max-width: 1200px;
}

.hero h1 {
  font-size: 60px;
  font-weight: 800;
  text-shadow: 2px 2px 4px var(--half-transparent-dark);
}

.hero h2 {
  font-size: 60px;
  font-weight: 800;
  margin-bottom: 20px;
  
  /* 渐变文字三剑客 */
  background: linear-gradient(135deg, var(--primary-turquoise) 0%, var(--light-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  
  filter: drop-shadow(2px 2px 4px var(--half-transparent-dark));
}

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

.hero-btns {
  display: flex;
  gap: 20px;
  justify-content: center;
  margin-top: 20px;
  flex-wrap: wrap;
}

.btn {
  padding: 12px 30px;
  border-radius: var(--border-radius);
  font-size: 16px;
  font-weight: 700;
  text-transform: uppercase;
  transition: all 0.3s ease;
  display: inline-block;
}

.btn-primary {
  background: var(--white);
  color: var(--primary-turquoise) !important;
}

.btn-primary:hover {
  background: #e0e0e0;
  transform: translateY(-3px);
}

.btn-outline {
  background: transparent;
  border: 2px solid var(--white);
  color: var(--white) !important;
}

.btn-outline:hover {
  background: var(--transparent-white);
  transform: translateY(-3px);
}

/* ================= 3. 产品展示区 (Product) ================= */
.products-section {
  padding: 80px 0;
  background: #f0f0f0;
}

.product-layout {
  display: flex;
  gap: 30px;
}

.product-sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--white);
  padding: 20px;
  border-radius: var(--border-radius);
  box-shadow: 0 2px 10px var(--transparent-dark);
}

.sidebar-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--primary-turquoise);
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--primary-turquoise);
}

.category-list a {
  display: block;
  padding: 12px 15px;
  color: var(--text-grey);
  border-bottom: 1px solid var(--light-gray);
  transition: all 0.3s;
  font-weight: 500;
}

.category-list a:hover,
.category-list a.active {
  background: var(--primary-turquoise);
  color: var(--white);
  border-radius: var(--border-radius);
}

.product-main {
  flex: 1;
}

.product-main h2 {
  font-size: 28px;
  color: var(--primary-turquoise);
  margin-bottom: 30px;
  font-weight: 800;
}

.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background: var(--white);
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: 0 4px 15px var(--transparent-dark);
  transition: all 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px var(--transparent-dark);
}

.product-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  background: var(--light-gray);
}

.product-title {
  font-size: 18px;
  font-weight: 700;
  padding: 15px 20px 5px;
  color: var(--text-dark);
}

.product-desc {
  font-size: 14px;
  color: var(--text-grey);
  padding: 0 20px 15px;
  line-height: 1.5;
}

.btn-detail {
  display: inline-block;
  margin: 0 20px 20px;
  padding: 8px 15px;
  background: var(--primary-turquoise);
  color: var(--white) !important;
  border-radius: var(--border-radius);
  font-size: 14px;
  font-weight: 600;
}

.btn-detail:hover {
  background: var(--light-blue);
}

/* ================= 4. 关于公司 (About) ================= */
.about-section {
  position: relative;
  background: var(--primary-turquoise);
  padding-top: 80px;
  padding-bottom: 0;
}

.about-top {
  text-align: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 60px;
}

.about-top h2 {
  font-size: 36px;
  font-weight: 700;
  color: var(--white);
  margin-bottom: 30px;
}

.about-top p {
  font-size: 16px;
  color: var(--white);
  line-height: 1.8;
  margin-bottom: 5px;
}

/* 核心：突破容器限制，横向铺满浏览器 */
.about-bottom {
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  /* 修改：设置蓝色背景并添加背景图片 */
  background-color: var(--primary-turquoise);
  background-image: url('../images/bg/about-company.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* 图标容器：Flex 布局横向排列 */
.about-icons {
  display: flex;
  width: 100%;
}

/* 单个图标盒子：均分宽度，线条分隔，浮动动画基础 */
.about-icons .icon-box {
  flex: 1;
  height: 120px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background-color: transparent;
  color: var(--white);
  font-size: 16px;
  font-weight: 500;
  cursor: pointer;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
  text-decoration: none;
  position: relative;
  /* 多属性过渡：浮动 + 缩放 + 阴影 + 边框 + 文字色 */
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
              background-color 0.35s ease,
              box-shadow 0.35s ease,
              border-right-color 0.35s ease;
  overflow: hidden;
}
/* 浮动光泽层 */
.about-icons .icon-box::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, transparent 0%, rgba(255,255,255,0.18) 50%, transparent 100%);
  transition: left 0.6s ease;
  pointer-events: none;
}
.about-icons .icon-box:hover::before { left: 100%; }

/* 图标图片设置样式 + hover 微缩放 */
.about-icons .icon-box img {
  width: 40px;
  height: 40px;
  margin-bottom: 10px;
  filter: brightness(0) invert(1); /* 将SVG图标变为白色 */
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  position: relative;
  z-index: 1;
}

/* 最后一个图标去掉右侧线条 */
.about-icons .icon-box:last-child {
  border-right: none;
}

/* 悬停浮动选中效果：上浮 + 背景提亮 + 发光阴影 + 文字变色 + 图标弹缩 */
.about-icons .icon-box:hover {
  transform: translateY(-12px);
  background-color: rgba(255, 255, 255, 0.15);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.25),
              0 0 0 2px rgba(255, 215, 0, 0.6) inset,
              0 0 24px rgba(255, 215, 0, 0.35);
  border-right-color: transparent;
  z-index: 2;
}

.about-icons .icon-box:hover img {
  transform: scale(1.18) rotate(-5deg);
  filter: brightness(0) invert(1) drop-shadow(0 4px 8px rgba(255, 215, 0, 0.5));
}

.about-icons .icon-box:hover span {
  color: #ffd700;
  letter-spacing: 1px;
  font-weight: 700;
}

/* 焦点状态(键盘可达性) */
.about-icons .icon-box:focus-visible {
  outline: 3px solid #ffd700;
  outline-offset: 2px;
  transform: translateY(-12px);
}

/* ================= 5. 底部 Footer ================= */
.site-footer {
  background: linear-gradient(135deg, var(--primary-turquoise) 0%, var(--light-blue) 100%);
  color: var(--white);
  padding: 60px 0 0;
}

.footer-container {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 40px;
  padding: 0 40px 40px;
  border-bottom: 1px solid var(--transparent-white);
}

/* 左侧：导航链接区 */
.footer-left {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.footer-col h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  position: relative;
  padding-bottom: 10px;
}

.footer-col h3::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 65px;
  height: 2px;
  background: var(--white);
}

.footer-links li {
  margin-bottom: 14px;
}

.footer-links a {
  color: var(--white);
  font-size: 14px;
  transition: all 0.3s;
}

.footer-links a:hover {
  color: var(--white);
  padding-left: 5px;
}

/* 右侧：独立联系卡片 */
.footer-right-card {
  background: var(--transparent-white);
  border: 1px solid var(--transparent-white);
  border-radius: var(--border-radius);
  padding: 30px;
  width: 350px;
  flex-shrink: 0;
}

.footer-right-card h3 {
  font-size: 18px;
  font-weight: 700;
  margin-bottom: 20px;
  color: var(--white);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--transparent-white);
  display: flex;
  align-items: center;
  gap: 8px;
}

/* 联系我们样式 */
.card-title-icon {
  width: 20px;
  height: 20px;
  filter: brightness(0) invert(1);
}

.contact-list {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: rgba(255, 255, 255, 0.8);
}

.contact-item img {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
  filter: brightness(0) invert(1);
}

.phone-number {
  color: var(--white);
  font-weight: 700;
  font-size: 18px;
}

/* --- 关注我们样式 --- */
.follow-us-container {
  margin-top: 25px;
}

/* 分隔线样式 */
.follow-us-divider {
  height: 1px;
  background-color: var(--transparent-white);
  margin-bottom: 20px;
}

.follow-us-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 15px;
  color: var(--white);
}

.social-icons {
  display: flex;
  gap: 15px;
  justify-content: flex-start;
}

.social-item {
  position: relative;
  cursor: pointer;
}

/* ========== 二维码图片尺寸与显示控制 ========== */
.qr-img {
  width: 120px;
  height: auto;
  aspect-ratio: 1/1;
  border-radius: var(--border-radius);
  display: block;
  background-color: #fff;
}

/* 悬浮二维码样式 */
.qr-code-overlay {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  background: var(--white);
  padding: 10px;
  border-radius: var(--border-radius);
  box-shadow: 0 4px 10px var(--transparent-dark);
  z-index: 100;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, transform 0.3s ease;
  margin-top: 5px;
}

/* 鼠标悬停或点击时显示二维码 */
.social-item:hover .qr-code-overlay,
.social-item:active .qr-code-overlay {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(5px);
}

.qr-code-overlay img {
  width: 90px;
  height: 90px;
  border-radius: var(--border-radius);
}

/* 版权栏 */
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 40px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.5);
}

.legal-links {
  display: flex;
  gap: 20px;
}

.legal-links a {
  color: rgba(255, 255, 255, 0.5);
}

.legal-links a:hover {
  color: var(--white);
}

/* ================= 6. 响应式适配 ================= */
@media (max-width: 992px) {
  .footer-container {
    flex-direction: column;
    padding: 0 20px 20px;
  }

  .footer-left {
    grid-template-columns: repeat(2, 1fr);
    width: 100%;
  }

  .footer-right-card {
    width: 100%;
    max-width: 400px;
  }

  .footer-bottom {
    padding: 20px;
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }

  .legal-links {
    justify-content: center;
  }
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }

  header {
    height: 70px;
  }

  /* 移动端布局调整 */
  .nav-container {
    flex-direction: column;
    align-items: stretch;
    padding: 0 15px;
  }

  .nav-left {
    padding: 10px 0;
    align-self: flex-start;
  }

  .nav-right {
    width: 100%;
    justify-content: space-between;
    padding: 10px 0;
    border-top: 1px solid var(--light-gray);
    display: flex;
    align-items: center;
  }

  .mobile-toggle {
    display: block;
  }

  .nav-menu {
    position: fixed;
    top: 70px;
    left: 0;
    width: 100%;
    height: calc(100vh - 70px);
    background: var(--white);
    flex-direction: column;
    align-items: center;
    padding-top: 30px;
    gap: 0;
    transform: translateX(-100%);
    transition: transform 0.3s ease;
    overflow-y: auto;
  }

  .nav-menu.active {
    transform: translateX(0);
  }

  .nav-item {
    width: 100%;
    text-align: center;
    height: auto;
    flex-direction: column;
  }

  .nav-item > a {
    padding: 15px 0;
    width: 100%;
    justify-content: center;
  }

  .nav-item > a::after {
    display: none;
  }

  /* 移动端隐藏竖线分隔符 */
  .nav-divider {
    display: none;
  }

  .dropdown {
    position: static;
    transform: none;
    box-shadow: none;
    border-top: none;
    background: #f9f9f9;
    opacity: 1;
    visibility: visible;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
  }

  .nav-item:hover .dropdown,
  .nav-item.active .dropdown {
    max-height: 500px;
  }

  .nav-phone {
    margin: 0;
    padding: 0 !important;
    background: transparent !important;
    color: var(--accent-blue) !important;
  }

  .nav-phone img {
    filter: brightness(0) saturate(100%) invert(65%) sepia(80%) saturate(1000%) hue-rotate(180deg) brightness(95%) contrast(90%);
  }

  .hero {
    margin-top: -70px;
    padding-top: 70px;
  }

  .hero h1 {
    font-size: 28px;
  }

  .hero p {
    font-size: 16px;
  }

  .product-layout {
    flex-direction: column;
  }

  .product-sidebar {
    width: 100%;
  }

  .about-icons {
    gap: 20px;
  }

  .icon-box {
    min-width: 120px;
    padding: 20px;
  }

  /* --- 移动端二维码优化 --- */
  .qr-code-overlay {
    display: none; /* 在小屏幕下隐藏悬浮层，防止遮挡或溢出 */
  }

  .about-top {
    padding-bottom: 40px;
  }

  .about-icons {
    flex-wrap: wrap; /* 允许换行 */
  }

  .about-icons .icon-box {
    width: 50%; /* 平板/手机端一行显示两个 */
    flex: 0 0 50%;
    height: 100px;
    background-size: 30px 30px;
    background-position: center 25px;
    font-size: 14px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-right: none; /* 移动端去掉右侧边框 */
  }
  
  /* 修改：移动端图标大小调整 */
  .about-icons .icon-box img {
    width: 30px;
    height: 30px;
  }
}
/* ================= Footer 微信图标按钮 ================= */
.wechat-icon-btn {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: var(--border-radius);
  background: var(--transparent-white);
  border: 1px solid var(--transparent-white);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  font-size: 13px;
}
.wechat-icon-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.wechat-icon-btn svg {
  fill: var(--white);
  flex-shrink: 0;
}
.wechat-icon-btn span {
  font-weight: 600;
}

/* Footer 列标题链接 */
.footer-col h3 a {
  color: var(--white);
  text-decoration: none;
  position: relative;
  padding-bottom: 10px;
}
.footer-col h3 a:hover {
  color: #ffd700;
}

/* ================= 首页产品展示区 - 4列单行排版 ================= */
.products-section .product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  max-width: 100%;
  margin: 0;
}
@media (max-width: 992px) {
  .products-section .product-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 576px) {
  .products-section .product-grid {
    grid-template-columns: 1fr;
  }
}

/* 关注我们行布局: 标题 + 图标按钮 横排 */
.follow-us-row {
  display: flex;
  align-items: center;
  gap: 12px;
}
.follow-us-row .follow-us-title {
  margin-bottom: 0;
  line-height: 1;
}
/* 微信图标按钮: 仅图标,小尺寸,与标题同高 */
.wechat-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--transparent-white);
  border: 1px solid var(--transparent-white);
  color: var(--white);
  text-decoration: none;
  transition: all 0.3s ease;
  flex-shrink: 0;
}
.wechat-icon-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: translateY(-2px);
}
.wechat-icon-btn svg {
  fill: var(--white);
  width: 20px;
  height: 20px;
  display: block;
}
