body {
    margin: 0;
    padding: 0;
    background-color: #111111;
    color: #eaeaea;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', '微软雅黑', 'SimHei', 'Arial', sans-serif;
}

.topbar {
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.6) 70%, rgba(0, 0, 0, 0.2) 100%); /* 增强渐变遮罩 */
    display: flex;
    justify-content: flex-end;
    align-items: center;
    padding: 20px 35px;
    font-size: 14px;
    color: #ccc;
    position: absolute; /* 绝对定位，滚动时会消失 */
    top: 0;
    left: 0;
    right: 0;
    height: 90px;
    z-index: 1000; /* 确保在其他内容之上 */
}

.topbar-logo-container {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    height: 100%;
    display: flex;
    align-items: center;
}

.topbar-logo-link {
    display: flex;
    align-items: center;
    gap: 15px;
    text-decoration: none;
}

.topbar-logo {
    height: 55px;
    width: auto;
}

.topbar-brand-text {
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    letter-spacing: 3px;
    text-transform: uppercase;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.contact-info {
    font-family: 'Microsoft YaHei', 'Noto Sans SC', '微软雅黑', sans-serif;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
    color: #eee;
    text-transform: uppercase;
    text-align: right;
}

.social-icons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-icon {
    width: 22px;
    height: 22px;
    filter: brightness(0) invert(1);
    transition: 0.3s ease;
}

.social-icon:hover {
    transform: scale(1.1);
    filter: drop-shadow(0 0 8px rgba(255, 255, 255, 0.6));
}

/* Modal styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.8);
}

.modal-content {
    position: relative;
    background-color: #1a1a1a;
    margin: 10% auto;
    padding: 20px;
    max-width: 400px;
    width: 90%;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(255,255,255,0.1);
}

@media screen and (max-width: 768px) {
    .modal-content {
        margin: 20% auto;
        padding: 15px;
    }

    .close-modal {
        font-size: 24px;
        right: 8px;
        top: 3px;
    }
}

.close-modal {
    position: absolute;
    right: 10px;
    top: 5px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close-modal:hover {
    color: #fff;
}

.qr-code-image {
    width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
}

/* New Slideshow Styles */
.hero-slideshow-container {
    height: 75vh; /* 3/4屏高度，让产品区域露出来 */
    width: 100%;
    position: relative;
    overflow: hidden;
    background-color: #111;
    margin-top: 0;
}

.slides-wrapper {
    height: 100%;
    width: 400%; /* 4 slides */
    display: flex;
    transition: transform 1s ease-in-out;
}

.slide {
    height: 100%;
    width: 25%; /* 1/4 of the wrapper */
    background-size: cover;
    background-position: center bottom;
    position: relative;
}

.slide:nth-child(3),
.slide:nth-child(4) {
    background-position: center 75%;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 2;
    text-align: center;
    color: #fff;
}

.pagination-dots {
    position: absolute;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.5);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.dot.active {
    background-color: #fff;
}


/*
.hero-title {
    font-size: 64px;
    color: #ffffff;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', '微软雅黑', sans-serif;
    text-transform: uppercase;
    letter-spacing: 4px;
    width: 90%; 
    max-width: 1200px;
    margin-bottom: 20px;

    text-shadow:
        -2px -2px 0 #000,
         2px -2px 0 #000,
        -2px  2px 0 #000,
         2px  2px 0 #000,
         0px  0px 8px #ffffff;
}
*/

/* 响应式设计 - 移动设备 */
/*
@media screen and (max-width: 768px) {
    .hero-title {
        font-size: 36px;
    }

    .hero-subtitle {
        font-size: 16px;
        width: 90%;
    }
    
    .topbar {
        padding: 5px 10px;
        flex-direction: column;
        gap: 5px;
        text-align: center;
    }

    .contact-info {
        font-size: 12px;
    }
}
*/

/* 平板设备 */
/*
@media screen and (min-width: 769px) and (max-width: 1024px) {
    .hero-title {
        font-size: 48px;
    }

    .hero-subtitle {
        font-size: 20px;
    }
}
*/

/* 横屏移动设备 */
@media screen and (max-height: 600px) and (orientation: landscape) {
    .hero-title {
        font-size: 32px;
    }

    .hero-subtitle {
        font-size: 14px;
    }
}

.hero-subtitle {
    font-size: 18px;
    color: #ffffff;
    font-family: 'Microsoft YaHei', 'Noto Sans SC', '微软雅黑', sans-serif;
    text-align: center;
    line-height: 1.6;
    letter-spacing: 1px;
    text-shadow: 0 0 6px #000;
    max-width: 90%;
    margin-bottom: 40px;
}

/* Product Section */
#product-section {
    position: relative;
    padding: 50px 20px;
    background-color: #f8f9fa;
}

#product-section h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #333;
}

#product-section .input-group {
    margin-bottom: 15px;
}

#product-section .spinner-border {
    width: 3rem;
    height: 3rem;
}

#product-section #noProductsMessage {
    color: #6c757d;
}

/* Hamburger button */
.hamburger-button {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: transparent;
    border: none;
    color: #fff;
    font-size: 22px;
    cursor: pointer;
    z-index: 1200;
    padding: 4px 8px;
}

/* Keyframe animation for continuous bounce effect */
@keyframes slideInBounce {
    0% {
        left: -320px;
    }
    60% {
        left: 8px;
    }
    80% {
        left: -5px;
    }
    100% {
        left: 0;
    }
}

