/* OldChat 介绍网站样式 */
/* 兼容低版本浏览器 */

/* 基础重置 */
* {
    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;
}

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

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

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

.logo {
    display: flex;
    align-items: center;
    font-size: 24px;
    font-weight: bold;
    color: #07c160;
}

.logo-img {
    width: 32px;
    height: 32px;
    margin-right: 10px;
    vertical-align: middle;
    border-radius: 8px;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 10px 24px;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 500;
    cursor: pointer;
    border: none;
    transition: all 0.3s;
}

.btn-primary {
    background: #07c160;
    color: #fff;
}

.btn-primary:hover {
    background: #06ad56;
}

.btn-large {
    padding: 14px 36px;
    font-size: 18px;
    border-radius: 8px;
}

/* 英雄区域 */
.hero {
    padding: 140px 0 80px;
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    text-align: center;
}

.hero h1 {
    font-size: 48px;
    margin-bottom: 20px;
    color: #1a1a1a;
}

.hero .highlight {
    color: #07c160;
}

.hero-desc {
    font-size: 20px;
    color: #666;
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero-badges {
    margin-bottom: 40px;
}

.badge {
    display: inline-block;
    padding: 6px 14px;
    background: rgba(7, 193, 96, 0.1);
    color: #07c160;
    border-radius: 20px;
    font-size: 14px;
    margin: 0 5px 10px;
    border: 1px solid rgba(7, 193, 96, 0.3);
}

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

.version {
    color: #999;
    font-size: 14px;
}

/* 区块标题 */
.section-title {
    text-align: center;
    font-size: 36px;
    margin-bottom: 50px;
    color: #1a1a1a;
}

/* 核心优势 */
.features {
    padding: 80px 0;
    background: #fff;
}

.features-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.feature-card {
    width: 350px;
    padding: 30px;
    background: #f8f9fa;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.feature-card h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.feature-card p {
    color: #666;
    font-size: 15px;
    line-height: 1.8;
}

/* 兼容性对比 */
.comparison {
    padding: 80px 0;
    background: #f8f9fa;
}

.table-wrapper {
    overflow-x: auto;
}

.comparison-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.comparison-table th,
.comparison-table td {
    padding: 16px 20px;
    text-align: center;
    border-bottom: 1px solid #eee;
}

.comparison-table th {
    background: #07c160;
    color: #fff;
    font-weight: 600;
}

.comparison-table tr:hover {
    background: #f8f9fa;
}

.highlight-row {
    background: rgba(7, 193, 96, 0.05);
}

.highlight-row td {
    font-weight: 500;
}

.tag {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 13px;
}

.tag-best {
    background: #07c160;
    color: #fff;
}

/* 功能列表 */
.functionality {
    padding: 80px 0;
    background: #fff;
}

.func-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.func-category {
    width: 350px;
    padding: 25px;
    background: #f8f9fa;
    border-radius: 12px;
}

.func-category h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: #1a1a1a;
    padding-bottom: 10px;
    border-bottom: 2px solid #07c160;
}

.func-category ul {
    list-style: none;
}

.func-category li {
    padding: 8px 0;
    color: #555;
    font-size: 14px;
}

/* 适用场景 */
.scenarios {
    padding: 80px 0;
    background: #f8f9fa;
}

.scenario-grid {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 30px;
}

.scenario-card {
    width: 260px;
    padding: 30px;
    background: #fff;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.scenario-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.scenario-card h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: #1a1a1a;
}

.scenario-card p {
    color: #666;
    font-size: 14px;
}

/* 技术亮点 */
.tech {
    padding: 80px 0;
    background: #fff;
}

.tech-list {
    max-width: 800px;
    margin: 0 auto;
}

.tech-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}

.tech-name {
    font-weight: 600;
    color: #1a1a1a;
    font-size: 16px;
}

.tech-desc {
    color: #666;
    font-size: 14px;
}

/* CTA 区域 */
.cta {
    padding: 100px 0;
    background: linear-gradient(135deg, #07c160 0%, #05a350 100%);
    text-align: center;
    color: #fff;
}

.cta h2 {
    font-size: 36px;
    margin-bottom: 15px;
}

.cta p {
    font-size: 18px;
    margin-bottom: 30px;
    opacity: 0.9;
}

.cta .btn-primary {
    background: #fff;
    color: #07c160;
}

.cta .btn-primary:hover {
    background: #f0f0f0;
}

.version-info {
    margin-top: 20px;
    font-size: 14px;
    opacity: 0.8;
}

/* 页脚 */
.footer {
    padding: 30px 0;
    background: #1a1a1a;
    color: #999;
    text-align: center;
    font-size: 14px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .hero h1 {
        font-size: 32px;
    }
    
    .hero-desc {
        font-size: 16px;
    }
    
    .section-title {
        font-size: 28px;
    }
    
    .feature-card,
    .func-category,
    .scenario-card {
        width: 100%;
        max-width: 400px;
    }
    
    .comparison-table {
        font-size: 14px;
    }
    
    .comparison-table th,
    .comparison-table td {
        padding: 12px 10px;
    }
    
    .tech-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 5px;
    }
    
    .navbar .container {
        padding: 0 15px;
    }
    
    .nav-download {
        display: none;
    }
}

/* 低版本浏览器兼容 */
/* 为不支持 flexbox 的浏览器提供回退 */
.no-flexbox .features-grid,
.no-flexbox .func-grid,
.no-flexbox .scenario-grid {
    display: block;
    text-align: center;
}

.no-flexbox .feature-card,
.no-flexbox .func-category,
.no-flexbox .scenario-card {
    display: inline-block;
    vertical-align: top;
    margin: 15px;
}

/* 为不支持 rgba 的浏览器提供回退 */
.no-rgba .navbar {
    background: #fff;
    border-bottom: 1px solid #ddd;
}

/* 打印样式 */
@media print {
    .navbar,
    .hero-cta,
    .cta {
        display: none;
    }
    
    .hero {
        padding: 40px 0;
    }
}
