/* Reset and Base Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Arial', sans-serif;
}

:root {
    --primary-color: #3498db;
    --secondary-color: #2980b9;
    --dark-color: #2c3e50;
    --light-color: #ecf0f1;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f4f4f4;
    --medium-gray: #ddd;
}

body {
    color: var(--text-color);
    line-height: 1.6;
    background-color: #fff;
}

body.menu-open {
    overflow: hidden;
}

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

h1, h2, h3, h4 {
    color: var(--dark-color);
    margin-bottom: 20px;
}

h1 {
    font-size: 2.5rem;
}

h2 {
    font-size: 2rem;
    text-align: center;
    padding-bottom: 10px;
    position: relative;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: var(--primary-color);
}

section {
    padding: 60px 5%;
}

.btn {
    display: inline-block;
    background-color: var(--primary-color);
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s, transform 0.2s;
}

.btn:hover {
    background-color: var(--secondary-color);
    transform: translateY(-3px);
}

.btn-telegram {
    background-color: #0088cc;
    margin-left: 15px;
}

.btn-telegram:hover {
    background-color: #006699;
}

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

/* Navbar */
.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 5%;
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: sticky;
    top: 0;
    z-index: 100;
}

.logo {
    font-size: 1.8rem;
    font-weight: bold;
    color: var(--primary-color);
}

.nav-links {
    display: flex;
    list-style: none;
}

.nav-links li {
    margin-left: 30px;
}

.nav-links a {
    color: var(--dark-color);
    font-weight: 600;
    position: relative;
    transition: color 0.3s;
}

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

.nav-links a:hover, .nav-links a.active {
    color: var(--primary-color);
}

.nav-links a:hover::after, .nav-links a.active::after {
    width: 100%;
}

/* Hero Section */
.hero {
    background: linear-gradient(rgba(44, 62, 80, 0.7), rgba(44, 62, 80, 0.7)), url('https://images.unsplash.com/photo-1441986300917-64674bd600d8?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=1170&q=80');
    background-size: cover;
    background-position: center;
    color: white;
    text-align: center;
    padding: 100px 20px;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
}

.hero h1 {
    font-size: 3rem;
    color: white;
    margin-bottom: 20px;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 30px;
}

/* Category Section */
.category-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-card {
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
    padding: 20px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    display: block;
    color: var(--text-color);
}

.category-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    text-decoration: none;
    color: var(--primary-color);
}

.category-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 15px;
}

.category-icon i {
    font-size: 22px;
    color: var(--primary-color);
}

.category-card h3 {
    margin-bottom: 0;
    font-size: 1rem;
}

/* Benefits Section */
.benefits {
    padding: 70px 5%;
    background-color: #f8f9fa;
}

.highlight {
    color: #e74c3c;
    font-weight: bold;
}

.subtitle {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 50px;
    font-size: 1.2rem;
    color: #666;
}

.benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.benefit-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.benefit-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

.benefit-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background-color: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
}

.benefit-icon i {
    font-size: 30px;
    color: var(--primary-color);
}

.benefit-card h3 {
    font-size: 1.3rem;
    margin: 10px 0;
    text-align: center;
}

.benefit-card p {
    margin-top: auto;
    color: #666;
    text-align: center;
}

