/* ===================================
   Global Styles & Reset
   =================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary-color: #0A2463;
    --secondary-color: #D4AF37;
    --dark-blue: #061845;
    --light-blue: #1E3A8A;
    --white: #FFFFFF;
    --light-gray: #F8FAFC;
    --gray: #E2E8F0;
    --dark-gray: #64748B;
    --text-dark: #1E293B;
    --text-light: #64748B;
    
    /* African/Middle Eastern geometric pattern colors */
    --pattern-ochre: #C17817;
    --pattern-terracotta: #E27D60;
    --pattern-sand: #F4E4C1;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    color: var(--text-dark);
    line-height: 1.6;
    overflow-x: hidden;
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===================================
   Typography
   =================================== */
h1, h2, h3, h4, h5, h6 {
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: var(--primary-color);
}

h1 {
    font-size: 3rem;
}

h2 {
    font-size: 2.25rem;
}

h3 {
    font-size: 1.5rem;
}

p {
    margin-bottom: 1rem;
}

a {
    text-decoration: none;
    color: var(--primary-color);
    transition: color 0.3s ease;
}

a:hover {
    color: var(--secondary-color);
}

/* ===================================
   Buttons
   =================================== */
.btn {
    display: inline-block;
    padding: 12px 32px;
    border-radius: 4px;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
    font-size: 1rem;
}

.btn-primary {
    background-color: var(--primary-color);
    color: var(--white);
}

.btn-primary:hover {
    background-color: var(--dark-blue);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(10, 36, 99, 0.3);
}

.btn-secondary {
    background-color: var(--secondary-color);
    color: var(--primary-color);
}

.btn-secondary:hover {
    background-color: #B8941F;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.3);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--primary-color);
    color: var(--primary-color);
}

.btn-outline:hover {
    background-color: var(--primary-color);
    color: var(--white);
}

/* ===================================
   Header & Navigation
   =================================== */
header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    background-color: rgba(255, 255, 255, 0.98);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    z-index: 1000;
    height: 70px;
    line-height: 70px;
    transition: box-shadow 0.3s ease;
}

header.scrolled {
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 100%;
    position: relative;
    will-change: transform;
}

.nav-left {
    flex-shrink: 0;
    height: 100%;
    display: flex;
    align-items: center;
}

.nav-center {
    flex: 1;
    display: flex;
    justify-content: center;
    flex-shrink: 0;
    height: 100%;
    align-items: center;
}

.nav-right {
    flex-shrink: 0;
    min-width: 80px;
    display: flex;
    align-items: center;
    justify-content: flex-end;
}

.logo {
    font-size: 2.25rem;
    font-weight: 800;
    color: var(--primary-color);
    cursor: pointer;
    white-space: nowrap;
    flex-shrink: 0;
    min-width: 180px;
    height: 50px;
    line-height: 50px;
}

.logo a {
    color: inherit;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 0.3rem;
    height: 100%;
}

.logo img {
    height: 50px;
    width: auto;
    flex-shrink: 0;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 3rem;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 100%;
}

.nav-link {
    color: var(--text-dark);
    font-weight: 500;
    text-decoration: none;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    transition: color 0.2s ease, background-color 0.2s ease;
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 40px;
    line-height: 40px;
    min-width: 80px;
}

.nav-link:hover {
    background-color: rgba(10, 36, 99, 0.1);
    color: var(--primary-color);
}

.nav-link.active {
    background-color: var(--primary-color);
    color: var(--white);
}

.language-dropdown {
    position: relative;
    display: inline-block;
}

.lang-toggle {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.5rem 1rem;
    border: 1px solid var(--gray);
    background-color: var(--white);
    border-radius: 8px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--text-dark);
    transition: all 0.3s ease;
}

.lang-toggle:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

.lang-toggle i {
    font-size: 0.625rem;
    transition: transform 0.3s ease;
}

.lang-toggle.open i {
    transform: rotate(180deg);
}

.lang-dropdown-menu {
    position: absolute;
    top: 70px;
    right: 0;
    background-color: var(--white);
    border: 1px solid var(--gray);
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    min-width: 100px;
    display: none;
    z-index: 1100;
    overflow: hidden;
}

.lang-dropdown-menu.show {
    display: block;
}

