:root {
    --primary-bg: #121212;
    --secondary-bg: #1E1E1E;
    --accent-bg: #2D2D2D;
    --text-primary: #FFFFFF;
    --text-secondary: #CCCCCC;
    --highlight: #4CAF50;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


/* RTL Support */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .close-modal {
    right: auto;
    left: 20px;
}

[lang="ar"] .nav-container {
    padding: 0 1rem 0 1rem;
    /* 增加右侧内边距 */
}

[lang="ar"] .menu-toggle {
    margin-left: 1rem;
    /* 增加与logo的间距 */
}

[lang="ar"] .logo {
    margin-right: 1rem;
    /* logo右侧增加间距 */
}

.language-option {
    display: flex;
    align-items: center;
    gap: 8px;
}

.flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
}


body {
    font-family: 'Arial', sans-serif;
    background-color: var(--primary-bg);
    color: var(--text-primary);
    line-height: 1.6;
}

/* Navigation */
.navbar {
    position: fixed;
    width: 100%;
    background-color: var(--secondary-bg);
    padding: 1rem 0;
    z-index: 1000;
}

.nav-container {
    width: 100%;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 200px 1fr 200px;
    align-items: center;
    padding: 0 2rem;
}

.logo {
    justify-self: start;
    grid-column: 1;
}

.logo img {
    height: 40px;
    width: auto;
    vertical-align: middle;
}


.nav-links {
    justify-self: center;
    display: flex;
    gap: 2rem;
    grid-column: 2;
}

.language-switcher {
    justify-self: end;
    display: flex;
    align-items: center;
    grid-column: 3;
}

.nav-links a {
    color: var(--text-primary);
    text-decoration: none;
    position: relative;
    padding-bottom: 5px;
    font-weight: bold;
}

.nav-links a:hover {
    color: var(--highlight);
}



#langSelect {
    padding: 5px 10px 5px 35px;
    /* 左侧留出空间给国旗 */
    border-radius: 4px;
    background-color: #000000;
    color: #ffffff;
    outline: none;
    border: 1px solid #333333;
    position: relative;
}

#langSelect option {
    background-color: #000000;
    color: #ffffff;
    padding-left: 30px;
    /* 为国旗留出空间 */
    background-repeat: no-repeat;
    background-position: 5px center;
    background-size: 20px 15px;
}

/* 为每个语言选项设置对应的国旗背景图 */
#langSelect option[value="am"] {
    background-image: url('https://flagcdn.com/et.svg');
}

#langSelect option[value="ar"] {
    background-image: url('https://flagcdn.com/sa.svg');
}

#langSelect option[value="bg"] {
    background-image: url('https://flagcdn.com/bg.svg');
}

#langSelect option[value="bn"] {
    background-image: url('https://flagcdn.com/bd.svg');
}

#langSelect option[value="cs"] {
    background-image: url('https://flagcdn.com/cz.svg');
}

#langSelect option[value="da"] {
    background-image: url('https://flagcdn.com/dk.svg');
}

#langSelect option[value="de"] {
    background-image: url('https://flagcdn.com/de.svg');
}

#langSelect option[value="el"] {
    background-image: url('https://flagcdn.com/gr.svg');
}

#langSelect option[value="en"] {
    background-image: url('https://flagcdn.com/gb.svg');
}

#langSelect option[value="es"] {
    background-image: url('https://flagcdn.com/es.svg');
}

#langSelect option[value="et"] {
    background-image: url('https://flagcdn.com/ee.svg');
}

#langSelect option[value="fa"] {
    background-image: url('https://flagcdn.com/ir.svg');
}

#langSelect option[value="fi"] {
    background-image: url('https://flagcdn.com/fi.svg');
}

#langSelect option[value="fr"] {
    background-image: url('https://flagcdn.com/fr.svg');
}

#langSelect option[value="ha"] {
    background-image: url('https://flagcdn.com/ng.svg');
}

#langSelect option[value="he"] {
    background-image: url('https://flagcdn.com/il.svg');
}

#langSelect option[value="hi"] {
    background-image: url('https://flagcdn.com/in.svg');
}

#langSelect option[value="hr"] {
    background-image: url('https://flagcdn.com/hr.svg');
}