/* Testimonials Section */
.testimonials {
    padding: 70px 5%;
    background-color: white;
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.testimonial-card {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
    transition: transform 0.3s;
    border-top: 4px solid var(--primary-color);
}

.testimonial-card:hover {
    transform: translateY(-5px);
}

.rating {
    color: #ffc107;
    margin-bottom: 15px;
}

.testimonial-card h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.testimonial-card p {
    font-style: italic;
    color: #666;
}

/* Giveaway Section */
.giveaway {
    padding: 70px 5%;
    background-color: #f0f8ff;
    text-align: center;
}

.giveaway h2 {
    color: #3498db;
}

.giveaway-container {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 30px;
    margin-top: 40px;
}

.giveaway-prizes, .shipping-update {
    background-color: white;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    padding: 30px;
}

.giveaway-prizes h3, .shipping-update h3 {
    margin-bottom: 20px;
    color: #333;
}

.prizes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.prize-card {
    padding: 20px;
    border-radius: 8px;
    color: #333;
}

.first-prize {
    background-color: #fff9e6;
    border: 2px solid #ffd700;
}

.second-prize {
    background-color: #f8f9fa;
    border: 2px solid #c0c0c0;
}

.third-prize {
    background-color: #fff5f0;
    border: 2px solid #cd7f32;
}

.medal {
    font-weight: bold;
    margin-bottom: 10px;
}

.prize-amount {
    font-size: 1.8rem;
    font-weight: bold;
    margin: 10px 0;
}

.winners {
    font-size: 0.9rem;
    color: #666;
}

.shipping-update {
    background-color: #fff5f5;
    border-left: 4px solid #e74c3c;
    text-align: left;
    display: flex;
    flex-direction: column;
}

.shipping-update h3 {
    color: #e74c3c;
}

.shipping-update p {
    margin-bottom: 20px;
    flex-grow: 1;
}

.giveaway-btn {
    background-color: #3498db;
    margin-top: auto;
    text-align: center;
}

.giveaway-btn:hover {
    background-color: #2980b9;
}

@media (max-width: 992px) {
    .giveaway-container {
        grid-template-columns: 1fr;
    }
}

/* FAQ Section */
.faq {
    background-color: var(--light-gray);
}

.faq-item {
    background-color: white;
    border-radius: 8px;
    margin-bottom: 20px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    overflow: hidden;
}

.faq-question {
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
}

.faq-question h3 {
    margin: 0;
    font-size: 1.1rem;
}

.toggle-icon {
    font-size: 1.5rem;
    transition: transform 0.3s;
    will-change: transform;
}

.faq-answer {
    padding: 0;
    height: 0;
    overflow: hidden;
    transition: height 0.3s ease-out, padding 0.3s ease-out;
    will-change: height, padding;
}

.faq-answer-inner {
    padding: 0 20px 20px;
}

.faq-item.active .toggle-icon {
    transform: rotate(45deg);
}

.faq-item.active .faq-answer {
    padding: 0;
    height: auto;
}

/* Disclaimer Section */
.disclaimer {
    background-color: var(--light-color);
    font-size: 0.9rem;
    color: #666;
}

.disclaimer p {
    margin-bottom: 15px;
}

.last-updated {
    margin-top: 25px;
    padding-top: 15px;
    border-top: 1px dashed #ccc;
    font-size: 0.85rem;
    color: #888;
}

.last-updated p {
    margin-bottom: 5px;
}

/* Footer */
footer {
    background-color: var(--dark-color);
    color: white;
    padding: 40px 5% 20px;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin-bottom: 30px;
}

.footer-logo {
    font-size: 1.5rem;
    font-weight: bold;
}

.footer-links a {
    color: white;
    margin-right: 20px;
    transition: color 0.3s;
}

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

.footer-social a {
    color: white;
    margin-left: 15px;
    font-size: 1.3rem;
    transition: color 0.3s;
}

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

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.seo-links {
    margin-top: 10px;
}

.seo-links a {
    color: rgba(255, 255, 255, 0.6);
    margin: 0 10px;
    font-size: 0.85rem;
    transition: color 0.3s;
}

.seo-links a:hover {
    color: white;
    text-decoration: underline;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .language-dropdown {
        width: 100%;
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        padding: 10px;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .language-row {
        display: block;
        margin-bottom: 0;
    }
    
    .language-option {
        width: 100%;
        padding: 12px 15px;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .language-option:last-child {
        border-bottom: none;
    }
    
    #language-btn {
        width: 100%;
        justify-content: space-between;
        padding: 15px 0;
    }
    
    /* 首页专用样式 */
    body#home-page .language-dropdown {
        max-height: 350px;
        width: 280px;
        position: absolute;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        border-radius: 8px;
        top: 45px;
        right: -10px;
        padding: 10px;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
        background-color: white;
    }
    
    /* 调整首页语言选项在移动端的样式 */
    body#home-page .language-option {
        padding: 12px 8px;
        margin-bottom: 2px;
        display: block;
        width: 100%;
        border-bottom: none;
    }
    
    /* 首页语言行在移动端的样式 */
    body#home-page .language-row {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
    
    body#home-page .language-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links a:hover::after, 
    .nav-links a.active::after {
        width: 30px;
    }
    
    /* 语言切换器移动端样式 */
    .language-switcher {
        width: 100%;
    }
    
    .language-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
        border: 1px solid #eee;
        border-radius: 5px;
    }
    
    .language-dropdown:before {
        display: none;
    }
    
    .hero h1 {
        font-size: 2.2rem;
    }

    .footer-content {
        flex-direction: column;
        text-align: center;
    }

    .footer-logo, .footer-links, .footer-social {
        margin-bottom: 20px;
    }
    
    .benefits-grid, .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .giveaway-container {
        grid-template-columns: 1fr;
    }
    
    .prizes-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-grid {
        grid-template-columns: 1fr;
    }
    
    .blog-card {
        max-width: 450px;
        margin: 0 auto;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .btn-telegram {
        margin-left: 0;
        margin-top: 15px;
    }
    
    h2 {
        font-size: 1.7rem;
    }
    
    .subtitle {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    section {
        padding: 40px 5%;
    }

    .category-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }
    
    .category-card {
        padding: 15px;
    }
    
    .category-icon {
        width: 40px;
        height: 40px;
        margin-bottom: 10px;
    }
    
    .category-icon i {
        font-size: 18px;
    }
    
    .category-card h3 {
        font-size: 0.9rem;
    }
    
    .benefits, .testimonials, .giveaway {
        padding: 50px 5%;
    }
    
    .benefit-card, .testimonial-card {
        padding: 20px;
    }
    
    .blog-image {
        height: 180px;
    }
    
    .blog-content {
        padding: 20px;
    }
    
    .blog-card h3 {
        font-size: 1.15rem;
    }
}