.lang-option {
    display: block;
    width: 100%;
    padding: 0.5rem 1rem;
    border: none;
    background: none;
    cursor: pointer;
    font-size: 0.875rem;
    text-align: left;
    transition: background-color 0.2s ease;
    color: var(--text-dark);
}

.lang-option:hover {
    background-color: rgba(10, 36, 99, 0.1);
    color: var(--primary-color);
}

.mobile-lang {
    display: none;
}

.menu-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.menu-toggle span {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 3px 0;
    transition: 0.3s;
}

.menu-toggle.active span:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 5px);
}

.menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.menu-toggle.active span:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -5px);
}

/* ===================================
   Hero Section
   =================================== */
.hero {
    margin-top: 70px;
    height: calc(100vh - 70px);
    min-height: 400px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
}

.hero-carousel {
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
}

.hero-slide.active {
    opacity: 1;
}

.hero-slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(90deg, rgba(10, 36, 99, 0.7) 0%, rgba(10, 36, 99, 0.4) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
    max-width: 700px;
    padding: 0 20px;
}

.hero-content h1 {
    color: var(--white);
    font-size: 3.5rem;
    margin-bottom: 1.5rem;
    animation: fadeUp 1s ease-out;
}

.hero-content p {
    font-size: 1.25rem;
    margin-bottom: 2rem;
    opacity: 0.95;
    animation: fadeUp 1s ease-out 0.3s backwards;
}

.hero-buttons {
    animation: fadeUp 1s ease-out 0.6s backwards;
}

.hero-buttons .btn {
    margin-right: 1rem;
    margin-bottom: 1rem;
}

.carousel-controls {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    display: flex;
    gap: 1rem;
}

.hero-indicators {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 1rem;
    z-index: 10;
}

.carousel-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.carousel-dot.active {
    background-color: var(--secondary-color);
}

@keyframes fadeUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ===================================
   Product Categories
   =================================== */
.section {
    padding: 80px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
}

.section-title h2 {
    margin-bottom: 1rem;
    position: relative;
    display: inline-block;
}

.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background-color: var(--secondary-color);
}

.section-title p {
    color: var(--text-light);
    font-size: 1.125rem;
    margin-top: 1.5rem;
}

.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.category-card {
    text-align: center;
    padding: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), var(--secondary-color));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
    border-color: var(--secondary-color);
}

.category-card:hover::before {
    transform: scaleX(1);
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2.5rem;
}

.category-card h3 {
    margin-bottom: 0.5rem;
}

.category-card p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* Geometric pattern decoration for African/Middle Eastern feel */
.pattern-bg {
    background-image: 
        repeating-linear-gradient(45deg, transparent, transparent 35px, rgba(193, 120, 23, 0.03) 35px, rgba(193, 120, 23, 0.03) 70px);
    background-color: var(--light-gray);
}

/* ===================================
   Advantages Section
   =================================== */
.advantages {
    background-color: var(--light-gray);
}

.advantages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
}

.advantage-item {
    background-color: var(--white);
    padding: 2.5rem 2rem;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.advantage-item:hover {
    transform: translateY(-5px);
}

.advantage-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 1.5rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 2rem;
}

.advantage-item h3 {
    margin-bottom: 1rem;
}

.advantage-item p {
    color: var(--text-light);
    margin-bottom: 0;
}

/* ===================================
   Featured Products
   =================================== */
.featured .section-header {
    text-align: center;
    margin-bottom: 2rem;
}

.featured .section-header h2 {
    margin-bottom: 0.5rem;
}

.featured .section-header p {
    color: var(--text-light);
}

.featured .text-center {
    text-align: center;
    margin-top: 3rem;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
    transition: opacity 0.3s ease;
}

