/* 企业VI色系变量声明：定义企业标准色和通用样式变量 */
:root {
  --primary-color: #FF6809;
  --secondary-color: #535150;
  --white: #FFFFFF;
  --black: #000000;
  --light-gray: #f5f5f5;
  --dark-gray: #333333;
  --text-light: rgba(255, 255, 255, 0.9);
  --text-dark: rgba(0, 0, 0, 0.8);
  --bg-opacity: rgba(255, 255, 255, 0.1);
  --transition: all 0.3s ease;
}

/* 全局样式重置：统一浏览器默认样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: Arial, sans-serif;
  color: var(--text-dark);
  background-color: var(--light-gray);
  line-height: 1.6;
  overflow-x: hidden;
}

/* 标题样式：定义各级标题的统一样式 */
h1, h2, h3, h4, h5, h6 {
  font-weight: bold;
  margin-bottom: 1rem;
  line-height: 1.2;
}

h1 {
  font-size: 3rem;
}

h2 {
  font-size: 2.5rem;
}

h3 {
  font-size: 1.8rem;
}

h4 {
  font-size: 1.5rem;
}

/* 段落样式：定义正文段落的统一样式 */
p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}

/* 列表样式：定义有序和无序列表的统一样式 */
ul, ol {
  margin-bottom: 1.5rem;
  padding-left: 2rem;
}

li {
  margin-bottom: 0.8rem;
}

/* 链接样式：定义超链接的统一样式 */
a {
  color: var(--primary-color);
  text-decoration: none;
  transition: var(--transition);
}

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

/* 按钮样式：定义统一的按钮样式 */
.btn {
  display: inline-block;
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  border: none;
  border-radius: 25px;
  cursor: pointer;
  transition: var(--transition);
  text-decoration: none;
}

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

.btn-primary:hover {
  background-color: var(--secondary-color);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

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

.btn-white:hover {
  background-color: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
}

/* 容器样式：定义内容区域的最大宽度和边距 */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* 背景网格效果：为页面添加网格背景装饰 */
.bg-grid {
  position: relative;
}

.bg-grid::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: 
    linear-gradient(rgba(255, 255, 255, 0.1) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.1) 1px, transparent 1px);
  background-size: 50px 50px;
  z-index: 0;
}

/* 桌面头部样式：网站顶部导航栏 */
.desktop-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem 0;
  z-index: 100;
  background: rgba(0, 0, 0, 0.1);
  backdrop-filter: blur(1px);
}

.desktop-header > div {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 2rem;
}

.header-left .logo-container {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.header-left .site-logo {
  width: 50px;
  height: 50px;
  object-fit: cover;
  transition: var(--transition);
}

.header-left .site-name {
  font-size: 1.8rem;
  margin: 0;
  color: var(--white);
  font-weight: bold;
  line-height: 1;
}

.header-right .consult-btn {
  padding: 0.8rem 2rem;
  font-size: 1.1rem;
  border-radius: 25px;
  background: var(--white);
  color: var(--primary-color);
  border: none;
  font-weight: bold;
  transition: var(--transition);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.header-right .consult-btn:hover {
  background: rgba(255, 255, 255, 0.9);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* 页脚样式：网站底部信息栏 */
footer {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.5);
  color: var(--white);
  padding: 0.5rem 0;
  text-align: center;
  z-index: 5;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
}

.footer-left, .footer-center, .footer-right {
  flex: 1;
  min-width: 200px;
}

.footer-left {
  text-align: left;
}

.footer-center {
  text-align: center;
}

.footer-right {
  text-align: right;
}

.footer-content p {
  margin: 0.2rem 0;
  font-size: 0.8rem;
}

.disclaimer {
  font-size: 0.7rem !important;
  opacity: 0.7;
}

/* 咨询遮罩层样式：点击咨询按钮后显示的模态框 */
.consult-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

.consult-modal.active {
  display: flex;
}

.modal-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(5px);
}

.modal-content {
  position: relative;
  background: white;
  border-radius: 15px;
  padding: 2rem;
  max-width: 500px;
  width: 90%;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  color: var(--text-dark);
  animation: modalSlideIn 0.3s ease-out;
  max-height: none;
  overflow-y: visible;
}

@keyframes modalSlideIn {
  from {
    opacity: 0;
    transform: translateY(-50px) scale(0.9);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.modal-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
  color: var(--text-dark);
  transition: var(--transition);
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.modal-close:hover {
  background: rgba(0, 0, 0, 0.1);
  color: var(--primary-color);
}

.modal-header {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2rem;
  text-align: center;
  justify-content: center;
}

.modal-header i {
  font-size: 2rem;
  color: var(--primary-color);
}

.modal-header h2 {
  margin: 0;
  color: var(--primary-color);
  font-size: 1.8rem;
}

.modal-body {
  margin-bottom: 2rem;
}

.modal-body .contact-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.5rem;
  width: 100%;
}

.modal-body .contact-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
  padding: 1.5rem 0;
  background: var(--light-gray);
  border-radius: 10px;
  transition: var(--transition);
  height: 100%;
  width: 100%;
  text-align: center;
}

.modal-body .contact-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.modal-body .contact-item-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.8rem;
  width: 100%;
}

