/* 基础样式重置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Segoe UI', Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.container {
    width: 100%;
    max-width: 1200px; /* 桌面端最大宽度 */
    margin: 0 auto;
    padding: 0 4%; /* 移动端留白 */
  }

/* 导航栏样式 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: #2c3e50;
    font-weight: bold;
}

.logo img {
    border-radius: 8px;
}

.nav-links {
    display: flex;
    gap: 2rem;
    list-style: none;
}

.nav-links a {
    text-decoration: none;
    color: #34495e;
    transition: color 0.3s;
}

.nav-links a:hover {
    color: #3498db;
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    font-size: 1.5rem;
}

/* 首页内容 */
.hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 4rem 0;
    text-align: center;
}

.hero h1 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: #2c3e50;
}
h1 {
    font-size: clamp(1.5rem, 5vw, 2.5rem);
}
  
p {
    font-size: clamp(1rem, 3vw, 1.2rem);
}

.download-btn {
    display: inline-block;
    background: #3498db;
    color: white;
    padding: clamp(0.8rem, 2vw, 1.2rem);
    font-size: clamp(1rem, 3vw, 1.2rem);
    border-radius: 25px;
    text-decoration: none;
    margin-top: 1rem;
    transition: background 0.3s;
}

.download-btn:hover {
    background: #2980b9;
}

/* 功能区块 */
.features {
    padding: 4rem 0;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.feature-card {
    margin: 2vw 1vw; /* 视口单位 */
    padding: 3%;
  }
.navbar .container {
    display: flex;
    flex-wrap: wrap; /* 移动端换行 */
    justify-content: space-between;
  }

/* .feature-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1rem;
} */

/* 下载区块 */
.download {
    text-align: center;
    padding: 4rem 0;
    background: #f8f9fa;
}

.store-btn img {
    height: 50px;
    margin: 0 1rem;
}

/* 隐私政策页 */
.privacy-content {
    padding: 4rem 0;
}

.privacy-content article {
    background: white;
    padding: 2rem;
    border-radius: 10px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    margin-top: 2rem;
}

/* 页脚 */
footer {
    background: #2c3e50;
    color: white;
    padding: 2rem 0;
    margin-top: 3rem;
}

footer a {
    color: #bdc3c7;
    text-decoration: none;
}

/* 响应式设计 */
/* @media (max-width: 768px) {
    .nav-links {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 1rem;
        margin-top: 1rem;
    }

    .menu-toggle {
        display: block;
    }

    .nav-active .nav-links {
        display: flex;
    }
} */
/* 移动优先原则 */
/* 默认样式 (手机) */
.header { padding: 1rem; }

/* 平板 (≥768px) */
@media (min-width: 768px) {
  .header { padding: 2rem; }
}

/* 桌面 (≥1024px) */
@media (min-width: 1024px) {
  .header { padding: 3rem; }
}

/* 您代码中的导航栏优化 */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        width: 100%;
        background: rgba(255, 255, 255, 0.95);
        padding: 1rem;
        z-index: 1000;
    }
    
      /* 激活状态显示菜单 */
    .nav-links.active {
        display: flex !important;
        flex-direction: column;
        animation: menuSlide 0.3s ease;
    }
  
  .menu-toggle { display: block; }
}

/* 触摸友好元素 */
button, a {
    min-width: 44px; /* 可点击区域规范 */
    min-height: 44px;
  }
  
  /* 隐藏非必要元素 */
@media (max-width: 480px) {
    .desktop-only { display: none; }
  }
  
  /* 移动端菜单动效 */
.nav-links {
    transition: transform 0.3s ease;
  }
  
.menu-active .nav-links {
    transform: translateX(0);
  }

img {
    max-width: 100%;
    height: auto;
    display: block;
  }

/* 新增：浅蓝色主题变量 */
:root {
    --primary-color: #e3f2fd;    /* 主背景浅蓝 */
    --secondary-color: #2196F3;  /* 强调色蓝色 */
    --dark-blue: #1976D2;        /* 深蓝 */
}

/* 修改导航栏 */
.navbar {
    background: var(--primary-color);  /* 使用主题色 */
}

/* 修改按钮颜色 */
.download-btn {
    background: var(--secondary-color);
}
.download-btn:hover {
    background: var(--dark-blue);
}

/* 调整功能区块布局 */
.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 1.5rem;
}

.feature-card img {
    width: 100%;
    height: auto;
    aspect-ratio: 9/16; /* 保持竖屏截图比例 */
    object-fit: cover;
  }
/* 新增二维码下载样式 */
.qr-grid {
    display: flex;
    gap: 3rem;
    justify-content: center;
    margin-top: 2rem;
}

.qr-item {
    text-align: center;
}

