/* 全局样式 */
body {
  font-family: "Microsoft YaHei", "微软雅黑", "SimHei", "黑体", "Arial", sans-serif;
  color: #333333;
}

/* 导航 */
.navbar {
  background-color: #FFFFFF !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  padding: 1rem 0; /* 增加导航栏上下内边距，从默认0.5rem增加到1rem */
  min-height: 80px; /* 设置最小高度，确保导航栏有足够高度 */
}
.navbar-brand {
  padding: 0.5rem 0; /* 增加logo区域的内边距 */
}
.navbar-brand img {
  height: 60px; /* 从40px增加到60px（1.5倍） */
  filter: drop-shadow(1px 1px 2px rgba(0, 0, 0, 0.3));
  transition: transform 0.2s ease;
}
.navbar-brand img:hover {
  transform: scale(1.05);
}
.nav-link {
  color: #0650A0 !important;
  font-weight: 500;
  font-size: 1.125rem; /* 从默认16px增加到18px（1.125倍） */
  padding: 0.75rem 1rem !important; /* 增加导航链接的内边距，从默认0.5rem增加到0.75rem */
  transition: all 0.3s ease;
}
.nav-link:hover {
  color: #F5A623 !important;
  font-weight: 700;
  transform: translateY(-2px); /* 添加悬停上移效果 */
}
.navbar-toggler {
  border: none;
  padding: 0.5rem 0.75rem; /* 增加移动端菜单按钮的内边距 */
}
.navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(0, 0, 0, 1)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
  width: 1.5em; /* 增加图标尺寸 */
  height: 1.5em;
}

/* 登录模态框系统选择样式 */
.system-selection .system-option {
  border: 2px solid #e9ecef !important;
  background-color: #ffffff;
}

.system-selection .system-option:hover {
  border-color: #0650A0 !important;
  background-color: #f8f9fa;
  transform: translateX(5px);
}

.system-selection input[type="radio"]:checked + label {
  color: #0650A0;
  font-weight: 600;
}

