/* 基础重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, sans-serif;
}

body {
    line-height: 1.6;
    color: #333;
    /* 监听系统主题变化 */
    background-color: var(--bg-color);
    transition: background-color 0.3s ease, color 0.3s ease;
}

/* 新增：全局内容容器样式 - 限制最大宽度1200px并居中 */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px; /* 小屏幕下保留左右内边距 */
    width: 100%;
}

/* 浅色/深色模式颜色变量 */
:root {
    /* 浅色模式 */
    --bg-color: #ffffff;
    --text-color: #333333;
    --primary-color: #165DFF;
    --secondary-color: #4080FF;
    --dark-color: #0E2E5C;
    --light-color: #E8F3FF;
    --accent-color: #6c63ff;
    --header-bg: #ffffff;
    --header-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    --card-bg: #ffffff;
    --spec-bg: #f9f9f9;
}

/* 深色模式 */
@media (prefers-color-scheme: dark) {
    :root {
        --bg-color: #1a1a1a;
        --text-color: #e0e0e0;
        --primary-color: #4d88ff;
        --secondary-color: #6699ff;
        --dark-color: #2a4a7a;
        --light-color: #1e3a5f;
        --accent-color: #8a82ff;
        --header-bg: #242424;
        --header-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
        --card-bg: #2c2c2c;
        --spec-bg: #333333;
    }
}

/* SEO隐藏H1样式（供Bing索引，不显示在页面） */
.seo-hidden {
    position: absolute;
    top: -9999px;
    left: -9999px;
    width: 1px;
    height: 1px;
    overflow: hidden;
    opacity: 0;
    z-index: -1;
}

/* 汉堡栏导航 - 调整为1200px容器居中 */
.header {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    background: var(--header-bg);
    padding: 1rem 0; /* 移除原有左右padding，由内部container控制 */
    box-shadow: var(--header-shadow);
    z-index: 1000;
}
/* 导航内部容器 - 限制1200px并居中 */
.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.nav-toggle {
    display: block;
    width: 40px;
    height: 30px;
    cursor: pointer;
    position: relative;
    z-index: 2;
}

.nav-toggle span {
    position: absolute;
    height: 3px;
    width: 100%;
    background: var(--text-color);
    border-radius: 3px;
    transition: all 0.3s ease;
}

.nav-toggle span:nth-child(1) {
    top: 0;
}

.nav-toggle span:nth-child(2) {
    top: 50%;
    transform: translateY(-50%);
}

.nav-toggle span:nth-child(3) {
    bottom: 0;
}

.nav-toggle.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 10px);
}

.nav-toggle.active span:nth-child(2) {
    opacity: 0;
}

.nav-toggle.active span:nth-child(3) {
    transform: rotate(-45deg) translate(5px, -10px);
}

.nav-menu {
    position: fixed;
    top: 0;
    left: -100%;
    /* 默认隐藏在左侧 */
    width: 80%;
    height: 100vh;
    background: var(--light-color);
    padding: 4rem 2rem;
    transition: left 0.3s ease;
    list-style: none;
    z-index: 999;
}

.nav-menu.active {
    left: 0;
    /* 激活时显示在左侧 */
}

.nav-menu a {
    display: block;
    color: var(--text-color);
    text-decoration: none;
    font-size: 1.1rem;
    margin-bottom: 1.2rem;
    transition: all 0.3s ease;
    padding: 0.5rem 1rem;
    border-radius: 4px;
}

.nav-menu a:hover,
.nav-menu a.active {
    background: var(--light-color);
    color: var(--primary-color);
}

/* 品牌标识 */
.logo {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.2rem;
    font-weight: 600;
    color: var(--primary-color);
}

.logo span {
    color: var(--text-color);
}

/* 主要内容区 - 调整为1200px容器居中 */
.hero {
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 0 0; /* 移除原有左右padding */
    background: linear-gradient(135deg, var(--light-color) 0%, var(--bg-color) 100%);
}
.hero .container {
    padding: 0 20px;
}

.hero-content h1 {
    font-size: 2.8rem;
    margin-bottom: 0.8rem;
    color: var(--text-color);
}

.hero-content h1 span {
    color: var(--primary-color);
    font-family: 'Segoe UI', sans-serif;
}

.hero-content p {
    font-size: 1.2rem;
    color: var(--text-color);
    opacity: 0.8;
    margin-bottom: 2rem;
}

.btn {
    display: inline-block;
    padding: 0.8rem 2rem;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 500;
    transition: transform 0.3s ease;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), var(--secondary-color));
    color: white;
    margin-right: 1rem;
    border: none !important;
    outline: none !important;
    box-shadow: none !important;
}

.btn-secondary {
    background: var(--bg-color);
    color: var(--primary-color);
    border: 1px solid var(--primary-color);
}

.btn-primary:hover {
    transform: translateY(-2px);
}

.btn-secondary:hover {
    transform: translateY(-2px);
}

/* 功能展示区 - 调整为1200px容器居中 */
.features {
    padding: 8rem 0; /* 移除原有左右padding */
    text-align: center;
    background-color: var(--bg-color);
}
.features .container {
    padding: 0 20px;
}

.features h2 {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 3rem;
    max-width: 1200px;
    margin: 0 auto;
}

.feature-card {
    background: var(--card-bg);
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: var(--light-color);
    color: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    margin: 0 auto 1.5rem;
}

.feature-card h3 {
    font-size: 1.3rem;
    margin-bottom: 1rem;
    color: var(--text-color);
}

.feature-card p {
    color: var(--text-color);
    opacity: 0.8;
}