.product-card {
    display: block;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: opacity 0.3s ease, transform 0.3s ease, max-height 0.3s ease;
    max-height: 600px;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.product-card.filter-hidden {
    opacity: 0;
    transform: scale(0.9);
    max-height: 0;
    margin: 0;
    padding: 0;
    border: none;
    box-shadow: none;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 24px rgba(0, 0, 0, 0.15);
}

.product-card:hover,
.product-card:hover *:not(.btn) {
    color: inherit;
}

.product-image {
    width: 100%;
    height: 260px;
    object-fit: cover;
    background-color: var(--gray);
}

.product-info {
    padding: 1.75rem;
}

.product-title {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
    cursor: help;
}

.product-specs {
    color: var(--text-light);
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.product-specs span {
    display: inline-block;
    margin-right: 1rem;
}

.product-card .btn {
    width: 100%;
}

.product-card {
    transition: all 0.3s ease;
}

.view-all-container {
    text-align: center;
    margin-top: 3rem;
}

/* ===================================
   About Shengben Section
   =================================== */

.about-shengben {
    padding: 4rem 0;
    background-color: var(--white);
}

.about-content {
    display: flex;
    align-items: center;
    gap: 4rem;
}

.about-text {
    flex: 1;
}

.about-text h2 {
    font-size: 2rem;
    color: var(--primary-color);
    margin-bottom: 1.5rem;
}

.about-text p {
    font-size: 1.125rem;
    line-height: 1.8;
    color: var(--text-color);
    margin-bottom: 1rem;
}

.about-image {
    flex: 1;
    max-width: 500px;
}

.about-image img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

@media (max-width: 968px) {
    .about-content {
        flex-direction: column;
        gap: 2rem;
    }
    
    .about-text h2 {
        font-size: 1.5rem;
    }
    
    .about-text p {
        font-size: 1rem;
    }
    
    .about-image {
        max-width: 100%;
    }
}

/* ===================================
   Brands/Partners Section
   =================================== */
.brands {
    background-color: var(--light-gray);
}

.brands-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 3rem;
}

.brand-item {
    width: 150px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: var(--white);
    border-radius: 6px;
    padding: 1rem;
    transition: all 0.3s ease;
    opacity: 0.7;
}

.brand-item:hover {
    opacity: 1;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.brand-item img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
}

/* ===================================
   Footer
   =================================== */
footer {
    background-color: var(--primary-color);
    color: var(--white);
    padding: 60px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 3rem;
    margin-bottom: 3rem;
}

.footer-section h3 {
    color: var(--white);
    margin-bottom: 1.5rem;
    position: relative;
    padding-bottom: 0.5rem;
}

.footer-section h3::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 40px;
    height: 2px;
    background-color: var(--secondary-color);
}

.footer-section p,
.footer-section a {
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: 0.75rem;
    display: block;
}

.footer-section a:hover {
    color: var(--secondary-color);
}

.footer-contact i {
    margin-right: 10px;
    color: var(--secondary-color);
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-link {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.social-link:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    color: rgba(255, 255, 255, 0.6);
}

/* ===================================
   WhatsApp Float Button
   =================================== */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--white);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.4);
    z-index: 999;
    transition: all 0.3s ease;
    cursor: pointer;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.5);
}

/* ===================================
   Chat Window Styles
   =================================== */
.chat-window {
    position: fixed;
    bottom: 100px;
    right: 30px;
    width: 360px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    z-index: 1000;
    display: none;
    flex-direction: column;
    max-height: 500px;
    border: 1px solid var(--gray);
}

.chat-window.open {
    display: flex;
}

.chat-header {
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    padding: 16px 20px;
    border-radius: 12px 12px 0 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.chat-header h4 {
    margin: 0;
    color: var(--white);
    font-size: 1rem;
}

.chat-header-actions {
    display: flex;
    gap: 8px;
    align-items: center;
}

.chat-settings-btn {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    transition: background 0.3s ease;
}

.chat-settings-btn:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-settings-panel {
    padding: 12px 16px;
    background: #f9fafb;
    border-bottom: 1px solid var(--gray);
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.chat-setting-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.8rem;
    color: var(--text-dark);
    cursor: pointer;
}

.chat-setting-item input[type="checkbox"] {
    cursor: pointer;
}

.chat-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: var(--white);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 0.875rem;
    transition: background 0.3s ease;
}

.chat-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 16px;
    background: var(--light-gray);
}

.chat-message {
    display: flex;
    margin-bottom: 12px;
    max-width: 85%;
}

.chat-message.customer {
    justify-content: flex-end;
}

.chat-message.admin {
    justify-content: flex-start;
}

.chat-message-content {
    padding: 10px 14px;
    border-radius: 16px;
    font-size: 0.875rem;
    line-height: 1.5;
}

