/* HelpfulWay Custom Styles - Based on ChefEon Design */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --accent-color: #2ecc71;
    --dark-color: #212529;
    --light-color: #f8f9fa;
    --white: #ffffff;
    --text-dark: #333333;
    --text-muted: #666666;
    --border-color: #dee2e6;
}

/* Global Styles */
body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    padding-top: 80px;
}

.main-content {
    min-height: calc(100vh - 200px);
}

/* Navigation */
.navbar {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(20px);
    border-bottom: 1px solid rgba(0, 123, 255, 0.1);
    box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    padding: 0.3rem 0;
}

.navbar .container {
    max-width: 100%;
    padding: 0 15px;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 4px 25px rgba(0, 0, 0, 0.12);
}

.navbar-brand {
    font-weight: bold;
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.navbar-brand:hover {
    transform: scale(1.05);
}

.brand-text {
    color: var(--primary-color);
    margin-left: 10px;
}

/* Advanced Navigation Styles */
.navbar-nav {
    position: relative;
    flex-wrap: nowrap;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.navbar-nav::-webkit-scrollbar {
    display: none;
}

.navbar-collapse {
    flex-grow: 1;
    justify-content: flex-start;
}

.navbar-nav .nav-item {
    margin: 0 2px;
}

.navbar-nav .nav-link {
    color: var(--text-dark) !important;
    font-weight: 600;
    padding: 0.8rem 0.8rem !important;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.3px;
    background: transparent;
    white-space: nowrap;
    min-width: fit-content;
}

.nav-text {
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

.nav-indicator {
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 2px;
    transform: translateX(-50%);
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: 1;
}

/* Hover Effects */
.navbar-nav .nav-link:hover {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.08), rgba(46, 204, 113, 0.08));
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(0, 123, 255, 0.15);
}

.navbar-nav .nav-link:hover .nav-text {
    transform: scale(1.05);
}

.navbar-nav .nav-link:hover .nav-indicator {
    width: 80%;
}

/* Active State - 驻留标注效果 */
.navbar-nav .nav-link.active {
    color: var(--primary-color) !important;
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.12), rgba(46, 204, 113, 0.12));
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.2);
    transform: translateY(-1px);
}

.navbar-nav .nav-link.active::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0.05;
    border-radius: 12px;
    z-index: 0;
}

.navbar-nav .nav-link.active .nav-indicator {
    width: 100%;
    height: 4px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    box-shadow: 0 2px 10px rgba(0, 123, 255, 0.4);
}

.navbar-nav .nav-link.active .nav-text {
    font-weight: 700;
    transform: scale(1.02);
}

/* Animated underline effect for active items */
.navbar-nav .nav-link.active::after {
    content: '';
    position: absolute;
    top: -2px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: linear-gradient(135deg, transparent, var(--accent-color), transparent);
    border-radius: 1px;
    animation: pulse-glow 2s ease-in-out infinite alternate;
}

/* Special handling for long menu items */
.navbar-nav .nav-link:has-text("INTELLIGENT DISH R&D"),
.navbar-nav .nav-link[href*="rd"] {
    font-size: 0.75rem;
    padding: 0.8rem 0.6rem !important;
    letter-spacing: 0.2px;
}

/* Improve overall navbar spacing for English */
@media (min-width: 992px) {
    .navbar-nav {
        margin-left: auto;
        margin-right: auto;
    }
    
    .navbar-nav .nav-item {
        margin: 0 1px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 0.7rem !important;
    }
}

/* Large screens - give more space */
@media (min-width: 1400px) {
    .navbar-nav .nav-item {
        margin: 0 3px;
    }
    
    .navbar-nav .nav-link {
        padding: 0.8rem 1rem !important;
        font-size: 0.85rem;
    }
}

@keyframes pulse-glow {
    0% {
        opacity: 0.6;
        box-shadow: 0 0 5px rgba(46, 204, 113, 0.3);
    }
    100% {
        opacity: 1;
        box-shadow: 0 0 15px rgba(46, 204, 113, 0.6);
    }
}

