/* 
 * Kerrystone Website - 配色与排版优化
 * 统一深蓝色配色方案与文字层次优化
 */

/* 使用styles.css中定义的CSS变量，这里不再重复定义 */

/* 按钮样式已在styles.css和optimize.css中定义，这里不再重复定义 */

/* 标题与内容的明确区分 */
h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 0.7em;
}

h1 {
  font-size: 2.8rem;
  line-height: 1.2;
}

h2 {
  font-size: 2.2rem;
  line-height: 1.25;
}

h3 {
  font-size: 1.6rem;
  line-height: 1.3;
}

p, li, a {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.6;
  font-weight: 500; /* 略微增加字重，提高可读性 */
}

.section-header h2 {
  position: relative;
  padding-bottom: 15px;
  margin-bottom: 25px;
  color: var(--primary-color);
  font-weight: 800;
  text-shadow: 0 1px 1px rgba(0,0,0,0.05);
}

.section-header h2::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background: var(--accent-color);
}

.section-header p {
  font-size: 1.2rem;
  color: var(--text-color); /* 使用更深的文字颜色 */
  font-weight: 600; /* 加粗提高可见性 */
  max-width: 700px;
  margin: 0 auto 40px;
}

/* 导航菜单统一样式 */
.main-nav a {
  color: #0f2643; /* 顶部导航使用深色文字，但不像底部那么深 */
  font-weight: 600;
  font-size: 1.05rem;
  position: relative;
  padding: 5px 0;
  margin: 0 12px;
  transition: all 0.3s ease;
}

.main-nav a:hover, 
.main-nav a:focus {
  color: var(--primary-color);
}

.main-nav a.active {
  color: var(--primary-color);
  font-weight: 700;
}

.main-nav a::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.3s ease;
}

.main-nav a:hover::after,
.main-nav a:focus::after,
.main-nav a.active::after {
  width: 100%;
}

/* 移动端导航增强 */
.mobile-menu a {
  color: var(--light-text);
  font-size: 1.1rem;
  font-weight: 700; /* 增加字重 */
  padding: 12px 0;
  display: block;
  border-bottom: 1px solid rgba(255,255,255,0.2); /* 增强边框可见性 */
}

.mobile-bottom-nav {
  background: white;
  box-shadow: 0 -2px 10px rgba(25, 118, 210, 0.1);
}

.mobile-bottom-nav-item {
  color: var(--text-color);
  font-weight: 500;
}

.mobile-bottom-nav-item.active {
  color: var(--primary-color);
  font-weight: 700;
}

/* 卡片统一样式 */
.card, 
.feature-card, 
.team-member, 
.client-case {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: var(--box-shadow);
  transition: all 0.3s ease;
  border: 1px solid var(--border-color);
  padding: 25px 20px;
}

.card:hover, 
.feature-card:hover, 
.team-member:hover, 
.client-case:hover {
  box-shadow: 0 8px 25px rgba(25, 118, 210, 0.2);
  transform: translateY(-5px);
  border-color: var(--secondary-color);
}

/* 团队成员样式优化 */
.team-member h3 {
  color: var(--primary-color);
  font-size: 1.4rem;
  margin-top: 15px;
  margin-bottom: 5px;
}

.team-member .member-position {
  color: var(--accent-color);
  font-weight: 600;
  font-size: 1.1rem;
  margin-bottom: 10px;
}

.team-member .member-desc {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500; /* 增加字重提高可读性 */
}

.member-photo {
  margin-bottom: 15px;
}

.photo-placeholder {
  background: var(--gradient);
  color: white;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  font-weight: bold;
  margin: 0 auto;
  box-shadow: 0 5px 15px rgba(25, 118, 210, 0.25);
}

/* 成功案例样式优化 */
.client-case {
  padding: 22px;
  background-color: white;
  border-left: 4px solid var(--primary-color);
}