.chat-message.customer .chat-message-content {
    background: #25D366;
    color: var(--white);
    border-radius: 16px 4px 16px 16px;
}

.chat-message.admin .chat-message-content {
    background: var(--white);
    color: var(--text-dark);
    border-radius: 4px 16px 16px 16px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chat-message-time {
    font-size: 0.625rem;
    color: var(--dark-gray);
    margin-top: 4px;
    text-align: right;
}

.chat-message.admin .chat-message-time {
    text-align: left;
}

.chat-input-area {
    padding: 12px 16px;
    background: var(--white);
    border-top: 1px solid var(--gray);
    border-radius: 0 0 12px 12px;
}

.chat-input-group {
    display: flex;
    gap: 8px;
}

.chat-input {
    flex: 1;
    padding: 10px 14px;
    border: 1px solid var(--gray);
    border-radius: 20px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.3s ease;
}

.chat-input:focus {
    border-color: #25D366;
}

.chat-send-btn {
    background: #25D366;
    color: var(--white);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.chat-send-btn:hover {
    background: #128C7E;
    transform: scale(1.05);
}

.chat-send-btn:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.chat-typing {
    display: flex;
    align-items: center;
    padding: 8px 16px;
    color: var(--dark-gray);
    font-size: 0.75rem;
}

/* 聊天消息发送状态 */
.chat-message-status {
    font-size: 0.625rem;
    margin-top: 2px;
    text-align: right;
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 3px;
}

.chat-message-status.sending {
    color: var(--dark-gray);
}

.chat-message-status.sent {
    color: #25D366;
}

.chat-message-status.failed {
    color: #ef4444;
}

.chat-message-status i {
    font-size: 0.5rem;
}

/* 聊天按钮未读消息红点 */
.chat-unread-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #ef4444;
    color: var(--white);
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 5px;
    box-shadow: 0 2px 4px rgba(239, 68, 68, 0.4);
    animation: chat-badge-pulse 2s infinite;
}

@keyframes chat-badge-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

.chat-contact-form {
    flex: 1;
    overflow-y: auto;
    padding: 20px;
    background: var(--light-gray);
}

.chat-contact-form h5 {
    margin: 0 0 16px 0;
    color: var(--dark-gray);
    font-size: 0.9375rem;
    text-align: center;
}

.chat-form-group {
    margin-bottom: 12px;
}

.chat-form-group input {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--gray);
    border-radius: 8px;
    font-size: 0.875rem;
    outline: none;
    transition: border-color 0.3s ease;
    box-sizing: border-box;
}

.chat-form-group input:focus {
    border-color: #25D366;
}

.chat-form-group input::placeholder {
    color: var(--gray);
}

.chat-form-submit {
    width: 100%;
    padding: 12px;
    background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
    color: var(--white);
    border: none;
    border-radius: 8px;
    font-size: 0.9375rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 8px;
    transition: all 0.3s ease;
}

.chat-form-submit:hover {
    opacity: 0.9;
    transform: translateY(-1px);
}

.chat-form-submit:disabled {
    background: var(--gray);
    cursor: not-allowed;
    transform: none;
}

.chat-typing-dots {
    display: flex;
    gap: 4px;
    margin-left: 8px;
}

.chat-typing-dots span {
    width: 6px;
    height: 6px;
    background: var(--dark-gray);
    border-radius: 50%;
    animation: typing 1.4s infinite ease-in-out both;
}

.chat-typing-dots span:nth-child(1) { animation-delay: -0.32s; }
.chat-typing-dots span:nth-child(2) { animation-delay: -0.16s; }

@keyframes typing {
    0%, 80%, 100% { transform: scale(0); }
    40% { transform: scale(1); }
}

.chat-welcome {
    text-align: center;
    padding: 20px;
    color: var(--dark-gray);
    font-size: 0.875rem;
}

.chat-welcome p {
    margin-bottom: 8px;
}

/* ===================================
   Products Page
   =================================== */
.page-header {
    margin-top: 70px;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
    text-align: center;
}

.page-header h1 {
    color: var(--white);
    margin-bottom: 1rem;
}

.page-header p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin: 0;
}

.products-page {
    padding: 60px 0;
}