.language-switcher {
    flex-shrink: 0;
    margin-left: 10px;
}

.language-switcher .btn {
    margin: 0 1px;
    border-radius: 20px;
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

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

.contact-info {
    flex-shrink: 0;
    margin-left: 10px;
}

.contact-info a {
    text-decoration: none;
    font-size: 0.8rem;
}

/* Hero Section for Secondary Pages */
.hero-section {
    background: linear-gradient(135deg, rgba(0, 123, 255, 0.1) 0%, rgba(40, 167, 69, 0.1) 100%);
    padding: 150px 0 120px 0;
    min-height: 500px;
    display: flex;
    align-items: center;
    margin-top: -80px;
}

.hero-section h1 {
    font-size: 3.2rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 2.5rem;
    line-height: 1.3;
}

.hero-section .lead {
    font-size: 1.3rem;
    color: var(--text-muted);
    margin-bottom: 3rem;
    line-height: 1.7;
}

/* Header Slider Section */
.header-slider {
    position: relative;
    overflow: hidden;
    height: 600px;
    margin-top: -80px;
}

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

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    display: flex;
    align-items: center;
}

.slide.active {
    opacity: 1;
}

.slide-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.3) 100%);
}

/* 左侧文字区域虚化效果遮罩 */
.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 50%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.8) 0%,
        rgba(0, 0, 0, 0.7) 40%,
        rgba(0, 0, 0, 0.5) 70%,
        rgba(0, 0, 0, 0.3) 85%,
        transparent 100%
    );
    z-index: 1;
}

/* 为banner1.jpg精确虚化左侧文字区域 */
.slide[data-bg*="banner1.jpg"]::before {
    width: 48%;
    background: linear-gradient(to right, 
        rgba(0, 0, 0, 0.95) 0%,
        rgba(0, 0, 0, 0.9) 25%,
        rgba(0, 0, 0, 0.8) 45%,
        rgba(0, 0, 0, 0.6) 65%,
        rgba(0, 0, 0, 0.4) 80%,
        rgba(0, 0, 0, 0.2) 90%,
        transparent 100%
    );
}

/* 额外的文字区域强化虚化层 */
.slide[data-bg*="banner1.jpg"]::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 35%;
    height: 100%;
    background: linear-gradient(to right, 
        rgba(255, 255, 255, 0.08) 0%,
        rgba(255, 255, 255, 0.04) 60%,
        transparent 100%
    );
    z-index: 1;
}

.slide-content {
    position: relative;
    z-index: 3;
    color: white;
    text-align: left;
    max-width: 600px;
    padding-top: 80px;
}

.slide-title {
    font-size: 3.5rem;
    font-weight: bold;
    margin-bottom: 1rem;
    line-height: 1.2;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.8), 
                 0 0 20px rgba(0, 0, 0, 0.6);
    color: #ffffff;
}

.slide-subtitle {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--accent-color);
    margin-bottom: 1rem;
    text-shadow: 2px 2px 6px rgba(0, 0, 0, 0.8), 
                 0 0 15px rgba(0, 0, 0, 0.6);
    filter: brightness(1.2);
}

.slide-description {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    line-height: 1.6;
    text-shadow: 1px 1px 6px rgba(0, 0, 0, 0.8), 
                 0 0 10px rgba(0, 0, 0, 0.5);
    color: #f8f9fa;
}

.slide-buttons {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
}

.slide-buttons .btn {
    padding: 12px 30px;
    border-radius: 25px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
    text-shadow: none;
    position: relative;
    z-index: 4;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.slide-buttons .btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    box-shadow: 0 4px 20px rgba(0, 123, 255, 0.4);
}

.slide-buttons .btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0, 123, 255, 0.5);
}

.slide-buttons .btn-outline-light {
    border: 2px solid rgba(255, 255, 255, 0.9);
    color: white;
    background: rgba(255, 255, 255, 0.1);
}

