:root {
    --color-primary: #333333;
    --color-secondary: #1264B1;
    --color-bg: #ffffff;
    --color-muted: #7f7f7f;
    --color-border: #e5e5e5;
    --color-success: #4A7C59;
    --transition-fast: 200ms cubic-bezier(0.4, 0, 0.2, 1);
    --transition-base: 300ms cubic-bezier(0.4, 0, 0.2, 1);
    --font-default: 'Source Han Sans CN', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

/* Reset & Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: Arial, sans-serif;
    color: #333;
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 60px;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.3s;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Header */
.site-header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background: transparent;
    z-index: 1000;
    transition: background 0.3s, box-shadow 0.3s;
}

.site-header.scrolled {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.site-header.scrolled .nav-list > li > a {
    color: #4B4B4B;
}

.site-header.scrolled .nav-list > li + li > a::before {
    background: #ccc;
}

.header-container {
    max-width: 1440px;
    margin: 0 auto;
    padding: 0 46px;
    position: relative;
    height: 80px;
    display: flex;
    align-items: center;
}

.logo {
    position: relative;
    top: auto;
    left: auto;
    margin-right: 60px;
}

.logo img {
    width: 80px;
    height: 80px;
    object-fit: contain;
}

.main-nav {
    margin-left: 0;
    flex: 1;
}

.nav-list {
    display: flex;
    list-style: none;
    justify-content: flex-end;
    gap: 0;
}

.nav-list > li {
    position: relative;
}

.nav-list > li > a {
    display: block;
    padding: 18px 28px;
    font-family: Arial, sans-serif;
    font-size: 19px;
    color: #fff;
    transition: color 0.3s;
}

.nav-list > li > a:hover,
.nav-list > li > a.active {
    color: #1264B1;
}

.nav-list > li + li > a::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.5);
}

/* Dropdown */
.has-dropdown {
    position: relative;
}

.dropdown {
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    min-width: 280px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s;
    z-index: 1001;
    list-style: none;
}

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

.dropdown li a {
    display: block;
    padding: 18px 30px;
    font-family: Arial, sans-serif;
    font-size: 18px;
    color: #4B4B4B;
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.3s;
    line-height: 1.4;
}

.dropdown li a:hover {
    background: #f5f5f5;
    color: #1264B1;
}

/* Video Banner */
.video-banner {
    position: relative;
    height: 90vh;
    overflow: hidden;
    background: #1a1a2e;
}

.video-banner video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    z-index: 1;
    object-fit: cover;
}

.banner-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.1);
    z-index: 2;
}

.banner-text {
    position: absolute;
    bottom: 80px;
    left: 80px;
    z-index: 3;
    color: #fff;
}

.banner-text h1 {
    font-family: 'andale mono', monospace;
    font-size: 48px;
    font-weight: 700;
    font-style: italic;
    margin-bottom: 15px;
    line-height: 1.2;
}

.banner-text p {
    font-size: 30px;
    line-height: 1.4;
}

/* Section Title */
.section-title {
    text-align: center;
    font-size: 40px;
    font-weight: bold;
    color: #1264B1;
    font-family: Arial, sans-serif;
    margin-bottom: 20px;
}

.section-title.light {
    color: #fff;
}

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

.divider {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
}

.divider span {
    width: 30px;
    height: 3px;
    background: #1264B1;
}

/* Why Choose Section */
.why-choose-section {
    padding: 80px 0;
    background: #fff;
}

.why-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.why-card {
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    transition: all 0.3s;
}

.why-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.15);
}

.why-card-image img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.why-card-content {
    padding: 25px 20px;
    text-align: center;
}

.why-card-content h3 {
    font-size: 18px;
    color: #333;
    margin-bottom: 10px;
}

.why-card-content p {
    font-size: 14px;
    color: #666;
    line-height: 1.6;
}

/* Stats Section */
.stats-section {
    background: #fff;
    padding: 80px 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
}

.stat-item {
    text-align: center;
}

.stat-number {
    font-size: 50px;
    font-weight: 700;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    color: #1264B1;
}

.stat-suffix {
    font-size: 18px;
    color: #1264B1;
}