.products-page .container {
    max-width: 1500px;
    padding: 0 30px 0 5px;
}

.products-container {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 2rem;
}

.category-sidebar h3 {
    margin-bottom: 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--secondary-color);
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 0.5rem;
}

.category-list a {
    display: block;
    padding: 12px 16px;
    border-radius: 4px;
    color: var(--text-dark);
    transition: all 0.3s ease;
    border: 1px solid var(--gray);
}

.category-list a:hover,
.category-list a.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.download-catalog {
    margin-top: 2rem;
    padding: 1.5rem;
    background-color: var(--light-gray);
    border-radius: 8px;
    text-align: center;
}

.download-catalog h4 {
    margin-bottom: 1rem;
}

.no-products {
    text-align: center;
    padding: 4rem;
    color: var(--text-light);
}

/* ===================================
   Product Detail Page
   =================================== */
.product-detail {
    padding: 80px 20px;
    background: #F5F7FA;
}

.product-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.main-image {
    width: 100%;
    height: 400px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 1rem;
}

.main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumbnail-grid {
    display: flex;
    gap: 1rem;
}

.thumbnail {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid var(--gray);
    transition: all 0.3s ease;
}

.thumbnail:hover,
.thumbnail.active {
    border-color: var(--secondary-color);
}

.thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-info h1 {
    margin-bottom: 1rem;
}

.product-meta {
    margin-bottom: 2rem;
}

.product-meta .model {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--light-gray);
    border-radius: 4px;
    margin-bottom: 1rem;
}

.spec-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
}

.spec-table tr {
    border-bottom: 1px solid var(--gray);
}

.spec-table td {
    padding: 12px 0;
}

.spec-table td:first-child {
    font-weight: 600;
    width: 30%;
    color: var(--primary-color);
}

.product-description {
    margin-bottom: 2rem;
    line-height: 1.8;
}

.customization-options {
    background-color: var(--light-gray);
    padding: 1.5rem;
    border-radius: 8px;
    margin-bottom: 2rem;
}

.customization-options h3 {
    margin-bottom: 1rem;
}

.customization-options ul {
    margin-left: 1.5rem;
}

.customization-options li {
    margin-bottom: 0.5rem;
}

/* Modal for inquiry */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 2000;
    align-items: center;
    justify-content: center;
}

.modal.active {
    display: flex;
}

.modal-content {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 8px;
    max-width: 600px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    position: relative;
}

.modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--dark-gray);
    transition: color 0.3s ease;
}

.modal-close:hover {
    color: var(--primary-color);
}