.slide-buttons .btn-outline-light:hover {
    background: rgba(255, 255, 255, 0.9);
    color: var(--primary-color);
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(255, 255, 255, 0.3);
}

/* Slider Controls */
.slider-controls {
    position: absolute;
    top: 50%;
    width: 100%;
    display: flex;
    justify-content: space-between;
    padding: 0 2rem;
    z-index: 3;
    transform: translateY(-50%);
}

.prev-btn, .next-btn {
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid rgba(255, 255, 255, 0.5);
    color: white;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.prev-btn:hover, .next-btn:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: white;
    transform: scale(1.1);
}

/* Slider Indicators */
.slider-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 15px;
    z-index: 3;
}

.indicator {
    width: 15px;
    height: 15px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.4);
    cursor: pointer;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.indicator.active {
    background: white;
    border-color: var(--primary-color);
    transform: scale(1.2);
}

.indicator:hover {
    background: rgba(255, 255, 255, 0.7);
}

/* Sections */
.section-padding {
    padding: 120px 0;
}

/* 为页面第一个section添加额外的上边距，避免被导航栏遮挡 */
.section-padding:first-of-type {
    padding-top: 160px;
}

/* 增加行之间的间距 */
.row {
    margin-bottom: 2rem;
}

.row:last-child {
    margin-bottom: 0;
}

.section-title {
    text-align: center;
    margin-bottom: 4rem;
}

.section-title h2 {
    font-size: 2.8rem;
    font-weight: bold;
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    line-height: 1.3;
}

.section-title p {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 650px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Cards */
.feature-card, .product-card, .news-card {
    background: var(--white);
    border-radius: 15px;
    padding: 2.5rem;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    margin-bottom: 2.5rem;
    height: 100%;
}

.feature-card:hover, .product-card:hover, .news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    color: white;
    font-size: 2rem;
}

.feature-card h4, .product-card h4, .news-card h4 {
    color: var(--text-dark);
    margin-bottom: 1.5rem;
    font-weight: 600;
    font-size: 1.3rem;
}

.feature-card p, .product-card p, .news-card p {
    color: var(--text-muted);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Product Grid */
.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.product-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

/* Buttons */
.btn-primary {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border: none;
    border-radius: 25px;
    padding: 12px 30px;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 25px rgba(0, 123, 255, 0.3);
}

.btn-outline-primary {
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
    border-radius: 25px;
    padding: 10px 25px;
    font-weight: 600;
    transition: all 0.3s ease;
}

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

/* Modern Usage Scenarios Section */
.usage-scenarios-section {
    position: relative;
    padding: 100px 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 50%, #dee2e6 100%);
    overflow: hidden;
}

.scenarios-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(0, 123, 255, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(46, 204, 113, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(0, 123, 255, 0.04) 0%, transparent 50%);
    animation: float 20s ease-in-out infinite;
}

@keyframes float {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-30px) rotate(1deg); }
    66% { transform: translateY(15px) rotate(-1deg); }
}

.section-title-modern {
    text-align: center;
    margin-bottom: 80px;
    position: relative;
}

