/*
Theme Name: DownloadBird（下载鸟）
Theme URI: https://your-domain.com/
Author: 你的名字
Author URI: https://your-domain.com/
Description: 1:1仿写xiazainiao.com的WordPress下载站主题，支持动态数据、下载计数、分类导航等功能。
Version: 1.0
License: GPL v2 or later
Text Domain: download-bird
*/

/* 全局样式重置（适配所有浏览器） */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "微软雅黑", "Microsoft YaHei", "思源黑体", sans-serif;
}
body {
    background: #f8f8f8;
    color: #333;
    line-height: 1.6;
}
a {
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
}
ul, li {
    list-style: none;
}
img {
    max-width: 100%;
    height: auto;
    border: none;
}
/* 固定宽屏容器（和目标站一致1200px） */
.w1200 {
    width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* 头部导航（固定顶部，和目标站一致） */
.header {
    height: 80px;
    background: #fff;
    border-bottom: 1px solid #eee;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 999;
}
.header-inner {
    display: flex;
    align-items: center;
    height: 80px;
}
/* Logo样式 */
.logo {
    width: 150px;
}
.logo a {
    font-size: 28px;
    color: #ff6700;
    font-weight: bold;
}
/* 主导航 */
.nav {
    flex: 1;
    margin-left: 50px;
}
.nav ul {
    display: flex;
}
.nav li {
    margin: 0 20px;
    position: relative;
}
.nav li a {
    font-size: 16px;
    line-height: 80px;
}
.nav li.active a, .nav li a:hover {
    color: #ff6700;
}
.nav li.active::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background: #ff6700;
}
/* 搜索框 */
.search {
    width: 250px;
}
.search form {
    display: flex;
}
.search input {
    width: 200px;
    height: 38px;
    padding: 0 15px;
    border: 1px solid #eee;
    border-radius: 19px 0 0 19px;
    outline: none;
    font-size: 14px;
}
.search button {
    width: 50px;
    height: 38px;
    background: #ff6700;
    border: none;
    border-radius: 0 19px 19px 0;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
}

/* Banner轮播区（和目标站一致高度） */
.banner {
    margin-top: 80px;
    height: 400px;
    overflow: hidden;
}
.banner-inner {
    height: 400px;
}
.banner-slide img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* 主内容区（左主右副布局） */
.main {
    margin-top: 20px;
    display: flex;
    min-height: 600px;
    padding-bottom: 40px;
}
/* 左侧主内容 */
.main-left {
    width: 850px;
    margin-right: 20px;
}
/* 分类标题栏 */
.cate-title {
    height: 60px;
    line-height: 60px;
    border-bottom: 2px solid #ff6700;
    margin-bottom: 20px;
}
.cate-title h2 {
    font-size: 22px;
    color: #333;
    float: left;
}
.cate-title .more {
    float: right;
    font-size: 14px;
    color: #999;
}
.cate-title .more:hover {
    color: #ff6700;
}
/* 软件卡片列表（核心，和目标站一致每行2个） */
.soft-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
}
.soft-item {
    width: 415px;
    height: 120px;
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    display: flex;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
    transition: all 0.3s ease;
    position: relative;
}
.soft-item:hover {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: translateY(-2px);
}
/* 软件图标 */
.soft-icon {
    width: 80px;
    height: 80px;
    margin-right: 15px;
}
.soft-icon img {
    width: 100%;
    height: 100%;
    border-radius: 8px;
    object-fit: cover;
}
/* 软件信息 */
.soft-info {
    flex: 1;
}
.soft-name {
    font-size: 18px;
    margin-bottom: 10px;
}
.soft-name a:hover {
    color: #ff6700;
}
.soft-desc {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    margin-bottom: 8px;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}
.soft-meta {
    font-size: 12px;
    color: #999;
}
.soft-meta span {
    margin-right: 15px;
}
/* 下载按钮 */
.soft-download {
    display: flex;
    align-items: center;
}
.download-btn {
    display: inline-block;
    width: 100px;
    height: 36px;
    line-height: 36px;
    text-align: center;
    background: #ff6700;
    color: #fff !important;
    border-radius: 18px;
    font-size: 14px;
    font-weight: 500;
}
.download-btn:hover {
    background: #e55a00;
}

/* 右侧侧边栏 */
.main-right {
    width: 330px;
}
.sidebar-box {
    background: #fff;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.sidebar-title {
    font-size: 18px;
    color: #333;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
    margin-bottom: 15px;
}
/* 下载排行列表 */
.rank-list li {
    height: 38px;
    line-height: 38px;
    border-bottom: 1px dashed #eee;
    display: flex;
    align-items: center;
}
.rank-list li:last-child {
    border-bottom: none;
}
.rank-list .num {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    text-align: center;
    background: #ff6700;
    color: #fff;
    border-radius: 50%;
    font-size: 12px;
    margin-right: 10px;
}
.rank-list li a:hover {
    color: #ff6700;
}
/* 最新更新列表 */
.new-list li {
    height: 38px;
    line-height: 38px;
    border-bottom: 1px dashed #eee;
}
.new-list li:last-child {
    border-bottom: none;
}
.new-list li a {
    float: left;
    font-size: 14px;
}
.new-list li a:hover {
    color: #ff6700;
}
.new-list li .date {
    float: right;
    font-size: 12px;
    color: #999;
}

/* 软件详情页专属样式 */
.soft-item.detail-item {
    width: 100%;
    height: auto;
    padding: 20px;
}
.soft-item.detail-item .soft-icon {
    width: 120px;
    height: 120px;
}
.soft-item.detail-item .soft-name {
    font-size: 24px;
    margin-bottom: 15px;
}
.soft-item.detail-item .soft-meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 20px;
}
.soft-item.detail-item .soft-meta span {
    margin-right: 20px;
    font-size: 14px;
}
.soft-item.detail-item .soft-desc {
    font-size: 16px;
    color: #333;
    -webkit-line-clamp: unset;
    margin-bottom: 0;
}
.soft-item.detail-item .soft-download {
    position: absolute;
    right: 20px;
    top: 50%;
    transform: translateY(-50%);
}
/* 软件详情内容 */
.soft-detail {
    background: #fff;
    border-radius: 8px;
    padding: 20px;
    margin-top: 20px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.05);
}
.soft-detail h3 {
    font-size: 20px;
    margin-bottom: 15px;
}
.soft-detail p {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 10px;
}

/* 底部样式 */
.footer {
    background: #333;
    color: #999;
    padding: 30px 0;
    margin-top: 20px;
}
.footer-inner {
    text-align: center;
}
.footer-nav {
    margin-bottom: 15px;
}
.footer-nav a {
    color: #999;
    margin: 0 15px;
    font-size: 14px;
}
.footer-nav a:hover {
    color: #ff6700;
}
.copyright {
    font-size: 12px;
}

/* 分页样式 */
.pagination {
    text-align: center;
    margin-top: 30px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    border: 1px solid #eee;
    border-radius: 4px;
    background: #fff;
}
.pagination a:hover {
    background: #ff6700;
    color: #fff;
    border-color: #ff6700;
}