/* 重置和基础样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html, body {
    overflow-x: hidden;
    width: 100%;
    position: relative;
    min-height: 100vh;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    box-sizing: border-box;
}

/* 导航栏 */
.navbar {
    background-color: #FF9500;
    padding: 1rem 0;
    position: fixed;
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
    will-change: transform;
    transition: transform 0.3s ease;
}

.navbar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.navbar-brand {
    font-size: 1.5rem;
    font-weight: bold;
    color: white;
    text-decoration: none;
    display: flex;
    align-items: center;
}

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

.nav-item {
    margin-left: 1rem;
}

.nav-link {
    color: white;
    text-decoration: none;
    transition: opacity 0.3s;
}

.nav-link:hover {
    opacity: 0.8;
}

/* 英雄区 */
.hero {
    background: linear-gradient(to bottom, #FFD180, #FFF);
    padding: 8rem 0 4rem;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    margin-bottom: 1rem;
    font-weight: 700;
}

.hero p {
    font-size: 1.2rem;
    margin-bottom: 2rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: #FF9500;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    transition: background-color 0.3s, transform 0.2s;
    will-change: transform;
}

.btn:hover {
    background-color: #FF7B00;
    transform: translateY(-2px);
}

/* 特性区 */
.features {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.features h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.feature-item {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
    will-change: transform;
}

.feature-item:hover {
    transform: translateY(-5px);
}

.feature-item h3 {
    margin-bottom: 1rem;
    color: #FF9500;
}

/* 设计理念 */
.philosophy {
    padding: 4rem 0;
    text-align: center;
}

.philosophy p {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1rem;
    line-height: 1.8;
}

/* 用户评价 */
.testimonials {
    padding: 4rem 0;
    background-color: #f8f9fa;
}

.testimonials h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.testimonial-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    width: 100%;
    margin: 0 auto;
    padding: 0;
}

.testimonial-item {
    background-color: white;
    padding: 2rem;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

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

.testimonial-item p {
    font-style: italic;
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* 常见问题 */
.faq {
    padding: 4rem 0;
}

.faq h2 {
    text-align: center;
    margin-bottom: 3rem;
}

.faq-item {
    margin-bottom: 2rem;
    padding: 1rem;
    border-radius: 5px;
    transition: background-color 0.3s;
}

.faq-item:hover {
    background-color: #f8f9fa;
}

.faq-item h3 {
    margin-bottom: 0.5rem;
    color: #FF9500;
}

/* 下载区 */
.download {
    padding: 4rem 0;
    background-color: #FFD180;
    text-align: center;
}

.download h2 {
    margin-bottom: 2rem;
}

/* 页脚 */
.footer {
    background-color: #333;
    color: white;
    padding: 2rem 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: white;
    margin-left: 1rem;
    text-decoration: none;
    transition: opacity 0.3s;
}

.footer-links a:hover {
    opacity: 0.8;
}

.footer-copyright {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.9rem;
    opacity: 0.8;
}

/* Logo 样式 */
.logo-container {
    width: 40px;
    height: 40px;
    overflow: hidden;
    border-radius: 50%;
    margin-right: 10px;
}

.logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    will-change: transform;
}

/* 语言选择器样式 */
.language-selector {
    position: relative;
    margin-left: 1rem;
}

.language-selector select {
    appearance: none;
    background-color: transparent;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 0.5rem 2rem 0.5rem 1rem;
    font-size: 0.9rem;
    color: inherit;
    cursor: pointer;
    outline: none;
}

.language-selector select:hover {
    border-color: #999;
}

.language-selector select:focus {
    border-color: #666;
}

.language-selector::after {
    content: '';
    position: absolute;
    right: 0.8rem;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-left: 5px solid transparent;
    border-right: 5px solid transparent;
    border-top: 5px solid currentColor;
    pointer-events: none;
}

/* 语言切换加载指示器 */
.language-loading {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    height: 2px;
    background: #FF9500;
    opacity: 0;
    animation: fade 1.5s infinite;
    z-index: 9999;
}

@keyframes fade {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        opacity: 0;
    }
}

body.language-loading {
    pointer-events: none;
}

body.language-loading::after {
    content: '';
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.5);
    z-index: 9998;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .language-selector {
        margin-left: 10px;
    }

    .language-selector select {
        font-size: 12px;
        padding: 4px 20px 4px 8px;
    }
}

/* 响应式设计 */
@media (max-width: 768px) {
    .navbar-nav {
        display: none;
    }
    
    .hero h1 {
        font-size: 2rem;
    }
    
    .feature-grid, .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
    }
    
    .footer-links {
        margin-top: 1rem;
    }
    
    .footer-links a {
        display: block;
        margin: 0.5rem 0;
    }
    
    .language-selector {
        position: absolute;
        right: 20px;
        top: 50%;
        transform: translateY(-50%);
    }
}

/* 添加性能优化相关的样式 */
@media (prefers-reduced-motion: reduce) {
    * {
        animation: none !important;
        transition: none !important;
    }
}

/* ��化打印样式 */
@media print {
    .navbar, .download, .footer {
        display: none;
    }
    
    body {
        color: #000;
        background: #fff;
    }
    
    .container {
        width: 100%;
        max-width: none;
    }
}

/* 添加暗色模式支持 */
@media (prefers-color-scheme: dark) {
    body {
        background-color: #1a1a1a;
        color: #f0f0f0;
    }
    
    .feature-item, .testimonial-item {
        background-color: #2d2d2d;
        box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    }
    
    .faq-item:hover {
        background-color: #2d2d2d;
    }
}

/* 汉堡菜单按钮 */
.menu-toggle {
    display: none;
    background: none;
    border: none;
    padding: 10px;
    cursor: pointer;
}

.menu-toggle span {
    display: block;
    width: 25px;
    height: 2px;
    background-color: white;
    margin: 5px 0;
    transition: all 0.3s ease;
}

@media (max-width: 768px) {
    .menu-toggle {
        display: block;
    }

    .navbar-nav {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background-color: #FF9500;
        padding: 1rem 0;
        flex-direction: column;
        align-items: center;
    }

    .navbar-nav.active {
        display: flex;
    }

    .nav-item {
        margin: 0.5rem 0;
    }

    .language-selector {
        margin-right: 50px;
    }
}

/* 修复移动端布局问题 */
@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }

    .hero h1 {
        font-size: 2rem;
        padding: 0 15px;
    }

    .feature-grid, .testimonial-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 0 15px;
    }

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

    .footer-links {
        display: flex;
        flex-direction: column;
        gap: 0.5rem;
    }

    .footer-links a {
        margin: 0;
    }
} 