.section-badge {
    display: inline-block;
    padding: 8px 24px;
    background: rgba(0, 123, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(0, 123, 255, 0.2);
    border-radius: 50px;
    color: var(--primary-color);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.gradient-text {
    background: linear-gradient(135deg, #212529 0%, #007bff 50%, #2ecc71 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    font-size: 3rem;
    font-weight: 700;
    margin-bottom: 20px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.section-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.title-underline {
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, #ff6b6b, #4ecdc4);
    margin: 0 auto;
    border-radius: 2px;
    animation: expand 2s ease-in-out infinite alternate;
}

@keyframes expand {
    0% { width: 80px; }
    100% { width: 120px; }
}

.scenarios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(380px, 1fr));
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.scenario-card {
    position: relative;
    height: 100%;
    transform-style: preserve-3d;
    transition: transform 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.scenario-card:hover {
    transform: translateY(-15px) scale(1.02);
}

.card-inner {
    position: relative;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 0;
    overflow: hidden;
    box-shadow: 
        0 20px 40px rgba(0, 0, 0, 0.1),
        0 15px 25px rgba(0, 0, 0, 0.05),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: all 0.4s ease;
}

.scenario-card:hover .card-inner {
    box-shadow: 
        0 30px 60px rgba(0, 0, 0, 0.15),
        0 25px 35px rgba(0, 0, 0, 0.08),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.98);
}

.scenario-image-wrapper {
    position: relative;
    height: 220px;
    overflow: hidden;
    border-radius: 20px 20px 0 0;
}

.scenario-image-modern {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease, filter 0.6s ease;
    filter: brightness(0.9) contrast(1.1);
}

.scenario-card:hover .scenario-image-modern {
    transform: scale(1.1);
    filter: brightness(1) contrast(1.2);
}

.image-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, 
        rgba(0, 123, 255, 0.85) 0%, 
        rgba(46, 204, 113, 0.85) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.scenario-card:hover .image-overlay {
    opacity: 1;
}

.overlay-icon {
    color: white;
    font-size: 2.5rem;
    animation: bounceIn 0.6s ease;
}

@keyframes bounceIn {
    0% { transform: scale(0.3); opacity: 0; }
    50% { transform: scale(1.05); opacity: 0.8; }
    100% { transform: scale(1); opacity: 1; }
}

.scenario-content {
    padding: 30px;
}

.scenario-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 15px;
    line-height: 1.3;
    background: linear-gradient(135deg, #2c3e50, #34495e);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.scenario-description {
    color: var(--text-muted);
    line-height: 1.6;
    margin-bottom: 20px;
    font-size: 0.95rem;
}

.scenario-features {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    display: inline-block;
    padding: 6px 14px;
    background: linear-gradient(135deg, #007bff, #2ecc71);
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.feature-tag:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 123, 255, 0.4);
}

/* Responsive Design */
@media (max-width: 768px) {
    .usage-scenarios-section {
        padding: 60px 0;
    }
    
    .scenarios-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin: 0 15px;
    }
    
    .gradient-text {
        font-size: 2.2rem;
    }
    
    .scenario-image-wrapper {
        height: 180px;
    }
    
    .scenario-content {
        padding: 20px;
    }
}

@media (max-width: 480px) {
    .gradient-text {
        font-size: 1.8rem;
    }
    
    .scenario-title {
        font-size: 1.2rem;
    }
    
    .feature-tag {
        font-size: 0.7rem;
        padding: 4px 10px;
    }
}

/* News Section */
.news-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.news-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 1rem;
}

.news-date {
    color: var(--text-muted);
    font-size: 0.9rem;
    margin-bottom: 0.5rem;
}

/* Footer */
.footer {
    background: var(--dark-color) !important;
    margin-top: 0 !important;
}

.footer h5, .footer h6 {
    color: var(--white);
    margin-bottom: 1rem;
}

.footer a {
    color: #cccccc;
    text-decoration: none;
    transition: color 0.3s ease;
}

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

/* Footer text-muted override */
.footer .text-muted {
    color: #cccccc !important;
}

.footer p.text-muted {
    color: #cccccc !important;
}

/* Ensure all footer text is visible on dark background */
.footer p {
    color: #cccccc;
}

.footer .contact-info p {
    color: #cccccc;
}

.social-links a {
    display: inline-block;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    transition: all 0.3s ease;
}

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

/* Chat Widget */
.chat-widget {
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
}

.chat-toggle {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
    box-shadow: 0 5px 20px rgba(0, 123, 255, 0.3);
    transition: all 0.3s ease;
}

.chat-toggle:hover {
    transform: scale(1.1);
}

.chat-window {
    position: absolute;
    bottom: 70px;
    right: 0;
    width: 350px;
    height: 400px;
    background: var(--white);
    border-radius: 15px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.2);
    display: flex;
    flex-direction: column;
}

.chat-header {
    background: var(--primary-color);
    color: white;
    padding: 1rem;
    border-radius: 15px 15px 0 0;
    display: flex;
    justify-content: between;
    align-items: center;
}