.modal-content h2 {
    margin-bottom: 1.5rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.form-control {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    font-size: 1rem;
    transition: border-color 0.3s ease;
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
}

textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

/* ===================================
   About Page
   =================================== */
.about-content {
    padding: 60px 0;
}

.about-text {
    max-width: 900px;
    margin: 0 auto 3rem;
    line-height: 1.8;
}

.about-text p {
    margin-bottom: 1.5rem;
    font-size: 1.125rem;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
    margin: 3rem 0;
}

.gallery-item {
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.gallery-item:hover img {
    transform: scale(1.05);
}

.timeline {
    max-width: 800px;
    margin: 3rem auto;
    position: relative;
}

.timeline::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 0;
    bottom: 0;
    width: 3px;
    background-color: var(--secondary-color);
    transform: translateX(-50%);
}

.timeline-item {
    position: relative;
    margin-bottom: 3rem;
    display: flex;
    justify-content: center;
}

.timeline-content {
    width: 45%;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    position: relative;
}

.timeline-item:nth-child(odd) .timeline-content {
    margin-right: calc(50% + 2rem);
}

.timeline-item:nth-child(even) .timeline-content {
    margin-left: calc(50% + 2rem);
}

.timeline-date {
    display: inline-block;
    padding: 0.5rem 1rem;
    background-color: var(--primary-color);
    color: var(--white);
    border-radius: 4px;
    font-size: 0.875rem;
    margin-bottom: 1rem;
}

.certificates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.certificate-item {
    text-align: center;
    padding: 1.5rem;
    background-color: var(--white);
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.certificate-item img {
    width: 100%;
    height: 200px;
    object-fit: contain;
    margin-bottom: 1rem;
}

/* ===================================
   News Page
   =================================== */
.news-page {
    padding: 60px 0;
}

.news-list {
    display: grid;
    gap: 2rem;
    max-width: 900px;
    margin: 0 auto;
}

.news-item {
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 2rem;
    background-color: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
}

.news-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
}

.news-item:hover,
.news-item:hover *:not(.btn) {
    color: inherit;
}

.news-image {
    height: 250px;
    width: 100%;
    flex-shrink: 0;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.news-content {
    padding: 2rem 2rem 2rem 0;
}

.news-date {
    color: var(--dark-gray);
    font-size: 0.875rem;
    margin-bottom: 0.5rem;
}

.news-content h2 {
    font-size: 1.5rem;
    margin-bottom: 1rem;
}

.news-excerpt {
    color: var(--text-light);
    margin-bottom: 1rem;
}

.pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 3rem;
}

.page-link {
    padding: 8px 16px;
    border: 1px solid var(--gray);
    border-radius: 4px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.page-link:hover,
.page-link.active {
    background-color: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

.news-detail {
    padding: 60px 0;
    max-width: 900px;
    margin: 0 auto;
}

.news-detail-header h1 {
    margin-bottom: 1rem;
}

.news-detail-meta {
    color: var(--dark-gray);
    margin-bottom: 2rem;
    padding-bottom: 1rem;
    border-bottom: 1px solid var(--gray);
}

.news-detail-content {
    line-height: 1.8;
    font-size: 1.125rem;
}

.news-detail-content p {
    margin-bottom: 1.5rem;
    text-indent: 2em;
}

.news-detail .news-image {
    height: auto;
    max-height: 500px;
    width: 100%;
}

.news-detail .news-image img {
    width: 100%;
    height: auto;
    object-fit: contain;
}

/* ===================================
   Contact Page
   =================================== */
.contact-page {
    padding: 60px 0;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
}

.contact-info-item {
    display: flex;
    gap: 1rem;
    margin-bottom: 2rem;
}

.contact-info-icon {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary-color), var(--light-blue));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--white);
    font-size: 1.5rem;
    flex-shrink: 0;
}

.contact-info-text h3 {
    margin-bottom: 0.5rem;
}

.contact-info-text p {
    color: var(--text-light);
    margin-bottom: 0;
}

.map-container {
    margin-top: 2rem;
    border-radius: 8px;
    overflow: hidden;
    height: 300px;
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* ===================================
   Admin Pages
   =================================== */
.admin-login {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--light-blue) 100%);
}

.login-box {
    background-color: var(--white);
    padding: 3rem;
    border-radius: 8px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.2);
    width: 100%;
    max-width: 400px;
}

.login-box h1 {
    text-align: center;
    margin-bottom: 2rem;
}

.admin-sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: 250px;
    background-color: #1a1a1a;
    color: var(--white);
    padding: 2rem 0;
    z-index: 100;
    border-right: 1px solid #333;
}

