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

:root {
    --primary-color: #409eff;
    --secondary-color: #67c23a;
    --text-color: #303133;
    --text-secondary: #606266;
    --border-color: #dcdfe6;
    --bg-color: #f5f7fa;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background: var(--bg-color);
}

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

/* 导航栏 */
.navbar {
    background: #fff;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
    padding: 15px 0;
}

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

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-brand .logo {
    height: 40px;
    width: auto;
}

.nav-brand h1 {
    font-size: 24px;
    color: var(--primary-color);
}

.back-link {
    color: var(--text-color);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
}

.back-link:hover {
    color: var(--primary-color);
}

/* 下载页面 */
.download-page {
    padding: 40px 0 80px;
}

.download-header {
    text-align: center;
    padding: 40px 0;
    background: #fff;
    border-radius: 15px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.app-icon {
    font-size: 80px;
    margin-bottom: 20px;
}

.app-icon-img {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.download-header h1 {
    font-size: 36px;
    color: var(--text-color);
    margin-bottom: 10px;
}

.app-version {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
}

.app-description {
    color: var(--text-secondary);
    font-size: 16px;
}

/* 下载内容 */
.download-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 30px;
    margin-bottom: 40px;
}

.download-card {
    background: #fff;
    border-radius: 15px;
    padding: 30px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.platform-header {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 2px solid var(--bg-color);
}

.platform-icon {
    font-size: 40px;
}

.platform-header h2 {
    font-size: 24px;
    color: var(--text-color);
}

.download-info {
    margin-bottom: 25px;
}

.download-info p {
    margin-bottom: 10px;
    color: var(--text-secondary);
}

.download-info strong {
    color: var(--text-color);
}

.download-methods {
    margin-bottom: 25px;
}

.btn {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 25px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s;
    cursor: pointer;
    text-align: center;
}

.btn-download {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: #fff;
    margin-bottom: 20px;
}

.btn-download:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.qrcode-container {
    text-align: center;
}

.qrcode-box {
    display: inline-block;
    padding: 15px;
    background: var(--bg-color);
    border-radius: 10px;
}

.qrcode-box p {
    margin-bottom: 10px;
    color: var(--text-secondary);
    font-size: 14px;
}

.qrcode-placeholder {
    width: 150px;
    height: 150px;
    border: 2px dashed var(--border-color);
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: #fff;
    color: var(--text-secondary);
}

.qrcode-box.large .qrcode-placeholder {
    width: 200px;
    height: 200px;
}

.install-guide {
    background: var(--bg-color);
    padding: 20px;
    border-radius: 10px;
}

.install-guide h3 {
    font-size: 16px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.install-guide ol {
    padding-left: 20px;
}

.install-guide li {
    margin-bottom: 8px;
    color: var(--text-secondary);
}

/* 小程序区域 */
.miniprogram-section {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    text-align: center;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.miniprogram-section h2 {
    font-size: 28px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.miniprogram-section > p {
    color: var(--text-secondary);
    margin-bottom: 30px;
}

.miniprogram-qrcode {
    display: inline-block;
}

.miniprogram-tip {
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* 更新日志 */
.changelog {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    margin-bottom: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.changelog h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.changelog-item {
    border-left: 3px solid var(--primary-color);
    padding-left: 20px;
    margin-bottom: 20px;
}

.changelog-item h3 {
    font-size: 18px;
    margin-bottom: 15px;
    color: var(--text-color);
}

.changelog-item .date {
    color: var(--text-secondary);
    font-size: 14px;
    font-weight: normal;
}

.changelog-item ul {
    list-style: none;
}

.changelog-item li {
    padding: 5px 0;
    color: var(--text-secondary);
    position: relative;
    padding-left: 20px;
}

.changelog-item li:before {
    content: "•";
    position: absolute;
    left: 0;
    color: var(--primary-color);
    font-weight: bold;
}

/* 常见问题 */
.faq {
    background: #fff;
    border-radius: 15px;
    padding: 40px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.faq h2 {
    font-size: 28px;
    margin-bottom: 30px;
    color: var(--text-color);
}

.faq-item {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid var(--bg-color);
}

.faq-item:last-child {
    border-bottom: none;
}

.faq-item h3 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--text-color);
}

.faq-item p {
    color: var(--text-secondary);
    line-height: 1.8;
}

/* 页脚 */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 30px 0;
    text-align: center;
}

.footer-links {
    margin-top: 15px;
}

.footer-links a {
    color: #bdc3c7;
    text-decoration: none;
    margin: 0 15px;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: #fff;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .download-content {
        grid-template-columns: 1fr;
    }

    .download-header h1 {
        font-size: 28px;
    }

    .app-icon {
        font-size: 60px;
    }

    .platform-header h2 {
        font-size: 20px;
    }

    .changelog h2,
    .faq h2,
    .miniprogram-section h2 {
        font-size: 24px;
    }
}
