/* 
* Kerrystone Website Styles
* Created for: 成都柯睿斯坦智能科技有限公司
* Modern, professional design with focus on conversion
*/

/* Base Styles & Reset */
:root {
  --primary-color: #1890ff; /* 鲜明蓝色作为主色 */
  --secondary-color: #40a9ff; /* 辅助蓝色 */
  --accent-color: #69c0ff; /* 亮蓝色 */
  --dark-color: #333333; /* 改为浅灰色 */
  --light-color: #fafafa; /* 近白色背景 */
  --text-color: #555555; /* 正文文字颜色调浅 */
  --heading-color: #333333; /* 标题颜色改为浅灰 */
  --light-text: #ffffff;
  --gray-bg: #f5f7fa; /* 浅色背景 */
  --border-radius: 8px;
  --box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05); /* 非常浅的阴影 */
  --transition: all 0.3s ease;
  --gradient: linear-gradient(135deg, rgb(24, 144, 255), #40a9ff); /* 蓝色渐变 */
}

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

body {
  font-family: 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
  color: var(--text-color);
  line-height: 1.6;
  font-size: 16px;
  overflow-x: hidden;
  font-weight: 500; /* 增加默认字重提高可读性 */
}

a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

a:hover {
  color: var(--secondary-color);
}

h1, h2, h3, h4, h5, h6 {
  color: var(--heading-color);
  font-weight: 700; /* 加粗标题 */
  line-height: 1.3;
  margin-bottom: 1rem;
}

img {
  max-width: 100%;
  height: auto;
}

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

.btn {
  display: inline-block;
  padding: 12px 24px;
  border-radius: var(--border-radius);
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
  font-size: 16px;
}

.btn-primary {
  background: var(--gradient); /* 使用蓝色渐变背景 */
  color: var(--light-text);
  border: none;
  padding: 12px 30px;
  box-shadow: 0 4px 15px rgba(24, 144, 255, 0.15); /* 清晰阴影 */
}

.btn-primary:hover {
  background: var(--secondary-color);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--box-shadow);
}

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

.btn-outline:hover {
  background: var(--primary-color);
  color: white;
  transform: translateY(-2px);
}

section {
  padding: 80px 0;
  border: none;
}

.section-header {
  text-align: center;
  margin-bottom: 60px;
}

.section-header h2 {
  font-size: 36px;
  margin-bottom: 15px;
  position: relative;
  display: inline-block;
}

.section-header h2:after {
  content: '';
  position: absolute;
  width: 60px;
  height: 3px;
  background: var(--primary-color);
  left: 50%;
  bottom: -10px;
  transform: translateX(-50%);
}

.section-header p {
  font-size: 18px;
  color: var(--text-color); /* 使用统一的文字颜色变量 */
  max-width: 700px;
  margin: 0 auto;
  font-weight: 500; /* 增加字重提高可读性 */
}

/* 几何装饰元素 */
.geometric-bg {
  position: absolute;
  width: 400px;
  height: 400px;
  background-image: url('../images/geometric-pattern.svg');
  background-size: contain;
  background-repeat: no-repeat;
  z-index: -1;
  opacity: 0.5;
  pointer-events: none;
}

.geometric-bg.left {
  left: -200px;
  top: 100px;
}

.geometric-bg.right {
  right: -200px;
  top: 500px;
  transform: rotate(180deg);
}

@media (max-width: 768px) {
  .geometric-bg {
    width: 200px;
    height: 200px;
  }
  
  .geometric-bg.left {
    left: -100px;
    top: 50px;
  }
  
  .geometric-bg.right {
    right: -100px;
    top: 300px;
  }
}

/* Header Styles */
.header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background: white; /* 保持顶部为白色 */
  box-shadow: 0 2px 15px rgba(64, 169, 255, 0.1); /* 使用更浅的蓝色阴影 */
  transition: var(--transition);
  border-bottom: 1px solid rgba(64, 169, 255, 0.1); /* 使用浅蓝色边框 */
}

.header-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 0;
}

.logo a {
  display: flex;
  align-items: center;
  color: var(--heading-color);
  font-size: 22px;
  font-weight: bold;
}

.logo img {
  height: 40px;
  margin-right: 10px;
}

.main-nav ul {
  display: flex;
  list-style: none;
}

.main-nav ul li {
  margin: 0 15px;
}

.main-nav ul li a {
  color: #0f2643; /* 顶部导航使用深色文字，但不像底部那么深 */
  font-weight: 600; /* 保持导航文字加粗 */
  padding: 10px 5px;
  position: relative;
}

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

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

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

.mobile-menu-toggle {
  display: none;
  flex-direction: column;
  cursor: pointer;
}

