/*
Theme Name: 软件盒子
Theme URI: https://rjbox.cn/
Description: 一个专注于软件搜索的WordPress主题，蓝色系设计
Author: Software Box Team
Author URI: https://rjbox.cn/
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ruanjianshuhe
*/

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
}

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

.header {
    padding: 40px 0;
    text-align: center;
}

.logo {
    font-size: 48px;
    font-weight: 700;
    color: #fff;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.2);
}

.tagline {
    font-size: 18px;
    color: rgba(255,255,255,0.9);
}

.search-section {
    padding: 60px 0;
    text-align: center;
}

.search-box-container {
    max-width: 600px;
    margin: 0 auto;
}

.search-form {
    position: relative;
    display: flex;
    align-items: center;
}

.search-input {
    flex: 1;
    height: 56px;
    padding: 0 60px 0 24px;
    font-size: 18px;
    border: none;
    border-radius: 28px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.15);
    outline: none;
    transition: box-shadow 0.3s ease;
}

.search-input:focus {
    box-shadow: 0 8px 40px rgba(0,0,0,0.25);
}

.search-button {
    position: absolute;
    right: 4px;
    height: 48px;
    width: 100px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    border: none;
    border-radius: 24px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.search-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
    transform: translateY(-1px);
}

.search-tips {
    margin-top: 20px;
    color: rgba(255,255,255,0.8);
    font-size: 14px;
}

.search-tips span {
    display: inline-block;
    padding: 4px 12px;
    background: rgba(255,255,255,0.2);
    border-radius: 20px;
    margin: 4px;
}

.footer {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    text-align: center;
    color: rgba(255,255,255,0.7);
    font-size: 14px;
}

/* 搜索结果页面 */
.results-header {
    background: rgba(255,255,255,0.1);
    backdrop-filter: blur(10px);
    padding: 20px 0;
}

.results-container {
    padding: 40px 0;
    min-height: 100vh;
}

.results-title {
    color: #fff;
    margin-bottom: 30px;
    font-size: 24px;
}

.results-count {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 20px;
}

.search-results {
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.1);
}

.result-item {
    padding: 20px;
    border-bottom: 1px solid #eee;
    transition: background 0.2s ease;
}

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

.result-item:hover {
    background: #f8fafc;
}

.result-title {
    font-size: 18px;
    color: #1e40af;
    text-decoration: none;
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.result-title:hover {
    text-decoration: underline;
}

.result-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 8px;
}

.result-description {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
}

.search-results .result-item .download-button {
    display: inline-block !important;
    padding: 12px 32px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: #ffffff !important;
    text-decoration: none !important;
    border-radius: 24px !important;
    font-weight: 700 !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.4) !important;
    margin-top: 16px !important;
    border: none !important;
    cursor: pointer !important;
}

.search-results .result-item .download-button:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 24px rgba(37, 99, 235, 0.5) !important;
}

.no-results {
    text-align: center;
    padding: 60px 0;
    color: rgba(255,255,255,0.9);
}

.no-results h3 {
    font-size: 24px;
    margin-bottom: 16px;
}

.no-results p {
    font-size: 16px;
    margin-bottom: 24px;
}

.back-button {
    display: inline-block;
    padding: 12px 32px;
    background: rgba(255,255,255,0.2);
    color: #fff;
    text-decoration: none;
    border-radius: 24px;
    font-weight: 600;
    transition: background 0.3s ease;
}

.back-button:hover {
    background: rgba(255,255,255,0.3);
}

.software-section {
    padding: 20px 0 80px;
}

.section-title {
    text-align: center;
    margin-bottom: 30px;
}

.section-title h2 {
    font-size: 24px;
    color: #fff;
    font-weight: 600;
}

.software-grid {
    display: grid !important;
    grid-template-columns: repeat(5, 1fr) !important;
    gap: 20px !important;
    max-width: 1400px !important;
    margin: 0 auto !important;
    padding: 0 20px !important;
}

.software-card {
    background: rgba(255, 255, 255, 0.95);
    border-radius: 16px;
    padding: 24px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
}

.card-icon {
    width: 64px;
    height: 64px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    color: #fff;
}

.card-icon svg {
    width: 32px;
    height: 32px;
}

.card-title {
    font-size: 18px;
    color: #1e40af;
    font-weight: 600;
    margin-bottom: 8px;
}

.card-meta {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 12px;
}

.card-desc {
    font-size: 14px;
    color: #475569;
    line-height: 1.6;
    margin-bottom: 16px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-button {
    display: inline-block;
    padding: 10px 20px;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
    color: #fff;
    text-decoration: none;
    border-radius: 20px;
    font-weight: 600;
    font-size: 14px;
    transition: all 0.3s ease;
}

.card-button:hover {
    background: linear-gradient(135deg, #1d4ed8 100%, #1e40af 100%);
}

.no-software {
    grid-column: 1 / -1;
    text-align: center;
    padding: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    color: rgba(255, 255, 255, 0.8);
}

/* 响应式设计 */
@media (max-width: 992px) {
    .software-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 32px;
    }
    
    .search-box-container {
        padding: 0 20px;
    }
    
    .search-input {
        font-size: 16px;
        height: 50px;
    }
    
    .search-button {
        width: 80px;
        height: 42px;
        font-size: 14px;
    }
    
    .software-grid {
        grid-template-columns: 1fr !important;
    }
}