.qr-item img {
    width: 180px;               /* 二维码尺寸 */
    height: 180px;
    border: 1px solid #ddd;
    padding: 10px;
    border-radius: 12px;
    background: white;
}

.qr-item p {
    margin-top: 1rem;
    color: var(--dark-blue);
    font-weight: bold;
}
/* 隐私政策页增强样式 */
.privacy-content h2 {
    color: #1976D2;
    margin: 2rem 0 1rem;
    border-bottom: 2px solid #e3f2fd;
    padding-bottom: 0.5rem;
}

.privacy-content ul {
    margin: 1rem 0 1rem 2rem;
    line-height: 1.8;
}

.privacy-content li {
    margin-bottom: 0.5rem;
}

.intro {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
}

.update-date {
    color: #666;
    font-style: italic;
    margin-bottom: 2rem;
}

.contact-info {
    background: #f8f9fa;
    padding: 1.5rem;
    border-radius: 8px;
    margin-top: 1rem;
}

.contact-info a {
    color: #2196F3 !important;
    text-decoration: underline;
}

/* 使用说明页样式 */
.guide-container {
    padding: 4rem 0;
}
.guide-container .container {
    display: flex;
    gap: 2rem; /* 添加间距 */
}

/* 桌面端布局 (≥768px) */
.guide-sidebar {
    width: 280px;
    flex-shrink: 0; /* 防止侧边栏被压缩 */
    position: sticky;
    top: 100px; /* 与导航栏保持间距 */
    align-self: flex-start;
}

.guide-content {
    flex: 1; /* 占据剩余空间 */
    min-width: 0; /* 防止内容溢出 */
}


.guide-menu {
    list-style: none;
}

.guide-menu li a {
    display: block;
    padding: 0.8rem;
    color: #333;
    border-radius: 4px;
    transition: all 0.3s;
}

.guide-menu li a:hover,
.guide-menu li a.active {
    background: var(--secondary-color);
    color: white;
}

.guide-item {
    display: none;
    margin-bottom: 3rem;
    background: white;
    padding: 2rem;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}

.guide-item.active {
    display: block;
    animation: fadeIn 0.5s ease;
}

.guide-item img {
    width: 100%;
    max-width: 600px;
    height: auto;
    margin: 1.5rem 0;
    border-radius: 8px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

/* 联系页样式 */
.contact-container {
    text-align: center;
    padding: 4rem 0;
}

.qr-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 3rem;
    margin-top: 3rem;
}

.qr-item img {
    width: 200px;
    height: 200px;
    transition: transform 0.3s;
}

.qr-item:hover img {
    transform: scale(1.05);
}

@media (max-width: 768px) {
    .guide-container .container {
        flex-direction: column;
    }

    .guide-sidebar {
        width: 100%;
        position: static;
        margin-bottom: 2rem;
    }

    .qr-grid {
        grid-template-columns: 1fr;
    }
}

/* 版本历史页样式 */
.versions-container {
    padding: 4rem 0;
    background: #f8f9fa;
}

.version-timeline {
    position: relative;
    padding: 2rem 0;
    max-width: 800px;
    margin: 0 auto;
}

/* 时间线装饰线 */
.version-timeline::before {
    content: '';
    position: absolute;
    left: 30px;
    top: 0;
    height: 100%;
    width: 2px;
    background: #e0e0e0;
}

.version-item {
    position: relative;
    margin-bottom: 2.5rem;
    padding-left: 70px;
}

.version-badge {
    position: absolute;
    left: 0;
    top: 0;
    width: 60px;
    height: 60px;
    background: var(--secondary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    box-shadow: 0 3px 6px rgba(0,0,0,0.1);
}

.version-content {
    background: white;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    position: relative;
}

.version-content::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 20px;
    width: 0;
    height: 0;
    border-style: solid;
    border-width: 10px 14px 10px 0;
    border-color: transparent white transparent transparent;
}

time {
    display: block;
    color: #666;
    margin-bottom: 1rem;
    font-size: 0.9em;
}

.changelog {
    list-style: none;
    padding-left: 1.5rem;
}

.changelog li {
    position: relative;
    margin-bottom: 0.8rem;
    line-height: 1.6;
}

.changelog li::before {
    content: '•';
    color: var(--secondary-color);
    position: absolute;
    left: -1.2rem;
    font-size: 1.2em;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .version-timeline {
        padding-left: 20px;
    }

    .version-timeline::before {
        left: 10px;
    }

    .version-item {
        padding-left: 50px;
    }

    .version-badge {
        width: 40px;
        height: 40px;
        font-size: 0.9em;
    }

    .version-content::before {
        left: -10px;
        border-width: 8px 10px 8px 0;
    }
}