/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background: #fff;
    padding-top: 70px;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all 0.3s ease;
}

.navbar.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

/* 为固定导航栏添加body padding */
body {
    padding-top: 70px;
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 70px;
}

.nav-brand a {
    display: flex;
    align-items: center;
    text-decoration: none;
    color: #FF6B6B;
    font-weight: bold;
    font-size: 20px;
}

.brand-icon {
    font-size: 24px;
    margin-right: 8px;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
}

.nav-link {
    text-decoration: none;
    color: #666;
    font-weight: 500;
    transition: color 0.3s;
    padding: 8px 0;
}

.nav-link:hover,
.nav-link.active {
    color: #FF6B6B;
}

.btn-primary {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white !important;
    padding: 10px 20px;
    border-radius: 25px;
    transition: all 0.3s;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 107, 107, 0.4);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    cursor: pointer;
}

.nav-toggle span {
    width: 25px;
    height: 3px;
    background: #333;
    margin: 3px 0;
    transition: 0.3s;
}

/* 主要内容区域 */
main {
    min-height: calc(100vh - 200px);
}

/* 英雄区域 */
.hero {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 100px 0;
    text-align: center;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 20px;
    font-weight: 700;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 40px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

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

.btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 30px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 16px;
}

.btn-white {
    background: white;
    color: #FF6B6B;
}

.btn-white:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(255,255,255,0.3);
}

.btn-outline {
    background: transparent;
    color: white;
    border: 2px solid white;
}

.btn-outline:hover {
    background: white;
    color: #FF6B6B;
}

/* 功能区域 */
.features {
    padding: 100px 0;
    background: #f8f9fa;
}

.features h2 {
    text-align: center;
    font-size: 2.5rem;
    margin-bottom: 60px;
    color: #333;
}

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

.feature-card {
    background: white;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

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

.feature-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    display: block;
    color: #FF6B6B;
}

.download-icon {
    font-size: 2rem;
    color: #FF6B6B;
}

.feature-card h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #333;
}

.feature-card p {
    color: #666;
    line-height: 1.6;
}

/* 下载区域 */
.downloads {
    padding: 100px 0;
    text-align: center;
}

.downloads h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
    color: #333;
}

.downloads p {
    font-size: 1.2rem;
    color: #666;
    margin-bottom: 50px;
}

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

.download-btn {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 20px 30px;
    background: white;
    border: 2px solid #e9ecef;
    border-radius: 15px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s;
    min-width: 200px;
}

.download-btn:hover {
    border-color: #FF6B6B;
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.download-icon {
    font-size: 2rem;
}

.download-text h4 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.download-text p {
    font-size: 0.9rem;
    color: #666;
    margin: 0;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: white;
    padding: 60px 0 20px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-section h3 {
    margin-bottom: 20px;
    color: #FF6B6B;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 10px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #FF6B6B;
}

.footer-bottom {
    border-top: 1px solid #34495e;
    padding-top: 20px;
    text-align: center;
    color: #bdc3c7;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: center;
        padding-top: 50px;
        transition: left 0.3s;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-toggle {
        display: flex;
    }
    
    .hero h1 {
        font-size: 2.5rem;
    }
    
    .hero p {
        font-size: 1.1rem;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-buttons {
        flex-direction: column;
        align-items: center;
    }
    
    .download-btn {
        width: 100%;
        max-width: 300px;
    }
}

/* 内容页面样式 */
.page-header {
    background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
    color: white;
    padding: 120px 0 80px;
    text-align: center;
}

.page-header h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.page-header p {
    font-size: 1.2rem;
    opacity: 0.9;
}

.page-content {
    padding: 80px 0;
}

.content-section {
    margin-bottom: 60px;
}

.content-section h2 {
    font-size: 2rem;
    margin-bottom: 20px;
    color: #333;
}

.content-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #FF6B6B;
}

.content-section p {
    margin-bottom: 15px;
    line-height: 1.8;
    color: #666;
}

.content-section ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.content-section li {
    margin-bottom: 10px;
    color: #666;
}

/* 定价表格 */
.pricing-table {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin: 50px 0;
}

.pricing-card {
    background: white;
    border-radius: 15px;
    padding: 40px 30px;
    text-align: center;
    box-shadow: 0 5px 20px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s;
}

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

.pricing-card.featured {
    border: 3px solid #FF6B6B;
}

/* 推荐标签现在通过HTML和翻译系统处理，不再使用CSS硬编码 */

.pricing-card h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
    color: #333;
}

.pricing-card .price {
    font-size: 3rem;
    font-weight: bold;
    color: #FF6B6B;
    margin-bottom: 10px;
}

.pricing-card .price-desc {
    color: #666;
    margin-bottom: 30px;
}

.pricing-card ul {
    list-style: none;
    margin-bottom: 30px;
    text-align: left;
}

.pricing-card li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
    position: relative;
    padding-left: 30px;
}

