/* 基础CSS重置与全局样式 */
:root {
  --tencent-blue: #0079ff;
  --tencent-light-blue: #4da6ff;
  --tencent-dark-blue: #0055cc;
  --tencent-gray: #f0f2f5;
  --tencent-dark-gray: #e4e6eb;
  --tencent-text: #18191a;
  --tencent-secondary: #606266;
  --tencent-light: #fafafa;
  --tencent-border: #dcdfe6;
  --tencent-success: #07c160;
  --tencent-warning: #ff9c00;
  --tencent-danger: #ff3b30;
  --tencent-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  --tencent-radius: 8px;
  --tencent-transition: all 0.3s cubic-bezier(0.645, 0.045, 0.355, 1);
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  font-size: 16px;
  overflow-x: hidden;
  scroll-behavior: smooth;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
}

body {
  color: var(--tencent-text);
  background-color: #f5f7fa;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p {
  word-wrap: break-word; /* 自动换行功能 */
  overflow-wrap: break-word;
}

a {
  color: var(--tencent-blue);
  text-decoration: none;
  transition: var(--tencent-transition);
}

a:hover {
  color: var(--tencent-dark-blue);
  text-decoration: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* 响应式字体尺寸 */
.fs-12 { font-size: 0.75rem; }
.fs-14 { font-size: 0.875rem; }
.fs-16 { font-size: 1rem; }
.fs-18 { font-size: 1.125rem; }
.fs-20 { font-size: 1.25rem; }
.fs-22 { font-size: 1.375rem; }
.fs-24 { font-size: 1.5rem; }
.fs-26 { font-size: 1.625rem; }
.fs-28 { font-size: 1.75rem; }
.fs-30 { font-size: 1.875rem; }
.fs-32 { font-size: 2rem; }
.fs-34 { font-size: 2.125rem; }
.fs-36 { font-size: 2.25rem; }
.fs-38 { font-size: 2.375rem; }
.fs-40 { font-size: 2.5rem; }

@media (min-width: 768px) {
  .fs-sm-12 { font-size: 0.75rem; }
  .fs-sm-14 { font-size: 0.875rem; }
  .fs-sm-16 { font-size: 1rem; }
  .fs-sm-18 { font-size: 1.125rem; }
  .fs-sm-20 { font-size: 1.25rem; }
  .fs-sm-22 { font-size: 1.375rem; }
  .fs-sm-24 { font-size: 1.5rem; }
  .fs-sm-26 { font-size: 1.625rem; }
  .fs-sm-28 { font-size: 1.75rem; }
  .fs-sm-30 { font-size: 1.875rem; }
  .fs-sm-32 { font-size: 2rem; }
  .fs-sm-34 { font-size: 2.125rem; }
  .fs-sm-36 { font-size: 2.25rem; }
  .fs-sm-38 { font-size: 2.375rem; }
  .fs-sm-40 { font-size: 2.5rem; }
}

/* 间距系统 */
.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }
.mt-5 { margin-top: 2rem; }
.mt-6 { margin-top: 3rem; }
.mt-7 { margin-top: 4rem; }
.mt-8 { margin-top: 5rem; }
.mt-9 { margin-top: 6rem; }
.mt-10 { margin-top: 8rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 1rem; }
.mb-4 { margin-bottom: 1.5rem; }
.mb-5 { margin-bottom: 2rem; }
.mb-6 { margin-bottom: 3rem; }
.mb-7 { margin-bottom: 4rem; }
.mb-8 { margin-bottom: 5rem; }
.mb-9 { margin-bottom: 6rem; }
.mb-10 { margin-bottom: 8rem; }

.pt-1 { padding-top: 0.25rem; }
.pt-2 { padding-top: 0.5rem; }
.pt-3 { padding-top: 1rem; }
.pt-4 { padding-top: 1.5rem; }
.pt-5 { padding-top: 2rem; }
.pt-6 { padding-top: 3rem; }
.pt-7 { padding-top: 4rem; }
.pt-8 { padding-top: 5rem; }
.pt-9 { padding-top: 6rem; }
.pt-10 { padding-top: 8rem; }

.pb-1 { padding-bottom: 0.25rem; }
.pb-2 { padding-bottom: 0.5rem; }
.pb-3 { padding-bottom: 1rem; }
.pb-4 { padding-bottom: 1.5rem; }
.pb-5 { padding-bottom: 2rem; }
.pb-6 { padding-bottom: 3rem; }
.pb-7 { padding-bottom: 4rem; }
.pb-8 { padding-bottom: 5rem; }
.pb-9 { padding-bottom: 6rem; }
.pb-10 { padding-bottom: 8rem; }