/* 语言切换器样式 */
.language-switcher {
    position: relative;
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    width: 280px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    padding: 15px;
    display: none;
    z-index: 1000;
    max-height: 300px;
    overflow-y: auto;
}

.language-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 10px;
}

.language-row:last-child {
    margin-bottom: 0;
}

.language-option {
    padding: 8px 15px;
    border-radius: 5px;
    width: 47%;
    text-align: center;
    transition: background-color 0.3s;
    font-size: 0.9rem;
}

.language-option:hover {
    background-color: var(--light-gray);
    color: var(--primary-color);
}

#language-btn {
    display: flex;
    align-items: center;
}

#language-btn i {
    margin-right: 5px;
}

#language-btn .fa-caret-down {
    margin-left: 5px;
    margin-right: 0;
    transition: transform 0.3s;
}

#language-btn.active .fa-caret-down {
    transform: rotate(180deg);
}

.language-dropdown.show {
    display: block;
    animation: fadeIn 0.3s ease-in-out;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 添加语言下拉菜单的滚动条样式 */
.language-dropdown::-webkit-scrollbar {
    width: 6px;
}

.language-dropdown::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.language-dropdown::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 10px;
}

.language-dropdown::-webkit-scrollbar-thumb:hover {
    background: #a1a1a1;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-dropdown {
        width: 100%;
        position: static;
        box-shadow: none;
        border: 1px solid #eee;
        padding: 10px;
        max-height: 250px;
        overflow-y: auto;
    }
    
    .language-row {
        display: block;
        margin-bottom: 0;
    }
    
    .language-option {
        width: 100%;
        padding: 12px 15px;
        text-align: left;
        border-radius: 0;
        border-bottom: 1px solid #f0f0f0;
    }
    
    .language-option:last-child {
        border-bottom: none;
    }
    
    #language-btn {
        width: 100%;
        justify-content: space-between;
        padding: 15px 0;
    }
    
    /* 首页专用样式 */
    body#home-page .language-dropdown {
        max-height: 350px;
        width: 280px;
        position: absolute;
        box-shadow: 0 5px 15px rgba(0,0,0,0.15);
        border-radius: 8px;
        top: 45px;
        right: -10px;
        padding: 10px;
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
        background-color: white;
    }
    
    /* 调整首页语言选项在移动端的样式 */
    body#home-page .language-option {
        padding: 12px 8px;
        margin-bottom: 2px;
        display: block;
        width: 100%;
        border-bottom: none;
    }
    
    /* 首页语言行在移动端的样式 */
    body#home-page .language-row {
        border-bottom: 1px solid #f0f0f0;
        padding-bottom: 5px;
        margin-bottom: 5px;
    }
    
    body#home-page .language-row:last-child {
        border-bottom: none;
        margin-bottom: 0;
    }
}

