/* 泛华数智CMS精简样式 */

/* 全局重置和基础样式 */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

a {
  text-decoration: none;
  color: inherit;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #fff;
}

.cms-body{
  display: flex;
    flex-direction: column;
    overflow: hidden;
    height: 100vh;
    width: 100vw;
}

.cms-main-content{
    flex: auto;
    overflow: auto;
}

/* 布局容器 */
.cms-container {
  max-width: 1400px;
  margin: 0 auto;
}

/* 头部导航栏 */
.cms-site-header {
  background: #fff;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

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

/* Logo样式 */
.cms-logo a {
  display: flex;
  align-items: center;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}

.cms-logo-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.cms-logo-text-bottom {
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
}

.cms-logo-icon {
  width: 45px;
  height: 45px;
  margin-right: 8px;
  object-fit: contain;
}

/* 右侧区域 */
.cms-right-section {
  display: flex;
  align-items: center;
  gap: 20px;
}

/* 主导航 */
.cms-main-nav ul {
  display: flex;
  list-style: none;
}

.cms-nav-item > a {
  color: #666;
  padding: 8px 16px;
  display: block;
  transition: color 0.3s ease;
}

.cms-nav-item > a:hover {
  color: #4F8EF7;
}

/* 头部操作区域 */
.cms-header-actions {
  display: flex;
  align-items: center;
}

.cms-header-actions-line {
  width: 1px;
  height: 20px;
  background: #e5e7eb;
}

.cms-btn-text {
  color: #666;
  padding: 8px 16px;
  transition: color 0.3s ease;
  margin-right: 20px;
}

.cms-btn-text:hover {
  color: #4F8EF7;
}

/* 下拉菜单样式 */
.cms-dropdown {
  position: relative;
}

.cms-dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  border-radius: 12px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  padding: 16px;
  width: auto;
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
  transition: all 0.3s ease;
  display: flex;
  z-index: 1000;
}

.cms-dropdown:hover .cms-dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.cms-dropdown-toggle i {
  margin-left: 5px;
  font-size: 0.75rem;
  transition: transform 0.3s ease;
}

.cms-dropdown:hover .cms-dropdown-toggle i {
  transform: rotate(180deg);
}

/* Mega menu网格 */
.cms-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px 24px;
}

.cms-mega-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  text-decoration: none;
  color: #111827;
}

.cms-mega-info {
  flex: 1;
  min-width: 0;
}

.cms-mega-item:hover {
  background: #f3f4f6;
}

.cms-mega-icon {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  flex-shrink: 0;
  font-size: 30px;
}

.cms-mega-icon--platform { background: #4F8EF7; }
.cms-mega-icon--cad { background: #10B981; }
.cms-mega-icon--bim { background: #F59E0B; }
.cms-mega-icon--aigc { background: #8B5CF6; }

.cms-mega-title {
  font-size: 16px;
  font-weight: 700;
  color: #111827;
  white-space: nowrap;
}

.cms-mega-subtitle {
  font-size: 14px;
  color: #6B7280;
  white-space: nowrap;
}

/* 按钮样式 */
.cms-btn {
  display: inline-block;
  text-align: center;
  text-decoration: none;
  vertical-align: middle;
  cursor: pointer;
  border: 1px solid transparent;
  padding: 8px 16px;
  font-size: 14px;
  border-radius: 8px;
  transition: all 0.3s ease;
  line-height: 1.5;
  user-select: none;
}

.cms-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cms-btn-primary {
  background: linear-gradient(251deg, #6E0BD6 0%, #3E4FED 100%);
  color: #fff;
}

.cms-btn-primary:hover {
  box-shadow: 0 8px 25px rgba(79, 142, 247, 0.3);
}

/* 页脚样式 */
.cms-site-footer {
  background: white;
  color: #374151;
  padding: 50px 0 10px;
}

.cms-footer-content {
  display: flex;
  gap: 100px;
  margin-bottom: 30px;
}

.cms-footer-left {
  padding-right: 60px;
  flex: 0 0 500px;
  display: flex;
  flex-direction: column;
}

.cms-footer-right {
  display: flex;
  justify-content: space-between;
  flex: 1;
  gap: 60px;
}

.cms-footer-title {
  font-weight: 600;
  margin: 0;
  line-height: 1.2;
  font-size: 32px;
  color: #161616;
}

.cms-footer-subtitle {
  font-size: 18px;
  color: #333;
  font-weight: 500;
  line-height: 1.6;
  margin-bottom: 8px;
}

.cms-footer-description {
  font-size: 14px;
  color: #666;
  margin-bottom: 8px;
}

.cms-footer-contact {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  position: relative;
  cursor: pointer;
  transition: all 0.3s ease;
}

.cms-footer-contact-icon {
  width: 60px;
  height: 60px;
  background: #f3f4f6;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
}

.cms-footer-contact:hover .cms-footer-contact-icon {
  background: #e5e7eb;
  transform: scale(1.05);
}

.cms-footer-contact-icon i {
  font-size: 30px;
  color: #374151;
}

.cms-footer-contact-number {
  font-size: 24px;
  font-weight: 500;
  color: #333;
  line-height: 1.2;
}

/* 链接组样式 */
.cms-link-group h3 {
  margin-bottom: 15px;
  font-size: 16px;
  color: #333;
  line-height: 24px;
  font-weight: 600;
}

.cms-link-group ul {
  list-style: none;
}

.cms-link-group li {
  margin-bottom: 10px;
}

.cms-link-group a {
  text-decoration: none;
  transition: color 0.3s ease;
  font-size: 14px;
  color: #666;
  line-height: 22px;
}

.cms-link-group a:hover {
  color: #374151;
}

.cms-footer-bottom {
  border-top: 1px solid #e5e7eb;
  padding-top: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.cms-footer-bottom p,
.cms-footer-bottom span {
  margin: 0;
  font-size: 14px;
  color: #666;
  line-height: 22px;
  font-weight: 200;
}

/* 微信二维码气泡框样式 */
.cms-qr-modal {
  position: absolute;
  z-index: 9999;
  bottom: 70px;
  left: 50%;
  transform: translateX(-50%) scale(0.8);
  transform-origin: center bottom;
  width: 280px;
  background: white;
  border-radius: 12px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
  border: 1px solid #e2e8f0;
  opacity: 0;
  visibility: hidden;
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.cms-qr-modal.show {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) scale(1);
  pointer-events: auto;
}

.cms-qr-modal-content {
  background: transparent;
  border-radius: 0;
  padding: 0;
  max-width: none;
  width: 100%;
  max-height: none;
  overflow: visible;
  box-shadow: none;
  transform: none;
  animation: none;
}

/* 气泡框箭头 */
.cms-qr-modal::before {
  content: '';
  position: absolute;
  bottom: -9px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid #e2e8f0;
  z-index: 1;
  transition: inherit;
}

.cms-qr-modal::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 9px solid transparent;
  border-right: 9px solid transparent;
  border-top: 9px solid white;
  z-index: 2;
  transition: inherit;
}

.cms-qr-modal-body {
  padding: 16px;
  text-align: center;
}

.cms-qr-code-image {
  width: 200px;
  height: 200px;
  margin: 0 auto 12px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  display: block;
}

.cms-qr-modal-text {
  margin: 0;
  color: #64748b;
  font-size: 0.8rem;
  line-height: 1.4;
  font-weight: 500;
}
