/* ======================================== 
   CN/biz 统一样式表
   合并了所有biz目录的样式文件，确保所有页面样式一致
   ======================================== */

/* ========== 品牌颜色定义 ========== */
:root {
  --primary-color: #10B981;
  --primary-dark: #059669;
  --primary-darker: #047857;
  --text-dark: #0f172a;
  --text-light: #6b7280;
  --bg-light: #f8fafc;
  --bg-white: #ffffff;
  --border-color: #e5e7eb;
}

/* ========== 全局样式 ========== */
body {
  font-family: "Inter", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  background: var(--bg-light);
  color: var(--text-dark);
  line-height: 1.65;
  letter-spacing: -0.01em;
}

/* ========== 一级导航样式 ========== */
#navbar {
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 200;  /* 确保一级导航在最上层 */
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  margin-bottom: 0;  /* 移除底部margin */
  border-bottom: none;  /* 移除底部边框，避免缝隙 */
}

/* 一级导航下拉菜单 z-index 设置 */
.dropdown {
  position: relative;
}

.dropdown-content {
  z-index: 190 !important;  /* 下拉菜单略低于一级导航，但高于二级导航 */
}

/* ========== 二级导航样式 ========== */
.biz-tab-navigation {
  background: linear-gradient(135deg, #ffffff 0%, #f8fffe 100%);
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 55px;  /* 紧贴一级导航（一级导航高度55px） */
  z-index: 150;  /* 低于一级导航下拉菜单，确保不遮挡 */
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.04);
  backdrop-filter: blur(10px);
  margin-top: -1px;  /* 向上移动1px，消除缝隙 */
  padding-top: 1px;  /* 补偿1px，保持视觉平衡 */
  border-top: 1px solid var(--border-color);  /* 添加与底部一致的边框 */
}

.biz-tab-nav-container {
  display: flex;
  gap: 4px;  /* 从8px减小到4px */
  overflow-x: auto;
  scrollbar-width: thin;
  scrollbar-color: var(--primary-color) #f0f0f0;
  padding: 4px 0;  /* 从6px减小到4px */
  flex-wrap: nowrap;  /* 确保不换行 */
  justify-content: flex-start;  /* 左对齐 */
}

.biz-tab-nav-container::-webkit-scrollbar {
  height: 4px;
}

.biz-tab-nav-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 2px;
}

.biz-tab-nav-container::-webkit-scrollbar-thumb {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 2px;
}

.biz-tab-nav-container::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(135deg, var(--primary-dark), var(--primary-darker));
}

.biz-tab-item {
  padding: 8px 12px;  /* 从12px 20px减小到8px 12px */
  color: var(--text-light);
  font-weight: 500;
  font-size: 0.8125rem;  /* 从0.875rem(14px)减小到0.8125rem(13px) */
  border-radius: 8px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  white-space: nowrap;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;  /* 从8px减小到6px */
  position: relative;
  background: transparent;
  border: 1px solid transparent;
  flex-shrink: 0;  /* 防止压缩 */
}

.biz-tab-item i {
  font-size: 0.875rem;  /* 从1rem(16px)减小到0.875rem(14px) */
  transition: transform 0.3s ease;
}

.biz-tab-item:hover {
  color: var(--primary-color);
  background: linear-gradient(135deg, #f0fdf4 0%, #d1fae5 100%);
  border-color: #a7f3d0;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.15);
}

.biz-tab-item:hover i {
  transform: scale(1.1) rotate(5deg);
}

.biz-tab-item.active {
  color: white;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  font-weight: 600;
  border-color: var(--primary-color);
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.25);
}

.biz-tab-item.active i {
  color: white;
}

/* ========== 页面主体适配 ========== */
/* 为固定的一级导航 + 二级导航留出空间 */
body.has-biz-nav main,
body.has-biz-nav .max-w-6xl.mx-auto.px-6 {
  padding-top: 100px;  /* 一级导航55px + 二级导航约35px + 余量 */
}

@media (max-width: 768px) {
  body.has-biz-nav main,
  body.has-biz-nav .max-w-6xl.mx-auto.px-6 {
    padding-top: 90px;  /* 移动端稍微减少间距 */
  }
}

/* ========== Hero 区域样式 ========== */
.hero {
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  border-radius: 20px;
  padding: 48px 40px;
  margin-bottom: 40px;
  box-shadow: 0 20px 60px rgba(16, 185, 129, 0.15), 0 0 0 1px rgba(16, 185, 129, 0.1) inset;
  text-align: center;
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-15px); }
}

.hero h1, .hero p {
  color: white;
  position: relative;
  z-index: 1;
}

.hero h1 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.3;
  letter-spacing: -0.02em;
}

.hero p {
  font-size: 1.0625rem;
  opacity: 0.96;
  max-width: 700px;
  margin: 0 auto;
  line-height: 1.6;
  font-weight: 400;
}