.mobile-menu-toggle span {
  width: 25px;
  height: 2px;
  background: var(--text-color);
  margin: 3px 0;
  transition: var(--transition);
}

/* Hero Section */
.hero {
  padding: 180px 0 100px;
  position: relative;
  background: white; /* 保持白色背景 */
  overflow: hidden;
  border-bottom: 2px solid var(--primary-color); /* 使用浅蓝色边框 */
}

.hero:before {
  content: '';
  position: absolute;
  top: 0;
  right: 0;
  width: 50%;
  height: 100%;
  background: var(--gradient);
  clip-path: polygon(15% 0, 100% 0%, 100% 100%, 0% 100%);
  opacity: 0.05;
}

.hero .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.hero-content {
  flex: 1;
  max-width: 600px;
  margin-right: 50px;
}

.hero-title {
  font-size: 48px;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--heading-color);
}

.hero-subtitle {
  font-size: 24px;
  color: var(--primary-color);
  margin-bottom: 30px;
  font-weight: 500;
}

.hero-cta {
  display: flex;
  gap: 15px;
}

.hero-image {
  flex: 1;
  display: flex;
  justify-content: flex-end;
  position: relative;
}

.hero-image img {
  max-width: 100%;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

/* Features Section */
.features {
  background-color: var(--gray-bg); /* 使用浅灰色背景增加层次感 */
  border-bottom: 0;
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.feature-card {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.feature-icon {
  width: 70px;
  height: 70px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(24, 144, 255, 0.08); /* 非常浅的蓝色背景 */
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(24, 144, 255, 0.08); /* 添加浅蓝色阴影 */
}

.feature-icon img {
  width: 35px;
  height: 35px;
}

.feature-card h3 {
  font-size: 20px;
  margin-bottom: 15px;
}

.feature-card p {
  color: var(--text-color); /* 使用统一的文字颜色 */
  font-size: 15px;
  font-weight: 500; /* 增加字重提高可读性 */
}

/* Statistics Section */
.statistics {
  background: #00172c; /* 纯深蓝色背景 */
  color: #ffffff; /* 纯白色文字 */
  padding: 40px 0; /* 增加内边距 */
  border-top: 0;
  border-bottom: 0;
}

.statistics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
  text-align: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--container-padding);
}

.stat-number {
  font-size: 48px;
  font-weight: 800; /* 增加字重 */
  margin-bottom: 10px;
  color: var(--primary-color); /* 使用主色调增强可见度 */
  text-shadow: 0 1px 1px rgba(0,0,0,0.05); /* 添加文字阴影增强清晰度 */
}

.stat-label {
  font-size: 18px;
  font-weight: 600; /* 增加字重 */
  color: var(--text-color); /* 使用标准文本颜色而非透明度 */
  margin-top: 5px; /* 增加与数字的间距 */
}

/* Product Demo Video Section */
.video-demo {
  padding: 80px 0;
  background: #f9fbfd;
}

.video-container {
  max-width: 800px;
  margin: 0 auto 50px;
}

.video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 宽高比 */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--box-shadow);
}

.video-placeholder {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #001529 0%, #003a70 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.video-placeholder:hover {
  background: linear-gradient(135deg, #002137 0%, #004b8e 100%);
}

.play-button {
  margin-bottom: 20px;
  transform: scale(1);
  transition: transform 0.3s ease;
}

.video-placeholder:hover .play-button {
  transform: scale(1.1);
}

.placeholder-text {
  font-size: 18px;
  font-weight: 500;
}

.video-features {
  display: flex;
  flex-wrap: wrap;
  gap: 30px;
  justify-content: center;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 15px;
  width: calc(33.333% - 20px);
  min-width: 250px;
}

.feature-icon.small {
  flex-shrink: 0;
}

.feature-text h4 {
  margin-bottom: 8px;
  font-size: 18px;
}

.feature-text p {
  color: #666;
  font-size: 14px;
}

@media (max-width: 768px) {
  .video-features {
    flex-direction: column;
  }
  
  .feature-item {
    width: 100%;
  }
}

/* CTA Section */
.cta-section {
  background-image: url('../images/cta-bg.svg');
  background-size: cover;
  background-position: center;
  position: relative;
}

.cta-section:before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 21, 41, 0.8);
}

