/* 滚动条样式 */
::-webkit-scrollbar {
    width: 3px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
}

::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* 基础样式重置 */
:root {
    --navbar-primary-color: #1e88e5;
    --navbar-secondary-color: #0d47a1;
    --navbar-accent-color: #ff9800;
    --navbar-text-color: #333;
    --navbar-light-text: #777;
    --navbar-bg-light: #f5f5f5;
    --navbar-white: #ffffff;
    --navbar-transition: all 0.3s ease;

    --footer-bg-color: #222;
    --footer-text-color: rgba(255, 255, 255, 0.7);
    --footer-hover-color: red;
    --footer-social-bg: rgba(255, 255, 255, 0.1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Montserrat', 'Arial', sans-serif;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--navbar-transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    height: auto;
}

/* 导航栏样式 */
.navbar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    transition: all 0.5s ease;
    box-shadow: none;
    color: white;
}

.navbar-container.dropdown-active {
    background-color: white !important;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container.dropdown-active .navbar-menu-item a,
.navbar-container.dropdown-active .navbar-language-selector {
    color: black !important;
}

.navbar-language-icon-1 {
    display: block;
}
.navbar-language-icon-2 {
    display: none;
}

.navbar-container.dropdown-active .navbar-logo-state1 {
    display: none;
}
.navbar-container.dropdown-active .navbar-logo-state2 {
    display: block;
}

.navbar-container.dropdown-active .navbar-language-icon-1 {
    display: none;
}
.navbar-container.dropdown-active .navbar-language-icon-2 {
    display: block;
}

.navbar-wrapper {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 5%;
    max-width: 1800px;
    margin: 0 auto;
}

.navbar-left {
    display: flex;
    align-items: center;
}

.navbar-logo {
    height: 30px;
    width: auto;
    transition: opacity 0.5s ease;
}

.navbar-logo-state1 {
    display: block;
}

.navbar-logo-state2 {
    display: none;
}

.navbar-right {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar-menu {
    display: flex;
    align-items: center;
    gap: 35px;
}

.navbar-menu-item {
    position: relative;
}

.navbar-menu-item a {
    font-weight: bold;
    font-size: 20px;
    cursor: pointer;
    white-space: nowrap;
}

.navbar-menu-item a:hover {
    color: #e60012;
}

.navbar-dropdown-container {
    position: fixed;
    left: 0;
    width: 100%;
    background-color: rgba(255,255,255,0.9);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
    display: none;
    z-index: 999;
    border-top: 1px solid #eee;
}

.navbar-dropdown-content {
    width: 100%;
    padding: 20px 5%;
    max-width: 1400px;
    margin: 0 auto;
}

.navbar-menu-item:hover .navbar-dropdown-container {
    display: block;
}

.navbar-submenu-categories {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
    flex-wrap: wrap;
}

.navbar-submenu-category {
    padding: 10px 15px;
    cursor: pointer;
    font-weight: bold;
    color: #666;
    border-radius: 4px;
    transition: all 0.3s;
}

.navbar-submenu-category:hover,
.navbar-submenu-category.active {
    color: #e60012;
    background-color: #f9f9f9;
}

.navbar-products-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
}

.navbar-product-category {
    display: none;
    grid-column: 1 / -1;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

.navbar-product-category.active {
    display: grid;
}

.navbar-product-item {
    border-radius: 10px;
    min-height: 300px;
    max-height: 400px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.navbar-product-item:hover {
    transform: translateY(-5px);
}

.navbar-product-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.navbar-product-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0, 0, 0, 0.7));
    color: white;
    padding: 15px 10px;
    font-size: 16px;
    z-index: 2;
}

.navbar-video-thumbnail {
    position: relative;
    cursor: pointer;
}

.navbar-video-thumbnail::after {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.8);
    border-radius: 50%;
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23e60012"><path d="M8 5v14l11-7z"/></svg>');
    background-repeat: no-repeat;
    background-position: 55% 50%;
    background-size: 30px;
    transition: all 0.3s;
}

.navbar-video-thumbnail:hover::after {
    background-color: rgba(230, 0, 18, 0.8);
    background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="%23ffffff"><path d="M8 5v14l11-7z"/></svg>');
}