/* ========== Section 卡片样式 ========== */
.section-card {
  background: white;
  border-radius: 16px;
  padding: 32px;
  margin-bottom: 28px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04), 0 8px 24px rgba(0, 0, 0, 0.02);
  border: 1px solid rgba(226, 232, 240, 0.8);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.section-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06), 0 12px 32px rgba(0, 0, 0, 0.04);
  border-color: rgba(16, 185, 129, 0.2);
}

.section-card h2 {
  font-size: 1.625rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--primary-color);
  letter-spacing: -0.01em;
  position: relative;
}

.section-card h2::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 60px;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), transparent);
}

.section-card h3 {
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--primary-darker);
  margin: 20px 0 12px 0;
}

.section-card h4 {
  font-size: 1rem;
  font-weight: 600;
  color: var(--primary-darker);
  margin: 16px 0 8px 0;
}

/* ========== 表格统一样式 ========== */
.biz-table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  margin: 24px 0;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04), 0 0 0 1px rgba(226, 232, 240, 0.8);
  font-size: 0.9375rem;
  border-radius: 12px;
  overflow: hidden;
}

.biz-table thead {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
}

.biz-table th {
  padding: 14px 16px;
  text-align: center;
  font-weight: 600;
  color: white;
  border: none;
  font-size: 0.9375rem;
  letter-spacing: 0.01em;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.biz-table td {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
  vertical-align: top;
  transition: background-color 0.2s ease;
}

.biz-table tbody tr:last-child td {
  border-bottom: none;
}

.biz-table tr:hover {
  background: linear-gradient(to right, #f0fdf4, #ecfdf5);
}

.biz-table td:first-child {
  font-weight: 600;
  color: var(--primary-darker);
  background: linear-gradient(to right, #f8fafc, #ffffff);
}

/* ========== 特性项样式 ========== */
.feature-item {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border-left: 4px solid var(--primary-color);
  padding: 18px 20px;
  margin-bottom: 14px;
  border-radius: 10px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.feature-item:hover {
  transform: translateX(6px);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.12);
  border-left-color: var(--primary-dark);
}

.feature-item h4 {
  font-weight: 600;
  color: var(--primary-darker);
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.feature-item p {
  color: #4b5563;
  line-height: 1.6;
  margin: 0;
  font-size: 0.875rem;
}

/* ========== 高亮框样式 ========== */
.highlight-box {
  background: linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%);
  border: 2px solid rgba(16, 185, 129, 0.4);
  border-radius: 16px;
  padding: 28px 32px;
  margin: 28px 0;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.08), 0 0 0 1px rgba(16, 185, 129, 0.05) inset;
  transition: all 0.3s ease;
}

.highlight-box:hover {
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12), 0 0 0 1px rgba(16, 185, 129, 0.1) inset;
  border-color: rgba(16, 185, 129, 0.6);
}

.highlight-box .price {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-darker);
  margin: 12px 0;
}

.highlight-box .note {
  color: #065f46;
  font-size: 0.875rem;
  line-height: 1.5;
}

/* ========== 徽章样式 ========== */
.badge {
  display: inline-block;
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 6px;
  box-shadow: 0 2px 4px rgba(16, 185, 129, 0.2);
  letter-spacing: 0.01em;
}

.badge-outline {
  display: inline-block;
  border: 1.5px solid var(--primary-color);
  color: var(--primary-darker);
  background: white;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 600;
  margin-right: 6px;
  transition: all 0.2s ease;
}

.badge-outline:hover {
  background: #f0fdf4;
  border-color: var(--primary-dark);
}

/* ========== 价格标签样式 ========== */
.price-tag {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  color: white;
  padding: 14px 24px;
  border-radius: 12px;
  text-align: center;
  font-weight: 600;
  font-size: 1.0625rem;
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.2), 0 0 0 1px rgba(255, 255, 255, 0.1) inset;
  letter-spacing: 0.01em;
}

/* ========== CTA 区域样式 ========== */
.cta-section {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  border-radius: 12px;
  padding: 32px;
  text-align: center;
  color: white;
  margin-top: 32px;
}

.cta-section h3 {
  font-size: 1.5rem;
  font-weight: 700;
  margin-bottom: 12px;
  color: white;
}

.cta-section p {
  color: white;
  opacity: 0.95;
  margin-bottom: 20px;
}

.cta-button {
  display: inline-block;
  background: white;
  color: var(--primary-darker);
  padding: 12px 28px;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  font-size: 0.95rem;
}

.cta-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* ========== 列表样式 ========== */
ul, ol {
  color: #4b5563;
  line-height: 1.7;
  margin: 12px 0;
  padding-left: 24px;
}

li {
  margin-bottom: 6px;
}

/* ========== 卡片网格样式 ========== */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin: 24px 0;
}

.card-item {
  background: white;
  border: 1.5px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  padding: 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
}

.card-item:hover {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.1);
  transform: translateY(-3px);
}

.card-item h4 {
  color: var(--primary-darker);
  font-weight: 600;
  margin-bottom: 8px;
  font-size: 1rem;
}

.card-item p {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.6;
}

/* ========== 优势卡片样式 ========== */
.advantage-card {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1.5px solid rgba(16, 185, 129, 0.3);
  border-radius: 16px;
  padding: 28px 24px;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
}