.stat-label {
    font-size: 13px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Rotating Slider */
.rotating-slider {
    padding: 80px 0;
    background: #fff;
}

.slider-wrapper {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 450px;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid #1264B1;
    border-radius: 50%;
    background: #fff;
    color: #1264B1;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.slider-arrow:hover {
    background: #1264B1;
    color: #fff;
}

.slider-arrow-left {
    left: -70px;
}

.slider-arrow-right {
    right: -70px;
}

.slide {
    display: none;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    animation: fadeIn 0.6s;
}

.slide.active {
    display: grid;
}

.slide:nth-child(even) {
    direction: rtl;
}

.slide:nth-child(even) > * {
    direction: ltr;
}

.slide-image img {
    width: 100%;
    height: 400px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 8px 24px rgba(0,0,0,0.1);
}

.slide-content h3 {
    font-size: 24px;
    color: #1264B1;
    margin-bottom: 20px;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.slide-content p {
    font-size: 16px;
    color: #808080;
    line-height: 1.8;
}

.slider-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 40px;
}

.dot {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.dot.active {
    background: #1264B1;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Service Cards Section */
.service-cards-section {
    background: #f5f5f5;
    padding: 80px 0;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
}

.service-card {
    cursor: pointer;
}

.service-card-image {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.service-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.service-card:hover .service-card-image img {
    transform: scale(1.05);
}

.service-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.5);
    opacity: 0;
    transition: opacity 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 25px 30px;
    color: #fff;
}

.service-card:hover .service-card-overlay {
    opacity: 1;
}

.service-card-overlay p {
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 15px;
    font-family: Arial, sans-serif;
}

.service-card-title {
    text-align: center;
    padding: 18px 10px;
    font-size: 16px;
    color: #333;
    font-family: Arial, sans-serif;
}

.arrow-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #fff;
    color: #1264B1;
    font-size: 18px;
    transition: all 0.3s;
}

.arrow-btn:hover {
    background: #1264B1;
    color: #fff;
    transform: scale(1.1);
}

/* Bridging Industries */
.bridging-industries {
    background: #f5f5f5;
    padding: 80px 0;
}

.industries-row {
    display: flex;
    margin-top: 50px;
    border: 1px solid #e0e0e0;
    border-bottom: none;
    height: 280px;
}

.industries-row:last-child {
    border-bottom: 1px solid #e0e0e0;
}

.industry-card {
    flex: 1;
    position: relative;
    overflow: hidden;
    border-right: 1px solid #e0e0e0;
    transition: flex 0.4s ease;
    cursor: pointer;
}

.industry-card:last-child {
    border-right: none;
}

.industries-row:hover .industry-card {
    flex: 0.6;
}

.industries-row .industry-card:hover {
    flex: 2.5;
}

.industry-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.industry-card:hover img {
    transform: scale(1.05);
}

.industry-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.25);
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 18px;
    color: #fff;
    transition: background 0.3s;
}

.industry-card:hover .industry-overlay {
    background: rgba(0,0,0,0.35);
}

.industry-icon {
    width: 48px;
    height: 48px;
    margin-bottom: 10px;
    color: #fff;
    flex-shrink: 0;
}

.industry-icon-img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    margin-bottom: 10px;
    flex-shrink: 0;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.industry-overlay h4 {
    font-size: 17px;
    font-weight: bold;
    margin-bottom: 5px;
    font-family: Arial, sans-serif;
    line-height: 1.3;
    white-space: nowrap;
}

.industry-overlay p {
    font-size: 14px;
    line-height: 1.5;
    opacity: 0;
    max-height: 0;
    overflow: hidden;
    transition: opacity 0.3s ease, max-height 0.4s ease;
    font-family: Arial, sans-serif;
    margin: 0;
    min-width: 180px;
    max-width: 220px;
}

.industry-card:hover .industry-overlay p {
    opacity: 0.9;
    max-height: 120px;
    margin-top: 5px;
}

/* News Section */
.news-section {
    background: #f5f5f5;
    padding: 80px 0;
}

.news-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-top: 50px;
    margin-bottom: 40px;
}

.news-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.news-card-content {
    padding: 20px 0;
}

.news-date {
    font-size: 13px;
    color: #999;
    font-family: Arial, sans-serif;
}

.news-card-content h3 {
    font-size: 16px;
    color: #333;
    margin: 10px 0;
    font-family: Arial, sans-serif;
    line-height: 1.4;
}

.news-divider {
    width: 30px;
    height: 2px;
    background: #333;
    margin: 12px 0;
}

