/* ========================================
   POWERCAP Website - Modern Dark Theme
   Inspired by PantherVision
   ======================================== */

/* CSS Variables */
:root {
    --primary-color: #c8ff00;
    --primary-dark: #a8d600;
    --secondary-color: #1a1a1a;
    --text-light: #ffffff;
    --text-gray: #888888;
    --text-dark: #333333;
    --bg-dark: #0a0a0a;
    --bg-gray: #1a1a1a;
    --bg-light: #f5f5f5;
    --border-color: #333333;
    --success-color: #4caf50;
    --error-color: #f44336;
    --transition: all 0.3s ease;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 10px 40px rgba(0, 0, 0, 0.4);
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    overflow-x: hidden;
}

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

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-weight: 600;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-size: 14px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
    gap: 8px;
}

/* Language Selector */
.lang-selector {
    background: transparent;
    color: var(--text-light);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    outline: none;
    margin-right: 12px;
    transition: var(--transition);
}

.lang-selector:hover {
    border-color: var(--primary-color);
}

.lang-selector option {
    background: var(--bg-dark);
    color: var(--text-light);
}

@media (max-width: 768px) {
    .lang-selector {
        font-size: 12px;
        padding: 6px 8px;
        margin-right: 8px;
    }
}

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

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: var(--shadow);
}

.btn-secondary {
    background-color: transparent;
    color: var(--text-light);
    border: 2px solid var(--text-light);
}

.btn-secondary:hover {
    background-color: var(--text-light);
    color: var(--secondary-color);
}

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

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

.btn-block {
    width: 100%;
}

/* Section Tags */
.section-tag {
    display: inline-block;
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 16px;
}

.section-title {
    font-size: 36px;
    margin-bottom: 40px;
}

/* Navigation */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    padding: 20px 0;
    transition: var(--transition);
}

.navbar.scrolled {
    background-color: rgba(10, 10, 10, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
}

.logo-text {
    color: var(--primary-color);
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 40px;
}

.nav-link {
    font-size: 14px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--primary-color);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 20px;
}

.cart-btn {
    position: relative;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
    transition: var(--transition);
}

.cart-btn:hover {
    color: var(--primary-color);
}

.cart-count {
    position: absolute;
    top: -8px;
    right: -8px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 10px;
    font-weight: 700;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--text-light);
    transition: var(--transition);
}

/* Hero Section */
.hero {
    position: relative;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, #1a1a1a 0%, #0a0a0a 100%);
    background-image: url('https://images.unsplash.com/photo-1551632811-561732d1e306?w=1920');
    background-size: cover;
    background-position: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.7) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 0 20px;
}

.hero-title {
    font-size: 64px;
    font-weight: 700;
    margin-bottom: 20px;
    line-height: 1.1;
}

.hero-title .highlight {
    color: var(--primary-color);
}

.hero-subtitle {
    font-size: 24px;
    font-weight: 300;
    margin-bottom: 16px;
    color: var(--text-light);
}

.hero-desc {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 40px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    flex-wrap: wrap;
}

.hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    color: var(--text-gray);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 2px;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateX(-50%) translateY(0); }
    40% { transform: translateX(-50%) translateY(-10px); }
    60% { transform: translateX(-50%) translateY(-5px); }
}

/* Best Sellers Section */
.best-sellers {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 60px;
}