.navbar-video-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    z-index: 2000;
    justify-content: center;
    align-items: center;
}

.navbar-video-modal.active {
    display: flex;
}

.navbar-video-modal-content {
    width: 80%;
    max-width: 1200px;
    position: relative;
}

.navbar-video-modal video {
    width: 100%;
    height: auto;
    max-height: 80vh;
}

.navbar-close-video {
    position: absolute;
    top: -40px;
    right: 0;
    color: white;
    font-size: 30px;
    cursor: pointer;
}

.navbar-support-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
    padding: 20px 0;
}

.navbar-support-item {
    flex: 0 0 calc(25% - 20px);
    min-width: 150px;
    text-align: center;
    cursor: pointer;
}

.navbar-support-image {
    width: 60px;
    height: 60px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: #e60012;
}

.navbar-support-title {
    font-size: 14px;
    color: #333;
}

.navbar-language-selector {
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
}

.navbar-language-selector span {
    font-size: 20px;
}

.navbar-language-icon {
    margin-right: 5px;
    font-size: 18px;
    height: 1em;
    width: 1em;
}

.navbar-language-options {
    position: absolute;
    top: 100%;
    right: 0;
    background-color: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    padding: 10px 0;
    display: none;
    min-width: 120px;
    z-index: 1001;
}

.navbar-language-selector:hover .navbar-language-options {
    display: block;
}

.navbar-language-option {
    padding: 8px 15px;
    color: #333;
    text-decoration: none;
    display: block;
    font-size: 16px;
}

.navbar-language-option:hover {
    background-color: #f5f5f5;
    color: #e60012;
}

/* 滚动后的样式 */
.navbar-container.scrolled {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.navbar-container.scrolled .navbar-menu-item a,
.navbar-container.scrolled .navbar-language-selector {
    color: black;
}

.navbar-container.scrolled .navbar-logo-state1 {
    display: none;
}

.navbar-container.scrolled .navbar-logo-state2 {
    display: block;
}

.navbar-container.scrolled .navbar-language-icon-1 {
    display: none;
}

.navbar-container.scrolled .navbar-language-icon-2 {
    display: block;
}

/* 页脚样式 */
.footer-container {
    background-color: var(--footer-bg-color);
    color: var(--footer-text-color);
    padding: 60px 0 20px;
}

.footer-wrapper {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-column-title {
    font-size: 20px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
    color: white;
}

.footer-column-title::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px;
    height: 2px;
    background-color: rgb(189, 30, 33);
}

.footer-links-item {
    margin-bottom: 10px;
}

.footer-links-item a {
    color: var(--footer-text-color);
}

.footer-links-item a:hover {
    color: var(--footer-hover-color);
    padding-left: 5px;
}

.footer-social-links {
    display: flex;
    gap: 15px;
}

.footer-social-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background-color: var(--footer-social-bg);
    border-radius: 50%;
    color: white;
    transition: var(--navbar-transition);
}

.footer-social-link:hover {
    background-color: rgb(189, 30, 33);
    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.5);
    font-size: 14px;
}

.footer-contact-info {
    flex: 1;
    min-width: 300px;
}

.footer-contact-text {
    margin-bottom: 15px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 1200px) {
    .navbar-products-container,
    .navbar-product-category {
        grid-template-columns: repeat(2, 1fr);
    }

    .navbar-support-item {
        flex: 0 0 calc(33.33% - 20px);
    }
}

@media (max-width: 992px) {
    body {
        padding-top: 120px;
    }

    .navbar-wrapper {
        flex-direction: column;
        padding: 10px;
    }

    .navbar-right {
        width: 100%;
        justify-content: center;
        margin-top: 10px;
    }

    .navbar-menu {
        flex-wrap: wrap;
        justify-content: center;
    }

    .navbar-support-item {
        flex: 0 0 calc(50% - 20px);
    }
}

@media (max-width: 768px) {
    .navbar-menu-item a {
        font-size: 14px;
    }

    .navbar-language-selector span {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .navbar-products-container,
    .navbar-product-category {
        grid-template-columns: 1fr;
    }

    .navbar-support-item {
        flex: 0 0 100%;
    }

    .navbar-product-image {
        height: 120px;
    }
}