.news-card-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

.news-list {
    border-top: 1px solid #e0e0e0;
}

.news-list-item {
    display: flex;
    gap: 40px;
    padding: 30px 0;
    border-bottom: 1px solid #e0e0e0;
    align-items: flex-start;
}

.news-list-date {
    min-width: 80px;
    text-align: left;
}

.date-day {
    display: block;
    font-size: 28px;
    color: #666;
    font-family: Arial, sans-serif;
    line-height: 1.2;
}

.date-year {
    display: block;
    font-size: 14px;
    color: #999;
    font-family: Arial, sans-serif;
}

.news-list-content h3 {
    font-size: 16px;
    color: #333;
    margin-bottom: 10px;
    font-family: Arial, sans-serif;
}

.news-list-content p {
    font-size: 14px;
    color: #888;
    line-height: 1.6;
    font-family: Arial, sans-serif;
}

/* Testimonials Section */
.testimonials-section {
    padding: 80px 0;
    background: #f5f5f5;
}

.testimonial-slider {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    min-height: 300px;
}

.testimonial-slide {
    display: none;
    text-align: center;
    padding: 40px;
    animation: fadeIn 0.5s;
}

.testimonial-slide.active {
    display: block;
}

.quote-mark {
    font-size: 80px;
    color: #1264B1;
    font-family: Arial, sans-serif;
    line-height: 1;
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 20px;
    color: #4B4B4B;
    line-height: 1.8;
    margin-bottom: 30px;
    font-style: italic;
}

.testimonial-author {
    font-size: 20px;
    font-weight: 700;
    color: #212121;
    font-family: Arial, sans-serif;
    letter-spacing: 1px;
}

.testimonial-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: 2px solid #1264B1;
    border-radius: 50%;
    background: #fff;
    color: #1264B1;
    font-size: 28px;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    line-height: 1;
}

.testimonial-arrow:hover {
    background: #1264B1;
    color: #fff;
}

.testimonial-arrow-left {
    left: -24px;
}

.testimonial-arrow-right {
    right: -24px;
}

.testimonial-dots {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 30px;
}

.t-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: #ccc;
    cursor: pointer;
    transition: background 0.3s;
}

.t-dot.active {
    background: #1264B1;
}

/* Product Carousel */
.product-carousel-section {
    padding: 60px 0;
    background: #fff;
    overflow: hidden;
}

.carousel-wrapper {
    overflow: hidden;
    margin-top: 50px;
}

.carousel-track {
    display: flex;
    animation: scrollCarousel 20s linear infinite;
    width: max-content;
}

.carousel-track:hover {
    animation-play-state: paused;
}

.carousel-item {
    flex-shrink: 0;
    width: 300px;
    margin: 0 15px;
    text-align: center;
}

