:root {
  --primary: #008844;
  --primary-dark: #006633;
  --dark: #222;
  --light: #f0f0f0;
  --gray: #666;
  --light-gray: #ddd;
}
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}
body {
  color: var(--dark);
  line-height: 1.6;
  overflow-x: hidden;
}
a {
  text-decoration: none;
  color: inherit;
}
ul {
  list-style: none;
}
.container {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 15px;
  padding-top: 5px;
}
.btn {
  display: inline-block;
  padding: 10px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 2px;
  cursor: pointer;
  transition: background 0.3s;
  font-size: 14px;
}
.btn:hover {
  background: var(--primary-dark);
}
.btn-outline {
  background: transparent;
  border: 1px solid var(--primary);
  color: var(--primary);
}
.btn-outline:hover {
  background: var(--primary);
  color: white;
}
.section-title {
  text-align: center;
  margin-bottom: 40px;
}
.section-title p {
  color: var(--primary);
  font-size: 28px;
  font-weight: bold;
  margin-bottom: 5px;
}
.section-title h2 {
  font-size: 48px;
  color: var(--dark);
  margin-bottom: 10px;
  font-weight: bold;
}
.section-title p:last-child {
  color: var(--gray);
  font-size: 16px;
  font-weight: normal;
}

/* ===================== TOP BAR ===================== */
.top-bar {
  background: #E5E5E5;
  border-bottom: 1px solid var(--light-gray);
  padding: 8px 0 10px 0;
  font-size: 13px;
}
.top-bar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.top-bar-left span {
  margin-right: 20px;
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
}
.top-bar-right input {
  padding: 6px 10px;
  border: 1px solid var(--light-gray);
  border-radius: 3px;
}

/* ===================== NAVBAR ===================== */
.navbar {
  background: white;
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  position: sticky;
  top: 0;
  z-index: 999;
}
.navbar .container {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.logo img {
  height: 80px;
}
.nav-links {
  display: flex;
  gap: 30px;
}
.nav-links a {
  font-size: 20px;
  color: var(--dark);
  font-weight: 500;
  transition: color 0.3s;
}
.nav-links a:hover,
.nav-links a.active {
  color: var(--primary);
}
.mobile-menu-btn {
  display: none;
  font-size: 24px;
  cursor: pointer;
}

/* ===================== 公共底部表单 ===================== */
.contact-form {
  padding: 60px 15px;
  background: var(--primary);
  color: white;
}
.contact-form form {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
  max-width: 1200px;
  margin: 0 auto;
}

.contact-form input,
.contact-form textarea {
  padding: 10px;
  border: none;
  border-radius: 2px;
  font-size: 14px;
  width: 100%;
  grid-column: span 1;  /* 默认占1列 */
}
.contact-form button {
  grid-column: 2 / 4;
  background: var(--dark);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* ===================== FOOTER ===================== */
.footer {
  background: var(--dark);
  color: white;
  padding: 60px 15px 20px;
}
.footer-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
  margin-bottom: 40px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}
.footer-mobile-title,.footer-mobile-title i{
	display: none;
}
.footer-col h4 {
  font-size: 16px;
  margin-bottom: 20px;
}
.footer-col ul li {
  margin-bottom: 8px;
}
.footer-col ul li a {
  color: #aaa;
  font-size: 13px;
  transition: color 0.3s;
}
.footer-col ul li a:hover {
  color: white;
}
.footer-col p {
  color: #aaa;
  font-size: 13px;
  margin-bottom: 10px;
}
.footer-bottom {
  text-align: center;
  padding-top: 20px;
  border-top: 1px solid #333;
  font-size: 12px;
  color: #aaa;
  max-width: 1200px;
  margin: 0 auto;
}

/* ===================== SIDEBAR ===================== */
.sidebar {
  position: fixed;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 999;
}
.sidebar a {
  width: 40px;
  height: 40px;
  background: #666;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 3px;
  font-size: 16px;
}

/* ============================================== */
/* ================= 响应式 ================= */
/* ============================================== */

/* ———— 平板 ———— */
@media (max-width: 992px) {
.footer-mobile-title,.footer-mobile-title i{
	display: none;
}

  .nav-links {
    display: none;
  }
  .mobile-menu-btn {
    display: block;
  }

  .contact-form form {
    grid-template-columns: repeat(2, 1fr);
  }
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ———— 手机 ———— */
@media (max-width: 768px) {
  /* 顶部隐藏邮箱电话 */
  .top-bar-left {
    display: none;
  }
  /* 搜索框默认隐藏，菜单点击显示 */
  .top-bar-right {
    display: none;
    position: absolute;
    top: 80px;
    right: 15px;
    z-index: 9999;
  }
  .top-bar-right.show {
    display: flex;
  }
  .top-bar {
      display: none !important;  /* 👈 加这一行 */
    }

  /* 手机菜单展开 */
  .nav-links.show {
    display: flex !important;
    flex-direction: column;
    position: absolute;
    top: 80px;
    left: 0;
    right: 0;
    background: white;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    padding: 20px;
    z-index: 999;
  }

  /* 底部表单手机单列 */
  .contact-form form {
    grid-template-columns: 1fr;
  }
  .contact-form button {
    grid-column: 1;
  }

  /* Footer 手机折叠 */
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 0;
  }
  .footer-col {
    margin-bottom: 10px;
  }
  .footer-col h4 {
    display: none;
  }
  .footer-mobile-title,.footer-mobile-title i{
  	display: block;
  }
  
  .footer-mobile-title {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 0;
    border-bottom: 1px solid #444;
    font-weight: bold;
    cursor: pointer;
  }
  .footer-col ul {
    display: none;
    padding-left: 5px;
  }
  .footer-col ul.show {
    display: block !important;
  }
}

@media (max-width: 576px) {
  .sidebar {
    display: none;
  }
  .section-title h2 {
    font-size: 28px;
  }
}

/* ===== 侧边栏悬停展开面板（右侧，向左滑出） ===== */
.sidebar {
  position: fixed;
  right: 0;          /* 固定在右边 */
  top: 50%;
  transform: translateY(-50%);
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 10px 0;
}

.sidebar-item {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  /* 保持原有样式不变 */
}

/* 面板 - 默认在右侧隐藏，悬停时向左滑出 */
.sidebar-item .sidebar-panel {
  position: absolute;
  right: 56px;       /* 在图标左侧 */
  top: 50%;
  transform: translateY(-50%) translateX(30px);  /* 初始在右侧隐藏 */
  background: rgba(0, 0, 0, 0.88);
  backdrop-filter: blur(8px);
  color: white;
  padding: 10px 18px;
  border-radius: 8px;
  white-space: nowrap;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 150px;
  pointer-events: none;
  z-index: 1000;
  border-right: 3px solid currentColor;  /* 边框在右边 */
}

/* 面板小三角（指向图标） */
.sidebar-item .sidebar-panel::before {
  content: '';
  position: absolute;
  right: -8px;       /* 三角在面板右侧，指向图标 */
  top: 50%;
  transform: translateY(-50%);
  border: 8px solid transparent;
  border-left-color: rgba(0, 0, 0, 0.88);
}

/* 面板文字样式 */
.sidebar-panel .sidebar-label {
  font-size: 10px;
  text-transform: uppercase;
  opacity: 0.6;
  letter-spacing: 1px;
  font-weight: 400;
}

.sidebar-panel .sidebar-value {
  font-size: 13px;
  font-weight: 500;
  color: #fff;
}

/* 悬停时展开 - 从右向左滑出 */
.sidebar-item:hover .sidebar-panel {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);  /* 滑到正常位置 */
  pointer-events: auto;
}

