/* 基础样式 */
body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    margin: 0;
    padding: 0;
}

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

/* 头部样式 */
header {
    background-color: #f8f8f8;
    padding: 20px 0;
    border-bottom: 1px solid #e7e7e7;
    position: sticky;
    top: 0;
    z-index: 100;
}

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

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    width: 60px;
    height: 60px;
    margin-right: 15px;
}

nav ul {
    display: flex;
    list-style: none;
    margin: 0;
    padding: 0;
}

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

nav ul li a {
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
}

nav ul li a:hover {
    color: #0071e3;
}

/* 语言切换按钮 */
.language-switcher {
    display: flex;
    gap: 8px;
    margin-left: 20px;
}

.lang-btn {
    padding: 6px 12px;
    border: 1px solid #ddd;
    background: white;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: all 0.3s;
}

.lang-btn.active {
    background: #0071e3;
    color: white;
    border-color: #0071e3;
}

.lang-btn:hover {
    background: #f5f5f5;
}

.lang-btn.active:hover {
    background: #0062c4;
}

/* 主要内容区域 */
.hero {
    text-align: center;
    padding: 80px 0;
    background-color: #f0f7ff;
    background-image: linear-gradient(to bottom, #f0f7ff, #ffffff);
}

.hero h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

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

/* 功能卡片 */
.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    padding: 80px 0;
}

.feature-card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 15px rgba(0,0,0,0.1);
    padding: 30px;
    transition: transform 0.3s, box-shadow 0.3s;
}

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

.feature-card h3 {
    color: #0071e3;
    margin-top: 0;
}

/* 下载区域 */
.download-section {
    background-color: #f8f8f8;
    padding: 80px 0;
    text-align: center;
}

.download-section h2 {
    margin-bottom: 20px;
}

.button {
    padding: 12px 24px;
    border-radius: 30px;
    font-size: 16px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s;
}

.button-primary {
    background-color: #0071e3;
    color: white;
    border: none;
}

.button-primary:hover {
    background-color: #0062c4;
}

.button-secondary {
    background-color: #333;
    color: white;
    border: none;
    margin-left: 15px;
}

.button-secondary:hover {
    background-color: #222;
}

/* App Store 按钮样式 */
.app-store-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #0071e3;
    color: white;
    border-radius: 30px;
    font-size: 16px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.app-store-button i {
    margin-right: 10px;
    font-size: 20px;
}

.app-store-button:hover {
    background-color: #0062c4;
    transform: scale(1.05);
    box-shadow: 0 4px 12px rgba(0, 113, 227, 0.3);
}

/* macOS 系统要求提示 */
.system-requirements {
    color: #666;
    font-size: 14px;
    margin-top: 10px;
}

/* 页脚样式 */
footer {
    background-color: #333;
    color: #fff;
    padding: 50px 0;
    text-align: center;
}

footer a {
    color: #4dabf7;
    text-decoration: none;
}

footer a:hover {
    text-decoration: underline;
}

/* 图表类型图片样式 */
.feature-card img {
    width: 100%;
    height: auto;
    border-radius: 6px;
    margin-top: 15px;
    border: 1px solid #eee;
    transition: transform 0.3s ease;
}

.feature-card:hover img {
    transform: scale(1.02);
}

/* 图表类型标题样式 */
#chart-types h2 {
    color: #333;
    position: relative;
    padding-bottom: 15px;
}

#chart-types h2::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 3px;
    background: #0071e3;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .header-content {
        flex-direction: column;
    }
    
    nav ul {
        margin-top: 20px;
    }
    
    .features {
        grid-template-columns: 1fr;
    }
    
    .button-secondary {
        margin-left: 0;
        margin-top: 15px;
    }
}