/* 移动端菜单样式 */
.mobile-menu-toggle {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 30px;
    height: 21px;
    cursor: pointer;
    z-index: 1001;
}

.mobile-menu-toggle span {
    display: block;
    height: 3px;
    width: 100%;
    background-color: var(--dark-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.mobile-menu-toggle.active span:nth-child(1) {
    transform: translateY(9px) rotate(45deg);
}

.mobile-menu-toggle.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-toggle.active span:nth-child(3) {
    transform: translateY(-9px) rotate(-45deg);
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.8);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

@media (max-width: 768px) {
    .mobile-menu-toggle {
        display: flex;
    }
    
    .nav-links {
        position: fixed;
        top: 0;
        right: -300px;
        width: 280px;
        height: 100vh;
        background-color: white;
        flex-direction: column;
        padding: 80px 20px 30px;
        transition: right 0.3s ease;
        z-index: 1000;
        box-shadow: -5px 0 15px rgba(0, 0, 0, 0.1);
    }
    
    .nav-links.active {
        right: 0;
    }
    
    .nav-links li {
        margin: 0;
        width: 100%;
    }
    
    .nav-links a {
        display: block;
        padding: 15px 0;
        width: 100%;
        border-bottom: 1px solid #eee;
    }
    
    .nav-links a:hover::after, 
    .nav-links a.active::after {
        width: 30px;
    }
    
    /* 语言切换器移动端样式 */
    .language-switcher {
        width: 100%;
    }
    
    .language-dropdown {
        position: static;
        width: 100%;
        box-shadow: none;
        margin-top: 10px;
        border: 1px solid #eee;
        border-radius: 5px;
    }
    
    .language-dropdown:before {
        display: none;
    }
}

/* 首页专用样式 */
body#home-page .language-dropdown {
    max-height: 350px;
    width: 280px;
    position: absolute;
    box-shadow: 0 5px 15px rgba(0,0,0,0.15);
    border-radius: 8px;
    top: 45px;
    right: -10px;
    padding: 10px;
    overflow-y: scroll !important;
    -webkit-overflow-scrolling: touch;
    background-color: white;
}

/* 为移动端的首页语言下拉菜单强制添加滚动样式 */
@media (max-width: 768px) {
    body#home-page .language-dropdown {
        overflow-y: scroll !important;
        -webkit-overflow-scrolling: touch;
    }
    
    /* 调整语言选项在移动端的高度和间距 */
    body#home-page .language-option {
        padding: 12px 8px;
        margin-bottom: 2px;
    }
    
    /* 移除最后一个语言选项的下边距 */
    body#home-page .language-row:last-child .language-option {
        margin-bottom: 0;
    }
} 