#langSelect option[value="hu"] {
    background-image: url('https://flagcdn.com/hu.svg');
}

#langSelect option[value="id"] {
    background-image: url('https://flagcdn.com/id.svg');
}

#langSelect option[value="it"] {
    background-image: url('https://flagcdn.com/it.svg');
}

#langSelect option[value="ko"] {
    background-image: url('https://flagcdn.com/kr.svg');
}

#langSelect option[value="km"] {
    background-image: url('https://flagcdn.com/kh.svg');
}

#langSelect option[value="lt"] {
    background-image: url('https://flagcdn.com/lt.svg');
}

#langSelect option[value="lv"] {
    background-image: url('https://flagcdn.com/lv.svg');
}

#langSelect option[value="ms"] {
    background-image: url('https://flagcdn.com/my.svg');
}

#langSelect option[value="mn"] {
    background-image: url('https://flagcdn.com/mn.svg');
}

#langSelect option[value="my"] {
    background-image: url('https://flagcdn.com/mm.svg');
}

#langSelect option[value="ne"] {
    background-image: url('https://flagcdn.com/np.svg');
}

#langSelect option[value="nl"] {
    background-image: url('https://flagcdn.com/nl.svg');
}

#langSelect option[value="no"] {
    background-image: url('https://flagcdn.com/no.svg');
}

#langSelect option[value="pa"] {
    background-image: url('https://flagcdn.com/in.svg');
}

#langSelect option[value="pl"] {
    background-image: url('https://flagcdn.com/pl.svg');
}

#langSelect option[value="pt"] {
    background-image: url('https://flagcdn.com/pt.svg');
}

#langSelect option[value="ro"] {
    background-image: url('https://flagcdn.com/ro.svg');
}

#langSelect option[value="ru"] {
    background-image: url('https://flagcdn.com/ru.svg');
}

#langSelect option[value="sr"] {
    background-image: url('https://flagcdn.com/rs.svg');
}

#langSelect option[value="sv"] {
    background-image: url('https://flagcdn.com/se.svg');
}

#langSelect option[value="sw"] {
    background-image: url('https://flagcdn.com/tz.svg');
}

#langSelect option[value="ta"] {
    background-image: url('https://flagcdn.com/in.svg');
}

#langSelect option[value="th"] {
    background-image: url('https://flagcdn.com/th.svg');
}

#langSelect option[value="tl"] {
    background-image: url('https://flagcdn.com/ph.svg');
}

#langSelect option[value="uk"] {
    background-image: url('https://flagcdn.com/ua.svg');
}

#langSelect option[value="ur"] {
    background-image: url('https://flagcdn.com/pk.svg');
}

#langSelect option[value="vi"] {
    background-image: url('https://flagcdn.com/vn.svg');
}

#langSelect option[value="yo"] {
    background-image: url('https://flagcdn.com/ng.svg');
}

#langSelect option[value="zh"] {
    background-image: url('https://flagcdn.com/cn.svg');
}

/* 语言选择器包装容器 */
.language-switcher {
    position: relative;
}

.select-flag-display {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    z-index: 1;
    display: flex;
    align-items: center;
}

.select-flag-display .flag-icon {
    width: 20px;
    height: 15px;
    object-fit: cover;
    border-radius: 2px;
}

.menu-toggle {
    display: none;
    font-size: 1.5rem;
    color: var(--text-primary);
    cursor: pointer;
    z-index: 100;
    grid-column: 2;
    justify-self: end;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--highlight);
    transition: width 0.3s ease;

}

.nav-links a:hover::after {
    width: 100%;
}

/* Hero Section */
.hero {
    height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/wholesale-game-supplier.jpg');
    background-size: cover;
    background-position: center;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    animation: scaleBg 20s ease-in-out infinite;
}



.hero-content {
    max-width: 800px;
    padding: 2rem;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
}