.pricing-card li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: #28a745;
    font-weight: bold;
}

.pricing-card .btn {
    width: 100%;
}

.pricing-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.btn-secondary {
    background: #6c757d;
    color: white;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 14px;
    text-align: center;
    display: inline-block;
}

.btn-secondary:hover {
    background: #5a6268;
    transform: translateY(-1px);
}

.text-success {
    color: #28a745 !important;
}

.text-danger {
    color: #dc3545 !important;
}

.brand-icon {
    color: #FF6B6B;
    margin-right: 8px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .nav-menu {
        flex-direction: column;
        gap: 10px;
        align-items: stretch;
    }
}

/* 导航菜单样式 */
.nav-menu {
    display: flex;
    align-items: center;
    gap: 20px;
}

/* PHP网站多语言下拉选择器样式 - 更大更圆 */
.language-switcher {
    position: relative !important;
    margin: 0 10px !important;
}

/* 使用最强的选择器确保样式生效 - 模仿截图样式 */
body .navbar .language-switcher .language-select,
body #languageSelect,
body select.language-select,
body select[id="languageSelect"],
select {
    appearance: none !important;
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    background: #ffffff !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 30px !important; /* 更圆的边框，像截图一样 */
    padding: 16px 50px 16px 20px !important; /* 更大的内边距，像截图一样 */
    font-size: 18px !important; /* 更大的字体 */
    font-weight: 500 !important;
    color: #374151 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    min-width: 180px !important; /* 更大的最小宽度 */
    height: 50px !important; /* 固定高度，像截图一样 */
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='m6 8 4 4 4-4'/%3e%3c/svg%3e") !important;
    background-position: right 18px center !important;
    background-repeat: no-repeat !important;
    background-size: 20px !important;
    line-height: 1.2 !important;
}

body .navbar .language-switcher .language-select:hover,
body #languageSelect:hover,
body select.language-select:hover,
body select[id="languageSelect"]:hover,
select:hover {
    border-color: #FF6B6B !important;
    box-shadow: 0 6px 16px rgba(255, 107, 107, 0.2) !important;
    transform: translateY(-2px) !important;
}

body .navbar .language-switcher .language-select:focus,
body #languageSelect:focus,
body select.language-select:focus,
body select[id="languageSelect"]:focus,
select:focus {
    outline: none !important;
    border-color: #FF6B6B !important;
    box-shadow: 0 0 0 4px rgba(255, 107, 107, 0.2) !important;
}