.view-all {
    color: var(--text-gray);
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.view-all:hover {
    color: var(--primary-color);
}

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

.product-card {
    background-color: var(--bg-gray);
    border-radius: 8px;
    overflow: hidden;
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.product-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.product-actions {
    position: absolute;
    bottom: 15px;
    left: 15px;
    right: 15px;
    display: flex;
    gap: 10px;
    opacity: 0;
    transform: translateY(20px);
    transition: var(--transition);
}

.product-card:hover .product-actions {
    opacity: 1;
    transform: translateY(0);
}

.product-actions button {
    flex: 1;
    padding: 10px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: var(--transition);
}

.btn-add-cart {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.btn-quick-view {
    background-color: rgba(255,255,255,0.9);
    color: var(--secondary-color);
}

/* 桌面端隐藏移动端按钮 */
.product-actions-mobile {
    display: none;
}

/* 移动端产品卡片按钮始终显示 */
@media (max-width: 768px) {
    .product-actions {
        display: none; /* 移动端隐藏悬浮按钮 */
    }
    
    .product-actions-mobile {
        display: flex;
        gap: 10px;
        margin-top: 12px;
        padding-top: 12px;
        border-top: 1px solid var(--border-color);
    }
    
    .product-actions-mobile button {
        flex: 1;
        padding: 10px 8px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
        border: none;
        border-radius: 4px;
        cursor: pointer;
        transition: var(--transition);
    }
    
    .product-actions-mobile .btn-add-cart {
        background-color: var(--primary-color);
        color: var(--secondary-color);
    }
    
    .product-actions-mobile .btn-quick-view {
        background-color: rgba(255,255,255,0.9);
        color: var(--secondary-color);
    }
}

.product-info {
    padding: 20px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 8px;
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
}

.current-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 14px;
    color: var(--text-gray);
    text-decoration: line-through;
}

/* Product News Section - 产品新闻 */
.product-news {
    padding: 100px 0;
    background-color: var(--bg-gray);
}

.product-news .section-header {
    text-align: center;
    display: block;
    margin-bottom: 60px;
}

.product-news .section-title {
    font-size: 36px;
    margin-bottom: 0;
}

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

.news-card {
    background-color: var(--bg-dark);
    border-radius: 12px;
    overflow: hidden;
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.news-image {
    position: relative;
    aspect-ratio: 16/10;
    overflow: hidden;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    font-size: 11px;
    font-weight: 700;
    padding: 5px 12px;
    border-radius: 20px;
    text-transform: uppercase;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 12px;
    color: var(--text-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.4;
    color: var(--text-light);
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-link {
    font-size: 14px;
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: var(--transition);
}

.news-link:hover {
    gap: 12px;
}

@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
}

/* News Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.news-modal.active {
    opacity: 1;
    visibility: visible;
}

.news-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.8);
}

.news-modal-content {
    position: relative;
    background: var(--bg-gray);
    border-radius: 12px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    transform: translateY(20px);
    transition: var(--transition);
    border: 1px solid var(--border-color);
}

.news-modal.active .news-modal-content {
    transform: translateY(0);
}

.news-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    color: var(--text-light);
    cursor: pointer;
    z-index: 10;
    transition: var(--transition);
}

.news-modal-close:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.news-modal-content > img {
    width: 100%;
    height: 250px;
    object-fit: cover;
}

.news-modal-body {
    padding: 30px;
}

.news-modal-date {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 12px;
    display: block;
}

.news-modal-body h2 {
    font-size: 24px;
    margin-bottom: 16px;
    color: var(--text-light);
}

.news-modal-body p {
    color: var(--text-gray);
    line-height: 1.8;
    font-size: 15px;
}

/* Product Categories */
.product-categories {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

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

.category-card {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    aspect-ratio: 3/4;
}

.category-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.category-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.category-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, transparent 100%);
}

.category-content h3 {
    font-size: 24px;
    margin-bottom: 10px;
}

.category-content p {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 20px;
}

/* Features Section */
.features {
    padding: 80px 0;
    background-color: var(--bg-gray);
}

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

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

.feature-icon {
    width: 60px;
    height: 60px;
    background-color: var(--bg-dark);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 24px;
    color: var(--primary-color);
}

.feature-item h4 {
    font-size: 16px;
    margin-bottom: 8px;
}

.feature-item p {
    font-size: 14px;
    color: var(--text-gray);
}

/* About Section */
.about {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
    align-items: center;
}

.about-content h2 {
    font-size: 36px;
    margin-bottom: 24px;
}

.about-content p {
    color: var(--text-gray);
    margin-bottom: 20px;
}

.about-stats {
    display: flex;
    gap: 40px;
    margin: 40px 0;
}

.stat {
    text-align: center;
}

.stat-number {
    display: block;
    font-size: 36px;
    font-weight: 700;
    color: var(--primary-color);
}

.stat-label {
    font-size: 14px;
    color: var(--text-gray);
}

.about-video {
    position: relative;
    aspect-ratio: 16/9;
    background-color: var(--bg-gray);
    border-radius: 8px;
    overflow: hidden;
}

.video-placeholder {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--transition);
}

.video-placeholder:hover {
    background-color: rgba(200, 255, 0, 0.1);
}

.video-placeholder i {
    font-size: 64px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

/* Testimonials Section */
.testimonials {
    padding: 100px 0;
    background-color: var(--bg-gray);
    text-align: center;
}

.testimonial-card {
    max-width: 700px;
    margin: 0 auto;
    padding: 40px;
    background-color: var(--bg-dark);
    border-radius: 8px;
    display: none;
}

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

.testimonial-quote {
    font-size: 48px;
    color: var(--primary-color);
    margin-bottom: 20px;
}

.testimonial-text {
    font-size: 18px;
    line-height: 1.8;
    margin-bottom: 30px;
    color: var(--text-light);
}

.testimonial-author {
    display: flex;
    flex-direction: column;
    gap: 5px;
}

.author-name {
    font-weight: 600;
}

.author-title {
    font-size: 14px;
    color: var(--text-gray);
}

.testimonial-nav {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 40px;
}

.nav-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid var(--border-color);
    background: none;
    color: var(--text-light);
    cursor: pointer;
    transition: var(--transition);
}

.nav-btn:hover {
    border-color: var(--primary-color);
    color: var(--primary-color);
}

/* Trusted By Section */
.trusted-by {
    padding: 80px 0;
    background-color: var(--bg-dark);
    text-align: center;
}

.trusted-title {
    font-size: 14px;
    text-transform: uppercase;
    letter-spacing: 2px;
    color: var(--text-gray);
    margin-bottom: 40px;
}

.retailers-row {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 50px;
    flex-wrap: wrap;
}

.retailer {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-gray);
    opacity: 0.5;
    transition: var(--transition);
}

.retailer:hover {
    opacity: 1;
    color: var(--text-light);
}

/* Newsletter Section */
.newsletter {
    padding: 80px 0;
    background-color: var(--primary-color);
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter-content h3 {
    font-size: 28px;
    color: var(--secondary-color);
    margin-bottom: 10px;
}

.newsletter-content p {
    color: var(--secondary-color);
    opacity: 0.8;
    margin-bottom: 30px;
}

.newsletter-form {
    display: flex;
    gap: 10px;
}

.newsletter-form input {
    flex: 1;
    padding: 16px 24px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
}

.newsletter-form button {
    background-color: var(--secondary-color);
    color: var(--text-light);
}

/* Contact Section */
.contact {
    padding: 100px 0;
    background-color: var(--bg-dark);
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 80px;
}

.contact-info h2 {
    font-size: 36px;
    margin-bottom: 40px;
}

.info-items {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.info-item {
    display: flex;
    gap: 20px;
}

.info-item i {
    font-size: 24px;
    color: var(--primary-color);
    width: 30px;
}

.info-item h4 {
    font-size: 16px;
    margin-bottom: 5px;
}

.info-item p {
    color: var(--text-gray);
    font-size: 14px;
}

.contact-form-wrapper {
    background-color: var(--bg-gray);
    padding: 40px;
    border-radius: 8px;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.form-group {
    margin-bottom: 20px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 16px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px;
    color: var(--text-light);
    font-size: 14px;
    transition: var(--transition);
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

/* Footer */
.footer {
    background-color: var(--bg-gray);
    padding: 80px 0 30px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1.5fr;
    gap: 60px;
    margin-bottom: 60px;
}

.footer-brand h3 {
    font-size: 24px;
    color: var(--primary-color);
    margin-bottom: 16px;
}

.footer-brand p {
    color: var(--text-gray);
    margin-bottom: 24px;
}

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

.social-links a {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--bg-dark);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.social-links a:hover {
    background-color: var(--primary-color);
    color: var(--secondary-color);
}

.footer-links h4 {
    font-size: 16px;
    margin-bottom: 24px;
}

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

.footer-links li {
    margin-bottom: 12px;
}

.footer-links a {
    color: var(--text-gray);
    font-size: 14px;
}

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

.footer-newsletter h4 {
    font-size: 16px;
    margin-bottom: 16px;
}

.footer-newsletter p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 20px;
}

.footer-form {
    display: flex;
}

.footer-form input {
    flex: 1;
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 4px 0 0 4px;
    color: var(--text-light);
}

.footer-form button {
    padding: 12px 20px;
    background-color: var(--primary-color);
    border: none;
    border-radius: 0 4px 4px 0;
    cursor: pointer;
    color: var(--secondary-color);
}

.footer-bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 30px;
    border-top: 1px solid var(--border-color);
}

.footer-bottom p {
    font-size: 14px;
    color: var(--text-gray);
}

.footer-bottom-links {
    display: flex;
    gap: 30px;
}

.footer-bottom-links a {
    font-size: 14px;
    color: var(--text-gray);
}

.footer-bottom-links a:hover {
    color: var(--primary-color);
}

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

.chat-toggle {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    font-size: 24px;
    cursor: pointer;
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
    position: relative;
}

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

.chat-badge {
    position: absolute;
    top: -5px;
    right: -5px;
    background-color: var(--error-color);
    color: white;
    font-size: 11px;
    font-weight: 700;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.chat-window {
    position: absolute;
    bottom: 80px;
    right: 0;
    width: 350px;
    height: 450px;
    background-color: var(--bg-gray);
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}

.chat-window.active {
    display: flex;
}

.chat-header {
    display: flex;
    align-items: center;
    padding: 16px;
    background-color: var(--bg-dark);
    border-bottom: 1px solid var(--border-color);
}

.chat-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    margin-right: 12px;
}

.chat-info {
    flex: 1;
}

.chat-info h4 {
    font-size: 14px;
    margin-bottom: 2px;
}

.status {
    font-size: 12px;
    color: var(--success-color);
    display: flex;
    align-items: center;
    gap: 5px;
}

.status i {
    font-size: 8px;
}

.chat-close {
    background: none;
    border: none;
    color: var(--text-gray);
    font-size: 18px;
    cursor: pointer;
}

.chat-body {
    flex: 1;
    padding: 16px;
    overflow-y: auto;
}

.chat-message {
    margin-bottom: 16px;
    max-width: 80%;
}

.chat-message.system {
    background-color: var(--bg-dark);
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
}

.chat-message.user {
    margin-left: auto;
    background-color: var(--primary-color);
    color: var(--secondary-color);
    padding: 12px;
    border-radius: 12px;
    font-size: 14px;
}

.chat-footer {
    padding: 16px;
    border-top: 1px solid var(--border-color);
}

.chat-input-wrapper {
    display: flex;
    gap: 10px;
}

.chat-input {
    flex: 1;
    padding: 12px 16px;
    background-color: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 24px;
    color: var(--text-light);
    font-size: 14px;
}

.chat-input:focus {
    outline: none;
    border-color: var(--primary-color);
}

.chat-send {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: var(--primary-color);
    border: none;
    color: var(--secondary-color);
    cursor: pointer;
    transition: var(--transition);
}

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

/* Cart Modal */
.cart-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: none;
}

.cart-modal.active {
    display: block;
}

.cart-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.7);
}