.hero-content h1 {
    background: linear-gradient(90deg, var(--text-primary) 0%, var(--highlight) 50%, var(--text-primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: shine 3s linear infinite;
}

@keyframes shine {
    to {
        background-position: 200% center;
    }
}

@keyframes scaleBg {

    0%,
    100% {
        background-size: 100% auto;
    }

    50% {
        background-size: 110% auto;
    }
}

.cta-button {
    display: inline-block;
    padding: 1rem 2.5rem;
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-primary);
    background: linear-gradient(135deg, var(--highlight), #2ecc71);
    border-radius: 50px;
    text-decoration: none;
    transition: all 0.3s ease;
    border: 2px solid transparent;
    margin: 20px;
    box-shadow: 0 4px 15px rgba(46, 204, 113, 0.2);
}

.cta-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(46, 204, 113, 0.3);
    border: 2px solid var(--highlight);
}

.cta-button:active {
    transform: translateY(-1px);
}


/* Sections */
section {
    padding: 5rem 2rem;
    background-color: var(--secondary-bg);
}

section:nth-child(even) {
    background-color: #f9f9f9;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;

}

/* Products Grid */
.products-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.product-card {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #121212;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
    position: relative;
    overflow: hidden;
    cursor: pointer;
}

.product-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-info {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    color: #ffffff;
    text-align: center;
    padding: 20px;
}

.product-info h3 {
    margin-bottom: 10px;
    font-size: 1.5rem;
}

/* About Section Styles */

#about {
    padding: 5rem 2rem;
    background: var(--background);
    max-width: 1200px;
    margin: 0 auto;

}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    align-items: center;
}

.about-content h3 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    color: var(--text);
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem;
}

.stat-item {
    text-align: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
}

.stat-number {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--accent);
    display: block;
    margin-bottom: 0.5rem;
}

.about-image img {
    width: 100%;
    border-radius: 10px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}


/* solution Container Styles */
#solution {
    background-color: #ffffff;
}

.solution-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.solution-box {
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    padding: 2rem;
    border-radius: 8px;
    transition: transform 0.3s;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2), 0 3px 6px rgba(0, 0, 0, 0.1);
}

.solution-box:hover {
    transform: translateY(-5px);
}

.solution-box ul {
    list-style: none;
    margin-top: 1rem;
}

.solution-box ul li {
    padding: 0.5rem 0;
    position: relative;
    padding-left: 1.5rem;
}

.solution-box ul li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--highlight);
}

/* service card*/
#services {
    background-color: #f9f9f9;
}

#services .section-title {
    color: #000000;
}

.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.service-card {
    background: #ffffff;
    color: #121212;
    padding: 2rem;
    border-radius: 10px;
    transition: transform 0.3s ease;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.service-card:hover {
    transform: translateY(-5px);
}

.service-icon {
    font-size: 2.5rem;
    color: var(--highlight);
    margin-bottom: 1.5rem;
    text-align: center;
}

.service-card h3 {
    color: #080707;
    margin-bottom: 1rem;
    text-align: center;
}

.service-content ul {
    list-style: none;
    padding: 0;
}

.service-content li {
    margin-bottom: 0.8rem;
    padding-left: 1.5rem;
    position: relative;
}

.service-content li:before {
    content: "→";
    position: absolute;
    left: 0;
    color: var(--highlight);
}

.service-btn {
    display: block;
    width: 100%;
    padding: 0.8rem;
    margin-top: 1.5rem;
    background: var(--highlight);
    color: var(--text-primary);
    border: none;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.service-btn:hover {
    background: #45a049;
}

#testimonials {
    background-color: #FFFFFF;
    padding: 5rem 0;
}

.testimonials-swiper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

.swiper-pagination-bullet {
    background: var(--text-secondary);
}

.swiper-pagination-bullet-active {
    background: var(--highlight);
}

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    overflow-y: auto;
}

.modal-content {
    background: #FFFFFF;
    color: #121212;
    width: 90%;
    max-width: 800px;
    margin: 50px auto;
    border-radius: 10px;
    position: relative;
    padding: 2rem;
    animation: modalFadeIn 0.3s ease;
}

.close-modal {
    position: absolute;
    right: 20px;
    top: 20px;
    font-size: 28px;
    cursor: pointer;
    color: var(--text-secondary);
    transition: color 0.3s;
}

.close-modal:hover {
    color: var(--highlight);
}

