* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f7;
}

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

header {
    text-align: center;
    padding: 40px 0;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 10px;
    margin-bottom: 30px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    font-weight: 700;
}

header p {
    font-size: 1.1rem;
    opacity: 0.9;
}

/* 应用网格布局 */
.app-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

/* 应用卡片 */
.app-card {
    display: flex;
    flex-direction: column;
    background: white;
    padding: 20px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.app-icon {
    text-align: center;
    margin-bottom: 20px;
}

.app-icon img {
    width: 120px;
    height: 120px;
    border-radius: 25px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    border: 2px solid #e0e0e0;
}

.app-info {
    flex-grow: 1;
    margin-bottom: 20px;
}

.app-info h2 {
    font-size: 1.8rem;
    margin-bottom: 8px;
    color: #1d1d1f;
    text-align: center;
}

.version {
    color: #6e6e73;
    font-weight: 500;
    margin-bottom: 10px;
    text-align: center;
}

.description {
    color: #86868b;
    margin-bottom: 10px;
    font-size: 0.95rem;
    text-align: center;
}

.size {
    color: #6e6e73;
    font-size: 0.9rem;
    text-align: center;
}

.platform {
    color: #6e6e73;
    font-size: 0.9rem;
    text-align: center;
    margin-bottom: 10px;
}

.update-time {
    color: #6e6e73;
    font-size: 0.9rem;
    text-align: center;
}

/* 应用操作按钮 */
.app-actions {
    display: flex;
    justify-content: center;
}

.detail-btn {
    background: #667eea;
    color: white;
    text-decoration: none;
    padding: 12px 24px;
    border-radius: 25px;
    font-size: 1rem;
    font-weight: 600;
    transition: background-color 0.3s ease;
}

.detail-btn:hover {
    background: #764ba2;
}

/* 下载区域 */
.download-section {
    background: white;
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.download-section h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #1d1d1f;
    text-align: center;
}

.install-instruction {
    color: #86868b;
    margin-bottom: 25px;
    font-size: 1rem;
    text-align: center;
}

/* 平台按钮容器 */
.platform-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

/* 下载按钮基础样式 */
.download-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    padding: 15px 30px;
    border-radius: 30px;
    font-size: 1.1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.download-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.3);
}

/* iOS按钮样式 */
.ios-btn {
    background: #0071e3;
}

.ios-btn:hover {
    background: #0077ed;
}

/* Android按钮样式 */
.android-btn {
    background: #34a853;
}

.android-btn:hover {
    background: #3da857;
}

/* Logo样式 */
.apple-logo, .android-logo {
    width: 24px;
    height: 24px;
    margin-right: 10px;
}

/* 设备自动检测高亮 */
.auto-detect {
    transform: scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    border: 2px solid #ffd700;
}

/* 警告信息 */
.warning {
    background: #fff3cd;
    color: #856404;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
    border: 1px solid #ffeeba;
}

/* 安装说明 */
.notes {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.notes h4 {
    font-size: 1.1rem;
    margin-bottom: 15px;
    color: #1d1d1f;
    text-align: center;
}

/* 平台说明容器 */
.platform-notes {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.platform-notes h5 {
    font-size: 1rem;
    margin-bottom: 10px;
    color: #1d1d1f;
    text-align: center;
}

.notes ul {
    list-style: none;
    color: #86868b;
}

.notes li {
    margin-bottom: 10px;
    padding-left: 25px;
    position: relative;
}

.notes li:before {
    content: "•";
    color: #0071e3;
    font-weight: bold;
    position: absolute;
    left: 0;
}

/* 返回链接 */
.back-link {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.back-link:hover {
    color: #764ba2;
    text-decoration: underline;
}

footer {
    text-align: center;
    padding: 30px 0;
    color: #86868b;
    font-size: 0.9rem;
    margin-top: 40px;
}

@media (max-width: 768px) {
    .container {
        padding: 15px;
    }
    
    header h1 {
        font-size: 2rem;
    }
    
    .app-grid {
        grid-template-columns: 1fr;
    }
    
    .app-card {
        flex-direction: column;
        text-align: center;
    }
    
    .app-icon {
        margin-right: 0;
        margin-bottom: 20px;
    }
    
    .platform-buttons {
        flex-direction: column;
    }
    
    .download-btn {
        width: 100%;
        padding: 18px;
        font-size: 1.2rem;
    }
    
    .platform-notes {
        grid-template-columns: 1fr;
    }
}