.system-selection .system-option:has(input[type="radio"]:checked) {
  border-color: #0650A0 !important;
  background-color: #e3f2fd;
}
/* 主题切换按钮样式 */
.btn-outline-secondary {
  font-size: 1.125rem; /* 从默认增加到18px */
  padding: 0.75rem 1rem; /* 增加内边距 */
}
.btn-login {
  color: #FFFFFF !important;
  background: linear-gradient(to right, #0650A0, #0D47A1) !important;
  border: none;
  font-weight: 700;
  font-size: 1.125rem; /* 从默认16px增加到18px */
  padding: 15px 30px; /* 从10px 20px增加到15px 30px（1.5倍） */
  transition: transform 0.2s ease;
}
.btn-login:hover {
  transform: scale(1.05);
}

/* 主题切换按钮样式 */
.btn-outline-secondary {
  font-size: 1.125rem; /* 从默认增加到18px */
  padding: 0.75rem 1rem; /* 增加内边距 */
}

/* 导航栏响应式调整 */
@media (max-width: 991px) {
  .navbar {
    padding: 0.75rem 0; /* 移动端稍微减少内边距 */
    min-height: 70px;
  }
  .navbar-brand img {
    height: 50px; /* 移动端logo稍微小一点 */
  }
  .nav-link {
    font-size: 1rem; /* 移动端字体稍微小一点 */
    padding: 0.5rem 0.75rem !important;
  }
  .btn-login {
    font-size: 1rem;
    padding: 12px 24px;
    margin-top: 0.5rem;
  }
  .btn-outline-secondary {
    font-size: 1rem;
    padding: 0.625rem 0.875rem;
    margin-top: 0.5rem;
  }
}

/* Banner */
.banner {
  /* 临时使用渐变背景，避免版权问题。生成新图片后可以恢复图片背景 */
  /* background: url('../resources/assets/banner-home.jpg') center/cover; */
  background: linear-gradient(135deg, #0650A0 0%, #0D47A1 50%, #1565C0 100%),
              linear-gradient(45deg, rgba(255, 255, 255, 0.1) 0%, transparent 50%),
              radial-gradient(circle at 20% 50%, rgba(255, 255, 255, 0.15) 0%, transparent 50%),
              radial-gradient(circle at 80% 50%, rgba(255, 255, 255, 0.1) 0%, transparent 50%);
  background-color: #0650A0;
  height: 400px;
  display: flex;
  align-items: center;
  color: white;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

/* Banner 装饰性几何图形 */
.banner::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -10%;
  width: 600px;
  height: 600px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.banner::after {
  content: '';
  position: absolute;
  bottom: -30%;
  left: -5%;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, transparent 70%);
  border-radius: 50%;
  z-index: 0;
}

.banner .container {
  position: relative;
  z-index: 1;
}
.banner-content {
  max-width: 600px;
}
.banner h1 {
  font-weight: 900;
  font-size: 40px;
}
.banner-text {
  font-size: 18px;
  margin: 15px 0;
}
@media (max-width: 768px) {
  .banner {
    height: 300px;
  }
  .banner-content {
    margin-left: 20px;
  }
  .banner h1 {
    font-size: 24px;
  }
  .banner-text {
    font-size: 14px;
    max-width: 90%;
  }
}

/* 视频区域 */
.video-section {
  background: linear-gradient(rgba(245, 245, 245, 0.8), rgba(245, 245, 245, 0.8)), url('../resources/assets/video-bg.jpg') center/cover fixed;
  background-color: #F8F9FA;
  padding: 60px 0;
}
.video-section h2 {
  color: #0650A0;
  font-weight: 900;
  font-size: 32px;
  margin-bottom: 20px;
}
.video-section .mission-box {
  background-color: #FFFFFF;
  border: 1px solid #E0E0E0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 20px;
  border-radius: 8px;
}
.video-section .mission-title {
  font-size: 20px;
  font-weight: 900;
  margin-bottom: 10px;
}
.video-section .mission-text {
  color: #333333;
  font-size: 18px;
}
.video-wrapper {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
  border-radius: 8px;
}
.video-player {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border-radius: 8px;
}
.video-content {
  width: 100%;
}
@media (max-width: 768px) {
  .video-section {
    padding: 40px 0;
  }
  .video-section h2 {
    font-size: 24px;
  }
  .video-section .mission-title {
    font-size: 18px;
  }
  .video-section .mission-text {
    font-size: 16px;
  }
}

/* 服务部分图片 */
.service-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}
@media (max-width: 768px) {
  .service-image {
    max-width: 225px;
  }
}

/* 服务内容 */
.services-section {
  padding: 60px 0;
  background-color: #F8F9FA;
}
.services-section h1 {
  color: #0650A0;
  font-size: 36px;
  font-weight: 900;
  margin-bottom: 40px;
}
.services-section h2 {
  color: #0650A0;
  font-size: 28px;
  font-weight: 900;
  margin-bottom: 15px;
}
.services-section p {
  color: #333333;
  font-size: 16px;
  line-height: 1.5;
}
@media (max-width: 768px) {
  .services-section {
    padding: 40px 0;
  }
  .services-section h1 {
    font-size: 28px;
  }
  .services-section h2 {
    font-size: 24px;
  }
  .services-section p {
    font-size: 14px;
  }
}

/* 文档安全存储背景 */
#storage {
  background-color: #F8F9FA;
  padding: 20px;
  border-radius: 8px;
}