.cta-content {
  position: relative;
  color: var(--light-text);
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

.cta-content h2 {
  font-size: 36px;
  color: var(--light-text);
  margin-bottom: 20px;
}

.cta-content p {
  font-size: 18px;
  margin-bottom: 30px;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Team Section */
.team-section {
  background: white;
  padding: 80px 0;
}

.wave-decoration {
  text-align: center;
  margin: -20px 0 40px;
  opacity: 0.7;
}

.wave-decoration img {
  max-width: 100%;
  height: auto;
}

.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 30px;
}

.team-member {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 30px;
  text-align: center;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.team-member:hover {
  transform: translateY(-10px);
  box-shadow: var(--box-shadow);
}

.member-photo {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  margin: 0 auto 20px;
  border: 3px solid white;
  box-shadow: 0 5px 15px rgba(24, 144, 255, 0.2);
}

.photo-placeholder {
  width: 100%;
  height: 100%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 24px;
  font-weight: bold;
}

.team-member h3 {
  font-size: 20px;
  margin-bottom: 5px;
}

.member-position {
  color: var(--primary-color);
  font-weight: 500;
  margin-bottom: 15px;
}

.member-desc {
  font-size: 14px;
  color: var(--text-color); /* 使用统一的文字颜色 */
  font-weight: 500; /* 增加字重 */
}

/* Clients Section */
.clients {
  background: var(--gray-bg);
}

.clients-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 30px;
}

.client-case {
  background: white;
  border-radius: var(--border-radius);
  padding: 30px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transition: var(--transition);
}

.client-case:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow);
}

.client-industry {
  font-weight: 600;
  font-size: 18px;
  color: var(--primary-color);
  margin-bottom: 15px;
}

.client-result {
  color: var(--text-color);
  font-size: 16px;
}

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

.footer-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 40px;
  margin-bottom: 50px;
}

.footer-column h3 {
  color: #ffffff; /* 纯白色标题 */
  font-size: 1.2rem;
  margin-bottom: 20px;
  font-weight: 700;
}

.footer-column h3:after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 40px; /* 增加宽度使更明显 */
  height: 3px; /* 增加高度使更明显 */
  background: var(--primary-color);
}

.footer-column ul {
  list-style: none;
}

.footer-column ul li {
  margin-bottom: 10px;
}

.footer-column ul li a {
  color: #ffffff; /* 纯白色链接 */
  transition: var(--transition);
  font-weight: 600; /* 保持字重提高可读性 */
  opacity: 0.9; /* 轻微降低不透明度，与标题区分 */
}

.footer-column ul li a:hover {
  color: var(--primary-color);
  padding-left: 5px;
}

.contact-info li {
  display: flex;
  align-items: center;
}

.contact-info i {
  margin-right: 10px;
  color: var(--primary-color);
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 30px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.copyright {
  text-align: center;
  padding-top: 30px;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1); /* 半透明白色边框 */
  color: #ffffff; /* 纯白色文本 */
  font-size: 0.9rem;
  font-weight: 600; /* 保持字重 */
  opacity: 0.9; /* 轻微降低不透明度 */
}

.footer-links li a {
  color: #ffffff; /* 纯白色链接 */
  font-size: 0.95rem;
  font-weight: 600; /* 保持字重 */
  opacity: 0.9; /* 轻微降低不透明度 */
}

.footer-links a:hover {
  color: var(--primary-color);
}

/* Responsive Styles */
@media (max-width: 992px) {
  .hero {
    padding: 150px 0 80px;
  }
  
  .hero .container {
    flex-direction: column;
  }
  
  .hero-content {
    margin-right: 0;
    margin-bottom: 40px;
    text-align: center;
  }
  
  .hero-cta {
    justify-content: center;
  }
  
  .features-grid,
  .statistics-grid,
  .clients-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .section {
    padding: 60px 0;
  }
}

@media (max-width: 768px) {
  .mobile-menu-toggle {
    display: flex;
  }
  
  .main-nav {
    position: absolute;
    top: 70px;
    left: 0;
    width: 100%;
    background: white;
    padding: 20px;
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    transform: scaleY(0);
    transform-origin: top;
    transition: var(--transition);
    opacity: 0;
    visibility: hidden;
  }
  
  .main-nav.active {
    transform: scaleY(1);
    opacity: 1;
    visibility: visible;
  }
  
  .main-nav ul {
    flex-direction: column;
  }
  
  .main-nav ul li {
    margin: 10px 0;
  }
  
  .hero-title {
    font-size: 36px;
  }
  
  .hero-subtitle {
    font-size: 20px;
  }
  
  .feature-card,
  .client-case {
    padding: 20px;
  }
  
  .features-grid,
  .statistics-grid,
  .clients-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-content {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }
  
  .footer-links {
    display: flex;
    justify-content: center;
    gap: 15px;
  }
  
  .footer-links a {
    margin-left: 0;
  }
  
  .section-header h2 {
    font-size: 30px;
  }
}
