/* 全局样式 */
:root {
    --primary-color: #4285F4;
    --secondary-color: #34A853;
    --accent-color: #FBBC05;
    --text-color: #333;
    --light-text: #767676;
    --bg-color: #fff;
    --gradient-primary: linear-gradient(135deg, #4285F4, #34A853);
    --shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    --border-radius: 8px;
}

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

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--bg-color);
}

.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

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

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

.section-title {
    text-align: center;
    margin-bottom: 3rem;
    font-size: 2.5rem;
    color: var(--primary-color);
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    width: 50px;
    height: 3px;
    background: var(--gradient-primary);
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    border-radius: 3px;
}

.btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: var(--border-radius);
    font-weight: 600;
    transition: all 0.3s ease;
    text-align: center;
}

.btn-primary {
    background: var(--primary-color);
    color: white;
}

.btn-secondary {
    background: var(--secondary-color);
    color: white;
}

.btn-large {
    padding: 15px 30px;
    font-size: 1.1rem;
}

.btn:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

/* 导航栏 */
header {
    background-color: white;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    position: fixed;
    width: 100%;
    top: 0;
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px;
}

.logo h1 {
    font-size: 1.8rem;
    color: var(--primary-color);
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

nav ul {
    display: flex;
}

nav ul li {
    margin-left: 30px;
}

nav ul li a {
    color: var(--text-color);
    font-weight: 500;
    transition: color 0.3s ease;
}

nav ul li a:hover {
    color: var(--primary-color);
}

/* 语言选择器 */
.language-selector {
    position: relative;
}

.language-trigger {
    display: flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: var(--text-color);
    font-weight: 500;
    padding: 8px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    background: white;
    border: 1px solid #e0e0e0;
}

.language-trigger:hover {
    color: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 2px 8px rgba(66, 133, 244, 0.15);
}

.language-trigger i {
    font-size: 12px;
    transition: transform 0.3s ease;
}

.language-selector.active .language-trigger i {
    transform: rotate(180deg);
}

.language-dropdown {
    position: absolute;
    top: 100%;
    right: 0;
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    z-index: 1001;
    min-width: 160px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-10px);
    transition: all 0.3s ease;
    max-height: 300px;
    overflow-y: auto;
}