.admin-sidebar h2 {
    color: var(--white);
    text-align: center;
    padding: 0 1rem 2rem;
    margin-bottom: 2rem;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.admin-menu {
    list-style: none;
}

.admin-menu a {
    display: block;
    padding: 1rem 2rem;
    color: rgba(255, 255, 255, 0.8);
    transition: all 0.3s ease;
}

.admin-menu a:hover,
.admin-menu a.active {
    background-color: #2a2a2a;
    color: var(--white);
    border-left: 4px solid var(--secondary-color);
}

/* Submenu styles */
.admin-menu .has-submenu > a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.admin-menu .has-submenu > a::after {
    content: '\f078';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    font-size: 0.75rem;
    transition: transform 0.3s ease;
    opacity: 0.7;
}

.admin-menu .has-submenu > a:hover::after {
    opacity: 1;
}

.admin-menu .has-submenu.open > a::after {
    transform: rotate(180deg);
}

.admin-menu .submenu {
    list-style: none;
    display: none;
    background-color: #121212;
}

.admin-menu .has-submenu.open > .submenu {
    display: block;
}

/* ===================================
   Toast Notification Styles
   =================================== */
.toast {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    padding: 12px 24px;
    border-radius: 8px;
    color: white;
    font-weight: 500;
    z-index: 100000;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    min-width: 200px;
    text-align: center;
    animation: toastFadeIn 0.3s ease;
}

.toast.success {
    background: #10b981;
}

.toast.error {
    background: #ef4444;
}

@keyframes toastFadeIn {
    from {
        opacity: 0;
        transform: translateX(-50%) translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

.admin-menu .submenu a {
    padding-left: 3.5rem;
    font-size: 0.9rem;
}

.admin-menu .submenu a:hover,
.admin-menu .submenu a.active {
    background-color: #2a2a2a;
    border-left: 2px solid var(--secondary-color);
}

/* 侧边栏未读消息徽标 */
.sidebar-unread-badge,
.sidebar-menu-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ef4444;
    color: white;
    font-size: 0.7rem;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    padding: 0 5px;
    margin-left: 6px;
    box-shadow: 0 1px 3px rgba(239, 68, 68, 0.4);
}

.sidebar-unread-badge {
    margin-left: auto;
}

.admin-menu .has-submenu > a {
    display: flex;
    align-items: center;
}

.admin-main {
    margin-left: 250px;
    padding: 2rem;
    background-color: var(--light-gray);
    min-height: calc(100vh - 4rem);
}

.admin-header {
    background-color: var(--white);
    padding: 1rem 2rem;
    border-radius: 8px;
    margin-bottom: 2rem;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.stat-card {
    background-color: var(--white);
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    color: var(--text-light);
    font-size: 0.875rem;
}

.admin-table {
    width: 100%;
    background-color: var(--white);
    border-radius: 8px;
    border-collapse: collapse;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.admin-table th,
.admin-table td {
    padding: 1rem;
    text-align: left;
    border-bottom: 1px solid var(--gray);
}

.admin-table th {
    background-color: #f8fafc;
    font-weight: 600;
    color: var(--primary-color);
}

.btn-sm {
    padding: 6px 12px;
    font-size: 0.875rem;
}
.btn-danger {
    background-color: #dc2626;
    color: var(--white);
}
.btn-danger:hover {
    background-color: #b91c1c;
}

.btn-group {
    display: flex;
    gap: 0.5rem;
}

/* ===================================
   Responsive Design
   =================================== */
@media (max-width: 968px) {
    .menu-toggle {
        display: flex;
    }

    .nav-center {
        position: relative;
    }
    
    .nav-right {
        display: none;
    }

    .mobile-lang {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        right: -100%;
        flex-direction: column;
        background-color: var(--white);
        width: 250px;
        padding: 2rem;
        box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
        transition: right 0.3s ease;
        gap: 1rem;
        z-index: 2000;
        height: calc(100vh - 70px);
        overflow-y: auto;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu .language-dropdown {
        margin-top: 1rem;
        padding-top: 1rem;
        border-top: 1px solid var(--gray);
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .products-container {
        grid-template-columns: 1fr;
    }

    .product-detail-container {
        grid-template-columns: 1fr;
    }

    .news-item {
        grid-template-columns: 1fr;
    }

    .news-content {
        padding: 1.5rem;
    }

    .news-image {
        height: 180px;
    }

    .contact-container {
        grid-template-columns: 1fr;
    }

    .timeline::before {
        left: 30px;
    }

    .timeline-content {
        width: 100%;
        margin-left: 60px !important;
        margin-right: 0 !important;
    }

    .admin-main {
        margin-left: 0;
    }

    .admin-sidebar {
        transform: translateX(-100%);
        transition: transform 0.3s ease;
    }

    .admin-sidebar.open {
        transform: translateX(0);
    }
}

@media (max-width: 640px) {
    h1 {
        font-size: 2rem;
    }

    h2 {
        font-size: 1.75rem;
    }

    .section {
        padding: 50px 0;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    .btn {
        width: 100%;
        margin-bottom: 1rem;
    }

    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.5rem;
    }

    .login-box {
        padding: 2rem 1.5rem;
        margin: 1rem;
    }
}

/* ===================================
   Loading Animation
   =================================== */
.loading {
    opacity: 0.5;
    pointer-events: none;
}

/* Success message */
.alert {
    padding: 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
}

.alert-success {
    background-color: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.alert-error {
    background-color: #fee2e2;
    color: #991b1b;
    border: 1px solid #fca5a5;
}