
/* shengyi_zhizhao_website/frontend/css/style.css */
/* ===== 基础变量 ===== */
:root {
  --primary-color: #0056b3;
  --secondary-color: #00a0e9;
  --accent-color: #00d1b2;
  --light-color: #f8f9fa;
  --dark-color: #212529;
  --gradient-primary: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
  --gradient-accent: linear-gradient(135deg, var(--secondary-color) 0%, var(--accent-color) 100%);
  --shadow-sm: 0 2px 10px rgba(0,0,0,0.1);
  --shadow-md: 0 5px 20px rgba(0,0,0,0.15);
  --shadow-lg: 0 10px 30px rgba(0,0,0,0.2);
  --transition: all 0.3s ease;
  --border-radius: 10px;
}

/* ===== 通用样式 ===== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Microsoft YaHei", "Hiragino Sans GB", sans-serif;
  color: var(--dark-color);
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
  overflow-x: hidden;
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-weight: 700;
  line-height: 1.2;
}

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

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

img {
  max-width: 100%;
}

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

/* ===== 导航栏样式 ===== */
.navbar {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--shadow-sm);
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.navbar.scrolled {
  padding: 0.5rem 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-md);
}

.navbar-brand {
  font-weight: bold;
  font-size: 1.5rem;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: inline-block;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.navbar a:not(.navbar-brand) {
  position: relative;
}

.navbar a:not(.navbar-brand)::after {
  content: "";
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--gradient-primary);
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.navbar a:not(.navbar-brand):hover::after {
  width: 100%;
}

#menu-toggle {
  background: none;
  border: none;
  font-size: 1.2rem;
  cursor: pointer;
}

.mobile-menu {
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

/* ===== 英雄区域 ===== */
.hero {
  height: 100vh;
  background: linear-gradient(135deg, rgba(0, 86, 179, 0.8) 0%, rgba(0, 209, 178, 0.8) 100%);
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  color: white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  position: relative;
  overflow: hidden;
}

.hero h1 {
  font-size: 3.5rem;
  margin-bottom: 1rem;
  animation: fadeInUp 1s ease-out;
}

.hero p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
  animation: fadeInUp 1s ease-out 0.2s both;
}

.hero .btn {
  animation: fadeInUp 1s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== 轮播指示点样式 ===== */
.carousel-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.carousel-dots button {
  width: 8px;
  height: 8px;
  border: none;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);
}

/* ===== 按钮样式 ===== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  border-radius: 50px;
  font-weight: 600;
  text-align: center;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.btn-primary {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    border-radius: 0.375rem;
    transition: transform 0.2s ease;
}
.btn-primary:hover {
    background-color: #2563eb;
    transform: scale(1.05);
}
.btn-primary {
  background: var(--gradient-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
}

.btn-primary:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 25px rgba(0, 86, 179, 0.5);
}

.btn-outline {
  background: transparent;
  border: 2px solid white;
  color: white;
}

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

/* ===== 关于我们 ===== */
.section {
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
}