@keyframes modalFadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Testimonials Styles */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.testimonial-card {
    background-color: #FFFFFF;
    color: #121212;
    padding: 2rem;
    border-radius: 8px;
    position: relative;
}

.testimonial-card:before {
    content: '"';
    font-size: 4rem;
    position: absolute;
    top: -10px;
    left: 10px;
    color: var(--highlight);
    opacity: 0.2;
}

.client-info {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid var(--secondary-bg);
}

.client-name {
    display: block;
    font-weight: bold;
    color: var(--highlight);
}

/* FAQ Styles */
#faq {
    background-color: #f9f9f9;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: #ffffff;
    color: #121212;
    margin-bottom: 1rem;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

.faq-question {
    background-color: #ffffff;
    padding: 1.5rem;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq-question i {
    transition: transform 0.3s ease, color 0.3s ease;
    color: #666;
}

.faq-item.active .faq-question i {
    transform: rotate(45deg);
    color: var(--highlight);
}

.faq-answer {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

.faq-item.active .faq-answer {
    padding: 1.5rem;
    max-height: 500px;
}



/* Contact Form */
#contact {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 5rem 2rem;
    position: relative;
    overflow: hidden;
}

#contact::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg width="100" height="100" xmlns="http://www.w3.org/2000/svg"><defs><pattern id="grid" width="100" height="100" patternUnits="userSpaceOnUse"><path d="M 100 0 L 0 0 0 100" fill="none" stroke="rgba(255,255,255,0.1)" stroke-width="1"/></pattern></defs><rect width="100%" height="100%" fill="url(%23grid)"/></svg>');
    opacity: 0.3;
    pointer-events: none;
}

#contact .section-title {
    position: relative;
    z-index: 1;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: #000000 !important;
    font-weight: 600;
    -webkit-text-fill-color: #000000 !important;
    background: none !important;
    background-clip: unset !important;
    -webkit-background-clip: unset !important;
}

.contact-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    position: relative;
    z-index: 1;
}

.contact-info {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    color: #121212;
    justify-content: space-between;
}

.info-item {
    display: flex;
    align-items: flex-start;
    height: 10rem;
    gap: 1.5rem;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.info-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.info-item i {
    font-size: 1.8rem;
    color: var(--highlight);
    min-width: 30px;
    padding-top: 0.2rem;
    transition: transform 0.3s ease;
}

.info-item:hover i {
    transform: scale(1.1);
}

.info-item p {
    margin: 0;
    line-height: 1.6;
    color: #333;
    font-size: 1rem;
}

.contact-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    width: 100%;
    padding: 2rem;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    animation: formFadeIn 0.5s ease forwards;
}

.contact-form input,
.contact-form select,
.contact-form textarea {
    width: 100%;
    padding: 1rem 1.25rem;
    background-color: #ffffff;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    color: #121212;
    font-size: 1rem;
    transition: border-color 0.3s ease, box-shadow 0.3s ease, transform 0.2s ease;
    font-family: inherit;
}

/* 移动端优化select的transition，避免与原生下拉菜单冲突 */
@media screen and (max-width: 768px) {
    .contact-form select {
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }
}

.contact-form input:focus,
.contact-form select:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: var(--highlight);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.1);
    transform: translateY(-2px);
}

/* 移动端禁用select的transform效果，避免与原生下拉菜单冲突 */
@media screen and (max-width: 768px) {
    .contact-form select {
        -webkit-tap-highlight-color: transparent;
    }
    
    .contact-form select:focus {
        transform: none;
        transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }
    
    .contact-form select:active {
        transform: none;
    }
}

.contact-form input::placeholder,
.contact-form textarea::placeholder {
    color: #999;
    opacity: 1;
}

.contact-form select {
    cursor: pointer;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23333' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 1rem center;
    padding-right: 2.5rem;
}

.contact-form textarea {
    min-height: 150px;
    resize: vertical;
    font-family: inherit;
    line-height: 1.6;
}

.contact-form button {
    background: linear-gradient(135deg, var(--highlight) 0%, #45a049 100%);
    color: var(--text-primary);
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    width: auto;
    align-self: flex-end;
    min-width: 200px;
    font-size: 1.1rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(76, 175, 80, 0.3);
    position: relative;
    overflow: hidden;
}

.contact-form button::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s;
}