/* 每个图标保持原有颜色，面板边框颜色跟随 */
.sidebar-item:nth-child(1) .sidebar-panel { border-right-color: #1e88e5; }
.sidebar-item:nth-child(2) .sidebar-panel { border-right-color: #43a047; }
.sidebar-item:nth-child(3) .sidebar-panel { border-right-color: #fb8c00; }
.sidebar-item:nth-child(4) .sidebar-panel { border-right-color: #25D366; }

/* 移动端适配 */
@media (max-width: 768px) {
  .sidebar-item .sidebar-panel {
    right: 48px;
    min-width: 130px;
    padding: 8px 14px;
  }
  .sidebar-panel .sidebar-value {
    font-size: 12px;
  }
}

/* ===== 验证码样式 - 输入框+验证码同一行 ===== */
.captcha-container {
  grid-column: span 1;  /* 占1列 */
  display: flex;
  align-items: center;
}

.captcha-wrapper {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  flex-direction: row-reverse;  /* 反转顺序：输入框在前，验证码在后 */
}

.captcha-box {
  display: flex;
  align-items: center;
  gap: 4px;
  background: #f5f5f5;
  padding: 4px 8px;
  border-radius: 2px;
  border: 1px solid #ddd;
  font-family: 'Courier New', monospace;
  font-weight: bold;
  user-select: none;
  flex-shrink: 0;
  height: 38px;
}

.captcha-text {
  color: #333;
  font-weight: 700;
  letter-spacing: 4px;
  font-size: 16px;
  min-width: 40px;
  text-align: center;
}

.captcha-refresh {
  cursor: pointer;
  color: #999;
  font-size: 14px;
  transition: all 0.3s ease;
  padding: 2px;
  flex-shrink: 0;
}

.captcha-refresh:hover {
  color: var(--primary);
  transform: rotate(180deg);
}

.captcha-input {
  flex: 1;
  min-width: 60px;
  padding: 8px 8px;
  border: 1px solid #ddd;
  border-radius: 2px;
  font-size: 13px;
  outline: none;
  transition: border-color 0.3s;
  height: 38px;
  box-sizing: border-box;
  background: white;
  width: 100%;
}

.captcha-input:focus {
  border-color: var(--primary);
}

/* Submit 按钮占 2 列居中 */
.contact-form button {
  grid-column: 2 / 4;
  background: var(--dark);
  color: white;
  border: none;
  padding: 10px;
  cursor: pointer;
}

/* 平板适配 - 2列 */
@media (max-width: 992px) {
  .contact-form form {
    grid-template-columns: repeat(2, 1fr);
  }
  .contact-form input,
  .contact-form textarea {
    grid-column: span 1;
  }
  .captcha-container {
    grid-column: span 1;
  }
  .contact-form button {
    grid-column: 1 / 3;
  }
}

/* 手机适配 - 1列 */
@media (max-width: 768px) {
  .contact-form form {
    grid-template-columns: 1fr;
  }
  .contact-form input,
  .contact-form textarea {
    grid-column: 1;
  }
  .captcha-container {
    grid-column: 1;
    flex-wrap: wrap;
  }
  .captcha-wrapper {
    flex-wrap: wrap;
    flex-direction: row-reverse;
  }
  .captcha-input {
    min-width: 100px;
    flex: 1;
  }
  .contact-form button {
    grid-column: 1;
  }
}