/*!
Theme Name: 主题盒子
Theme URI: https://www.wpzt.net/
Author: 主题盒子 wpzt.net
Author URI: https://www.wpzt.net
Description: 基于 主题盒子资源主题重构的独立 WordPress 主题
Version: 1.0
License: GPL v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain:wpzj-ziyuan
Tags: 资源主题,资源下载,响应式,中文主题
*/

/* 基础样式 */
@import "assets/css/font.css";

body {
    background: #f6f6f6;
    font-size: 14px;
    min-width: 1300px;
    font-family: "Microsoft Yahei", "PingFang SC", "Hiragino Sans GB", sans-serif;
    box-sizing: border-box;
    -webkit-text-size-adjust: none;
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

img {
    animation: fade-ins;
    animation-duration: .6s;
    -webkit-animation: fade-ins .6s;
    max-width: 100%;
    height: auto;
}

@keyframes fade-ins {
    0% { opacity: 0; }
    to { opacity: 1; }
}

/* 布局工具类 */
.fl, .left { float: left; }
.fr, .right { float: right; }
.clearfix::after {
    content: "";
    display: table;
    clear: both;
}

/* 滚动条样式 */
::-webkit-scrollbar {
    width: 8px;
    height: 8px;
}
::-webkit-scrollbar-thumb,
::-webkit-scrollbar-track {
    border-radius: 999px;
    border: 0 solid transparent;
}
::-webkit-scrollbar-track {
    box-shadow: 1px 1px 5px rgba(100,100,100,.2) inset;
}
::-webkit-scrollbar-thumb {
    min-height: 0;
    background-clip: content-box;
    box-shadow: 0 0 0 5px rgba(100,100,100,.5) inset;
}
::-webkit-scrollbar-corner {
    background: 0 0;
}

input {
    -webkit-appearance: none;
}

/* 容器 */
.container {
    width: 1200px;
    margin: 0 auto;
    padding-left: 0;
    padding-right: 0;
}

/* 头部样式 */
header {
    background: #fff;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.header-top {
    background: #333;
    color: #fff;
    padding: 8px 0;
    font-size: 12px;
}

.header-top a {
    color: #fff;
    text-decoration: none;
    margin-left: 20px;
}

.header-important {
    padding: 20px 0;
}

.logo {
    float: left;
    display: block;
}

.logo img {
    max-height: 50px;
}

.search {
    float: right;
    margin-top: 10px;
    position: relative;
}

.search input[type="text"] {
    width: 300px;
    height: 40px;
    border: 2px solid #ffa400;
    border-radius: 20px;
    padding: 0 40px 0 20px;
    outline: none;
}

.search input[type="submit"] {
    position: absolute;
    right: 5px;
    top: 5px;
    width: 30px;
    height: 30px;
    border: none;
    background: #ffa400;
    border-radius: 50%;
    color: #fff;
    cursor: pointer;
}

/* 导航菜单 */
.web-nav {
    background: #fff;
    border-top: 1px solid #f0f0f0;
}

.nav-ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.nav-ul li {
    display: inline-block;
    position: relative;
}

.nav-ul li a {
    display: block;
    padding: 15px 20px;
    color: #333;
    text-decoration: none;
    font-size: 15px;
    transition: color 0.3s;
}

.nav-ul li a:hover {
    color: #ffa400;
}

/* 内容区域 */
.content-true {
    padding: 20px 0;
}

/* 标题样式 */
.title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-left: 15px;
    border-left: 4px solid #ffa400;
}

/* 列表样式 */
.new-list ul,
.down-list ul,
.article-list ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.new-list li,
.down-list li,
.article-list li {
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
}

.new-list li a,
.down-list li a,
.article-list li a {
    color: #333;
    text-decoration: none;
}

.new-list li a:hover,
.down-list li a:hover,
.article-list li a:hover {
    color: #ffa400;
}

/* 按钮样式 */
.btn {
    display: inline-block;
    padding: 8px 20px;
    background: #ffa400;
    color: #fff;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s;
}

.btn:hover {
    background: #e69500;
}

/* 分页样式 */
.pagination {
    text-align: center;
    padding: 20px 0;
}

.pagination a,
.pagination span {
    display: inline-block;
    padding: 8px 15px;
    margin: 0 5px;
    background: #fff;
    color: #333;
    text-decoration: none;
    border-radius: 4px;
}

.pagination a:hover,
.pagination .current {
    background: #ffa400;
    color: #fff;
}

/* 底部样式 */
footer {
    background: #333;
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 40px;
}

footer a {
    color: #fff;
    text-decoration: none;
}

footer a:hover {
    color: #ffa400;
}

/* 友情链接 */
.friends-link {
    background: #fff;
    padding: 20px 0;
    margin-top: 20px;
}

.friends-link ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

.friends-link li {
    display: inline-block;
    margin-right: 20px;
}

.friends-link li a {
    color: #666;
    text-decoration: none;
}

/* 侧边栏 */
.sidebar {
    width: 300px;
    float: right;
}

.widget {
    background: #fff;
    padding: 20px;
    margin-bottom: 20px;
    border-radius: 4px;
}

.widget-title {
    font-size: 16px;
    font-weight: bold;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 2px solid #ffa400;
}

/* 响应式设计 */
@media screen and (max-width: 1300px) {
    .container {
        width: 100%;
        padding: 0 15px;
    }
    body {
        min-width: auto;
    }
}

@media screen and (max-width: 768px) {
    .search {
        display: none;
    }
    .sidebar {
        width: 100%;
        float: none;
    }
}

/* 动画效果 */
@keyframes pop-in {
    0% { transform: scale(.1,.1); opacity: .1; }
    80% { transform: scale(1.1,1.1); }
    100% { transform: scale(1,1); opacity: 1; }
}

/* 返回顶部 */
.backtop {
    display: none;
    position: fixed;
    bottom: 19px;
    right: 20px;
    width: 50px;
    height: 50px;
    background: #fff;
    text-align: center;
    line-height: 50px;
    color: #333;
    font-size: 21px;
    border-radius: 9px;
    cursor: pointer;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.backtop:hover {
    color: #ffa400;
}

/* 文章详情页 */
.single-content {
    background: #fff;
    padding: 30px;
    border-radius: 4px;
}

.single-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 20px;
}

.single-meta {
    color: #999;
    font-size: 14px;
    margin-bottom: 20px;
}

.single-meta span {
    margin-right: 20px;
}

/* 面包屑导航 */
.breadcrumbs {
    padding: 15px 0;
    color: #666;
    font-size: 14px;
}

.breadcrumbs a {
    color: #666;
    text-decoration: none;
}

.breadcrumbs a:hover {
    color: #ffa400;
}