.contact-form button:hover::before {
    left: 100%;
}

.contact-form button:hover {
    background: linear-gradient(135deg, #45a049 0%, var(--highlight) 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(76, 175, 80, 0.4);
}

.contact-form button:active {
    transform: translateY(0);
}

.contact-form button:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

@keyframes formFadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Footer */
.footer {
    background-color: var(--primary-bg);
    padding: 4rem 0 2rem;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 3rem;
    margin-bottom: 3rem;
}


.newsletter h3 {
    color: #ffffff;
    margin-bottom: 1rem;
    font-size: 1.2rem;
}

.newsletter p {
    color: var(--text-secondary);
    margin-bottom: 1.5rem;
}

.newsletter-form .form-group {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 0.8rem;
    border: none;
    border-radius: 4px;
    background: var(--accent-bg);
    color: var(--text-primary);
    font-size: 16px;
    -webkit-text-size-adjust: 100%;
}

.newsletter-form button {
    padding: 0.8rem 1.5rem;
    background: var(--highlight);
    color: var(--text-primary);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s;
}

.newsletter-form button:hover {
    background: #45a049;
}

.social-icons {
    display: flex;
    gap: 1rem;
    margin-top: 1rem;
}

.social-icons a {
    color: var(--text-primary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--highlight);
}

.footer-bottom {
    margin-top: 3rem;
    padding-top: 2rem;
    border-top: 1px solid var(--accent-bg);
}


.footer-links h4,
.social-links h4 {
    color: var(--text-primary);
    margin-bottom: 1.5rem;
}

.footer-links ul {
    list-style: none;
}

.footer-links ul li {
    margin-bottom: 0.8rem;
}

.footer-links ul li a {
    color: var(--text-secondary);
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links ul li a:hover {
    color: var(--highlight);
}

.social-icons {
    display: flex;
    gap: 1.5rem;
}

.social-icons a {
    color: var(--text-secondary);
    font-size: 1.5rem;
    transition: color 0.3s;
}

.social-icons a:hover {
    color: var(--highlight);
}

.footer-bottom {
    padding-top: 2rem;
    border-top: 1px solid var(--accent-bg);
    text-align: center;
    color: var(--text-secondary);
}

.chat-button {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: #25D366;
    color: white;
    padding: 12px 24px;
    border-radius: 50px;
    cursor: pointer;
    z-index: 999;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    display: flex;
    align-items: center;
    gap: 8px;
    transition: transform 0.3s, background 0.3s;
    text-decoration: none;
    font-weight: 500;
}

.chat-button:hover {
    transform: translateY(-3px);
    background: #20ba5a;
}

.chat-button i {
    font-size: 1.5rem;
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    section {
        padding: 5rem 1rem;
    }

    .section-title {
        margin-bottom: 2rem;
    }

    /* Navigation */
    .nav-container {
        grid-template-columns: auto 1fr auto;
        padding: 0 1rem;
        align-items: center;
    }

    /* 在移动端，让语言选择器和菜单按钮在同一行右侧对齐 */
    .nav-container {
        position: relative;
    }

    /* 移动端：语言选择器定位在菜单按钮旁边 */
    .language-switcher {
        position: absolute;
        right: 48px;
        /* 为菜单按钮留出空间 */
        top: 50%;
        transform: translateY(-50%);
        grid-column: 3;
        display: flex;
        align-items: center;
        height: auto;
    }

    .menu-toggle {
        grid-column: 3;
        display: flex;
        align-items: center;
        justify-self: end;
        align-self: center;
        font-size: 1.5rem;
        color: var(--text-primary);
        cursor: pointer;
        position: absolute;
        right: 1rem;
        top: 50%;
        transform: translateY(-50%);
    }

    /* 移动端：语言选择器样式调整 */
    .language-switcher select {
        line-height: 24px;
        min-height: 28px;
        height: auto;
        background-color: #000000;
        color: #ffffff;
        border: 1px solid #333333;
        border-radius: 4px;
        padding: 4px 5px 4px 28px;
        /* 增加上下padding，左侧留出空间给国旗 */
        position: relative;
        font-size: 14px;
    }

    .language-switcher select option {
        background-color: #000000;
        color: #ffffff;
        padding-left: 25px;
        background-repeat: no-repeat;
        background-position: 3px center;
        background-size: 18px 13px;
    }

    /* 移动端：国旗显示容器样式 */
    .language-switcher .select-flag-display {
        left: 6px;
        top: 50%;
        transform: translateY(-50%);
        z-index: 1;
    }

    .language-switcher .select-flag-display .flag-icon {
        width: 18px;
        height: 13px;
        display: block;
    }

    .nav-links {
        position: fixed;
        top: 70px;
        /* navbar的高度 */
        left: 0;
        right: 0;
        background: var(--secondary-bg);
        padding: 1rem;
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        visibility: hidden;
        opacity: 0;
        transition: all 0.3s ease;
    }

    .nav-links.active {
        visibility: visible;
        opacity: 1;
        width: 100%;
    }



    /* Hero Section */
    .hero {
        background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.7)), url('/assets/images/game.jpg');
        background-size: 100% 100%;
        background-position: center;
        background-repeat: no-repeat;
        height: 500px;
    }

    .hero-content {
        padding: 1rem;
    }

    .hero-content h1 {
        font-size: 2rem;
    }

    .hero-content p {
        font-size: 1rem;
    }

    /* About Section */

    .about-grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }

    .stats-grid {
        grid-template-columns: 1fr 1fr;
        gap: 1rem;
    }

    .about-image {
        order: -1;
        margin-bottom: 2rem;
    }

    .about-content h3 {
        font-size: 1.8rem;
        text-align: center;
    }

    /* Products Grid */

    #products {
        padding: 5rem 0;
    }

    .products-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
        padding: 2rem 0.5rem;
    }

    .product-card {
        aspect-ratio: 1/1;
        /* 保持正方形比例 */
    }

    .product-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* service card*/
    .services-grid {
        grid-template-columns: 1fr;
    }

    .modal-content {
        width: 95%;
        margin: 20px auto;
    }

    /* Contact Section */
    #contact {
        padding: 3rem 1rem;
    }

    #contact .section-title {
        font-size: 2rem;
        margin-bottom: 2rem;
    }

    .contact-container {
        grid-template-columns: 1fr;
        gap: 2rem;
        padding: 0 1rem;
    }

    .contact-form {
        padding: 1.5rem;
        border-radius: 12px;
    }

    .contact-form button {
        align-self: stretch;
        width: 100%;
    }

    .info-item {
        padding: 1.25rem;
        border-radius: 10px;
    }

    .info-item i {
        font-size: 1.5rem;
    }

    /* Footer */
    .footer-grid {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .social-icons {
        justify-content: center;
    }

    /* CTA Button */
    .cta-button {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }

    .newsletter-form .form-group {
        flex-direction: column;
    }

    .newsletter-form button {
        width: 100%;
    }

    .chat-button {
        padding: 10px 20px;
        font-size: 0.9rem;
    }

    .chat-button i {
        font-size: 1.3rem;
    }
}