.carousel-item img {
    width: 300px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.carousel-item p {
    margin-top: 15px;
    font-size: 16px;
    color: #333;
    font-weight: 600;
}

@keyframes scrollCarousel {
    0% { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Footer */
.site-footer {
    background: #1a1a2e;
    color: #fff;
    padding: 60px 0 20px;
    margin-top: auto;
}

.footer-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr 1.8fr;
    gap: 10px;
    margin-bottom: 40px;
}

.footer-column h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #fff;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 10px;
}

.footer-column ul li a {
    color: #b0b0b0;
    font-size: 15px;
    transition: color 0.3s;
}

.footer-column ul li a:hover {
    color: #fff;
}

.footer-contact {
    margin-top: 20px;
}

.footer-contact p {
    font-size: 15px;
    color: #b0b0b0;
    line-height: 1.8;
}

.footer-contact a {
    color: #496EE8;
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    font-size: 15px;
    color: #808080;
}

.footer-logo img {
    width: 80px;
    height: 80px;
    opacity: 0.8;
}

/* Responsive */
@media (max-width: 1024px) {
    .container {
        padding: 0 30px;
    }
    
    .why-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }
    
    .slide,
    .slide.active {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .slide:nth-child(even) {
        direction: ltr;
    }
    
    .service-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (max-width: 768px) {
    .header-container {
        height: auto;
        padding: 15px 20px;
        flex-direction: column;
    }
    
    .logo {
        position: static;
        margin-bottom: 15px;
    }
    
    .logo img {
        width: 80px;
        height: 80px;
    }
    
    .main-nav {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-list {
        flex-direction: column;
        gap: 0;
    }
    
    .nav-list > li > a {
        padding: 12px 20px;
        font-size: 16px;
        color: #fff;
    }
    
    .nav-list > li + li > a::before {
        display: none;
    }
    
    .dropdown {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        display: none;
    }
    
    .has-dropdown:hover .dropdown {
        display: block;
    }
    
    .video-banner {
        height: 90vh;
    }
    
    .banner-text {
        left: 30px;
        bottom: 40px;
    }
    
    .banner-text h1 {
        font-size: 32px;
    }
    
    .banner-text p {
        font-size: 20px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .why-grid {
        grid-template-columns: 1fr;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .stat-number {
        font-size: 48px;
    }
    
    .service-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .carousel-item {
        width: 200px;
        margin: 0 10px;
    }
    
    .carousel-item img {
        width: 200px;
        height: 200px;
    }
}

/* Customer Service Floating Widget */
.cs-widget {
    position: fixed;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.cs-widget-item {
    position: relative;
    width: 50px;
    height: 50px;
    background: #1264B1;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.3s;
    text-decoration: none;
}

.cs-widget-item:hover {
    background: #0d4a85;
}

.cs-widget-item svg {
    width: 24px;
    height: 24px;
    fill: #fff;
}

.cs-widget-item .cs-tooltip {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #333;
    color: #fff;
    padding: 8px 14px;
    border-radius: 4px;
    font-size: 13px;
    font-family: Arial, sans-serif;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
}

.cs-widget-item .cs-tooltip::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #333;
    border-right: none;
}

.cs-widget-item:hover .cs-tooltip {
    opacity: 1;
    visibility: visible;
}

/* Email popup */
.cs-email-popup {
    position: absolute;
    right: 60px;
    top: 50%;
    transform: translateY(-50%);
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
    padding: 12px 0;
    min-width: 260px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s;
    pointer-events: none;
    z-index: 10000;
}

#cs-email-btn:hover .cs-email-popup {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

.cs-email-popup::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #fff;
    border-right: none;
}

.cs-email-popup a {
    display: block;
    padding: 10px 18px;
    color: #333;
    font-size: 13px;
    font-family: Arial, sans-serif;
    text-decoration: none;
    transition: background 0.2s;
    word-break: break-all;
}

.cs-email-popup a:hover {
    background: #f0f4f8;
    color: #1264B1;
}

@media (max-width: 768px) {
    .cs-widget-item {
        width: 42px;
        height: 42px;
    }
    .cs-widget-item svg {
        width: 20px;
        height: 20px;
    }
}

/* ============================================
   Chat Widget - 悬浮按钮
   ============================================ */
.chat-widget {
    position: fixed;
    right: 32px;
    bottom: 32px;
    z-index: 900;
    display: flex;
    align-items: center;
    gap: 12px;
}

.chat-bubble {
    padding: 12px 20px;
    background-color: #ffffff;
    color: var(--color-primary);
    font-size: 0.9375rem;
    font-weight: 500;
    border-radius: 50px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    white-space: nowrap;
    animation: chat-bubble-fade 0.5s ease;
    font-family: var(--font-default);
}

@keyframes chat-bubble-fade {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}

.chat-btn {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background-color: var(--color-secondary);
    color: #ffffff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 8px 24px rgba(18, 100, 177, 0.35);
    transition: all var(--transition-base);
    animation: pulse-chat 2s infinite;
    flex-shrink: 0;
}

.chat-btn:hover {
    transform: scale(1.08);
    box-shadow: 0 12px 32px rgba(18, 100, 177, 0.5);
    animation: none;
}

.chat-btn svg {
    width: 24px;
    height: 24px;
}

@keyframes pulse-chat {
    0%, 100% { box-shadow: 0 8px 24px rgba(18, 100, 177, 0.35); }
    50% { box-shadow: 0 8px 32px rgba(18, 100, 177, 0.55); }
}

/* ============================================
   Chat Overlay - 遮罩层
   ============================================ */
.chat-overlay {
    position: fixed;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.4);
    z-index: 3000;
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.chat-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ============================================
   Chat Popup - 弹窗主体
   ============================================ */
.chat-popup {
    position: fixed;
    right: 32px;
    bottom: 100px;
    z-index: 3001;
    width: 380px;
    max-height: 620px;
    max-width: calc(100vw - 64px);
    background-color: #ffffff;
    border-radius: 16px;
    box-shadow: 0 16px 48px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px) scale(0.95);
    transition: all var(--transition-base);
    display: flex;
    flex-direction: column;
}

.chat-popup.active {
    opacity: 1;
    visibility: visible;
    transform: translateY(0) scale(1);
}

/* ============================================
   Chat Popup Header - 弹窗头部
   ============================================ */
.chat-popup-header {
    background-color: var(--color-secondary);
    padding: 24px 20px 32px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.chat-popup-logo {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background-color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-popup-logo svg {
    width: 24px;
    height: 24px;
    color: var(--color-secondary);
}

.chat-popup-greeting {
    margin-top: 16px;
}

.chat-popup-greeting h3 {
    font-size: 1rem;
    font-weight: 500;
    color: #ffffff;
    margin-bottom: 0;
    font-family: var(--font-default);
    white-space: nowrap;
}

.chat-popup-greeting p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.6;
    font-family: var(--font-default);
}

/* ============================================
   Chat Popup Close - 关闭按钮
   ============================================ */
.chat-popup-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: none;
    border: none;
    cursor: pointer;
    transition: all var(--transition-fast);
    z-index: 10;
}

.chat-popup-close:hover {
    background-color: rgba(255, 255, 255, 0.2);
}

.chat-popup-close svg {
    width: 20px;
    height: 20px;
    color: #ffffff;
}

/* ============================================
   Chat Popup Body - 弹窗主体内容
   ============================================ */
.chat-popup-body {
    padding: 20px;
    flex: 1;
    overflow-y: auto;
    position: relative;
}

/* ============================================
   Contact Form - 留言表单
   ============================================ */
.contact-form .form-group {
    margin-bottom: 14px;
}

.contact-form .form-group label {
    display: block;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-family: var(--font-default);
}

.contact-form .form-group label .required {
    color: var(--color-secondary);
    margin-left: 2px;
}

.contact-form .form-input {
    width: 100%;
    padding: 10px 14px;
    font-size: 0.9375rem;
    font-family: var(--font-default);
    color: var(--color-primary);
    background-color: var(--color-bg);
    border: 1px solid var(--color-border);
    border-radius: 6px;
    transition: all var(--transition-fast);
    box-sizing: border-box;
}

.contact-form .form-input:focus {
    outline: none;
    border-color: var(--color-secondary);
    box-shadow: 0 0 0 3px rgba(18, 100, 177, 0.08);
}

.contact-form .form-input::placeholder {
    color: var(--color-muted);
}

.contact-form textarea.form-input {
    resize: vertical;
    min-height: 80px;
}

.contact-form .btn-submit {
    width: 100%;
    padding: 12px 24px;
    background-color: var(--color-secondary);
    color: #ffffff;
    font-size: 0.9375rem;
    font-weight: 600;
    font-family: var(--font-default);
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all var(--transition-base);
    margin-top: 8px;
}

.contact-form .btn-submit:hover {
    background-color: #0d4a85;
    transform: translateY(-1px);
}

/* ============================================
   Form Success - 提交成功提示
   ============================================ */
.form-success {
    display: none;
    text-align: center;
    padding: 20px;
    height: 100%;
    min-height: 200px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.form-success.active {
    display: flex;
}

.form-success svg {
    width: 48px;
    height: 48px;
    flex: 0 0 48px;
    color: var(--color-success);
    margin-bottom: 12px;
}

.form-success h3 {
    font-size: 1rem;
    color: var(--color-primary);
    margin-bottom: 6px;
    font-family: var(--font-default);
}

.form-success p {
    color: var(--color-muted);
    font-size: 0.8125rem;
    font-family: var(--font-default);
}

/* ============================================
   响应式设计 - 移动端适配
   ============================================ */
@media (max-width: 768px) {
    .chat-widget {
        right: 16px;
        bottom: 16px;
    }

    .chat-bubble {
        display: none;
    }

    .chat-btn {
        width: 52px;
        height: 52px;
    }

    .chat-btn svg {
        width: 22px;
        height: 22px;
    }

    .chat-popup {
        right: 12px;
        left: 12px;
        bottom: 80px;
        width: auto;
        max-width: none;
        max-height: calc(100vh - 104px);
        border-radius: 12px;
    }
}