.client-industry {
  color: var(--primary-color);
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.client-result {
  color: var(--text-color);
  font-size: 1rem;
  line-height: 1.5;
  font-weight: 500; /* 增加字重 */
}

/* 功能特性样式优化 */
.feature-card {
  text-align: center;
  padding: 30px 20px;
}

.feature-card h3 {
  color: var(--primary-color);
  font-size: 1.3rem;
  margin-top: 15px;
  margin-bottom: 10px;
  font-weight: 700;
}

.feature-card p {
  color: var(--text-color);
  font-size: 0.95rem;
  line-height: 1.5;
  font-weight: 500; /* 增加字重提高可读性 */
}

.feature-icon {
  color: var(--primary-color);
  font-size: 2.5rem;
  margin-bottom: 15px;
  display: inline-block;
}

/* 统一背景色 */
.hero-section {
  background: white; /* 顶部使用白色背景 */
  position: relative;
  overflow: hidden;
}

.hero-section::before {
  content: '';
  position: absolute;
  top: -50px;
  right: -50px;
  width: 200px;
  height: 200px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  z-index: 0;
}

.hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  left: -100px;
  width: 300px;
  height: 300px;
  border-radius: 50%;
  background: rgba(255,255,255,0.05);
  z-index: 0;
}

.hero-section .container {
  position: relative;
  z-index: 1;
}

.features {
  background-color: white; /* 使用纯白色增加对比 */
  border-bottom: 0;
}

.product-demo {
  background-color: white;
  position: relative;
}

.product-demo::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0.3;
}

.team {
  background-color: var(--gray-bg); /* 使用统一的灰色背景 */
}

.clients {
  background-color: white;
  position: relative;
}

.clients::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient);
  opacity: 0.3;
}

.footer {
  background: #00172c; /* 深蓝色背景 */
  color: #ffffff; /* 纯白色文本 */
  border-top: none; /* 移除边框 */
}

/* 页脚链接颜色 */
.footer h3 {
  color: #ffffff; /* 白色标题 */
  font-weight: 700; /* 保持加粗标题 */
}

.footer p, .footer a {
  color: #ffffff; /* 使用白色文本 */
  opacity: 0.9; /* 轻微降低不透明度 */
}

.footer a:hover {
  color: var(--primary-color); /* 保持悬停颜色为蓝色 */
  text-decoration: none;
}

/* 特性图标颜色 */
.feature-icon {
  color: var(--primary-color);
  background: rgba(24, 144, 255, 0.08); /* 非常浅的蓝色背景 */
  padding: 15px;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px;
  transition: all 0.3s ease;
}

.feature-card:hover .feature-icon {
  background: var(--primary-color);
  color: white;
  transform: scale(1.1);
}

/* 数据统计部分 */
.stats-item h3 {
  color: var(--accent-color);
  font-size: 2.5rem;
}

.stats-item p {
  color: var(--muted-text);
  font-size: 1.1rem;
}

/* 移动端的配色和排版优化 */
@media (max-width: 768px) {
  h1 {
    font-size: 2.2rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .section-header h2::after {
    width: 60px;
  }
  
  .section-header p {
    font-size: 1.1rem;
  }
  
  .mobile-bottom-nav {
    background-color: white;
    box-shadow: 0 -2px 10px rgba(25, 118, 210, 0.15);
  }
  
  .mobile-bottom-nav-item {
    color: var(--text-color);
  }
  
  .mobile-bottom-nav-item.active {
    color: var(--primary-color);
  }
  
  /* 移动端额外增强 */
  .client-case {
    margin-bottom: 15px;
  }
  
  .touch-slider .team-member,
  .touch-slider .client-case {
    width: 85%;
    margin-right: 15px;
    flex-shrink: 0;
  }
  
  .feature-card {
    margin-bottom: 20px;
  }
  
  .swipe-hint {
    color: var(--primary-color);
    font-weight: 500;
  }
  
  .back-to-top {
    background-color: var(--primary-color);
    box-shadow: 0 3px 10px rgba(25, 118, 210, 0.25);
  }
}