@media screen and (max-width: 480px) {
    .section-title {
        font-size: 1.8rem;
    }

    .contact-form input,
    .contact-form select,
    .contact-form textarea {
        padding: 0.9rem 1rem;
        font-size: 0.95rem;
    }

    .info-item {
        flex-direction: row;
        text-align: left;
        align-items: flex-start;
    }

    .info-item p {
        font-size: 0.9rem;
    }
}

/* Product Images Modal Styles */
.product-images-modal-content {
    max-width: 90vw;
    max-height: 90vh;
    border-radius: 10px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
}

.product-images-modal-content .modal-header {
    flex-shrink: 0;
}

.product-images-modal-content .modal-body {
    overflow-y: auto;
    flex: 1;
    padding: 20px;
    overflow-x: hidden;
}

.product-images-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 20px;
    padding: 20px 0;
}

.product-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    aspect-ratio: 1;
}

.product-image-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.product-image-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f5f5f5;
    min-height: 200px;
}

.product-image-item:hover img {
    transform: scale(1.05);
}

/* Modal Header Styling */
.product-images-modal-content .modal-header {
    text-align: center;
    padding: 20px;
    border-bottom: 1px solid #eee;
}

.product-images-modal-content .modal-header h2 {
    margin: 0;
    color: #333;
    font-size: 1.8rem;
}

