:root {
    --primary-color: #4a90e2;
    --secondary-color: #2c3e50;
    --accent-color: #e74c3c;
    --text-color: #333;
    --light-gray: #f5f5f5;
    --white: #ffffff;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
    line-height: 1.6;
    color: var(--text-color);
}

/* 导航栏样式 */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 5%;
    background-color: var(--white);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

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

.nav-links {
    display: flex;
    align-items: center;
    gap: 2rem;
}

.nav-links a {
    margin-left: 2rem;
    text-decoration: none;
    color: var(--secondary-color);
    transition: color 0.3s;
}

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

/* 英雄区域样式 */
.hero {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 8rem 5% 4rem;
    background: linear-gradient(135deg, var(--primary-color), var(--secondary-color));
    color: var(--white);
}

.hero-content {
    flex: 1;
    padding-right: 2rem;
}

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

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

.hero-image {
    flex: 1;
    text-align: center;
}

.hero-image img {
    max-width: 100%;
    height: auto;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* 按钮样式 */
.cta-button {
    display: inline-block;
    padding: 1rem 2rem;
    background-color: var(--accent-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: transform 0.3s, box-shadow 0.3s;
}

.cta-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
}

/* 功能区域样式 */
.features {
    padding: 5rem 5%;
    background-color: var(--light-gray);
}

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

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
}

.feature-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-card i {
    font-size: 2.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

/* 价格区域样式 */
.pricing {
    padding: 5rem 5%;
}

.pricing h2 {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
}

.pricing-card {
    background-color: var(--white);
    padding: 2rem;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.pricing-card.featured {
    transform: scale(1.05);
    border: 2px solid var(--primary-color);
}

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

.price {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-color);
    margin: 1rem 0;
}

.pricing-card ul {
    list-style: none;
    margin: 2rem 0;
}

.pricing-card li {
    margin: 0.5rem 0;
}

.pricing-button {
    display: inline-block;
    padding: 0.8rem 2rem;
    background-color: var(--primary-color);
    color: var(--white);
    text-decoration: none;
    border-radius: 30px;
    font-weight: bold;
    transition: background-color 0.3s;
}

.pricing-button:hover {
    background-color: var(--secondary-color);
}

/* 下载区域样式 */
.download {
    padding: 5rem 5%;
    background-color: var(--light-gray);
    text-align: center;
}

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

.app-store-button {
    display: inline-block;
    margin-top: 2rem;
}

.app-store-button img {
    height: 60px;
}

/* 页脚样式 */
footer {
    background-color: var(--secondary-color);
    color: var(--white);
    padding: 3rem 5%;
}

.footer-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.footer-links a {
    color: var(--white);
    text-decoration: none;
    margin-right: 2rem;
    transition: color 0.3s;
}

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

/* 响应式设计 */
@media (max-width: 768px) {
    .hero {
        flex-direction: column;
        text-align: center;
        padding-top: 6rem;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 2rem;
    }

    .nav-links {
        display: none;
    }

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

    .footer-links {
        margin-bottom: 1rem;
    }

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

/* 动画效果 */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    opacity: 0;
    animation: fadeIn 0.6s ease forwards;
}

/* 导航栏动画 */
nav.scroll-down {
    transform: translateY(-100%);
}

nav.scroll-up {
    transform: translateY(0);
}

/* 悬停效果增强 */
.feature-card, .pricing-card {
    transition: all 0.3s ease;
}

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

/* 按钮悬停效果增强 */
.cta-button, .pricing-button {
    position: relative;
    overflow: hidden;
}

.cta-button:after, .pricing-button:after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s, height 0.6s;
}

.cta-button:hover:after, .pricing-button:hover:after {
    width: 300px;
    height: 300px;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .features-grid, .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .pricing-card.featured {
        transform: scale(1);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 2rem;
    }
    
    .hero p {
        font-size: 1rem;
    }
    
    .nav-links {
        display: none;
    }
    
    .mobile-menu {
        display: block;
    }
}

/* 移动端菜单 */
.mobile-menu {
    display: none;
    cursor: pointer;
}

.mobile-menu-icon {
    width: 25px;
    height: 3px;
    background-color: var(--primary-color);
    margin: 5px 0;
    transition: 0.4s;
}

.mobile-menu.active .mobile-menu-icon:nth-child(1) {
    transform: rotate(-45deg) translate(-5px, 6px);
}

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

.mobile-menu.active .mobile-menu-icon:nth-child(3) {
    transform: rotate(45deg) translate(-5px, -6px);
}

/* 移动端导航菜单 */
.mobile-nav {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--white);
    padding: 80px 20px;
    z-index: 999;
}

.mobile-nav.active {
    display: block;
}

.mobile-nav a {
    display: block;
    padding: 15px;
    text-decoration: none;
    color: var(--secondary-color);
    font-size: 1.2rem;
    border-bottom: 1px solid var(--light-gray);
}

.mobile-nav a:last-child {
    border-bottom: none;
}

.mobile-nav .language-switcher {
    margin: 20px 0;
    text-align: center;
}

.mobile-nav .language-select {
    width: 100%;
    max-width: 200px;
    margin: 0 auto;
}

/* 法律页面样式 */
.legal-content {
    padding: 120px 5% 60px;
    background-color: var(--light-gray);
    min-height: 100vh;
}

.legal-container {
    max-width: 800px;
    margin: 0 auto;
    background-color: var(--white);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.legal-content h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 1rem;
    text-align: center;
}

.last-updated {
    text-align: center;
    color: var(--text-color);
    margin-bottom: 3rem;
    font-style: italic;
}

.legal-section {
    margin-bottom: 2.5rem;
}

.legal-section h2 {
    font-size: 1.5rem;
    color: var(--primary-color);
    margin-bottom: 1rem;
}

.legal-section p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-section ul {
    margin-left: 2rem;
    margin-bottom: 1rem;
}

.legal-section li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.legal-section a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.legal-section a:hover {
    color: var(--secondary-color);
    text-decoration: underline;
}

/* 响应式设计优化 */
@media (max-width: 768px) {
    .legal-content {
        padding: 100px 5% 40px;
    }

    .legal-container {
        padding: 30px;
    }

    .legal-content h1 {
        font-size: 2rem;
    }

    .legal-section h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .legal-content {
        padding: 80px 5% 30px;
    }

    .legal-container {
        padding: 20px;
    }

    .legal-content h1 {
        font-size: 1.8rem;
    }

    .legal-section h2 {
        font-size: 1.2rem;
    }
}

.back-to-top {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #4CAF50;
    color: white;
    border: none;
    cursor: pointer;
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 1000;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
}

.back-to-top:hover {
    background-color: #45a049;
}

.back-to-top.visible {
    display: block;
    opacity: 1;
}

.back-to-top i {
    font-size: 20px;
}

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

.language-select {
    padding: 6px 10px;
    border: 1px solid var(--primary-color);
    background: transparent;
    color: var(--primary-color);
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234a90e2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 12px;
    padding-right: 28px;
    font-size: 0.9rem;
    min-width: 80px;
}

.language-select:hover {
    background-color: var(--primary-color);
    color: white;
}

.language-select:focus {
    outline: none;
    box-shadow: 0 0 0 2px rgba(74, 144, 226, 0.2);
}

/* 阿拉伯语支持 */
[lang="ar"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .language-select {
    background-position: left 8px center;
    padding-right: 12px;
    padding-left: 32px;
}

/* 移动端语言切换器样式 */
@media (max-width: 768px) {
    .language-switcher {
        margin: 0;
    }
    
    .language-select {
        width: 100%;
        max-width: 200px;
    }
} 