/* 服务卡片 */
.services-section .card {
  border: none;
  border-radius: 8px;
  transition: transform 0.3s ease, box-shadow 0.3s ease, background 0.3s ease;
  margin-bottom: 20px;
  border: 1px solid #E9ECEF;
  background-color: transparent !important;
  background: transparent !important;
}
.services-section .card:hover {
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
  background: linear-gradient(rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.1)) !important;
}
.services-section .card:active {
  transform: scale(0.98);
}
.services-section .card-link {
  text-decoration: none;
  color: inherit;
}
.square-card {
  min-height: 300px;
}
.square-card .card-img-top {
  width: 100%;
  height: 225px;
  object-fit: cover;
  object-position: center;
  border-top-left-radius: 8px;
  border-top-right-radius: 8px;
}
.square-card .card-body {
  padding: 10px;
}
.square-card .card-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.square-card .card-text {
  font-size: 14px;
  line-height: 1.5;
  max-height: 80px;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* long-card 样式（方案 1：背景图片，调整模糊和悬停颜色） */
.services-section .row .col-12 .card.long-card {
  background: url('../resources/assets/full-solutions.jpg') center/cover no-repeat !important;
  color: #FFFFFF !important;
  border: none;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}
.services-section .row .col-12 .card.long-card:hover {
  filter: brightness(0.8);
  transform: scale(1.05);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}
.services-section .row .col-12 .card.long-card:hover .card-title,
.services-section .row .col-12 .card.long-card:hover .card-text,
.services-section .row .col-12 .card.long-card:hover .card-title i {
  color: #ffd700 !important; /* 悬停改成黄色，与 square-card 统一 */
}
.long-card {
  min-height: 120px;
}
.long-card .card-body {
  text-align: left;
  padding: 15px;
  background: rgba(0, 0, 0, 0.1); /* 降低不透明度，图片更清晰 */
  backdrop-filter: blur(3px); /* 减少模糊强度 */
  -webkit-backdrop-filter: blur(3px);
}
.long-card .card-title {
  font-size: 18px;
  font-weight: 900;
  margin-bottom: 10px;
  color: #FFFFFF;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}
.long-card .card-title i {
  color: #FFFFFF;
  font-size: 24px;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  margin-right: 10px;
  vertical-align: middle;
}
.long-card .card-text {
  font-size: 14px;
  text-align: left;
  color: #FFFFFF;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

/* 卡片背景颜色（首页和服务页面通用） */
.services-section .container .row .col-md-3:nth-child(1) div.card.square-card {
  background-color: #D32F2F !important;
  background: #D32F2F !important;
}
.services-section .container .row .col-md-3:nth-child(1) div.card.square-card .card-body,
.services-section .container .row .col-md-3:nth-child(1) div.card.square-card .card-body .card-title,
.services-section .container .row .col-md-3:nth-child(1) div.card.square-card .card-body .card-text {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.services-section .container .row .col-md-3:nth-child(2) div.card.square-card {
  background-color: #90CAF9 !important;
  background: #90CAF9 !important;
  color: #333333 !important;
}
.services-section .container .row .col-md-3:nth-child(3) div.card.square-card {
  background-color: #0D47A1 !important;
  background: #0D47A1 !important;
}
.services-section .container .row .col-md-3:nth-child(3) div.card.square-card .card-body,
.services-section .container .row .col-md-3:nth-child(3) div.card.square-card .card-body .card-title,
.services-section .container .row .col-md-3:nth-child(3) div.card.square-card .card-body .card-text {
  color: white !important;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}
.services-section .container .row .col-md-3:nth-child(4) div.card.square-card {
  background-color: #E0E0E0 !important;
  background: #E0E0E0 !important;
  color: #333333 !important;
}

@media (max-width: 768px) {
  .services-section .row .col-md-3 {
    width: 50%;
  }
  .square-card .card-img-top {
    height: 180px;
  }
  .square-card .card-title {
    font-size: 16px;
  }
  .square-card .card-text {
    font-size: 12px;
    max-height: 60px;
  }
  .long-card .card-body {
    min-height: 120px;
  }
}
@media (max-width: 576px) {
  .services-section .row .col-md-3 {
    width: 100%;
  }
  .square-card .card-img-top {
    height: 200px;
  }
}
/* 合并“联系我们”与“为什么选择”区域 */
.contact-why-section {
  background: linear-gradient(to bottom, #F8F9FA, #E3F2FD);
  padding: 60px 0;
  border-top: 2px solid #BBDEFB;
}
.contact-why-section .why-choose-title,
.contact-why-section .contact-title {
  color: #0650A0;
  font-weight: 900;
  font-size: 24px;
  margin-bottom: 20px;
}
.contact-why-section .mission-text {
  font-size: 16px;
  color: #333333;
}
.benefits-list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.benefits-list li::before {
  content: "✔";
  color: #0650A0;
  margin-right: 8px;
}
.benefits-list li {
  margin-bottom: 10px;
  font-size: 16px;
  line-height: 1.8;
}
.why-choose-image {
  max-width: 400px;
  width: 100%;
  height: auto;
  border-radius: 8px;
}
.contact-form-section {
  background-color: #FFFFFF;
  border: 2px solid #BBDEFB;
  border-radius: 8px;
}
.contact-form-section p {
  font-size: 16px;
  color: #333333;
}
.contact-form-section .form-label {
  font-size: 16px;
  color: #333333;
  font-weight: 500;
}
.contact-form-section .form-control {
  border-radius: 4px;
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
}
.contact-form-section .btn-login {
  background: linear-gradient(to right, #0650A0, #0D47A1);
  font-size: 16px;
  padding: 10px;
  transition: transform 0.2s ease;
}
.contact-form-section .btn-login:hover {
  transform: scale(1.05);
}
@media (max-width: 768px) {
  .contact-why-section {
    padding: 40px 0;
  }
  .contact-why-section .row {
    flex-direction: column;
  }
  .why-choose-content,
  .contact-form-section {
    padding: 20px;
    margin-bottom: 20px;
  }
  .why-choose-title,
  .contact-title {
    font-size: 20px;
  }
  .benefits-list li,
  .contact-form-section p,
  .mission-text {
    font-size: 14px;
  }
  .why-choose-image {
    max-width: 100%;
  }
}

/* 页脚 */
footer {
  background-color: #0650A0;
  color: white;
  padding: 20px 0;
  font-size: 14px;
}
footer a {
  color: #F5A623;
  text-decoration: none;
}
footer a:hover {
  color: #FFFFFF;
}

/* 客服对话功能样式 */
.customer-service-btn {
  position: fixed;
  top: 50%;
  right: 30px;
  transform: translateY(-50%);
  width: 80px;
  height: 80px;
  background: linear-gradient(135deg, #0650A0, #0D47A1);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(6, 80, 160, 0.4);
  z-index: 1000;
  transition: all 0.3s ease;
  animation: pulse 2s infinite;
}

.customer-service-btn:hover {
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 20px rgba(6, 80, 160, 0.6);
}

@keyframes pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(6, 80, 160, 0.4);
  }
  50% {
    box-shadow: 0 4px 20px rgba(6, 80, 160, 0.6);
  }
}

.chat-widget {
  position: fixed;
  top: 50%;
  right: 120px;
  transform: translateY(-50%);
  width: 380px;
  max-width: calc(100vw - 60px);
  height: 600px;
  max-height: calc(100vh - 120px);
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  display: none;
  flex-direction: column;
  z-index: 1001;
  overflow: hidden;
  transition: all 0.3s ease;
}

.chat-widget.show {
  display: flex;
  animation: slideUp 0.3s ease;
}

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

.chat-widget-header {
  background: linear-gradient(135deg, #0650A0, #0D47A1);
  color: white;
  padding: 15px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-radius: 12px 12px 0 0;
}

.chat-widget-header h6 {
  margin: 0;
  font-weight: 600;
}

.chat-widget-header small {
  font-size: 0.75rem;
  opacity: 0.9;
}

.chat-actions {
  display: flex;
  gap: 8px;
}

.chat-widget-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  background: #f8f9fa;
}

.chat-message {
  display: flex;
  margin-bottom: 16px;
  animation: fadeIn 0.3s ease;
}

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

.chat-message.user-message {
  justify-content: flex-end;
}

.chat-message.bot-message,
.chat-message.human-message {
  justify-content: flex-start;
}

.message-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #0650A0, #0D47A1);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  margin-right: 10px;
  flex-shrink: 0;
}

.chat-message.user-message .message-avatar {
  margin-right: 0;
  margin-left: 10px;
  background: linear-gradient(135deg, #F5A623, #FF9800);
  order: 2;
}

.message-content {
  max-width: 70%;
  background: white;
  padding: 12px 16px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.chat-message.user-message .message-content {
  background: linear-gradient(135deg, #0650A0, #0D47A1);
  color: white;
}

.message-text {
  line-height: 1.5;
  word-wrap: break-word;
  white-space: pre-wrap;
}

.message-time {
  font-size: 0.75rem;
  opacity: 0.7;
  margin-top: 4px;
}

.chat-widget-footer {
  padding: 15px;
  background: white;
  border-top: 1px solid #e9ecef;
  border-radius: 0 0 12px 12px;
}

.chat-quick-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chat-quick-actions .btn {
  font-size: 0.75rem;
  padding: 4px 8px;
}

/* 移动端适配 */
@media (max-width: 768px) {
  .customer-service-btn {
    width: 70px;
    height: 70px;
    font-size: 28px;
    top: 50%;
    right: 15px;
    transform: translateY(-50%);
  }

  .chat-widget {
    width: calc(100vw - 40px);
    height: calc(100vh - 100px);
    top: 50%;
    right: 100px;
    transform: translateY(-50%);
    max-width: none;
    max-height: none;
    border-radius: 12px 12px 0 0;
  }

  .message-content {
    max-width: 85%;
  }
}

/* 登录模态框 */
.modal-content {
  border-radius: 8px;
}
.modal-header {
  border-bottom: none;
}
.modal-body .form-label {
  color: #0650A0;
  font-weight: 500;
}
.modal-body .form-control {
  border-radius: 4px;
}
.modal-body .btn-login {
  width: 100%;
  background: linear-gradient(to right, #0650A0, #0D47A1);
  color: white;
}
.modal-body .btn-login:hover {
  transform: scale(1.05);
}

/* 软件试用区域样式 */
.software-demo-section {
  background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
  padding: 60px 40px;
  border-radius: 12px;
  margin: 40px 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.software-intro h2 {
  font-weight: 900;
  margin-bottom: 20px;
}

.software-intro .lead {
  color: #333;
  font-size: 1.1rem;
  line-height: 1.8;
}

.feature-item {
  display: flex;
  align-items: center;
  padding: 8px 0;
  font-size: 1rem;
}

.software-actions .card {
  border-radius: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-actions .card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.15) !important;
}

.software-actions .btn-lg {
  padding: 15px 20px;
  font-size: 1.1rem;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.software-actions .btn-primary {
  background: linear-gradient(135deg, #0650A0, #0D47A1);
  border: none;
}

.software-actions .btn-primary:hover {
  background: linear-gradient(135deg, #0D47A1, #1565C0);
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(6, 80, 160, 0.4);
}

.software-actions .btn-outline-primary {
  border: 2px solid #0650A0;
  color: #0650A0;
}

/* 购物车图标样式 */
#cartBtn {
  font-size: 1.5rem;
  padding: 0.6rem 0.9rem;
  min-width: 50px;
  min-height: 50px;
}

#cartBtn i {
  font-size: 1.6rem;
}

.cart-badge {
  font-size: 0.9rem;
  padding: 0.25em 0.5em;
  min-width: 20px;
  min-height: 20px;
  line-height: 1.2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* 支付方式选择卡片 */
.payment-method-card {
  border: 2px solid #e9ecef;
  border-radius: 8px;
  padding: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  background: #fff;
}

.payment-method-card:hover {
  border-color: #0650A0;
  box-shadow: 0 2px 8px rgba(6, 80, 160, 0.1);
  transform: translateY(-2px);
}

.payment-method-card.active {
  border-color: #0650A0;
  background: rgba(6, 80, 160, 0.05);
  box-shadow: 0 2px 8px rgba(6, 80, 160, 0.2);
}

.payment-method-card input[type="radio"]:checked + label {
  color: #0650A0;
}

/* 发票表单样式 */
#invoiceForm {
  background: #f8f9fa;
  padding: 1.5rem;
  border-radius: 8px;
  border: 1px solid #dee2e6;
}

.software-actions .btn-outline-primary:hover {
  background: #0650A0;
  color: white;
  transform: translateY(-2px);
}

.software-info {
  background: rgba(6, 80, 160, 0.05);
  padding: 15px;
  border-radius: 8px;
  border-left: 4px solid #0650A0;
}

@media (max-width: 768px) {
  .software-demo-section {
    padding: 40px 20px;
  }
  
  .software-intro h2 {
    font-size: 1.5rem;
  }
  
  .software-actions .btn-lg {
    font-size: 1rem;
    padding: 12px 15px;
  }
}