/* Side drawer */
.side-drawer {
    position: fixed;
    top: 10px;
    left: -320px; /* hidden */
    width: 320px;
    height: calc(100% - 10px);
    background: rgba(0, 0, 0, 0.5); /* 更透明的黑色背景 */
    backdrop-filter: blur(20px); /* 增强模糊效果 */
    -webkit-backdrop-filter: blur(20px); /* Safari 支持 */
    box-shadow: 2px 0 20px rgba(0,0,0,0.3);
    z-index: 1150;
    display: flex;
    flex-direction: column;
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* 添加微妙的边框 */
}

.side-drawer.open {
    animation: slideInBounce 0.6s ease-out forwards;
}

.side-drawer-topbar {
    height: 90px; /* Match main topbar height */
    background-color: #1a1a1a;
    display: flex;
    align-items: center;
    padding: 0 20px;
    position: relative;
}

.close-button {
    background: none;
    border: none;
    color: white;
    font-size: 36px;
    cursor: pointer;
    position: absolute;
    right: 20px;
}

/* push menu items slightly down and left-align them */
.side-drawer-content {
    padding-top: 90px; /* 增加顶部间距 */
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Align items to the left */
    gap: 18px;
    padding-left: 30px; /* Add some padding to the left */
}

.side-drawer a {
    color: #e0e0e0; /* 浅灰色文字 */
    text-decoration: none;
    font-size: 16px; /* 缩小字号 */
    padding: 15px 16px; /* 增加上下内边距 */
    font-weight: bold;
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
    text-transform: uppercase; /* 全大写 */
    letter-spacing: 2px; /* 增加字间距 */
    line-height: 1.6; /* 增加行高 */
}

.side-drawer a::before {
    content: ""; /* 去掉短横线 */
    margin-right: 0;
    transition: margin-right 0.3s ease;
}

.side-drawer a:hover {
    color: #00ff88; /* 荧光绿高亮色 */
    background-color: rgba(0, 255, 136, 0.1); /* 淡绿色半透明背景 */
    border-left: 3px solid #00ff88; /* 荧光绿边框 */
    padding-left: 24px;
    text-shadow: 0 0 10px rgba(0, 255, 136, 0.5); /* 轻微发光效果 */
}

.side-drawer-footer {
    margin-top: auto; /* Pushes the footer to the bottom */
    padding: 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border-top: 1px solid rgba(255, 255, 255, 0.2); /* 半透明分隔线 */
}

.footer-logo {
    height: 40px;
    width: auto;
}

.side-drawer-footer span {
    font-size: 18px;
    font-weight: bold;
    color: #e0e0e0; /* 浅灰色文字 */
}

/* Optional overlay when drawer open (we'll toggle this with JS if wanted) */
.drawer-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.35);
    z-index: 1100;
    display: none;
}

.drawer-overlay.show {
    display: block;
}

.contact-page .card {
    background-color: #f8f9fa;
    border: none;
}

.contact-page .card-title {
    color: #333333;
}

.contact-page a {
    color: #007bff;
}

/* Back to Top Button */
.back-to-top-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    background-color: #ffffff;
    color: #000000;
    text-align: center;
    line-height: 50px;
    font-size: 24px;
    border-radius: 50%;
    z-index: 1000;
    transition: all 0.4s ease-in-out;
    opacity: 0;
    visibility: hidden;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}

.back-to-top-btn.show {
    opacity: 1;
    visibility: visible;
}

.back-to-top-btn:hover {
    background-color: #f0f0f0;
    color: #000000;
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0,0,0,0.4);
}

/* Bottom Bar styles */
.bottom-bar {
    background-color: #0a0a0a;
    padding: 20px 40px;
    width: 100%;
    border-top: 1px solid #222;
    box-sizing: border-box;
}

.footer-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
}

.footer-copyright p {
    margin: 0;
    font-size: 14px;
    color: #777;
    font-family: 'Arial', sans-serif;
}

.footer-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.footer-links a {
    color: #b0b0b0;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s ease;
}

.footer-links a:hover {
    color: #ffffff;
}

.footer-links .social-icon {
    width: 22px;
    height: 22px;
    filter: grayscale(100%) brightness(0.8);
    transition: filter 0.3s ease, transform 0.3s ease;
}

.footer-links .social-icon:hover {
    filter: grayscale(0%) brightness(1);
    transform: scale(1.12);
}

.bottom-bar a {
    color: #eaeaea;
    text-decoration: none;
    font-size: 16px;
    transition: color 0.3s ease;
    position: relative;
}

.bottom-bar a:hover {
    color: #ffffff;
}

.bottom-bar a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 1px;
    bottom: -2px;
    left: 0;
    background-color: #ffffff;
    transition: width 0.3s ease;
}

.bottom-bar a:hover::after {
    width: 100%;
}

/* Scroll Down Indicator */
.scroll-down-container {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: 28px;
    z-index: 2;
    animation: bounce 2.5s infinite;
    cursor: pointer;
    text-decoration: none; /* Remove underline from link */
}

.scroll-down-container:hover {
    color: #fff; /* Keep color the same on hover */
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% {
        transform: translate(-50%, 0);
    }
    40% {
        transform: translate(-50%, -25px);
    }
    60% {
        transform: translate(-50%, -15px);
    }
}

.title-uppercase {
    text-transform: uppercase;
}
#main-content {
    animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
