/* 重置样式和基础设置 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', Roboto, sans-serif;
    line-height: 1.4;
    color: #333;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    height: 100vh;
    padding: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.container {
    max-width: 1200px;
    width: 100%;
    height: 100%;
    padding: 20px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    display: flex;
    flex-direction: column;
}

/* 紧凑版头部样式 */
.compact-header {
    padding: 15px 0;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 20px;
    flex-shrink: 0;
}

.header-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    align-items: center;
}

.header-left {
    padding-right: 15px;
}

.main-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 8px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.highlight {
    color: #ff6b6b;
}

.subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 12px;
    line-height: 1.4;
}

.subtitle a {
    color: #667eea;
    text-decoration: none;
    font-weight: 600;
}

.subtitle a:hover {
    text-decoration: underline;
}

.features-inline {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.features-inline span {
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    padding: 6px 12px;
    border-radius: 8px;
    font-size: 0.9rem;
    color: #555;
    border: 1px solid #e0e0e0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
}

/* 右侧作者信息 */
.header-right {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
}

.author-compact-box {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 15px;
}

.author-info {
    font-size: 0.95rem;
    color: #555;
    text-align: right;
    line-height: 1.3;
    background: linear-gradient(135deg, #f8f9ff 0%, #e8f5e8 100%);
    padding: 10px 15px;
    border-radius: 8px;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
}

.qr-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    background: linear-gradient(135deg, #fff5f5 0%, #f0f9ff 100%);
    padding: 10px 15px;
    border-radius: 10px;
    border: 2px solid #ff6b6b;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.3);
}

.qr-inline img {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    object-fit: cover;
}

.qr-inline span {
    font-size: 0.85rem;
    color: #666;
    white-space: nowrap;
    font-weight: 500;
}

/* 大瑜聊AI链接样式 */
.dayu-link {
    color: #ff6b6b;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.dayu-link:hover {
    text-decoration: underline;
    opacity: 0.8;
    transform: scale(1.05);
}

/* 主要内容区域 */
.main-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 0;
}

/* 下载区域占满剩余空间 */
.download-compact {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 30px;
    background: white;
    border-radius: 16px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.download-header {
    text-align: center;
    margin-bottom: 30px;
}

.download-header h2 {
    font-size: 2.2rem;
    color: #333;
    margin-bottom: 15px;
    background: linear-gradient(45deg, #667eea, #764ba2);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.download-header p {
    font-size: 1.1rem;
    color: #666;
    line-height: 1.4;
    max-width: 600px;
    margin: 0 auto;
}

.download-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    max-width: 1000px;
    margin: 0 auto;
}

.download-card-compact {
    background: linear-gradient(135deg, #f8f9ff 0%, #ffffff 100%);
    border-radius: 16px;
    padding: 25px;
    border: 2px solid #e0e0e0;
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

.download-card-compact:hover {
    transform: translateY(-8px);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
    border-color: #667eea;
}

.download-card-compact.recommended {
    border-color: #ff6b6b;
    background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
    box-shadow: 0 8px 30px rgba(255, 107, 107, 0.2);
}

.recommend-badge-mini {
    position: absolute;
    top: -12px;
    right: 20px;
    background: linear-gradient(45deg, #ff6b6b, #ff8e8e);
    color: white;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 107, 107, 0.4);
}

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

.platform-info {
    display: flex;
    align-items: center;
    gap: 15px;
}

.platform-icon-mini {
    font-size: 3rem;
}

.platform-text h3 {
    font-size: 1.3rem;
    color: #333;
    margin-bottom: 5px;
    font-weight: 600;
}

.platform-text p {
    font-size: 0.95rem;
    color: #666;
}

.download-btn-compact {
    background: linear-gradient(45deg, #667eea, #764ba2);
    color: white;
    text-decoration: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(102, 126, 234, 0.4);
    white-space: nowrap;
}

.download-btn-compact:hover {
    background: linear-gradient(45deg, #5a67d8, #6b5b95);
    transform: translateY(-3px);
    box-shadow: 0 10px 30px rgba(102, 126, 234, 0.6);
}

/* 紧凑页脚 */
.footer-compact {
    margin-top: auto;
   
    border-top: 2px solid #e0e0e0;
    background: linear-gradient(135deg, #f8f9ff 0%, #e3f2fd 100%);
    border-radius: 0 0 16px 16px;
    flex-shrink: 0;
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 0.9rem;
    color: #666;
    flex-wrap: wrap;
    gap: 15px;
}

.footer-content strong {
    color: #667eea;
    font-weight: 600;
}

/* 响应式设计 */
@media (max-width: 768px) {
    body {
        height: auto;
        min-height: 100vh;
        padding: 5px;
    }
    
    .container {
        height: auto;
        min-height: calc(100vh - 10px);
    }
    
    .header-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .header-right {
        align-items: flex-start;
    }
    
    .author-compact-box {
        align-items: flex-start;
    }
    
    .author-info {
        text-align: left;
        font-size: 0.8rem;
    }
    
    .qr-inline {
        align-self: flex-start;
    }
    
    .download-grid-compact {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .footer-content {
        flex-direction: column;
        text-align: center;
        gap: 8px;
        font-size: 0.8rem;
    }
    
    .main-title {
        font-size: 1.8rem;
    }
    
    .download-header h2 {
        font-size: 1.6rem;
    }
    
    .download-compact {
        padding: 20px;
    }
    
    .download-card-compact {
        padding: 15px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 10px;
    }
    
    .main-title {
        font-size: 1.5rem;
    }
    
    .subtitle {
        font-size: 0.9rem;
    }
    
    .features-inline span {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .download-header h2 {
        font-size: 1.4rem;
    }
    
    .download-header p {
        font-size: 0.9rem;
    }
    
    .download-card-compact {
        padding: 12px;
    }
    
    .card-content {
        flex-direction: column;
        gap: 12px;
        text-align: center;
    }
    
    .platform-info {
        justify-content: center;
    }
    
    .platform-icon-mini {
        font-size: 2.5rem;
    }
    
    .qr-inline img {
        width: 50px;
        height: 50px;
    }
}

/* 性能优化和可访问性 */
.download-btn-compact:focus,
.dayu-link:focus {
    outline: 3px solid rgba(102, 126, 234, 0.4);
    outline-offset: 2px;
}

/* 加载动画 */
@keyframes slideInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.download-card-compact {
    animation: slideInUp 0.6s ease forwards;
}

.download-card-compact:nth-child(1) { animation-delay: 0.1s; }
.download-card-compact:nth-child(2) { animation-delay: 0.2s; }
.download-card-compact:nth-child(3) { animation-delay: 0.3s; }

/* 强调关键词 */
strong {
    color: #667eea;
    font-weight: 600;
} 