.language-selector.active .language-dropdown {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.language-option {
    padding: 10px 15px;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.language-option:hover {
    background-color: #f5f5f5;
}

.language-option.active {
    background-color: var(--primary-color);
    color: white;
}

.language-option:first-child {
    border-radius: 8px 8px 0 0;
}

.language-option:last-child {
    border-radius: 0 0 8px 8px;
}

/* 英雄区域 */
.hero {
    padding: 120px 0 60px;
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e6f1 100%);
}

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

.hero-content {
    flex: 1;
    padding-right: 30px;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 15px;
    background: var(--gradient-primary);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--light-text);
    margin-bottom: 30px;
    max-width: 600px;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.hero-image {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image img {
    max-height: 500px;
    border-radius: 20px;
    box-shadow: var(--shadow);
}

/* 特点部分 */
.features {
    padding: 80px 0;
    background-color: #fff;
}

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

.feature-item {
    background-color: white;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
    text-align: center;
    transition: transform 0.3s ease;
}

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

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

.feature-icon i {
    font-size: 30px;
    color: white;
}

.feature-item h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: var(--primary-color);
}

/* 截图部分 */
.screenshots {
    padding: 80px 0;
    background-color: #f9f9f9;
}

.screenshot-slider {
    display: flex;
    gap: 20px;
    overflow-x: auto;
    padding: 20px 0;
    scroll-snap-type: x mandatory;
}

.screenshot-item {
    flex: 0 0 auto;
    width: 250px;
    scroll-snap-align: center;
}

.screenshot-item img {
    border-radius: 15px;
    box-shadow: var(--shadow);
    transition: transform 0.3s ease;
}

.screenshot-item img:hover {
    transform: scale(1.05);
}

/* 下载部分 */
.download {
    padding: 80px 0;
    background: linear-gradient(135deg, #4285F4 0%, #34A853 100%);
    color: white;
    text-align: center;
}

.download .section-title {
    color: white;
}

.download .section-title::after {
    background: white;
}

.download-text {
    font-size: 1.2rem;
    max-width: 700px;
    margin: 0 auto 30px;
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
}

.download .btn-primary {
    background: white;
    color: var(--primary-color);
}

.download .btn-secondary {
    background: white;
    color: var(--secondary-color);
}

/* 关于我们部分 */
.about {
    padding: 80px 0;
    background-color: #fff;
}

.about-content {
    margin-bottom: 40px;
}

.about-content p {
    margin-bottom: 15px;
    line-height: 1.8;
}

.contact-info {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: var(--border-radius);
    box-shadow: var(--shadow);
}

.contact-info h3 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.contact-info p {
    margin-bottom: 10px;
}

.contact-info i {
    margin-right: 10px;
    color: var(--primary-color);
}

/* 页脚 */
footer {
    background-color: #333;
    color: #fff;
    padding: 40px 0;
}

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

.footer-links {
    margin-bottom: 20px;
    text-align: center;
}

.footer-links a {
    color: #fff;
    margin: 0 15px;
    transition: color 0.3s ease;
}

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

.footer-links p {
    margin-top: 15px;
    font-size: 0.9rem;
    color: #aaa;
}

.footer-copy p {
    font-size: 0.9rem;
    color: #aaa;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
}

.modal-content {
    position: relative;
    background-color: #fefefe;
    margin: 5% auto;
    padding: 20px;
    border-radius: var(--border-radius);
    width: 80%;
    max-width: 800px;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: var(--shadow);
}

.close {
    position: absolute;
    right: 20px;
    top: 15px;
    color: #aaa;
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
}

.close:hover,
.close:focus {
    color: black;
    text-decoration: none;
}

.modal h2 {
    margin-bottom: 20px;
    color: var(--primary-color);
}

.modal-body {
    margin-bottom: 20px;
}

.modal-body h3 {
    margin: 15px 0;
    color: var(--primary-color);
}

.modal-body p {
    margin-bottom: 10px;
    line-height: 1.6;
}

/* 响应式设计 */
@media (max-width: 992px) {
    .hero .container {
        flex-direction: column;
        text-align: center;
    }

    .hero-content {
        padding-right: 0;
        margin-bottom: 40px;
    }

    .hero-buttons {
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    nav ul {
        display: none;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .download-buttons {
        flex-direction: column;
        align-items: center;
    }

    .modal-content {
        width: 95%;
        margin: 5% auto;
    }

    /* 移动端语言选择器 */
    .language-dropdown {
        right: -10px;
        min-width: 140px;
    }
    
    .language-trigger {
        font-size: 14px;
        padding: 6px 10px;
    }
    
    .language-option {
        padding: 8px 12px;
        font-size: 13px;
    }

    /* 移动端菜单按钮 */
    .mobile-menu-btn {
        display: block;
        cursor: pointer;
        font-size: 1.5rem;
        color: var(--primary-color);
        margin-left: 15px;
    }
}

/* RTL语言支持 (阿拉伯语等) */
[lang="ar"], [lang="he"], [lang="fa"] {
    direction: rtl;
    text-align: right;
}

[lang="ar"] .hero .container,
[lang="he"] .hero .container,
[lang="fa"] .hero .container {
    flex-direction: row-reverse;
}

[lang="ar"] .language-dropdown,
[lang="he"] .language-dropdown,
[lang="fa"] .language-dropdown {
    right: auto;
    left: 0;
}

[lang="ar"] nav ul li,
[lang="he"] nav ul li,
[lang="fa"] nav ul li {
    margin-left: 0;
    margin-right: 30px;
}

/* 字体优化 */
[lang="zh-CN"], [lang="zh-TW"] {
    font-family: "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", Arial, sans-serif;
}

[lang="ja"] {
    font-family: "Hiragino Kaku Gothic Pro", "Meiryo", "MS Gothic", Arial, sans-serif;
}

[lang="ko"] {
    font-family: "Malgun Gothic", "Apple Gothic", "Dotum", Arial, sans-serif;
}

[lang="ar"] {
    font-family: "Tahoma", "Arial Unicode MS", "Lucida Sans Unicode", sans-serif;
}

[lang="hi"] {
    font-family: "Noto Sans Devanagari", "Mangal", "Gargi", Arial, sans-serif;
}

[lang="th"] {
    font-family: "Sarabun", "Sukhumvit Set", "Helvetica Neue", Arial, sans-serif;
}

@media (max-width: 480px) {
    .hero-content h1 {
        font-size: 2.5rem;
    }

    .section-title {
        font-size: 2rem;
    }

    .btn {
        padding: 10px 20px;
    }
} 