/* 导航栏移动端适配 */
@media (max-width: 768px) {
    .nav-menu {
        position: fixed;
        top: 70px;
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        transition: left 0.3s ease;
        padding: 20px;
        box-shadow: 0 4px 20px rgba(0,0,0,0.1);
        overflow-y: auto;
    }
    
    .nav-menu.active {
        left: 0;
    }
    
    .nav-link {
        padding: 15px 20px;
        margin: 5px 0;
        border-radius: 10px;
        text-align: left;
        border: none;
        background: transparent;
        transition: all 0.3s ease;
    }
    
    .nav-link:hover {
        background: #f8f9fa;
        transform: translateX(10px);
    }
    
    .nav-link.btn-primary {
        background: linear-gradient(135deg, #FF6B6B 0%, #FF8E53 100%);
        color: white;
        margin-top: 20px;
    }
    
    .nav-link.btn-primary:hover {
        transform: translateX(0) translateY(-2px);
        box-shadow: 0 8px 25px rgba(255, 107, 107, 0.4);
    }
    
    /* 移动端多语言选择器调整 */
    .language-switcher {
        margin: 15px 0;
        width: 100%;
    }
    
    body .navbar .language-switcher .language-select,
    body #languageSelect,
    body select.language-select,
    body select[id="languageSelect"],
    select {
        width: 100% !important;
        min-width: auto !important;
        font-size: 16px !important;
        padding: 14px 45px 14px 18px !important;
        height: 48px !important;
    }
}

/* 自定义多语言下拉菜单样式 - 模仿截图效果 */
.language-switcher {
    position: relative !important;
    margin: 0 10px !important;
}

.language-dropdown {
    position: relative !important;
}

/* 语言切换按钮 */
.language-toggle {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    cursor: pointer !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #374151 !important;
    transition: all 0.2s ease !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06) !important;
    min-width: 120px !important;
    justify-content: space-between !important;
}

.language-toggle:hover {
    border-color: #d1d5db !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
    transform: translateY(-1px) !important;
}

.language-flag {
    font-size: 16px !important;
}

.language-text {
    flex: 1 !important;
    text-align: left !important;
}

.language-arrow {
    font-size: 12px !important;
    color: #9ca3af !important;
    transition: transform 0.2s ease !important;
}

.language-dropdown.open .language-arrow {
    transform: rotate(180deg) !important;
}

/* 下拉菜单 */
.language-menu {
    position: absolute !important;
    top: calc(100% + 8px) !important;
    right: 0 !important;
    min-width: 160px !important;
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 12px !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15) !important;
    padding: 8px !important;
    display: none !important;
    z-index: 1000 !important;
    animation: fadeInDown 0.2s ease !important;
}

.language-menu.show {
    display: block !important;
}

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

/* 菜单选项 */
.language-option {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    font-size: 14px !important;
    color: #374151 !important;
}

.language-option:hover {
    background: #f9fafb !important;
    transform: translateX(2px) !important;
}

.language-option.active {
    background: #f0f9ff !important;
    color: #0369a1 !important;
}

.language-option .language-text {
    flex: 1 !important;
}

.language-check {
    color: #059669 !important;
    font-size: 12px !important;
}

/* 移动端适配 */
@media (max-width: 768px) {
    /* 移动端导航菜单中的语言切换器 */
    .nav-menu .language-switcher {
        margin: 15px 0 !important;
        width: 100% !important;
    }
    
    .nav-menu .language-toggle {
        width: 100% !important;
        min-width: auto !important;
        padding: 12px 16px !important;
        font-size: 14px !important;
        justify-content: space-between !important;
        background: #f8f9fa !important;
        border: 1px solid #e9ecef !important;
    }
    
    .nav-menu .language-toggle:hover {
        background: #e9ecef !important;
        transform: none !important;
    }
    
    /* 移动端下拉菜单调整 */
    .nav-menu .language-menu {
        position: static !important;
        width: 100% !important;
        min-width: auto !important;
        box-shadow: none !important;
        border: none !important;
        border-radius: 8px !important;
        background: #f1f3f5 !important;
        margin-top: 8px !important;
        padding: 4px !important;
    }
    
    .nav-menu .language-option {
        padding: 12px 16px !important;
        font-size: 14px !important;
        border-radius: 6px !important;
        background: transparent !important;
    }
    
    .nav-menu .language-option:hover {
        background: #ffffff !important;
        transform: none !important;
    }
    
    .nav-menu .language-option.active {
        background: #ffffff !important;
        color: #0369a1 !important;
    }
}