.cart-content {
    position: absolute;
    top: 0;
    right: 0;
    width: 400px;
    height: 100%;
    background-color: var(--bg-gray);
    display: flex;
    flex-direction: column;
    transform: translateX(100%);
    transition: transform 0.3s ease;
}

.cart-modal.active .cart-content {
    transform: translateX(0);
}

.cart-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.cart-header h3 {
    font-size: 18px;
}

.cart-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
}

.cart-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
}

.cart-empty {
    text-align: center;
    padding: 60px 20px;
    color: var(--text-gray);
}

.cart-empty i {
    font-size: 48px;
    margin-bottom: 16px;
}

.cart-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border-color);
}

.cart-item-image {
    width: 80px;
    height: 80px;
    border-radius: 4px;
    overflow: hidden;
}

.cart-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cart-item-details {
    flex: 1;
}

.cart-item-title {
    font-size: 14px;
    margin-bottom: 4px;
}

.cart-item-price {
    color: var(--primary-color);
    font-weight: 600;
}

.cart-item-remove {
    background: none;
    border: none;
    color: var(--text-gray);
    cursor: pointer;
    font-size: 16px;
}

.cart-item-remove:hover {
    color: var(--error-color);
}

.cart-footer {
    padding: 20px;
    border-top: 1px solid var(--border-color);
}