.section-title h2 {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

.section-divider {
  width: 80px;
  height: 4px;
  background: var(--gradient-primary);
  margin: 0 auto;
}

.about-image {
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.feature-item {
  display: flex;
  align-items: flex-start;
  margin-bottom: 1.5rem;
}

.feature-icon {
  color: var(--primary-color);
  margin-right: 1rem;
  font-size: 1.5rem;
}

/* ===== 产品展示 ===== */
.carousel {
  position: relative;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: var(--shadow-lg);
  margin-bottom: 3rem;
}

.carousel-inner {
  display: flex;
  transition: transform 0.5s ease;
}

.carousel-item {
  min-width: 100%;
  position: relative;
}

.carousel-item img {
  width: 100%;
  height: 500px;
  object-fit: cover;
}

.carousel-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
  color: white;
}

.carousel-control {
  position: absolute;
  top: 50%;
  transform: translateY(-50%); 
  width: 50px;
  height: 50px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: white;
  cursor: pointer;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
  z-index: 10;
}

.carousel-control:hover {
  background: rgba(255, 255, 255, 0.5);
}

.prev {
  left: 20px;
}

.next {
  right: 20px;
}

/* ===== 产品卡片 ===== */
.product-card {
  background: white;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

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

.product-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.product-card-body {
  padding: 1.5rem;
}

.product-card-title {
  font-size: 1.25rem;
  margin-bottom: 1rem;
}

.product-card-link {
  color: var(--primary-color);
  font-weight: 600;
  display: flex;
  align-items: center;
}

.product-card-link i {
  margin-left: 0.5rem;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.product-card-link:hover i {
  transform: translateX(5px);
}

/* ===== 解决方案 ===== */
.solutions-section {
  background: var(--gradient-primary);
  color: white;
}

.solution-item {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.solution-item:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.2);
}

.solution-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
}

/* ===== 联系我们 ===== */
.contact-info {
  background: var(--light-color);
  border-radius: var(--border-radius);
  padding: 2rem;
  height: 100%;
}

.contact-item {
  display: flex;
  align-items: center;
  margin-bottom: 1.5rem;
}

.contact-icon {
  width: 50px;
  height: 50px;
  background: var(--primary-color);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-right: 1rem;
}

.social-links {
  display: flex;
  gap: 1rem;
}

.social-link {
  width: 40px;
  height: 40px;
  background: var(--light-color);
  color: var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.social-link:hover {
  background: var(--primary-color);
  color: white;
}

/* ===== 表单样式 ===== */
/* 表单组布局 */
.form-group {
    margin: 1rem 0;
}

/* 登录按钮基础样式 */
.login-link {
    padding: 0.5rem 1rem;
    background-color: #3b82f6;
    color: white;
    border: none;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: transform 0.2s ease;
    font-size: 2.5rem; /* 进一步增大文字大小，1.5rem约20px */
}

/* 悬停效果 */
.login-btn:hover {
    transform: scale(1.05); /* 对应hover:scale-105 */
    background-color: #2563eb; /* 对应hover:bg-blue-600 */
}

/* 焦点状态（提升可访问性） */
.login-btn:focus {
    outline: 2px solid #bfdbfe;
    outline-offset: 2px;
}
.form-control {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 2px solid #e2e8f0;
  border-radius: 8px;
  font-family: inherit;
  font-size: 1rem;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.form-control:focus {
  border-color: var(--primary-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 86, 179, 0.2);
}

/* ===== 页脚 ===== */
.footer {
  background: var(--gradient-primary);
  color: white;
  padding: 4rem 0 2rem;
}

.footer-title {
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.footer-links {
  list-style: none;
}

.footer-links li {
  margin-bottom: 0.75rem;
}

.footer-links a {
  opacity: 0.8;
  transition: var(--transition);
}

.carousel-dots button.active {
  background-color: var(--primary-color);
  width: 12px;
  border-radius: 6px;
  transform: scale(1.2);
  box-shadow: 0 2px 5px rgba(0,86,179,0.3);;
}

.footer-links a:hover {
  opacity: 1;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 1.5rem;
  text-align: center;
  font-size: 0.875rem;
  opacity: 0.7;
}

/* ===== 动画效果 ===== */
.fade-in {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.active {
  opacity: 1;
  transform: translateY(0);
}

/* ===== 粒子效果 ===== */
#particles-js {
  position: absolute;
  width: 100%;
  height: 100%;
  top: 0;
  left: 0;
  z-index: 1;
}

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

/* ===== 响应式设计 ===== */
@media (max-width: 1200px) {
  .container {
    max-width: 960px;
  }
}

@media (max-width: 992px) {
  .container {
    max-width: 720px;
  }
  
  .hero h1 {
    font-size: 3rem;
  }
}

@media (max-width: 768px) {
  .container {
    max-width: 540px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .carousel-item img {
    height: 400px;
  }
  
  .section {
    padding: 4rem 0;
  }
  
  .section-title h2 {
    font-size: 2rem;
  }
}

@media (max-width: 576px) {
  .container {
    padding: 0 1.5rem;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .btn {
    display: block;
    width: 100%;
    margin-bottom: 1rem;
  }
  
  .carousel-control {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .carousel-item img {
    height: 300px;
  }
  
  .section {
    padding: 3rem 0;
  }
}