/* 导航栏 - 腾讯风格 */
.navbar {
  background: white;
  box-shadow: var(--tencent-shadow);
  padding: 0.8rem 0;
  transition: all 0.3s ease;
}

.navbar-brand img {
  height: 50px;
  transition: var(--tencent-transition);
}

.navbar-toggler {
  border: none;
  color: var(--tencent-text);
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  color: var(--tencent-secondary);
  font-weight: 500;
  padding: 0.5rem 1.2rem;
  position: relative;
  transition: var(--tencent-transition);
}

.navbar-nav .nav-link:hover,
.navbar-nav .nav-link.active {
  color: var(--tencent-blue);
}

.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 0;
  height: 2px;
  background: var(--tencent-blue);
  transition: var(--tencent-transition);
  transform: translateX(-50%);
}

.navbar-nav .nav-link:hover::after,
.navbar-nav .nav-link.active::after {
  width: 60%;
}

/* 幻灯片 - 腾讯风格 */
.swiper-container {
  position: relative;
  overflow: hidden;
  border-radius: var(--tencent-radius);
  box-shadow: var(--tencent-shadow);
  margin-top: 1rem;
  height: 500px;
}

.slideshow {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s ease;
}

.swiper-slide:hover .slideshow {
  transform: scale(1.03);
}

.swiper-slide .container {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: white;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
  width: 100%;
  padding: 0 20px;
}

.swiper-slide h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
}

.swiper-slide h4 {
  font-size: 1.5rem;
  font-weight: 400;
  max-width: 800px;
  margin: 0 auto;
}

.swiper-button-prev::after,
.swiper-button-next::after {
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-size: 24px;
  color: white;
}

.swiper-button-prev::after {
  content: '\f053';
}

.swiper-button-next::after {
  content: '\f054';
}

.swiper-button-prev,
.swiper-button-next {
  color: white;
  background: rgba(0, 0, 0, 0.2);
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--tencent-transition);
}

.swiper-button-prev:hover,
.swiper-button-next:hover {
  background: rgba(0, 0, 0, 0.4);
}

.swiper-pagination-bullet {
  background: rgba(255, 255, 255, 0.5);
  opacity: 1;
  width: 12px;
  height: 12px;
  margin: 0 8px !important;
}

.swiper-pagination-bullet-active {
  background: white;
}

/* 产品中心 - 腾讯卡片风格 */
.product-section {
  background: white;
  padding: 5rem 0;
}

.section-title {
  text-align: center;
  margin-bottom: 3rem;
  position: relative;
}

.section-title::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--tencent-blue);
  margin: 1rem auto;
  border-radius: 2px;
}

.card {
  border: none;
  border-radius: var(--tencent-radius);
  overflow: hidden;
  box-shadow: var(--tencent-shadow);
  transition: var(--tencent-transition);
  height: 100%;
  margin-bottom: 1.5rem;
}

.card:hover {
  transform: translateY(-10px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.12);
}

.card-img-150 {
  height: 200px;
  overflow: hidden;
}

.card-img-top {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
}

.card-body {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.card-title a {
  color: var(--tencent-text);
  transition: var(--tencent-transition);
}

.card-title a:hover {
  color: var(--tencent-blue);
}

.card-text {
  color: var(--tencent-secondary);
  font-size: 0.95rem;
  line-height: 1.6;
}

.view-more {
  text-align: center;
  margin-top: 2rem;
}

.view-more a {
  display: inline-flex;
  align-items: center;
  color: var(--tencent-blue);
  font-weight: 500;
  transition: var(--tencent-transition);
}

.view-more a:hover {
  color: var(--tencent-dark-blue);
  transform: translateX(5px);
}

.view-more a i {
  margin-left: 5px;
  transition: var(--tencent-transition);
}

.view-more a:hover i {
  transform: translateX(5px);
}

/* 公司简介 - 腾讯风格 */
.about-section {
  background: linear-gradient(135deg, #f5f7fa, #e4e7eb);
  padding: 5rem 0;
  position: relative;
  overflow: hidden;
}

.about-section::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 300px;
  height: 300px;
  background: var(--tencent-blue);
  opacity: 0.05;
  border-radius: 50%;
  z-index: 0;
}

.about-content {
  position: relative;
  z-index: 1;
  background: white;
  padding: 2.5rem;
  border-radius: var(--tencent-radius);
  box-shadow: var(--tencent-shadow);
  line-height: 1.8;
  color: var(--tencent-secondary);
  font-size: 1.05rem;
}

/* 页脚 - 腾讯风格 */
.footer {
  background: linear-gradient(135deg, #1a1a2e, #16213e);
  color: rgba(255, 255, 255, 0.8);
  padding: 4rem 0 0;
  position: relative;
  margin-top: 60px;
}

.footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--tencent-blue), var(--tencent-success));
}

