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

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 0;
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

.footer {
  position: relative;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

/* Logo Optimization */
.navbar-brand img {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
    image-rendering: pixelated;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    vertical-align: middle;
    display: inline-block;
}

.navbar-brand {
    display: flex;
    align-items: center;
}

.footer .navbar-brand {
    width: fit-content;
}

.navbar-slogan,
.footer-slogan {
    font-size: 15px;
    font-weight: 400;
    letter-spacing: 0.8px;
    line-height: 1.4;
    color: white;
    margin-top: 4px;
}

.navbar-slogan {
    display: block;
    text-align: left;
}

/* Custom Styles */
.bg-gradient-primary {
    background: linear-gradient(135deg, #66B3FF 0%, #4DA6FF 100%);
}

.bg-primary {
    background-color: #5898D4 !important;
}

.navbar-dark .navbar-nav .nav-link {
    color: rgba(255, 255, 255, 0.95) !important;
}

.navbar-dark .navbar-nav .nav-link:hover {
    color: rgba(255, 255, 255, 0.7) !important;
    transition: color 0.3s ease;
}

.navbar-dark .navbar-brand {
    color: rgba(255, 255, 255, 0.95) !important;
}

.btn-primary {
    background-color: #007BFF !important;
    border-color: #007BFF !important;
}

.btn-primary:hover {
    background-color: #0056b3 !important;
    border-color: #0056b3 !important;
}

.text-primary {
    color: #007BFF !important;
}

.bg-gradient-secondary {
    background: linear-gradient(135deg, #6c757d 0%, #495057 100%);
}

.bg-gradient-success {
    background: linear-gradient(135deg, #28a745 0%, #1e7e34 100%);
}

.bg-gradient-warning {
    background: linear-gradient(135deg, #ffc107 0%, #e0a800 100%);
}

.bg-gradient-info {
    background: linear-gradient(135deg, #17a2b8 0%, #138496 100%);
}

/* Card Styles */
.card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* Button Styles */
.btn {
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* Feature Icons */
.feature-icon {
  transition: transform 0.3s ease;
}

.card:hover .feature-icon {
  transform: scale(1.1);
}

/* Social Links */
.social-links a {
  transition: transform 0.3s ease;
}

.social-links a:hover {
  transform: translateY(-3px);
}

/* Contact Icons */
.contact-icon {
  transition: transform 0.3s ease;
}

.contact-info .d-flex:hover .contact-icon {
  transform: scale(1.1);
}

/* Product Cards */
.product-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.1) !important;
}

/* 产品卡片实线分割 */
.product-card .card-body {
  position: relative; /* 为分割线定位做准备 */
}

.product-card .card-body .product-card-divider {
  border-top: 1px solid #dee2e6;
  margin-left: -1rem;
  margin-right: -1rem;
  padding-left: 0;
  padding-right: 0;
  width: calc(100% + 2rem);
  position: relative;
  z-index: 1;
}

/* 确保分割线不超出卡片 */
.product-card {
  overflow: hidden;
}

/* 产品卡片"了解更多"链接样式 */
.product-learn-more-link {
  color: #000000;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  transition: color 0.3s ease, transform 0.3s ease;
}

.product-learn-more-link:hover {
  color: #0d6efd;
  text-decoration: none;
  transform: translateX(3px);
}

.product-learn-more-link i {
  transition: transform 0.3s ease;
}

.product-learn-more-link:hover i {
  transform: translateX(3px);
}

/* Screenshot Items */
.screenshot-item {
  position: relative;
  cursor: pointer;
  border-radius: 8px;
  overflow: hidden;
}

.screenshot-item img {
  transition: transform 0.3s ease;
}

.screenshot-item:hover img {
  transform: scale(1.05);
}

.screenshot-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(transparent, rgba(0,0,0,0.8));
  padding: 20px 15px 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}

.screenshot-item:hover .screenshot-overlay {
  transform: translateY(0);
}

/* Navigation */
.navbar-brand {
  font-weight: 700;
  font-size: 1.5rem;
}

.navbar-nav .nav-link {
  font-weight: 500;
  transition: color 0.3s ease;
}

.navbar-nav .nav-link:hover {
  color: rgba(255, 255, 255, 0.8) !important;
  transition: color 0.3s ease;
}

/* Navigation Styles */
.navbar-nav {
    gap: 0.5rem;
}

@media (min-width: 768px) {
    .navbar-nav {
        gap: 1rem;
    }
}

/* Typography */
.display-4 {
  font-weight: 700;
}

.display-5 {
  font-weight: 600;
}

.lead {
  font-weight: 400;
  line-height: 1.6;
}

/* Form Styles */
.form-control {
  border-radius: 8px;
  border: 2px solid #e9ecef;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.form-control:focus {
  border-color: #007bff;
  box-shadow: 0 0 0 0.2rem rgba(0,123,255,0.25);
}

/* Accordion Styles */
.accordion-button:not(.collapsed) {
  background-color: #f8f9fa;
  color: #0d6efd;
}

.accordion-button:focus {
  box-shadow: none;
  border-color: rgba(0, 0, 0, 0.125);
}

/* Badge Styles */
.badge {
  font-weight: 500;
  padding: 0.5em 0.75em;
}

/* Alert Styles */
.alert {
  border-radius: 8px;
  border: none;
}

/* Modal Styles */
.modal-content {
  border-radius: 12px;
  border: none;
}

.modal-header {
  border-bottom: 1px solid #e9ecef;
}

/* Breadcrumb Styles */
.breadcrumb-item + .breadcrumb-item::before {
  content: ">";
  color: rgba(255,255,255,0.7);
}

/* Responsive Design */
@media (max-width: 768px) {
  .hero-section {
    text-align: center;
  }
  
  .hero-section .btn {
    margin-bottom: 1rem;
  }
  
  .contact-info {
    margin-bottom: 2rem;
  }
}

/* Animation Classes */
.fade-in {
  animation: fadeIn 0.5s ease-in;
}

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

.slide-in-left {
  animation: slideInLeft 0.5s ease-out;
}

@keyframes slideInLeft {
  from {
    opacity: 0;
    transform: translateX(-30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

.slide-in-right {
  animation: slideInRight 0.5s ease-out;
}

@keyframes slideInRight {
  from {
    opacity: 0;
    transform: translateX(30px);
  }
  to {
    opacity: 1;
    transform: translateX(0);
  }
}

/* Loading Spinner */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

/* Custom Scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
  background: #c1c1c1;
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: #a8a8a8;
}

/* Admin Dashboard Styles */
.admin-dashboard {
    padding: 2rem;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: 100vh;
}

.admin-dashboard .card {
    border: none;
    border-radius: 15px;
    box-shadow: 0 0.15rem 1.75rem 0 rgba(58, 59, 69, 0.15);
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1.5rem;
}

.admin-dashboard .card:hover {
    transform: translateY(-2px);
    box-shadow: 0 0.5rem 2rem 0 rgba(58, 59, 69, 0.2);
}

.admin-dashboard .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px 15px 0 0 !important;
    border: none;
}

.admin-dashboard .border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.admin-dashboard .border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.admin-dashboard .border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.admin-dashboard .border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.admin-dashboard .text-xs {
    font-size: 0.7rem;
    font-weight: 600;
    color: #2c3e50 !important;
}

.admin-dashboard .text-gray-800 {
    color: #2c3e50 !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.admin-dashboard .text-gray-300 {
    color: #7f8c8d !important;
}

.admin-dashboard .activity-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.admin-dashboard .btn {
    border-radius: 10px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    color: white;
}

.admin-dashboard .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}

.admin-dashboard .progress {
    border-radius: 10px;
    background-color: #ecf0f1;
}

.admin-dashboard .progress-bar {
    border-radius: 10px;
}

.admin-dashboard .dropdown-toggle::after {
    display: none;
}

.admin-dashboard .dropdown-menu {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.5rem 1rem rgba(0, 0, 0, 0.15);
}

/* 活动项目样式优化 */
.admin-dashboard .activity-item .fw-bold {
    color: #2c3e50 !important;
    font-weight: 600;
}

.admin-dashboard .activity-item .text-muted {
    color: #7f8c8d !important;
    font-weight: 500;
}

/* 系统状态文字优化 */
.admin-dashboard .text-sm {
    color: #2c3e50 !important;
    font-weight: 600;
}

.admin-dashboard .text-success {
    color: #27ae60 !important;
}

.admin-dashboard .text-warning {
    color: #f39c12 !important;
    font-weight: 600;
}

/* 卡片内容文字优化 */
.admin-dashboard .card-body {
    color: #2c3e50;
}

.admin-dashboard .card-body h6 {
    color: #2c3e50 !important;
    font-weight: 700;
}

/* 第三个红框特殊样式 */
.admin-dashboard .row:last-child .card {
    margin-bottom: 0;
}

.admin-dashboard .row:last-child .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .admin-dashboard {
        padding: 1rem;
    }
    
    .admin-dashboard .card-body {
        padding: 1rem;
    }
}

/* Navigation Styles */

/* Admin Dashboard Compact Styles */
.admin-dashboard-compact {
    padding: 1rem 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    min-height: calc(100vh - 150px);
    width: 100%;
    margin: 0;
    padding-bottom: 4rem;
    margin-bottom: 2rem;
}

.admin-dashboard-compact .card {
    border: none;
    border-radius: 10px;
    box-shadow: 0 0.1rem 0.5rem 0 rgba(58, 59, 69, 0.1);
    transition: all 0.3s ease;
    background: white;
    margin-bottom: 1.5rem;
}

.admin-dashboard-compact .card:last-child {
    margin-bottom: 0;
}

.admin-dashboard-compact .row {
    margin-bottom: 1rem;
}

.admin-dashboard-compact .card-header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px 10px 0 0 !important;
    border: none;
    padding: 0.75rem 1rem;
}

.admin-dashboard-compact .card-body {
    padding: 1rem;
}

.admin-dashboard-compact .border-left-primary {
    border-left: 0.25rem solid #4e73df !important;
}

.admin-dashboard-compact .border-left-success {
    border-left: 0.25rem solid #1cc88a !important;
}

.admin-dashboard-compact .border-left-info {
    border-left: 0.25rem solid #36b9cc !important;
}

.admin-dashboard-compact .border-left-warning {
    border-left: 0.25rem solid #f6c23e !important;
}

.admin-dashboard-compact .text-xs {
    font-size: 0.8rem;
    font-weight: 600;
    color: #2c3e50 !important;
}

.admin-dashboard-compact .text-gray-800 {
    color: #2c3e50 !important;
    font-weight: 700;
    font-size: 1.5rem;
}

.admin-dashboard-compact .text-gray-300 {
    color: #7f8c8d !important;
}

.admin-dashboard-compact .activity-icon {
    width: 40px;
    height: 40px;
    font-size: 14px;
}

.admin-dashboard-compact .btn {
    border-radius: 8px;
    transition: all 0.3s ease;
    border: none;
    font-weight: 600;
    color: white;
    font-size: 1rem;
}

.admin-dashboard-compact .btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.admin-dashboard-compact .dropdown-toggle::after {
    display: none;
}

.admin-dashboard-compact .dropdown-menu {
    border: none;
    border-radius: 8px;
    box-shadow: 0 0.25rem 0.5rem rgba(0, 0, 0, 0.15);
    min-width: 200px;
    position: absolute;
    z-index: 1050;
}

.admin-dashboard-compact .dropdown-item {
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
}

.admin-dashboard-compact .dropdown-header {
    padding: 0.5rem 1rem;
    font-size: 0.75rem;
    font-weight: 600;
    color: #6c757d;
}

.admin-dashboard-compact .dropdown-divider {
    margin: 0.25rem 0;
}

/* 活动项目样式优化 */
.admin-dashboard-compact .activity-item .fw-bold {
    color: #2c3e50 !important;
    font-weight: 600;
    font-size: 1rem;
}

.admin-dashboard-compact .activity-item .text-muted {
    color: #7f8c8d !important;
    font-weight: 500;
    font-size: 0.9rem;
}

/* Hero Carousel Styles */
.hero-section .carousel {
    border-radius: 15px;
    overflow: hidden;
}

.hero-section .carousel-indicators {
    bottom: 0px; /* 从30px减少到15px，让指示器向下移动 */
    z-index: 5;
}

.hero-section .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(88, 152, 212, 0.5);
    border: 2px solid transparent;
    margin: 0 5px;
    transition: all 0.3s ease;
}

.hero-section .carousel-indicators button.active {
    background-color: #8fbce6;
    border-color: #8fbce6;
    transform: scale(1.0);
}

/* Carousel Item Layout */
.carousel-item {
    height: 400px; /* 从500px减少到400px */
    padding: 1rem 0; /* 从2rem减少到1rem */
    position: relative;
}

.carousel-item .row {
    height: 100%;
    align-items: center;
    padding: 0 2rem; /* 减少左右内边距，因为不再有控制按钮 */
}

.carousel-item .col-lg-6:first-child {
    padding-right: 2rem;
}

.carousel-item .col-lg-6:last-child {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.carousel-item h1 {
    margin-bottom: 1.5rem;
    line-height: 1.2;
    white-space: nowrap;
}

.carousel-item p {
    margin-bottom: 2.5rem; /* 从1.5rem增加到2.5rem，拉大文字和按钮的距离 */
    line-height: 1.6;
}

.carousel-item .d-flex {
    /* 移除所有强制样式，让按钮自然跟随文字 */
}

/* Responsive adjustments for carousel */
@media (max-width: 768px) {
    .hero-section .carousel-control-prev,
    .hero-section .carousel-control-next {
        width: 40px;
        height: 40px;
    }
    
    .hero-section .carousel-control-prev {
        left: 15px;
    }
    
    .hero-section .carousel-control-next {
        right: 15px;
    }
    
    .hero-section .carousel-indicators {
        bottom: 20px;
    }
    
    .hero-section .carousel-indicators button {
        width: 10px;
        height: 10px;
        margin: 0 3px;
    }
    
    .carousel-item {
        height: 350px; /* 从400px减少到350px */
        padding: 0.5rem 0; /* 从1rem减少到0.5rem */
    }
    
    .carousel-item .row {
        padding: 0 1.5rem; /* 移动端减少左右间距 */
    }
    
    .carousel-item h1 {
        font-size: 1.8rem;
        white-space: normal;
    }
    
    .carousel-item .col-lg-6:first-child {
        padding-right: 1rem;
    }
    
    .carousel-item .d-flex {
        margin-bottom: 2.5rem; /* 移动端增加按钮底部间距 */
    }
}

@media (max-width: 576px) {
    .carousel-item {
        height: 300px; /* 从350px减少到300px */
        padding: 0.25rem 0; /* 从0.5rem减少到0.25rem */
    }
    
    .carousel-item .row {
        padding: 0 1rem; /* 小屏幕进一步减少左右间距 */
    }
    
    .carousel-item h1 {
        font-size: 1.5rem;
        white-space: normal;
    }
    
    .carousel-item .btn {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .carousel-item .col-lg-6:first-child {
        padding-right: 0.5rem;
    }
    
    .carousel-item .d-flex {
        margin-bottom: 2rem; /* 小屏幕增加按钮底部间距 */
    }
}

/* Carousel Animation */
.carousel-item {
    transition: transform 0.6s ease-in-out;
}

.carousel-item.active,
.carousel-item-next,
.carousel-item-prev {
    display: block;
}

/* 轮播图片美化样式 - 简洁版本 */
.carousel-item .col-lg-6:last-child {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-item .col-lg-6:last-child img {
    max-width: 100%;
    height: auto;
    transition: all 0.3s ease;
}

.carousel-item .col-lg-6:last-child img:hover {
    transform: scale(1.02);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .carousel-item .col-lg-6:last-child img {
        max-width: 90%;
    }
}

/* 移除CTA和Footer之间的白线 */
section.bg-primary {
    border-bottom: none !important;
    margin-bottom: 0 !important;
    padding-bottom: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

footer.footer {
    border-top: none !important;
    margin-top: 0 !important;
    padding-top: 0 !important;
    box-shadow: none !important;
    outline: none !important;
}

/* 强制移除所有可能的边框和间距 */
section.bg-primary + footer.footer {
    margin-top: 0 !important;
    padding-top: 0 !important;
    border-top: none !important;
}

/* 确保footer container没有白色背景 */
footer.footer .container {
    background-color: transparent !important;
    background: none !important;
}

/* 确保footer内部所有元素都没有白色背景 */
footer.footer * {
    background-color: transparent !important;
}

/* 确保main元素没有白色背景和底部间距 */
main {
    background-color: transparent !important;
    padding-bottom: 0 !important;
    margin-bottom: 0 !important;
}

/* 确保body没有白色背景 */
body {
    background-color: transparent !important;
}

/* 客户Logo样式 */
.client-logo {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 120px;
}

.client-logo img {
    filter: grayscale(0%);
}

.client-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
}

/* 媒体Logo样式 */
.media-logo {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100px;
}

.media-logo img {
    /* 移除白色滤镜，因为背景是白色 */
}

.media-name {
    font-size: 0.75rem;
    font-weight: 500;
    color: #6c757d;
}

/* 媒体轮播样式 */
.media-carousel {
    overflow: hidden;
    position: relative;
    width: 100%;
}

.media-track {
    display: flex;
    transition: transform 0.1s linear;
}

.media-item {
    flex: 0 0 auto;
    width: 200px;
    margin-right: 2rem;
}

/* 客户科技感轮播样式 - 全息投影效果 */
.client-carousel-container {
    position: relative;
    overflow: hidden;
    /* perspective: 1200px; */
    perspective: 600px;
}

.client-carousel {
    position: relative;
    height: 400px; /* 增加高度，确保三行4个logo完全显示（12个客户） */
    transform-style: preserve-3d;
}

.client-screen {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    /* transform: perspective(1000px) rotateX(15deg) translateZ(-100px) scale(0.9); */
    transform: perspective(500px) rotateX(0deg) translateZ(-10px) scale(1);
    /* transition: all 1s ease-out; */
    transition: all 0.8s ease-in 0.8s;
    filter: brightness(0.8) contrast(1.2);
}

.client-screen.active {
    opacity: 1;
    /* transform: perspective(1000px) rotateX(0deg) translateZ(0px) scale(1); */
    transform: perspective(500px) rotateX(0deg) translateZ(0px) scale(1);
    filter: brightness(1) contrast(1);
    /* box-shadow: 0 0 30px rgba(0, 212, 255, 0.3), 
                0 0 60px rgba(0, 212, 255, 0.1); */
}

.client-screen.prev {
    opacity: 0;
    /* transform: perspective(1000px) rotateX(-15deg) translateZ(-200px) scale(0.8); */
    transform: perspective(500px) rotateX(-0deg) translateZ(-20px) scale(1);
    filter: brightness(0.6) contrast(0.8);
}

/* 全息扫描线效果 - 已隐藏 */
/*
.client-screen.active::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, 
        transparent, 
        rgba(0, 212, 255, 0.3), 
        transparent);
    animation: hologramScan 3s ease-in-out infinite;
}

@keyframes hologramScan {
    0% { left: -100%; }
    50% { left: 100%; }
    100% { left: 100%; }
}
*/

/* 翻页指示器 */
.client-indicators {
    margin-top: 1rem;
}

.indicator {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: #dee2e6;
    margin: 0 5px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.indicator.active {
    background-color: #007bff;
    transform: scale(1.2);
}

.indicator:hover {
    background-color: #0056b3;
}

/* 用户评价字幕区域 */
.reviews-ticker {
    position: relative;
    overflow: visible; /* 由内层容器负责裁切可视区域 */
    /* 去除上下边框，改用与相邻区块不同的浅灰背景进行分隔 */
    border-top: none;
    border-bottom: none;
    padding: 10px 0;
    background: #eef2f7; /* 比下方 bg-light(#f8f9fa) 更明显的蓝灰色 */
}

/* 由内层 .container 裁切滚动内容，使显示宽度与其他区块一致 */
.reviews-ticker > .container {
    position: relative;
}

.reviews-viewport {
    overflow: hidden;
    margin-left: var(--reviews-badge-space, 36px);
    position: relative;
    height: 28px;
    display: flex;
    align-items: center;
}

.reviews-track {
    display: flex;
    white-space: nowrap;
    will-change: transform;
}

/* 单条评论滚动样式 */
.review-line {
    position: absolute;
    left: 0;
    top: 0;
    white-space: pre; /* 保留空格，不换行 */
    line-height: 28px;
    will-change: transform, opacity;
}

.review-user {
    color: #FE5E02; /* 高亮用户名 */
    font-weight: 400;
}

.review-user-icon {
    color: #FE5E02;
    margin-left: 6px;
    margin-right: 6px;
}

.review-item {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    margin-right: 2.5rem; /* 项间距 */
    color: #495057;
}

.review-item .name {
    font-weight: 600;
    color: #212529;
}

@media (max-width: 768px) {
    .review-item { margin-right: 1.25rem; }
    .reviews-viewport { margin-left: var(--reviews-badge-space-sm, 90px); }
}

/* 左侧固定标签：用户反馈 */
.reviews-badge {
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    display: inline-flex;
    align-items: center;
    gap: .25rem;
    color: #6c757d; /* 低调灰色 */
    background: transparent;
    border-radius: 4px;
    font-weight: 600;
    padding: 2px 6px;
    cursor: default;
}

.reviews-badge .reviews-badge-icon {
    height: 18px;
    width: auto;
    display: block;
}

/* 自定义提示样式（客户反馈） */
.tooltip.reviews-tooltip .tooltip-inner {
    background: #ffffff;
    color: #0d6efd;
    border: 1px solid rgba(13, 110, 253, 0.35);
    box-shadow: 0 4px 14px rgba(13, 110, 253, 0.15);
    padding: 6px 10px;
    font-weight: 600;
}

.tooltip.reviews-tooltip .tooltip-arrow::before {
    border-top-color: rgba(13, 110, 253, 0.35) !important;
}


/* 联系我们CTA按钮特殊样式 */
.navbar-nav .contact-cta {
    background: rgba(255, 255, 255, 0.10);
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-radius: 20px;
    padding: 6px 16px !important;
    margin-left: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

.navbar-nav .contact-cta:hover {
    background: rgba(255, 255, 255, 0.20);
    border-color: rgba(255, 255, 255, 0.5);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white !important;
}

.navbar-nav .contact-cta:active {
    transform: translateY(0);
    background: rgba(255, 255, 255, 0.2);
}

/* 移动端适配 */
@media (max-width: 991.98px) {
    .navbar-nav .contact-cta {
        margin-left: 0;
        margin-top: 10px;
        text-align: center;
        display: block;
        width: 100%;
    }
    
    .navbar-slogan {
        font-size: 13px;
        margin-top: 3px;
        letter-spacing: 0.8px;
    }
}

@media (max-width: 576px) {
    .navbar-slogan {
        display: none; /* 在小屏幕上隐藏slogan */
    }
}