.cart-total {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    font-size: 18px;
}

.total-price {
    font-weight: 700;
    color: var(--primary-color);
}

/* Payment Modal */
.payment-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
}

.payment-modal.active {
    display: flex;
}

.payment-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0,0,0,0.8);
}

.payment-content {
    position: relative;
    width: 400px;
    max-height: 90vh;
    background-color: var(--bg-gray);
    border-radius: 12px;
    overflow: hidden;
    z-index: 1;
    display: flex;
    flex-direction: column;
}

.payment-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.payment-close {
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 20px;
    cursor: pointer;
}

.payment-body {
    padding: 30px;
    text-align: center;
    overflow-y: auto;
    flex: 1;
    max-height: calc(90vh - 80px);
}

.payment-amount {
    margin-bottom: 30px;
}

.payment-amount span {
    font-size: 14px;
    color: var(--text-gray);
}

.payment-amount h2 {
    font-size: 36px;
    color: var(--primary-color);
    margin-top: 10px;
}

.payment-methods {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-bottom: 30px;
}

.payment-method {
    padding: 15px 30px;
    border: 2px solid var(--border-color);
    border-radius: 8px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.payment-method.active {
    border-color: var(--primary-color);
    background-color: rgba(200, 255, 0, 0.1);
}

.payment-method i {
    font-size: 32px;
}

.payment-method[data-method="alipay"] i {
    color: #1677ff;
}

.payment-method[data-method="wechat"] i {
    color: #07c160;
}

.qr-code {
    padding: 20px;
    background-color: white;
    border-radius: 8px;
}

.qr-code img {
    width: 200px;
    height: 200px;
}

.qr-code p {
    margin-top: 15px;
    color: var(--text-dark);
    font-size: 14px;
}

/* ========================================
   Contact Float Widget - 联系信息悬浮球
   ======================================== */

/* 桌面端 - 右侧悬浮 */
.contact-float {
    position: fixed;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
    z-index: 999;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.contact-float-item {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 50px;
    height: 50px;
    background: var(--bg-gray);
    border: 1px solid var(--border-color);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
    box-shadow: var(--shadow);
}

.contact-float-item:hover {
    background: var(--primary-color);
    border-color: var(--primary-color);
    transform: scale(1.1);
}

.contact-float-item:hover i {
    color: var(--secondary-color);
}

.contact-float-item i {
    font-size: 20px;
    color: var(--text-light);
    transition: var(--transition);
}

/* 悬浮提示 - 文字（只有没有二维码的按钮显示） */
.contact-float-item:not(:has(.qr-preview))::before {
    content: attr(data-label);
    position: absolute;
    right: 60px;
    background: var(--bg-gray);
    color: var(--text-light);
    padding: 8px 12px;
    border-radius: 4px;
    font-size: 13px;
    white-space: nowrap;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    border: 1px solid var(--border-color);
    z-index: 1000;
}

.contact-float-item:not(:has(.qr-preview)):hover::before {
    opacity: 1;
    visibility: visible;
}

/* 悬停二维码预览 */
.contact-float-item .qr-preview {
    position: absolute;
    right: 70px;
    top: 50%;
    transform: translateY(-50%);
    background: var(--bg-gray);
    padding: 12px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-lg);
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
    z-index: 1002;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 140px;
    pointer-events: none;
}

.contact-float-item:hover .qr-preview {
    opacity: 1;
    visibility: visible;
}

.contact-float-item .qr-preview img {
    width: 120px;
    height: 120px;
    border-radius: 4px;
    object-fit: contain;
    display: block;
    background: white;
}

.contact-float-item .qr-preview span {
    font-size: 12px;
    color: var(--text-gray);
    white-space: nowrap;
}

/* 二维码弹窗 */
.contact-qr-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3001;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.8);
}