.footer h5 {
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.5rem;
  position: relative;
}

.footer h5::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 0;
  width: 40px;
  height: 3px;
  background: var(--tencent-blue);
  border-radius: 2px;
}

.footer ul {
  line-height: 2.2;
}

.footer a {
  color: rgba(255, 255, 255, 0.7);
  transition: var(--tencent-transition);
}

.footer a:hover {
  color: white;
  padding-left: 5px;
}

.code {
  display: flex;
  justify-content: center;
}

.code img {
  max-width: 120px;
  border-radius: var(--tencent-radius);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.copyright {
  background: rgba(0, 0, 0, 0.2);
  text-align: center;
  padding: 1.5rem 0;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.6);
}

/* 手机底部导航 */
.mobile-nav {
  background: linear-gradient(90deg, var(--tencent-blue), var(--tencent-light-blue));
  box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
}

.mobile-nav a {
  color: white;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.8rem 0;
  font-size: 0.85rem;
  transition: var(--tencent-transition);
}

.mobile-nav a:hover {
  background: rgba(255, 255, 255, 0.1);
}

.mobile-nav i {
  font-size: 1.2rem;
  margin-bottom: 0.3rem;
}

/* 在线客服 - 腾讯风格 */
.online {
  position: fixed;
  bottom: 30px;
  right: 30px;
  z-index: 1000;
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.online-item {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--tencent-blue);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--tencent-shadow);
  transition: var(--tencent-transition);
  cursor: pointer;
  position: relative;
}

.online-item:hover {
  background: var(--tencent-dark-blue);
  transform: translateY(-5px);
}

.online-item i {
  font-size: 1.5rem;
}

.online-panel {
  position: absolute;
  bottom: 70px;
  right: 0;
  width: 300px;
  background: white;
  border-radius: var(--tencent-radius);
  box-shadow: var(--tencent-shadow);
  padding: 1.5rem;
  display: none;
  z-index: 1001;
  animation: fadeIn 0.3s ease-out;
}

.online-panel.show {
  display: block;
}

.online-panel h3 {
  font-size: 1.2rem;
  margin-bottom: 1rem;
  color: var(--tencent-text);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.online-panel h3 i {
  cursor: pointer;
  color: var(--tencent-secondary);
}

.online-panel p {
  margin-bottom: 1rem;
  color: var(--tencent-secondary);
}

.online-panel input {
  width: 100%;
  padding: 0.8rem;
  border: 1px solid var(--tencent-border);
  border-radius: 4px;
  margin-bottom: 1rem;
  transition: var(--tencent-transition);
}

.online-panel input:focus {
  border-color: var(--tencent-blue);
  outline: none;
  box-shadow: 0 0 0 2px rgba(0, 121, 255, 0.2);
}

.online-panel button {
  width: 100%;
  padding: 0.8rem;
  background: var(--tencent-blue);
  color: white;
  border: none;
  border-radius: 4px;
  font-weight: 500;
  cursor: pointer;
  transition: var(--tencent-transition);
}

.online-panel button:hover {
  background: var(--tencent-dark-blue);
}

.qr-code img {
  width: 100%;
  border-radius: 8px;
}

/* 动画效果 */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes slideUp {
  from { 
    opacity: 0;
    transform: translateY(20px);
  }
  to { 
    opacity: 1;
    transform: translateY(0);
  }
}

.wow {
  visibility: hidden;
}

.animated {
  animation-duration: 0.8s;
  animation-fill-mode: both;
}

.fadeIn {
  animation-name: fadeIn;
}

.slideInUp {
  animation-name: slideUp;
}

/* 响应式调整 */
@media (max-width: 992px) {
  .swiper-container,
  .slideshow {
    height: 400px;
  }
}

@media (max-width: 768px) {
  .navbar-nav .nav-link {
    padding: 0.8rem 1rem;
  }
  
  .swiper-container,
  .slideshow {
    height: 300px;
  }
  
  .swiper-slide h1 {
    font-size: 1.8rem;
  }
  
  .swiper-slide h4 {
    font-size: 1.1rem;
  }
  
  .card-img-150 {
    height: 180px;
  }
  
  .online {
    bottom: 20px;
    right: 20px;
  }
  
  .online-item {
    width: 50px;
    height: 50px;
  }
}

@media (max-width: 576px) {
  .swiper-container,
  .slideshow {
    height: 250px;
  }
  
  .swiper-slide h1 {
    font-size: 1.5rem;
  }
  
  .swiper-slide h4 {
    font-size: 1rem;
  }
  
  .about-content {
    padding: 1.5rem;
  }
}