.advantage-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(16, 185, 129, 0.12);
  border-color: rgba(16, 185, 129, 0.5);
}

.advantage-card .icon {
  font-size: 2rem;
  color: var(--primary-color);
  margin-bottom: 12px;
}

.advantage-card h3 {
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--primary-darker);
  margin: 0 0 8px 0;
}

.advantage-card p {
  color: #4b5563;
  line-height: 1.6;
  font-size: 0.875rem;
}

/* ========== 响应式适配 ========== */
@media (max-width: 768px) {
  /* 导航栏优化 */
  #navbar {
    padding: 0 16px;
  }
  
  /* 二级导航优化 */
  .biz-tab-navigation {
    top: 55px;  /* 移动端一级导航高度也是55px */
  }
  
  .biz-tab-item {
    padding: 6px 10px;  /* 移动端进一步减小 */
    font-size: 0.75rem;  /* 移动端进一步减小 */
  }
  
  .biz-tab-item i {
    font-size: 0.8125rem;  /* 移动端图标大小 */
  }
  
  /* Hero区域优化 */
  .hero {
    padding: 28px 20px;
    margin-bottom: 24px;
  }
  
  .hero h1 {
    font-size: 1.5rem;
  }
  
  .hero p {
    font-size: 0.9rem;
  }
  
  /* Section卡片优化 */
  .section-card {
    padding: 20px;
    margin-bottom: 20px;
  }
  
  .section-card h2 {
    font-size: 1.25rem;
  }
  
  /* 表格优化 */
  .biz-table {
    font-size: 0.8rem;
  }
  
  .biz-table th,
  .biz-table td {
    padding: 8px;
  }
  
  /* 卡片网格优化 */
  .card-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  
  /* CTA区域优化 */
  .cta-section {
    padding: 24px 20px;
  }
}

/* ========== 分级下拉菜单样式 ========== */
/* 二级下拉菜单容器 */
.dropdown-submenu {
  position: relative;
}

/* 三级下拉菜单 */
.dropdown-submenu .dropdown-content {
  left: 100%;
  top: 0;
  margin-top: 0;
}

/* ========== 浮动联系按钮样式 ========== */
.floating-contact {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 999;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.floating-btn {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  transition: all 0.3s ease;
  color: white;
  font-size: 24px;
}

.floating-btn:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.25);
}

.floating-btn-primary {
  background: linear-gradient(135deg, var(--primary-color), var(--primary-dark));
  animation: pulse 2s ease-in-out infinite;
}

.floating-btn-secondary {
  background: linear-gradient(135deg, #6366f1, #4f46e5);
}

.floating-tooltip {
  position: absolute;
  right: 70px;
  background: white;
  color: #1f2937;
  padding: 8px 12px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 500;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  white-space: nowrap;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  z-index: 1000;
}

.floating-btn:hover .floating-tooltip {
  opacity: 1;
  visibility: visible;
  right: 70px;
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3), 0 0 0 0 rgba(16, 185, 129, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(16, 185, 129, 0.3), 0 0 0 10px rgba(16, 185, 129, 0);
  }
}

/* ========== 移动端导航栏优化样式 ========== */
/* 汉堡菜单动画 */
.burger-menu {
  position: relative;
  width: 24px;
  height: 20px;
  cursor: pointer;
}

.burger-bar {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: #1D2129;
  transition: all 0.3s ease;
}

.burger-bar:nth-child(1) {
  top: 0;
}

.burger-bar:nth-child(2) {
  top: 9px;
}

.burger-bar:nth-child(3) {
  top: 18px;
}

/* 汉堡菜单激活状态 */
.burger-menu.active .burger-bar:nth-child(1) {
  transform: rotate(45deg);
  top: 9px;
}

.burger-menu.active .burger-bar:nth-child(2) {
  opacity: 0;
}

.burger-menu.active .burger-bar:nth-child(3) {
  transform: rotate(-45deg);
  top: 9px;
}

/* 移动端导航菜单 */
.mobile-nav {
  position: fixed;
  top: 55px;
  left: 0;
  width: 100%;
  height: calc(100vh - 55px);
  background: white;
  box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
  transform: translateX(-100%);
  transition: transform 0.3s ease;
  z-index: 1000;
  overflow-y: auto;
}

.mobile-nav.open {
  transform: translateX(0);
}

.mobile-nav ul {
  padding: 20px;
}

.mobile-nav li {
  margin-bottom: 15px;
}

.mobile-nav a {
  display: block;
  padding: 10px 0;
  color: #1D2129;
  text-decoration: none;
  font-size: 16px;
  transition: color 0.3s ease;
}

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

/* 移动端下拉菜单 */
.mobile-dropdown-content {
  margin-left: 20px;
  margin-top: 10px;
  display: none;
}

.mobile-dropdown-content.open {
  display: block;
}

.mobile-dropdown-content a {
  font-size: 14px;
  color: #666;
}

.mobile-dropdown-content a:hover {
  color: var(--primary-color);
}
