/* 全局重置与基础样式 - Updated */
:root {
    --primary-color: #0056b3;
    /* 主色调，类似科技蓝 */
    --secondary-color: #333;
    --text-color: #666;
    --light-bg: #f9f9f9;
    --white: #fff;
    --transition: all 0.3s ease;

    /* 用户可调节参数 (User Configurable Parameters) */
    --section-title-size: 50px;
    /* 首页板块标题字体大小 */
    --about-text-size: 18px;
    /* 关于我们段落字体大小 */
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Helvetica Neue", Helvetica, Arial, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

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

ul {
    list-style: none;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.container-fluid {
    width: 90%;
    max-width: none;
    margin: 0 auto;
    padding: 0 30px;
}

.container-fluid-80 {
    width: 80%;
    max-width: none;
    margin: 0 auto;
    padding: 0;
}

.section-padding {
    padding: 80px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 4px;
    font-weight: 500;
    transition: var(--transition);
    cursor: pointer;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: #004494;
}

.btn-outline {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* 头部导航 */
.header {
    background-color: var(--white);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 1000;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}

.logo a {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
}

.logo img {
    height: 180px;
    /* 固定 Logo 高度，防止过大 */
    width: auto;
    /* 宽度自适应 */
    object-fit: contain;
}

.nav-list {
    display: flex;
    gap: 30px;
}

.nav-list a {
    font-size: 20px;
    font-weight: 500;
    color: var(--secondary-color);
    transition: var(--transition);
}

.nav-list a:hover,
.nav-list a.active {
    color: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 20px;
    position: relative;
    /* Ensure search overlay positions relative to this */
}

.search-btn-trigger {
    cursor: pointer;
    font-size: 18px;
    color: var(--secondary-color);
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
}

.search-btn-trigger:hover {
    color: var(--primary-color);
    background-color: var(--light-bg);
}

.lang-switch {
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
}

.lang-switch span {
    color: #999;
    transition: var(--transition);
}

.lang-switch span.active {
    color: var(--secondary-color);
    font-weight: bold;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
}

/* 轮播图样式 */
.hero-carousel {
    position: relative;
    height: calc(100vh - 80px);
    height: calc(100svh - 80px);
    /* Fill the screen (viewport height minus header) */
    min-height: 600px;
    /* Minimum height to ensure visibility on small screens */
    overflow: hidden;
}

.carousel-container {
    width: 100%;
    height: 100%;
    position: relative;
}

.carousel-wrapper {
    height: 100%;
    display: flex;
    /* Enable horizontal layout */
    transition: transform 0.5s ease-in-out;
    /* Slide animation */
}

.carousel-slide {
    min-width: 100%;
    /* Each slide takes full width */
    height: 100%;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: #fff;
}

.carousel-slide.active {
    /* 当前激活的轮播项（如需特殊样式可在此添加） */
    z-index: 1;
}

.carousel-slide img {
    position: absolute;
    /* Absolute position to ensure cover works correctly */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    z-index: 0;
}

@media (min-width: 1000px) {
    .hero-carousel {
        height: auto;
        min-height: 0;
    }

    .carousel-container {
        height: auto;
        aspect-ratio: 1905/ 870;
    }

    .carousel-wrapper {
        height: 100%;
    }

    .carousel-slide {
        height: 100%;
    }

    .carousel-slide img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center;
        transform: none;
    }
}

/* 遮罩层，让文字更清晰 */
.carousel-slide::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.hero-content h1 {
    font-size: 48px;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

/* 轮播导航按钮 */
.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
    z-index: 10;
}

.carousel-btn:hover {
    background: rgba(255, 255, 255, 0.5);
}

.prev-btn {
    left: 20px;
}

.next-btn {
    right: 20px;
}

/* 轮播指示器 */
.carousel-indicators {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.dot {
    width: 12px;
    height: 12px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.dot.active,
.dot:hover {
    background: var(--white);
    transform: scale(1.2);
}

/* 响应式调整 */
@media (max-width: 768px) {
    .header {
        box-shadow: none;
        border-bottom: 1px solid rgba(0, 0, 0, 0.06);
    }

    .hero-carousel {
        height: auto;
        min-height: 0;
        margin-top: 0;
    }

    .hero-carousel + .section-padding {
        padding-top: 50px;
    }

    .carousel-container {
        height: auto;
        aspect-ratio: 1920 / 810;
        max-height: 300px;
        background: #f3f6fb;
    }

    .carousel-slide {
        overflow: hidden;
    }

    .carousel-slide img {
        z-index: 0;
        object-fit: cover;
        object-position: center;
        transform: none;
    }

    .carousel-slide::after {
        background: rgba(0, 0, 0, 0);
    }

    .carousel-btn {
        display: none;
    }

    .carousel-indicators {
        bottom: 10px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}

@media (max-width: 480px) {
    .carousel-container {
        max-height: 254px;
    }
}

/* 通用网格布局 */
.grid-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.grid-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 50px;
    align-items: center;
}

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

/* 核心优势 */
.section-title {
    text-align: center;
    margin-bottom: 60px;
}

.section-title h2 {
    font-size: var(--section-title-size);
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.feature-card {
    background: var(--white);
    padding: 40px 30px;
    text-align: center;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: var(--transition);
}

.feature-card:hover {
    transform: translateY(-10px);
}

.icon-box {
    font-size: 40px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.feature-card h3 {
    margin-bottom: 15px;
    color: var(--secondary-color);
}

/* 关于我们 */
/* 确保关于我们标题也使用统一的大字体 */
.about-text h2 {
    font-size: var(--section-title-size);
    color: var(--secondary-color);
    margin-bottom: 20px;
}

/* 关于我们段落样式 */
.about-text p {
    font-size: var(--about-text-size);
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 15px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
}

.about-image img:hover {
    transform: scale(1.02);
}

.about-image .placeholder-img {
    width: 100%;
    height: 400px;
    background-color: #ddd;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #888;
    font-size: 20px;
    border-radius: 8px;
}

/* 解决方案页面样式 */
.solutions-section {
    position: relative;
    background-color: #fff;
    /* Pure White */
    /* Subtle Atmospheric Gradient */
    background-image:
        radial-gradient(circle at 0% 0%, rgba(240, 242, 245, 1) 0%, transparent 50%),
        radial-gradient(circle at 100% 100%, rgba(240, 242, 245, 1) 0%, transparent 50%);
    padding-top: 180px;
    /* More breathing room top */
    min-height: 100vh;
    overflow: hidden;
}

/* Clean up noise */
.solutions-section::before,
.solutions-section::after {
    display: none;
}

/* Remove animations */
@keyframes gridMove {
    0% {}

    100% {}
}

@keyframes orbFloat {
    0% {}

    100% {}
}

.solutions-section .container-fluid-80 {
    position: relative;
    z-index: 2;
}

/* Simple Header Style - Minimalist */
.section-header-simple {
    text-align: center;
    margin-bottom: 120px;
    /* More space */
    position: relative;
}

.section-header-simple h1 {
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #111;
    /* Solid Black */
    background: none;
    -webkit-text-fill-color: initial;
    margin-bottom: 20px;
    filter: none;
}

/* Minimal Line */
.section-header-simple::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: #111;
    margin: 0 auto;
    box-shadow: none;
    border-radius: 0;
}

/* =========================================
   Flagship Overlap Layout (International & Premium)
   ========================================= */

/* Section Container - Clean & Open */
.solutions-section .container-fluid-80 {
    position: relative;
    max-width: 1600px;
    /* Limit width for ultra-wide screens */
    margin: 0 auto;
}

/* Remove old decorative elements */
.solutions-section .container-fluid-80::before {
    display: none;
}

/* Solutions Section - Counter Reset */
.solutions-section {
    counter-reset: solution-counter;
}

.solution-item {
    display: flex;
    align-items: center;
    justify-content: center;
    /* Centered Layout */
    margin-bottom: 80px;
    /* Much smaller spacing */
    position: relative;
    opacity: 0;
    transform: translateY(40px);
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    /* Smooth Cyber Easing */
    counter-increment: solution-counter;
}

/* Image Container - Compact & Sharp */
.solution-img {
    flex: 0 0 36%;
    /* 减小宽度比例，从40%改为36% */
    max-width: 36%;
    min-height: 250px;
    /* 减小最小高度，从300px改为250px */
    height: auto;
    /* 自适应高度 */
    position: relative;
    z-index: 1;
    overflow: hidden;

    /* Tech Shape for Image - Sharper Angles */
    clip-path: polygon(0 0,
            100% 0,
            100% 100%,
            60px 100%,
            /* Wider cut */
            0 calc(100% - 60px)
            /* Higher cut */
        );

    /* Neon Glow Shadow */
    filter: drop-shadow(0 0 15px rgba(0, 86, 179, 0.3));

    /* Initial Animation State */
    opacity: 0;
    transform: scale(0.95);
    /* Subtle scale up */
    transition: all 1.2s cubic-bezier(0.23, 1, 0.32, 1);
}

.solution-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* 改为contain，确保图片完整显示 */
    transition: transform 1.5s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

/* Hover Effect: Cyber Zoom & Glitch-like Brightness */
.solution-item:hover .solution-img img {
    transform: scale(1.08);
    filter: brightness(1.1) contrast(1.1);
    /* Subtle "powered up" look */
}

/* Content Container - Floating Card */
.solution-content {
    flex: 0 0 60%;
    max-width: 60%;
    background: rgba(255, 255, 255, 0.95);
    /* Semi-transparent White */

    /* Tech Grid Background - Finer Grid */
    background-image:
        linear-gradient(rgba(0, 86, 179, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 86, 179, 0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    /* Smaller grid cells */

    backdrop-filter: blur(20px);
    /* Frosted Glass */
    padding: 40px 30px;
    /* Compact padding */
    position: relative;
    z-index: 2;

    /* Tech Shape & Style - Double Cut */
    clip-path: polygon(20px 0,
            /* Sharper Top Left Cut */
            100% 0,
            100% calc(100% - 20px),
            calc(100% - 20px) 100%,
            0 100%,
            0 20px
            /* Sharper Top Left Cut */
        );

    border-left: 2px solid var(--primary-color);
    /* Thinner Tech Border */

    /* Neon Glow Shadow */
    filter: drop-shadow(0 0 20px rgba(0, 0, 0, 0.1));

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;

    /* Initial Animation State */
    opacity: 0;
    transform: translateX(-30px);
    /* Slide in from side */
    transition: all 1s cubic-bezier(0.23, 1, 0.32, 1);
    /* Matching cyber easing */
    transition-delay: 0.2s;
    /* Staggered */
}

/* Even items slide from opposite side */
.solution-item:nth-child(even) .solution-content {
    transform: translateX(30px);
}

/* Tech Decoration - Top Right Triangle */
.solution-content::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, var(--primary-color) 20%, transparent 20%);
    opacity: 0.8;
    pointer-events: none;
}

/* Tech Decoration - Giant Tech Number */
.solution-content::after {
    content: "0" counter(solution-counter);
    position: absolute;
    top: 5px;
    right: 30px;
    font-size: 80px;
    font-weight: 900;
    color: rgba(0, 86, 179, 0.08);
    font-family: "Impact", "Arial Black", sans-serif;
    line-height: 1;
    z-index: -1;
    pointer-events: none;
    letter-spacing: -5px;
    transition: all 0.6s ease-out;
    /* Smooth transition for hover */
}

/* Hover Effect: Brighten Border & Lift & Animate Number */
.solution-item:hover .solution-content {
    border-left-color: #4da3ff;
    /* Brighter Blue */
    transform: translateY(-10px) !important;
    /* Lift up */
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.15);
    /* Deep shadow */
}

.solution-item:hover .solution-content::after {
    transform: translateX(-10px) scale(1.1);
    /* Move and grow */
    color: rgba(0, 86, 179, 0.12);
    /* Darker */
}

/* Image Scanline Sweep Effect */
.solution-img::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(120deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transform: skewX(-25deg);
    z-index: 2;
    pointer-events: none;
    transition: none;
    /* Reset transition */
}

.solution-item:hover .solution-img::before {
    left: 200%;
    transition: left 1s ease-in-out;
    /* Sweep animation */
}

/* Overlap Logic - Removed for Spacing */
/* Odd: Image Left, Text Right -> Space Between */
.solution-item:nth-child(odd) {
    flex-direction: row;
    justify-content: space-between;
    /* Space Between */
}

.solution-item:nth-child(odd) .solution-content {
    margin-left: 0;
    /* Removed Overlap */
}

/* Even: Image Right, Text Left -> Space Between */
.solution-item:nth-child(even) {
    flex-direction: row-reverse;
    justify-content: space-between;
}

.solution-item:nth-child(even) .solution-content {
    margin-right: 0;
    /* Removed Overlap */
}



/* Typography - Elegant & Sharp */
.solution-content h2 {
    font-size: 36px;
    font-weight: 700;
    color: #111;
    /* Almost Black */
    margin-bottom: 30px;
    line-height: 1.2;
    letter-spacing: -0.5px;
    position: relative;
}

/* Minimalist Decorative Line - Tech Style */
.solution-content h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 3px;
    background: linear-gradient(90deg, var(--primary-color), transparent);
    margin-top: 20px;
}

.solution-content p {
    font-size: 16px;
    color: #555;
    line-height: 1.8;
    margin-bottom: 50px;
    font-weight: 400;
    max-width: 90%;
}

/* Premium Button - Minimalist */
.solution-content .btn-primary {
    background: #111;
    /* Solid Black */
    color: #fff;
    border: 1px solid #111;
    padding: 15px 45px;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 0;
    /* Sharp corners for luxury */
    transition: all 0.4s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.solution-content .btn-primary:hover {
    background: #fff;
    color: #111;
    transform: translateY(-2px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.solution-content .btn-primary::after {
    display: none;
    /* Remove icon for cleaner look */
}

/* Clean up unused pseudo-elements */
.solution-item::before,
.solution-item::after,
.solution-content::before {
    display: none;
}

/* Active State (Triggered by JS) */
.solution-item.visible {
    opacity: 1;
    transform: translateY(0);
}

.solution-item.visible .solution-img {
    opacity: 1;
    transform: scale(1);
}

.solution-item.visible .solution-content {
    opacity: 1;
    transform: translateX(0) translateY(0);
}


/* Mobile Responsiveness for Grand Layout */
@media (max-width: 992px) {
    .solutions-section .container-fluid-80 {
        width: 90%;
        /* Wider on mobile */
    }

    .solutions-section .container-fluid-80::before {
        display: none;
    }

    .solution-item,
    .solution-item:nth-child(even),
    .solution-item:nth-child(odd) {
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        margin-bottom: 100px;
    }

    .solution-item::before,
    .solution-item::after {
        display: none;
    }

    .solution-content,
    .solution-img {
        max-width: 100%;
        width: 100%;
        flex: none;
    }

    .solutions-section {
        padding-top: 120px;
    }

    .section-header-simple {
        margin-bottom: 40px;
    }

    .solution-img {
        height: auto;
        min-height: unset;
        max-height: 50vh;
        margin-bottom: 20px;
        order: -1;
        clip-path: none;
        box-shadow: 0 10px 20px -8px rgba(0, 0, 0, 0.08);
    }

    .solution-img img {
        width: 100%;
        height: auto;
        max-height: 100%;
        object-fit: contain;
    }

    .solution-content {
        padding: 15px;
        text-align: left;
        margin: 0 !important;
        clip-path: none;
    }

    .solution-content h2 {
        font-size: 24px;
    }

    .solution-content p {
        max-width: 100%;
        margin-bottom: 20px;
    }

    .solution-content::after {
        display: none;
    }

    .solution-content::before {
        font-size: 100px;
        top: -50px;
        left: 0;
    }

    /* Reset positioning for even items on mobile */
    .solution-item:nth-child(even) .solution-content::before {
        left: 0;
        right: auto;
    }
}

@media (max-width: 768px) {
    .solutions-section {
        padding-top: 80px;
        min-height: auto;
        overflow: visible;
    }

    .section-header-simple h1 {
        font-size: 32px;
        letter-spacing: 1px;
    }

    .solution-item {
        opacity: 1;
        transform: none;
        transition: none;
        margin-bottom: 60px;
    }

    .solution-img {
        opacity: 1;
        transform: none;
        max-height: none;
        filter: none;
        overflow: hidden;
    }

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

    .solution-content {
        opacity: 1;
        transform: none;
        transition: none;
        filter: none;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.06);
    }
}

/* 底部 Footer */
.footer {
    background-color: #1a1a1a;
    padding: 50px 0 15px;
    margin-top: auto;
    color: #bbb;
}

.footer .container {
    max-width: 1400px;
    /* Increase width for footer to allow more space */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    flex-wrap: nowrap;
    /* Prevent wrapping */
    gap: 20px;
}

.footer-left {
    display: flex;
    gap: 30px;
    /* Reasonable gap */
    flex: 2;
    /* Give more space to left side */
    flex-wrap: nowrap;
    /* Strictly no wrapping */
    justify-content: space-between;
    /* Spread columns evenly */
}

.footer-right {
    display: flex;
    gap: 30px;
    align-items: flex-start;
    flex: 1;
    /* Right side takes less space */
    justify-content: flex-end;
    /* Align to right */
    min-width: max-content;
    /* Ensure it doesn't shrink too much */
}

.footer-col {
    white-space: nowrap;
    /* Prevent text from wrapping inside columns */
}

.footer-divider {
    width: 1px;
    background-color: rgba(255, 255, 255, 0.1);
    align-self: stretch;
    margin: 0 10px;
    flex-shrink: 0;
}

/* Online Shop Direct Links */
.shop-links-direct {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.shop-btn {
    display: inline-block;
    background: transparent;
    padding: 0;
    border-radius: 0;
    color: inherit;
    font-size: inherit;
    font-weight: inherit;
    line-height: inherit;
    transition: color 0.3s ease;
    text-decoration: none;
}

.shop-btn:hover {
    color: #fff;
}

/* JD Red for first two links */
.shop-btn:nth-child(1):hover,
.shop-btn:nth-child(2):hover {
    color: #C81623;
}

/* Taobao Orange for third link */
.shop-btn:nth-child(3):hover {
    color: #FF5000;
}

/* Direct QR Codes */
.qr-direct-container {
    display: flex;
    gap: 15px;
}

.qr-direct-item {
    text-align: center;
}

.qr-direct-item img {
    width: 100px;
    height: 100px;
    border-radius: 4px;
    background: #fff;
    padding: 5px;
}

.qr-direct-item span {
    display: block;
    margin-top: 5px;
    color: #999;
    font-size: 12px;
}

@media (max-width: 992px) {
    .footer-content {
        flex-direction: column;
    }

    .footer-left {
        gap: 30px;
        width: 100%;
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* 2 columns on mobile */
    }

    .footer-left .footer-col:nth-child(2),
    .footer-left .footer-col:nth-child(4),
    .footer-left .footer-col:nth-child(5),
    .footer-left .footer-col:nth-child(6) {
        display: none;
    }

    .footer-col {
        white-space: normal;
    }

    .footer-divider {
        display: none;
    }

    .footer-right {
        flex-direction: column;
        gap: 30px;
        width: 100%;
        margin-top: 30px;
        border-top: 1px solid rgba(255, 255, 255, 0.1);
        padding-top: 30px;
        min-width: auto;
    }
}

.footer h3 {
    color: var(--white);
    margin-bottom: 15px;
    font-size: 18px;
}

.footer-col ul li {
    margin-bottom: 8px;
}

.footer-col ul li a:hover {
    color: var(--white);
}

.social-links {
    display: flex;
    gap: 15px;
}

.social-item {
    position: relative;
}

.social-icon {
    font-size: 20px;
    color: #ccc;
    transition: var(--transition);
    display: block;
}

.social-icon:hover,
.social-item.active .social-icon {
    color: var(--white);
}

.social-popup {
    display: none;
    position: absolute;
    bottom: 100%;
    /* Show above the icon */
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    color: var(--text-color);
    padding: 15px;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    /* width: 200px;  Removed fixed width to allow auto-sizing for multiple QRs */
    min-width: 200px;
    white-space: nowrap;
    /* Prevent wrapping for side-by-side layout */
    text-align: center;
    margin-bottom: 15px;
    z-index: 100;
}

.qr-container {
    display: flex;
    gap: 15px;
    justify-content: center;
}

.qr-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.shop-links-container {
    display: flex;
    gap: 0;
    /* Remove gap as we use padding/border now */
    justify-content: center;
    padding: 10px;
    align-items: stretch;
    /* Ensure separator spans full height */
}

.shop-group {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.shop-group-title {
    font-size: 14px;
    font-weight: bold;
    color: #333;
    margin-bottom: 15px;
    padding-bottom: 5px;
    border-bottom: 2px solid transparent;
}

.shop-group.jd-group .shop-group-title {
    color: #C81623;
    border-bottom-color: #C81623;
}

.shop-group.taobao-group .shop-group-title {
    color: #FF5000;
    border-bottom-color: #FF5000;
}

/* Vertical Separator */
.shop-separator {
    width: 1px;
    background-color: #eee;
    margin: 10px 0;
}

.shop-items-wrapper {
    display: flex;
    gap: 15px;
}

.shop-link-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-decoration: none !important;
    color: var(--text-color);
    transition: var(--transition);
}

.shop-link-item:hover {
    transform: translateY(-5px);
}

.shop-icon-large {
    font-size: 32px;
    margin-bottom: 8px;
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: #f5f5f5;
    transition: var(--transition);
    overflow: hidden;
    /* Ensure image fits in circle */
    padding: 8px;
    /* Padding for image */
}

.shop-icon-large img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* JD Color - Professional Red */
.shop-jd .shop-icon-large {
    color: #C81623;
    /* 京东标准红 */
    border: 1px solid #ddd;
    background: #fff;
}

.shop-jd:hover .shop-icon-large {
    background: #C81623;
    color: white;
    border-color: #C81623;
}

/* Taobao Color - Professional Orange */
.shop-taobao .shop-icon-large {
    color: #FF5000;
    /* 淘宝标准橙 */
    border: 1px solid #ddd;
    background: #fff;
}

.shop-taobao:hover .shop-icon-large {
    background: #FF5000;
    color: white;
    border-color: #FF5000;
}

.shop-name {
    font-size: 14px;
    /* 字体加大 */
    font-weight: 600;
    /* 加粗 */
    color: #333;
    /* 颜色加深 */
    margin-top: 5px;
}

/* 搜索框覆盖层 */
.search-overlay {
    position: absolute;
    top: 100%;
    right: 0;
    width: 300px;
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    padding: 15px;
    border-radius: 0 0 4px 4px;
    display: none;
    /* 默认隐藏 */
    z-index: 999;
    animation: slideDown 0.3s ease;
}

.search-overlay.active {
    display: block;
}

.search-container {
    display: flex;
    gap: 10px;
}

.search-container input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    outline: none;
    font-size: 14px;
}

.search-container input:focus {
    border-color: var(--primary-color);
}

.search-container button {
    background: var(--primary-color);
    color: var(--white);
    border: none;
    padding: 8px 15px;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.search-container button:hover {
    background: #004494;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 移动端适配搜索框 */
@media (max-width: 768px) {
    .search-overlay {
        position: fixed;
        top: 60px;
        /* Header height on mobile might differ, assuming approx */
        left: 0;
        right: 0;
        width: 100%;
        border-radius: 0;
    }
}

/* 社交媒体弹窗样式 (原代码) */
.social-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    margin-left: -8px;
    border-width: 8px;
    border-style: solid;
    border-color: var(--white) transparent transparent transparent;
}

.social-popup.active {
    display: block;
    animation: fadeInUp 0.3s ease;
}

.social-popup img {
    width: 120px;
    height: 120px;
    object-fit: contain;
    margin-bottom: 10px;
}

.social-popup p {
    font-size: 14px;
    margin-bottom: 5px;
    color: #333;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translate(-50%, 10px);
    }

    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

.footer-bottom {
    margin-top: 35px;
    border-top: 1px solid #333;
    padding-top: 15px;
    text-align: center;
    font-size: 14px;
}

/* Back to Top Button Style */
.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background: linear-gradient(135deg, #0ea5e9, #0056b3);
    /* Tech Blue Gradient */
    color: #fff;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 9999;
    border: 2px solid rgba(255, 255, 255, 0.2);
}

.back-to-top.show {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.back-to-top:hover {
    background: linear-gradient(135deg, #38bdf8, #007bff);
    box-shadow: 0 8px 25px rgba(0, 86, 179, 0.6);
    transform: translateY(-5px);
}

.back-to-top i {
    transition: transform 0.3s ease;
}

.back-to-top:hover i {
    transform: translateY(-3px);
}

/* 响应式适配 */
@media (max-width: 768px) {
    .header .container {
        position: relative;
        height: 60px;
    }
    
    body {
        overflow-x: hidden;
        word-wrap: break-word;
    }

    .nav-list {
        position: absolute;
        top: 60px;
        /* 适配新的导航栏高度 */
        left: 0;
        width: 100%;
        background-color: var(--white);
        flex-direction: column;
        padding: 20px;
        gap: 15px;
        box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
        display: none;
        /* 默认隐藏，通过JS控制显示 */
    }

    .nav-list.active {
        display: flex;
    }

    .mobile-menu-btn {
        display: block;
    }

    .header-actions,
    .search-btn-trigger,
    .search-overlay,
    .lang-switch {
        display: none !important;
    }

    .logo img {
        height: 90px;
        width: auto;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .grid-3,
    .grid-2,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .about-image {
        order: -1;
        /* 图片在文字上方 */
    }

    .search-overlay {
        width: calc(100vw - 30px);
        right: 15px;
        left: auto;
    }

    .container {
        padding: 0 15px;
    }

    .container-fluid,
    .container-fluid-80 {
        width: 100%;
        padding: 0 15px;
    }

    .section-padding {
        padding: 50px 0;
    }
}

/* 语言切换样式 */
.lang-switch {
    margin-left: 20px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    color: var(--secondary-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.lang-switch span {
    padding: 2px 5px;
    border-radius: 4px;
    transition: var(--transition);
}

.lang-switch span.active {
    color: var(--primary-color);
    font-weight: bold;
}

.lang-switch:hover span {
    opacity: 0.8;
}

/* 默认隐藏英文 */
.lang-en {
    display: none !important;
}

/* 英文模式下：隐藏中文，显示英文 */
body.en-mode .lang-cn {
    display: none !important;
}

body.en-mode .lang-en {
    display: block !important;
}

/* 对于行内元素特殊处理 */
body.en-mode span.lang-en {
    display: inline !important;
}

body.en-mode a.lang-en {
    display: inline !important;
}

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

.dropdown-toggle {
    display: flex;
    align-items: center;
    gap: 5px;
    justify-content: space-between;
    /* 确保箭头靠右 */
}

.dropdown-toggle i {
    font-size: 12px;
    transition: transform 0.3s;
}

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

/* 一级下拉菜单 */
.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    background: var(--white);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 10px 0;
    min-width: 180px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    z-index: 1000;
}

.has-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 100%;
}

/* 二级下拉菜单 (嵌套) */
.dropdown-menu .has-dropdown .dropdown-menu {
    top: 0;
    left: 100%;
    /* 显示在右侧 */
    transform: none;
    /* 取消水平居中 */
    margin-left: 0;
    opacity: 0;
    visibility: hidden;
}

.dropdown-menu .has-dropdown:hover>.dropdown-menu {
    opacity: 1;
    visibility: visible;
    top: 0;
}

/* 箭头方向调整：二级菜单的箭头默认向右 */
.dropdown-menu .dropdown-toggle i {
    transform: rotate(-90deg);
    /* 默认向右 */
}

.dropdown-menu .has-dropdown:hover>.dropdown-toggle i {
    transform: rotate(0deg);
    /* 悬停时向下? 或者保持向右? 一般向右不变或变色 */
}

.dropdown-menu li {
    margin: 0;
    position: relative;
    /* 为二级菜单定位 */
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
    color: var(--secondary-color);
    font-size: 14px;
    white-space: nowrap;
    display: flex;
    /* 支持flex布局 */
    justify-content: space-between;
    /* 文字和箭头两端对齐 */
    align-items: center;
}

.dropdown-menu a:hover {
    background-color: var(--light-bg);
    color: var(--primary-color);
}

/* 移动端下拉菜单 */
@media (max-width: 768px) {
    .has-dropdown .dropdown-menu {
        position: static;
        transform: none;
        box-shadow: none;
        background-color: #f5f5f5;
        display: none;
        /* 默认隐藏 */
        opacity: 1;
        visibility: visible;
        padding-left: 20px;
    }

    /* 移动端不需要二级菜单悬浮，直接嵌套显示 */
    .dropdown-menu .has-dropdown .dropdown-menu {
        position: static;
        padding-left: 20px;
        background-color: #eee;
    }

    .has-dropdown.open>.dropdown-menu {
        display: block;
    }

    .has-dropdown.open>.dropdown-toggle i {
        transform: rotate(180deg);
    }
}



/* 文档中心样式 */
.doc-hero {
    position: relative;
    background-image: url('hero-bg.jpg');
    /* 假设有一个背景图，或者使用渐变 */
    background: linear-gradient(135deg, #1e3c72 0%, #2a5298 100%);
    color: #fff;
    padding: 80px 0 100px;
    text-align: center;
}

.doc-hero h1 {
    font-size: 36px;
    margin-bottom: 10px;
    font-weight: 600;
}

.doc-hero p {
    font-size: 16px;
    opacity: 0.9;
    margin-bottom: 40px;
}

/* 大气搜索框 */
.big-search-box {
    position: relative;
    max-width: 700px;
    margin: 0 auto;
    display: flex;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
    border-radius: 50px;
    background: #fff;
    overflow: hidden;
    transition: transform 0.3s, box-shadow 0.3s;
}

.big-search-box:hover {
    transform: translateY(-2px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.25);
}

.big-search-box input {
    flex: 1;
    border: none;
    padding: 20px 30px;
    font-size: 16px;
    outline: none;
    color: #333;
}

.big-search-box button {
    border: none;
    background: var(--primary-color);
    color: #fff;
    padding: 0 40px;
    font-size: 20px;
    cursor: pointer;
    transition: background 0.3s;
}

.big-search-box button:hover {
    background: #0056b3;
}

/* 文档页面布局 */
.doc-layout {
    display: flex;
    gap: 40px;
    margin-top: -50px;
    /* 向上重叠Hero区域 */
    position: relative;
    z-index: 10;
}

.doc-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 20px;
    align-self: flex-start;
}

.sidebar-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    color: var(--secondary-color);
}

.category-list {
    list-style: none;
    padding: 0;
}

.category-list li {
    padding: 12px 15px;
    margin-bottom: 5px;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
    color: #666;
    display: flex;
    align-items: center;
    gap: 10px;
}

.category-list li:hover,
.category-list li.active {
    background-color: var(--light-bg);
    color: var(--primary-color);
    font-weight: 500;
}

.doc-main {
    flex: 1;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    min-height: 500px;
}

.doc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.doc-header h2 {
    font-size: 24px;
    color: var(--secondary-color);
    margin: 0;
}

.doc-count {
    color: #888;
    font-size: 14px;
}

/* 文档列表项 */
.doc-item {
    display: flex;
    align-items: center;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 8px;
    margin-bottom: 15px;
    transition: all 0.3s;
}

.doc-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.doc-icon {
    font-size: 32px;
    color: #e74c3c;
    /* PDF 红色 */
    margin-right: 20px;
    width: 50px;
    text-align: center;
}

.doc-item[data-type="zip"] .doc-icon {
    color: #f39c12;
}

.doc-item[data-type="doc"] .doc-icon {
    color: #3498db;
}

.doc-item[data-type="xls"] .doc-icon {
    color: #27ae60;
}

.doc-info {
    flex: 1;
}

.doc-info h3 {
    margin: 0 0 8px;
    font-size: 16px;
}

.doc-info h3 a {
    color: var(--secondary-color);
    text-decoration: none;
    transition: color 0.2s;
}

.doc-info h3 a:hover {
    color: var(--primary-color);
}

.doc-meta {
    font-size: 13px;
    color: #999;
    display: flex;
    gap: 15px;
}

.doc-meta i {
    margin-right: 5px;
}

.doc-action {
    display: flex;
    gap: 10px;
}

.btn-sm {
    padding: 6px 15px;
    font-size: 13px;
    border-radius: 4px;
    text-decoration: none;
    transition: all 0.3s;
    display: inline-block;
}

/* 移动端适配 */
@media (max-width: 992px) {
    .doc-layout {
        flex-direction: column;
        margin-top: 0;
    }

    .doc-sidebar {
        width: 100%;
        overflow-x: auto;
    }

    .category-list {
        display: flex;
        gap: 10px;
        white-space: nowrap;
    }

    .category-list li {
        margin-bottom: 0;
    }
}

/* 产品中心样式 */

/* Banner */
.page-banner {
    position: relative;
    height: 600px;
    overflow: hidden;
}

.page-banner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.banner-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    color: #fff;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.banner-content h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

/* 布局 */
.products-layout {
    display: flex;
    gap: 30px;
    align-items: flex-start;
}

/* 侧边栏筛选 */
.products-sidebar {
    width: 280px;
    flex-shrink: 0;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
    padding: 25px;
    border: 1px solid #eee;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #f0f0f0;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.filter-title {
    font-size: 17px;
    font-weight: 700;
    margin-bottom: 18px;
    color: #222;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.filter-options.two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    color: #555;
    cursor: pointer;
    transition: color 0.2s;
    line-height: 1.5;
}

.checkbox-label:hover {
    color: var(--primary-color);
}

.checkbox-label input[type="checkbox"] {
    accent-color: var(--primary-color);
    width: 18px;
    height: 18px;
    cursor: pointer;
}

/* 产品展示区 */
.products-main {
    flex: 1;
}

.products-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}

.products-header h2 {
    font-size: 24px;
    color: var(--secondary-color);
}

.product-count {
    font-size: 14px;
    color: #888;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 30px;
}

/* 产品卡片 */
.product-card {
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transform: translateY(-5px);
    border-color: var(--primary-color);
}

.product-img {
    height: 180px;
    background: #f9f9f9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding: 20px;
}

.product-img img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform 0.3s;
}

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

.product-info {
    padding: 15px;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
    color: #333;
    line-height: 1.4;
    height: 45px;
    /* 修正：22.4px * 2 ≈ 45px，防止文字底部被截断 */
    overflow: hidden;
    /* 以下属性用于多行文本省略号，编辑器可能会显示黄色警告，属正常现象 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-desc {
    font-size: 12px;
    color: #777;
    margin-bottom: 15px;
    line-height: 1.5;
    height: 36px;
    /* 12px * 1.5 * 2 = 36px */
    overflow: hidden;
    /* 以下属性用于多行文本省略号，编辑器可能会显示黄色警告，属正常现象 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    flex: 1;
}

.product-btn {
    display: block;
    text-align: center;
    background-color: transparent;
    border: 1px solid var(--primary-color);
    color: var(--primary-color);
    padding: 8px 0;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
    text-decoration: none;
    margin-top: auto;
    /* Push to bottom */
}

.product-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

/* 响应式调整 */
@media (max-width: 1200px) {
    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .products-layout {
        flex-direction: column;
    }

    .products-sidebar {
        width: 100%;
        margin-bottom: 30px;
    }

    .filter-options {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 15px;
    }

    .product-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .container-fluid {
        width: 100%;
        padding: 0 15px;
    }

    .products-sidebar {
        padding: 16px;
        border-radius: 10px;
    }

    .filter-group {
        margin-bottom: 16px;
        padding-bottom: 16px;
    }

    .filter-title {
        font-size: 15px;
        margin-bottom: 12px;
    }

    .products-sidebar .filter-options {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
    }

    .products-sidebar .checkbox-label {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 12px;
        background: #fff;
        border: 1px solid #e9edf2;
        border-radius: 999px;
        color: #333;
        line-height: 1.2;
    }

    .products-sidebar .checkbox-label input[type="checkbox"] {
        width: 16px;
        height: 16px;
        flex-shrink: 0;
    }

    .products-sidebar .checkbox-label:has(input[type="checkbox"]:checked) {
        border-color: rgba(0, 86, 179, 0.35);
        background: rgba(0, 86, 179, 0.06);
        color: var(--secondary-color);
    }

    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .page-banner {
        height: 400px;
    }

    .banner-content h1 {
        font-size: 24px;
    }
}

@media (max-width: 480px) {
    .products-sidebar .checkbox-label {
        font-size: 14px;
    }

    .product-grid {
        grid-template-columns: 1fr;
    }
}

/* Chat Widget Styles */
.chat-widget {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 9999;
    font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif;
}

.chat-btn {
    width: 60px;
    height: 60px;
    background: #0056b3;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s, background 0.3s;
}

.chat-btn:hover {
    transform: scale(1.1);
    background: #004494;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 500px;
    background: white;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.95);
    pointer-events: none;
    transition: opacity 0.3s, transform 0.3s;
}

.chat-window.active {
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

.chat-header {
    background: #0056b3;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.chat-close {
    cursor: pointer;
    font-size: 18px;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.chat-close:hover {
    opacity: 1;
}

.chat-messages {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    background: #f8f9fa;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.message {
    max-width: 80%;
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 14px;
    line-height: 1.4;
}

.message.received {
    background: white;
    align-self: flex-start;
    border-bottom-left-radius: 2px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.message.sent {
    background: #0056b3;
    color: white;
    align-self: flex-end;
    border-bottom-right-radius: 2px;
}

.chat-input-area {
    padding: 15px;
    background: white;
    border-top: 1px solid #eee;
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    border: 1px solid #ddd;
    border-radius: 20px;
    padding: 8px 15px;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s;
}

.chat-input:focus {
    border-color: #0056b3;
}

.chat-send {
    background: #0056b3;
    color: white;
    border: none;
    width: 35px;
    height: 35px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: background 0.2s;
}

.chat-send:hover {
    background: #004494;
}

/* Mobile Adjustments */
@media (max-width: 480px) {
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
        height: 450px;
    }
}