/* 截图展示区 - 调整为1200px容器居中 */
.screenshots {
    padding: 8rem 0; /* 移除原有左右padding */
    background: var(--light-color);
    text-align: center;
}
.screenshots .container {
    padding: 0 20px;
}

.screenshots h2 {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.screenshot-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    max-width: 1200px;
    margin: 0 auto;
    justify-items: center;
    align-items: center;
}

.screenshot-item {
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease;
    width: 100%;
    /* 确保父容器宽度占满整个网格项 */
    height: 200px;
    /* 设置父容器的高度 */
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--card-bg);
}

.screenshot-item img {
    max-width: 100%;
    /* 图片宽度不超过父容器 */
    max-height: 100%;
    /* 图片高度不超过父容器 */
    object-fit: cover;
    /* 保持纵横比，裁剪图片以适应父容器 */
}

.screenshot-item:hover {
    transform: translateY(-5px);
}

.screenshot-item img {
    width: 100%;
    height: auto;
    display: block;
}

/* 技术规格 - 调整为1200px容器居中 */
.specs {
    padding: 8rem 0; /* 移除原有左右padding */
    text-align: center;
    background-color: var(--bg-color);
}
.specs .container {
    padding: 0 20px;
}

.specs h2 {
    font-size: 2.2rem;
    margin-bottom: 4rem;
    color: var(--text-color);
}

.specs-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.spec-item {
    padding: 1.5rem;
    border-radius: 10px;
    background: var(--spec-bg);
    color: var(--text-color);
}

.spec-item h3 {
    color: var(--primary-color);
    margin-bottom: 0.5rem;
}

/* 下载区 - 调整为1200px容器居中 */
.download {
    padding: 8rem 0; /* 移除原有左右padding */
    background: var(--primary-color);
    text-align: center;
    color: white;
}
.download .container {
    padding: 0 20px;
}

.download h2 {
    font-size: 2.2rem;
    margin-bottom: 1rem;
}

.download p {
    margin-bottom: 3rem;
    opacity: 0.9;
}

.download-options {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}

.download-option {
    background: var(--card-bg);
    color: var(--primary-color);
    padding: 1.5rem 2rem;
    border-radius: 10px;
    width: 250px;
    transition: transform 0.3s ease;
}

.download-option:hover {
    transform: translateY(-5px);
}

.download-option h3 {
    font-size: 1.3rem;
    margin-bottom: 0.5rem;
}

.download-option p {
    color: var(--text-color);
    margin-bottom: 1rem;
}

.download-btn {
    display: block;
    background: var(--primary-color);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 5px;
    text-decoration: none;
    transition: background 0.3s ease;
    border: none !important;
}

.download-btn:hover {
    background: var(--secondary-color);
}

/* 页脚 - 调整为1200px容器居中 */
footer {
    padding: 3rem 0; /* 移除原有左右padding */
    background: var(--dark-color);
    color: white;
    text-align: center;
}
footer .container {
    padding: 0 20px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 2rem;
}

.footer-link {
    color: white;
    text-decoration: none;
    transition: color 0.3s ease;
}

.footer-link:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

/* 右侧图标栏 */
.right-icons {
    display: flex;
    align-items: center;
    gap: 1.5rem;
}

/* 导航栏下载按钮样式 - 加宽点击区域+小号文字 */
.nav-download-btn {
    border: 2px solid var(--primary-color) !important; /* 蓝色边框 */
    border-radius: 4px; /* 轻微圆角 */
    /* 增大内边距（点击空间），上下10px、左右25px */
    padding: 10px 25px !important; 
    display: inline-block;
    color: var(--primary-color) !important; /* 文字/图标颜色 */
    cursor: pointer;
    font-size: 14px !important; /* 缩小文字字号 */
    font-weight: 500;
    white-space: nowrap; /* 防止文字换行 */
    line-height: 1; /* 行高重置，避免文字垂直居中偏移 */
}

/* 下载按钮内图标微调 */
.nav-download-btn i {
    font-size: 13px; /* 图标字号略大于文字，保持协调 */
    margin-right: 4px; /* 图标与文字间距缩小 */
}

.nav-download-btn:hover {
    background-color: var(--light-color); /* 悬浮背景色 */
    transition: background-color 0.3s ease; /* 过渡动画 */
}

.right-icon {
    color: var(--text-color);
    font-size: 1.2rem;
    cursor: pointer;
    transition: color 0.3s ease;
}

.right-icon:hover {
    color: var(--primary-color);
}

/* 响应式设计 */
@media (min-width: 768px) {
    .nav-toggle {
        display: none;
    }

    .nav-menu {
        position: static;
        left: auto;
        width: auto;
        height: auto;
        background: transparent;
        padding: 0;
        display: flex;
        justify-content: center;
        /* 导航项居中 */
        gap: 1rem;
        flex-grow: 1;
        /* 占据剩余空间 */
        z-index: auto;
    }

    .nav-menu a {
        color: var(--text-color);
        margin: 0;
        font-size: 1rem;
        padding: 0.5rem 1rem;
    }

    .right-icons {
        display: flex;
    }
}

@media (max-width: 768px) {
    .hero,
    .features,
    .screenshots,
    .specs,
    .download {
        padding: 6rem 0; /* 移除原有左右padding */
    }

    .hero-content h1,
    .features h2,
    .screenshots h2,
    .specs h2,
    .download h2 {
        font-size: 1.8rem;
    }

    .right-icons {
        display: none;
    }

    .header {
        padding: 1rem 0; /* 移除原有左右padding */
    }
}