.modal-body .contact-item i {
  font-size: 1.8rem;
  color: var(--primary-color);
  width: 24px;
  text-align: center;
  flex-shrink: 0;
}

.modal-body .contact-item h3 {
  margin: 0;
  color: var(--dark-gray);
  font-size: 1.1rem;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 确保弹窗中的.contact-info不继承幻灯片中的样式 */
.modal-body .contact-info p {
  display: block !important;
  text-align: center !important;
  margin: 0 !important;
  color: var(--text-dark) !important;
  font-size: 1rem !important;
  width: 100% !important;
  word-break: break-word !important;
  gap: 0 !important;
  align-items: normal !important;
}

.modal-footer {
  text-align: center;
  color: var(--text-dark);
  opacity: 0.7;
  font-size: 0.9rem;
}

/* 通用动画：定义页面元素的通用动画效果 */
.fade-in {
  animation: fadeIn 0.5s ease-in-out;
}

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

/* 通用工具类：提供常用的辅助样式 */
.text-center {
  text-align: center;
}

.text-left {
  text-align: left;
}

.text-right {
  text-align: right;
}

.mt-1 { margin-top: 0.5rem; }
.mt-2 { margin-top: 1rem; }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.5rem; }
.mb-2 { margin-bottom: 1rem; }
.mb-3 { margin-bottom: 1.5rem; }
.mb-4 { margin-bottom: 2rem; }

/* 响应式设计：适配不同屏幕尺寸的样式调整 */
@media (max-width: 768px) {
  html {
    font-size: 14px;
  }
  
  h1 {
    font-size: 2.5rem;
  }
  
  h2 {
    font-size: 1.8rem;
  }
  
  h3 {
    font-size: 1.4rem;
  }
  
  .container {
    padding: 0 1rem;
  }
  
  /* 响应式头部调整 */
  .desktop-header {
    padding: 0.8rem 0;
  }
  
  .desktop-header > div {
    padding: 0 1rem;
  }
  
  .header-left .site-name {
    font-size: 1.5rem;
  }
  
  .header-right .consult-btn {
    padding: 0.6rem 1.5rem;
    font-size: 1rem;
  }
  
  /* 响应式页脚调整 */
  footer {
    padding: 0.3rem 0;
  }
  
  .footer-content {
    padding: 0 1rem;
    flex-direction: column;
    gap: 0.2rem;
  }
  
  .footer-left, .footer-center, .footer-right {
    text-align: center;
    min-width: auto;
  }
  
  .footer-content p {
    font-size: 0.65rem;
    margin: 0.1rem 0;
    line-height: 1.3;
  }
  
  .disclaimer {
    font-size: 0.6rem !important;
  }
  
  /* 响应式模态框调整 */
  .modal-content {
    padding: 1.5rem;
    margin: 1rem;
  }
  
  .modal-header h2 {
    font-size: 1.5rem;
  }
  
  .modal-body .contact-item {
    flex-direction: column;
    text-align: center;
    gap: 1rem;
  }
  
  .modal-body .contact-item i {
    font-size: 1.5rem;
  }
}