.contact-qr-modal.active {
    display: flex;
}

.contact-qr-content {
    background: var(--bg-gray);
    border-radius: 12px;
    padding: 24px;
    text-align: center;
    max-width: 320px;
    width: 90%;
    border: 1px solid var(--border-color);
}

.contact-qr-content h4 {
    margin-bottom: 16px;
    color: var(--text-light);
    font-size: 16px;
}

.contact-qr-content img {
    width: 200px;
    height: 200px;
    border-radius: 8px;
    object-fit: cover;
    margin-bottom: 16px;
}

.contact-qr-content p {
    color: var(--text-gray);
    font-size: 14px;
    margin-bottom: 16px;
}

.contact-qr-close {
    background: var(--primary-color);
    color: var(--secondary-color);
    border: none;
    padding: 10px 24px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    transition: var(--transition);
}

.contact-qr-close:hover {
    background: var(--primary-dark);
}

/* 邮箱提示 */
.email-toast {
    position: fixed;
    top: 100px;
    left: 50%;
    transform: translateX(-50%) translateY(-20px);
    background: var(--success-color);
    color: white;
    padding: 12px 24px;
    border-radius: 4px;
    font-size: 14px;
    z-index: 3002;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.email-toast.active {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* 移动端 - 底部固定联系栏 */
@media (max-width: 768px) {
    .contact-float {
        position: fixed;
        right: 0;
        left: 0;
        top: auto;
        bottom: 0;
        transform: none;
        flex-direction: row;
        justify-content: space-around;
        background: var(--bg-gray);
        border-top: 1px solid var(--border-color);
        padding: 10px 0;
        gap: 0;
        z-index: 998;
    }
    
    .contact-float-item {
        width: auto;
        height: auto;
        background: transparent;
        border: none;
        border-radius: 0;
        box-shadow: none;
        flex-direction: column;
        gap: 4px;
        padding: 4px 12px;
    }
    
    .contact-float-item:hover {
        background: transparent;
        transform: none;
    }
    
    .contact-float-item i {
        font-size: 22px;
        color: var(--text-light);
    }
    
    .contact-float-item span {
        font-size: 11px;
        color: var(--text-gray);
    }
    
    .contact-float-item:hover i {
        color: var(--primary-color);
    }
    
    .contact-float-item::before {
        display: none;
    }
    
    /* 移动端隐藏提示文字，显示下方标签 */
    .contact-float-item .mobile-label {
        display: block;
    }
    
    /* 调整页面底部padding，避免被悬浮栏遮挡 */
    body {
        padding-bottom: 70px;
    }
    
    /* 调整聊天组件位置 */
    .chat-widget {
        bottom: 80px;
    }
    
    /* 调整购物车位置 */
    .cart-content {
        padding-bottom: 70px;
    }
}

@media (min-width: 769px) {
    .contact-float-item .mobile-label {
        display: none;
    }
}

/* Responsive Design */
@media (max-width: 1024px) {
    .products-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 0;
        right: 0;
        background-color: var(--bg-dark);
        flex-direction: column;
        padding: 20px;
        gap: 20px;
        transform: translateY(-150%);
        transition: var(--transition);
    }
    
    .nav-menu.active {
        transform: translateY(0);
    }
    
    .mobile-toggle {
        display: flex;
    }
    
    .hero-title {
        font-size: 40px;
    }
    
    .hero-subtitle {
        font-size: 18px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .categories-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
    
    .footer-bottom {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    
    .cart-content {
        width: 100%;
    }
    
    .chat-window {
        width: calc(100vw - 40px);
        right: -10px;
    }
}

@media (max-width: 480px) {
    .hero-title {
        font-size: 32px;
    }
    
    .products-grid {
        grid-template-columns: 1fr;
    }
    
    .features-grid {
        grid-template-columns: 1fr;
    }
    
    .about-stats {
        flex-direction: column;
        gap: 20px;
    }
    
    .newsletter-form {
        flex-direction: column;
    }
    
    .payment-content {
        width: calc(100% - 40px);
    }
}

/* ========================================
   Product News Section
   ======================================== */
.product-news {
    padding: 80px 0;
    background: var(--bg-dark);
}

.product-news .section-header {
    text-align: center;
    margin-bottom: 50px;
}

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

.news-card {
    background: var(--bg-gray);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid var(--border-color);
    transition: var(--transition);
    cursor: pointer;
}

.news-card:hover {
    transform: translateY(-8px);
    border-color: var(--primary-color);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.news-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
    position: relative;
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

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

.news-category {
    position: absolute;
    top: 12px;
    left: 12px;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 6px 12px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.news-content {
    padding: 24px;
}

.news-date {
    font-size: 13px;
    color: var(--text-gray);
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.news-date i {
    font-size: 12px;
}

.news-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 12px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-excerpt {
    font-size: 14px;
    color: var(--text-gray);
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--primary-color);
    font-size: 14px;
    font-weight: 500;
    transition: var(--transition);
}

.news-read-more:hover {
    gap: 12px;
}

/* News Modal */
.news-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 3000;
    display: none;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, 0.85);
    padding: 20px;
}

.news-modal.active {
    display: flex;
}

.news-modal-content {
    background: var(--bg-gray);
    border-radius: 16px;
    max-width: 800px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    border: 1px solid var(--border-color);
    position: relative;
}

.news-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    border: none;
    color: var(--text-light);
    font-size: 18px;
    cursor: pointer;
    transition: var(--transition);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.news-modal-close:hover {
    background: var(--primary-color);
    color: var(--secondary-color);
}

.news-modal-image {
    width: 100%;
    height: 300px;
    overflow: hidden;
}

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

.news-modal-body {
    padding: 32px;
}

.news-modal-category {
    display: inline-block;
    background: var(--primary-color);
    color: var(--secondary-color);
    padding: 6px 14px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 16px;
}

.news-modal-date {
    font-size: 14px;
    color: var(--text-gray);
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.news-modal-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 20px;
    line-height: 1.3;
}

.news-modal-text {
    font-size: 16px;
    color: var(--text-gray);
    line-height: 1.8;
}

/* ========================================
   FAQ Section - SEO/GEO Optimization
   ======================================== */

.faq-section {
    padding: 100px 0;
    background: var(--bg-gray);
}

.faq-section .section-header {
    text-align: center;
    margin-bottom: 60px;
    display: block;
}

.faq-section .section-header .section-tag,
.faq-section .section-header .section-title {
    display: block;
    text-align: center;
}

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

.faq-item {
    background: var(--bg-dark);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 30px;
    transition: var(--transition);
}

.faq-item:hover {
    border-color: var(--primary-color);
    transform: translateY(-4px);
}

.faq-question {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-light);
    margin-bottom: 16px;
    line-height: 1.4;
}

.faq-answer {
    font-size: 15px;
    color: var(--text-gray);
    line-height: 1.7;
}

.faq-answer p {
    margin: 0;
}

/* Contact description */
.contact-desc {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 30px;
    line-height: 1.6;
}

/* Responsive FAQ */
@media (max-width: 1024px) {
    .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 768px) {
    .news-grid {
        grid-template-columns: 1fr;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        padding: 0 20px;
    }
    
    .faq-item {
        padding: 24px;
    }
    
    .faq-question {
        font-size: 16px;
    }
    
    .faq-section {
        padding: 60px 0;
    }
    
    .news-modal-content {
        margin: 10px;
        max-height: 95vh;
    }
    
    .news-modal-image {
        height: 200px;
    }
    
    .news-modal-body {
        padding: 20px;
    }
    
    .news-modal-title {
        font-size: 22px;
    }
}
