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

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: #f5f5f5;
}

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

/* 头部样式 */
header {
    background-color: #3498db;
    color: white;
    padding: 20px 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

header h1 {
    font-size: 28px;
    margin-bottom: 10px;
}

header p {
    font-size: 16px;
}

header a {
    color: white;
    text-decoration: none;
}

header a:hover {
    text-decoration: underline;
}

/* 主内容样式 */
main {
    padding: 40px 0 100px;
}

main h2 {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
}

main h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #333;
}

/* 搜索框样式 */
.search-container {
    margin-bottom: 30px;
}

.search-form {
    display: flex;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    border-radius: 50px;
    overflow: hidden;
}

.search-input {
    flex: 1;
    padding: 15px 25px;
    border: none;
    font-size: 16px;
    outline: none;
}

.search-btn {
    padding: 15px 25px;
    background-color: #3498db;
    color: white;
    border: none;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.search-btn:hover {
    background-color: #2980b9;
}

.search-btn .icon {
    width: 20px;
    height: 20px;
}

/* 后端入口图标样式 */
.admin-entry {
    position: fixed;
    bottom: 80px;
    right: 20px;
    width: 50px;
    height: 50px;
    background-color: #3498db;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 10px rgba(0,0,0,0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    z-index: 999;
}

.admin-entry:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
}

.admin-icon {
    width: 24px;
    height: 24px;
    color: white;
}

/* 搜索结果样式 */
.no-results {
    text-align: center;
    padding: 40px;
    background-color: white;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-top: 20px;
}

.no-results p {
    font-size: 16px;
    color: #666;
}

/* 分类列表样式 */
.categories {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.category-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.category-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.category-icon {
    width: 60px;
    height: 60px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.default-icon {
    width: 60px;
    height: 60px;
    background-color: #3498db;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    font-weight: bold;
}

.category-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.category-item p {
    font-size: 14px;
    color: #666;
}

/* 软件列表样式 */
.software-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

.software-item {
    background-color: white;
    border-radius: 8px;
    padding: 20px;
    text-decoration: none;
    color: #333;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.software-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

.software-item h3 {
    font-size: 18px;
    margin-bottom: 10px;
}

.tags {
    margin: 10px 0;
}

.tag {
    display: inline-block;
    background-color: #e3f2fd;
    color: #1976d2;
    padding: 4px 12px;
    border-radius: 16px;
    font-size: 12px;
    margin-right: 8px;
    margin-bottom: 8px;
}

.version {
    font-size: 14px;
    color: #666;
    margin: 10px 0;
}

.description {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
}

/* 软件详情样式 */
.software-header {
    display: flex;
    align-items: center;
    margin-bottom: 20px;
}

.software-icon {
    width: 80px;
    height: 80px;
    margin-right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.software-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    border-radius: 8px;
}

.software-icon .default-icon {
    width: 80px;
    height: 80px;
    background-color: #3498db;
    color: white;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    font-weight: bold;
}

.software-details {
    background-color: white;
    border-radius: 8px;
    padding: 30px;
    margin-top: 20px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.software-info p {
    margin: 10px 0;
}

.download-links {
    margin: 20px 0;
}

.download-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: bold;
    margin-right: 10px;
    margin-bottom: 10px;
    transition: background-color 0.3s ease;
}

.download-btn.primary {
    background-color: #27ae60;
    color: white;
}

.download-btn.primary:hover {
    background-color: #219a52;
}

.download-btn.secondary {
    background-color: #95a5a6;
    color: white;
}

.download-btn.secondary:hover {
    background-color: #7f8c8d;
}

/* 底部样式 */
footer {
    background-color: #333;
    color: white;
    padding: 20px 0;
    text-align: center;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1000;
}

footer p {
    font-size: 14px;
}

/* 底栏友情链接样式 */
.footer-content {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.friend-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    align-items: center;
    gap: 15px;
}

.friend-links-title {
    font-weight: bold;
    color: #ccc;
}

.friend-link {
    color: #fff;
    text-decoration: none;
    padding: 5px 10px;
    border-radius: 4px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.friend-link:hover {
    background-color: rgba(255, 255, 255, 0.1);
    color: #3498db;
}

.copyright {
    color: #999;
    font-size: 12px;
    white-space: nowrap;
}

/* 响应式设计 - 小屏幕时恢复垂直布局 */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column;
        gap: 10px;
    }
    
    .friend-links {
        justify-content: center;
    }
    
    .categories {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .software-list {
        grid-template-columns: 1fr;
    }
    
    header h1 {

/* 响应式设计 */
@media (max-width: 768px) {
    .categories {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .software-list {
        grid-template-columns: 1fr;
    }
    
    header h1 {
        font-size: 24px;
    }
    
    main h2 {
        font-size: 20px;
    }
}