/* Error State */
.product-image-item img[style*="display: none"] {
    display: none !important;
}

/* Responsive Design for Product Images Modal */
@media (max-width: 1200px) {
    .product-images-grid {
        grid-template-columns: repeat(4, 1fr);
        gap: 15px;
    }
}

@media (max-width: 992px) {
    .product-images-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 15px;
    }
}

@media (max-width: 768px) {
    .product-images-modal-content {
        max-width: 95vw;
        max-height: 95vh;
    }

    .product-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
        padding: 15px 0;
    }
}

@media (max-width: 480px) {
    .product-images-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        padding: 10px 0;
    }

    .product-image-item {
        border-radius: 6px;
    }
}

/* 超小屏幕（小于350px）导航栏优化 */
@media screen and (max-width: 350px) {

    /* 减小导航栏padding，调整grid布局 */
    .nav-container {
        padding: 0 0.5rem;
        grid-template-columns: auto 1fr auto;
        gap: 0.25rem;
        /* 减小元素间距 */
    }

    /* Logo保持可见 */
    .logo {
        grid-column: 1;
        justify-self: start;
        overflow: visible;
        /* 确保可见 */
        z-index: 1;
        /* 确保在语言选择器上方 */
    }

    .logo img {
        height: 32px;
        max-width: 110px;
        /* 限制logo图片最大宽度 */
        width: auto;
        object-fit: contain;
        display: block;
    }

    /* 语言选择器：确保有足够宽度完整显示 */
    .language-switcher {
        right: 44px;
        /* 为菜单按钮留出空间（32px按钮 + 12px间距） */
        min-width: 115px;
        /* 增加最小宽度，确保完整显示国旗和文本 */
        width: auto;
        /* 允许自适应宽度 */
        max-width: none;
        /* 移除最大宽度限制 */
    }

    /* 语言选择器select保持完整显示 */
    .language-switcher select {
        padding: 4px 8px 4px 28px;
        /* 保持足够的padding显示国旗和文本 */
        font-size: 13px;
        min-width: 115px;
        /* 确保最小宽度足够显示内容 */
        width: auto;
        /* 自适应宽度 */
        min-height: 26px;
        line-height: 22px;
    }

    /* 调整菜单按钮位置和大小 */
    .menu-toggle {
        right: 0.5rem;
        font-size: 1.3rem;
        width: 32px;
        flex-shrink: 0;
        /* 菜单按钮不缩小 */
    }

    /* 保持国旗图标正常尺寸 */
    .language-switcher .select-flag-display .flag-icon {
        width: 18px;
        height: 13px;
    }

    .language-switcher .select-flag-display {
        left: 5px;
    }
}

/* Custom Success/Error Modal Styles */
.custom-modal {
    display: none !important;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.7);
    animation: fadeIn 0.3s ease;
    visibility: hidden;
    opacity: 0;
}

.custom-modal.show {
    display: flex !important;
    align-items: center;
    justify-content: center;
    visibility: visible;
    opacity: 1;
}

.custom-modal-content {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

.custom-modal-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 28px;
    font-weight: bold;
    color: #999;
    cursor: pointer;
    transition: color 0.3s;
}

.custom-modal-close:hover {
    color: #333;
}

.custom-modal-icon {
    font-size: 64px;
    margin-bottom: 1rem;
    animation: scaleIn 0.3s ease;
}

.custom-modal-icon.success {
    color: #4CAF50;
}

.custom-modal-icon.error {
    color: #f44336;
}

.custom-modal-icon i {
    display: block;
    .info-item
}

.custom-modal-title {
    font-size: 1.5rem;
    font-weight: bold;
    margin-bottom: 0.5rem;
    color: #333;
}

.custom-modal-message {
    font-size: 1rem;
    color: #666;
    line-height: 1.6;
    margin: 0;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes slideUp {
    from {
        transform: translateY(30px);
        opacity: 0;
    }

    to {
        transform: translateY(0);
        opacity: 1;
    }
}

@keyframes scaleIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}