.chat-header h6 {
    margin: 0;
    flex-grow: 1;
}

.chat-messages {
    flex-grow: 1;
    padding: 1rem;
    overflow-y: auto;
    max-height: 280px;
}

.message {
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    border-radius: 10px;
    max-width: 80%;
    word-wrap: break-word;
}

.bot-message {
    background: var(--light-color);
    margin-right: auto;
}

.user-message {
    background: var(--primary-color);
    color: white;
    margin-left: auto;
}

.chat-input {
    padding: 1rem;
    border-top: 1px solid var(--border-color);
    display: flex;
    border-radius: 0 0 15px 15px;
}

.chat-input input {
    flex-grow: 1;
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 0.5rem 1rem;
    margin-right: 0.5rem;
}

.chat-input button {
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

/* Enhanced Chat Styles */
.user-info-form {
    padding: 1rem;
    background: rgba(0, 123, 255, 0.05);
    border-radius: 10px;
    border: 1px solid rgba(0, 123, 255, 0.1);
}

.user-info-form .form-control {
    border-radius: 8px;
    border: 1px solid #ddd;
    transition: border-color 0.3s ease;
}

.user-info-form .form-control:focus {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.admin-message {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    margin-right: auto;
    border-bottom-left-radius: 4px;
}

.message .sender-name {
    font-size: 0.75rem;
    font-weight: bold;
    margin-bottom: 5px;
    opacity: 0.9;
}

.message .message-content {
    margin: 5px 0;
}

.message .message-time {
    font-size: 0.7rem;
    opacity: 0.7;
    text-align: right;
    margin-top: 5px;
}

.chat-toggle {
    position: relative;
    overflow: hidden;
}

.chat-toggle::after {
    content: '';
    position: absolute;
    top: -2px;
    right: -2px;
    width: 12px;
    height: 12px;
    background: #dc3545;
    border-radius: 50%;
    transform: scale(0);
    transition: transform 0.3s ease;
}

.chat-toggle.has-notification::after {
    transform: scale(1);
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        transform: scale(1);
        opacity: 1;
    }
    50% {
        transform: scale(1.1);
        opacity: 0.7;
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Chat window enhancements */
.chat-window {
    border: 1px solid rgba(0, 123, 255, 0.1);
    backdrop-filter: blur(10px);
}

.chat-header {
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
}

.chat-messages {
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
}

.message {
    animation: messageSlideIn 0.3s ease-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

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

/* Responsive Design */
@media (max-width: 768px) {
    .hero-section {
        padding: 120px 0 80px 0;
        min-height: 400px;
    }
    
    .hero-section h1 {
        font-size: 2.5rem;
        margin-bottom: 2rem;
    }
    
    .hero-section .lead {
        font-size: 1.1rem;
        margin-bottom: 2.5rem;
    }
    
    .section-title h2 {
        font-size: 2.3rem;
        margin-bottom: 1.2rem;
    }
    
    .section-title p {
        font-size: 1.1rem;
    }
    
    .feature-card, .product-card, .news-card {
        padding: 2rem;
        margin-bottom: 2rem;
    }
    
    .header-slider {
        height: 500px;
    }
    
    /* 移动端精确虚化文字区域 */
    .slide::before {
        width: 60%;
        background: linear-gradient(to right, 
            rgba(0, 0, 0, 0.85) 0%,
            rgba(0, 0, 0, 0.75) 40%,
            rgba(0, 0, 0, 0.55) 70%,
            rgba(0, 0, 0, 0.3) 85%,
            transparent 100%
        );
    }
    
    .slide[data-bg*="banner1.jpg"]::before {
        width: 58%;
        background: linear-gradient(to right, 
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.9) 30%,
            rgba(0, 0, 0, 0.8) 50%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0.4) 85%,
            transparent 100%
        );
    }
    
    .slide[data-bg*="banner1.jpg"]::after {
        width: 42%;
    }
    
    .slide-title {
        font-size: 2.5rem;
    }
    
    .slide-subtitle {
        font-size: 1.2rem;
    }
    
    .slide-description {
        font-size: 1rem;
    }
    
    .slide-buttons {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .slide-buttons .btn {
        width: 100%;
        max-width: 250px;
        text-align: center;
    }
    
    .slider-controls {
        padding: 0 1rem;
    }
    
    .prev-btn, .next-btn {
        width: 40px;
        height: 40px;
    }
    
    .section-title h2 {
        font-size: 2rem;
    }
    
    .chat-window {
        width: 300px;
        height: 350px;
    }
    
    .navbar-nav {
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(20px);
        padding: 1.5rem;
        border-radius: 20px;
        margin-top: 1rem;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
        border: 1px solid rgba(0, 123, 255, 0.1);
    }
    
    .navbar-nav .nav-item {
        margin: 5px 0;
    }
    
    .navbar-nav .nav-link {
        padding: 1rem 1.5rem !important;
        border-radius: 15px;
        text-align: left;
        font-size: 1rem;
        text-transform: none;
        letter-spacing: normal;
    }
    
    .navbar-nav .nav-link.active {
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.15), rgba(46, 204, 113, 0.15));
        transform: none;
        box-shadow: 0 2px 15px rgba(0, 123, 255, 0.2);
    }
    
    .navbar-nav .nav-link.active .nav-indicator {
        width: 4px;
        height: 100%;
        left: 0;
        top: 0;
        border-radius: 0 2px 2px 0;
        transform: none;
    }
    
    .navbar-nav .nav-link:hover {
        transform: translateX(5px);
        background: linear-gradient(135deg, rgba(0, 123, 255, 0.1), rgba(46, 204, 113, 0.1));
    }
}

@media (max-width: 576px) {
    .hero-section {
        padding: 100px 0 60px 0;
        min-height: 350px;
    }
    
    .hero-section h1 {
        font-size: 2rem;
        margin-bottom: 1.5rem;
    }
    
    .hero-section .lead {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
    
    .section-title {
        margin-bottom: 3rem;
    }
    
    .section-title h2 {
        font-size: 2rem;
        margin-bottom: 1rem;
    }
    
    .feature-card, .product-card, .news-card {
        padding: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .header-slider {
        height: 450px;
    }
    
    /* 小屏幕精确虚化文字区域 */
    .slide::before {
        width: 70%;
        background: linear-gradient(to right, 
            rgba(0, 0, 0, 0.9) 0%,
            rgba(0, 0, 0, 0.8) 45%,
            rgba(0, 0, 0, 0.6) 70%,
            rgba(0, 0, 0, 0.4) 85%,
            transparent 100%
        );
    }
    
    .slide[data-bg*="banner1.jpg"]::before {
        width: 68%;
        background: linear-gradient(to right, 
            rgba(0, 0, 0, 0.95) 0%,
            rgba(0, 0, 0, 0.9) 35%,
            rgba(0, 0, 0, 0.8) 55%,
            rgba(0, 0, 0, 0.6) 75%,
            rgba(0, 0, 0, 0.4) 90%,
            transparent 100%
        );
    }
    
    .slide[data-bg*="banner1.jpg"]::after {
        width: 50%;
    }
    
    .slide-title {
        font-size: 2rem;
    }
    
    .slide-subtitle {
        font-size: 1.1rem;
    }
    
    .slide-description {
        font-size: 0.95rem;
    }
    
    .slider-indicators {
        bottom: 20px;
    }
    
    .indicator {
        width: 12px;
        height: 12px;
    }
    
    .section-padding {
        padding: 80px 0;
    }
    
    .section-padding:first-of-type {
        padding-top: 120px;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

/* Loading Animation */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
    animation: spin 1s ease-in-out infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* Fade-in Animation */
.fade-in {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
}

.fade-in.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Image Hover Effects */
.hover-zoom {
    overflow: hidden;
    border-radius: 10px;
}

.hover-zoom img {
    transition: transform 0.3s ease;
}

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