/*
Theme Name: 广元网主题
Theme URI: https://www.gy9.cn/
Author: 广元网
Author URI: https://www.gy9.cn/
Description: 广元网官方原创主题
Version: 1.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: 广元网主题
*/

* {
    margin: 0;
    padding: 0;
    outline: 0;
    box-sizing: border-box;
    transition: all 0.3s ease-in-out;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
    font-size: 14px;
    line-height: 1;
    color: #333;
    background-color: #f9f9f9;
}

ul, ol, li {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
}

img {
    width: 100%;
    height: 100%;
    vertical-align: middle;
}


.container {
    max-width: 1280px;
    margin: 0 auto;
}

.d-flex {
    display: flex;
}

.items-center {
    align-items: center;
}

.justify-between {
    justify-content: space-between;
}

.header {
    background: url(img/navbg.png);
    background-size: cover;
}

.navbar {
    height: 120px;
}

.logo {
    height: 52px;
}

.search-form {
    position: relative;
}

.search-input {
    width: 380px;
    height: 40px;
    font-size: 16px;
    padding: 10px 40px 10px 10px;
    border: 1px solid #ddd;
    border-radius: 6px;
}

.search-button {
    position: absolute;
    right: 0;
    width: 40px;
    height: 40px;
    background: transparent;
    border: 0;
    font-size: 18px;
    color: #999;
    cursor: pointer;
}

.entry-item {
    height: 40px;
    margin-right: 20px;
}

.nav {
    border-radius: 4px;
    overflow: hidden;
}

.nav-menu {
    background-color: #D00000;
}

.nav-menu a {
    display: block;
    font-size: 20px;
    color: #fff;
    padding: 18px 20px;
}

.sub-menu {
    background-color: #fff;
}

.sub-menu a {
    display: block;
    padding: 18px 20px;
    font-size: 18px;
}

.main {
    padding: 20px 0;
}

.list {
    width: 900px;
    height: 100%;
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
}

.list-category {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.category-item {
    position: relative;
    font-size: 18px;
    margin-right: 20px;
    cursor: pointer;
}

.category-item:last-child {
    margin-right: 0;
}

.category-item.active {
    color: #D00000;
    font-weight: 700;
}

.category-item.active::after {
    content: '';
    position: absolute;
    top: 36px;
    display: block;
    width: 100%;
    height: 3px;
    background-color: #D00000;
}

.list-content {
    display: none;
}

.list-content.active {
    display: block;
}

.content-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #eee;
}

.content-item:last-child {
    padding-bottom: 0;
    margin-bottom: 0;
    border-bottom: 0;
}

.content-img {
    flex: 0 0 auto;
    width: 160px;
    height: 108px;
    margin-right: 20px;
    border: 1px solid #eee;
    border-radius: 4px;
    overflow: hidden;
}

.content-info {
    flex: 1 1 auto;
    position: relative;
}

.content-title {
    font-size: 20px;
    margin-bottom: 10px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.content-desc {
    height: 47px;
    line-height: 1.5;
    font-size: 16px;
    color: #666;
    margin-bottom: 30px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.content-meta {
    position: absolute;
    bottom: 0;
    color: #999;
    gap: 10px;
}

.pagination {
    gap: 10px;
    padding-top: 20px;
    margin-top: 20px;
    border-top: 1px solid #eee;
}

.page-numbers {
    display: inline-block;
    padding: 10px 15px;
    border: 1px solid #eee;
    border-radius: 4px;
}

.page-numbers.current {
    color: #fff;
    background-color: #D00000;
}

.sidebar {
    width: 360px;
    margin-left: 20px;
}

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

.sidebar-box:last-child {
    margin-bottom: 0;
}

.sidebar-head {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.sidebar-title {
    color: #D00000;
    font-weight: 700;
    position: relative;
    font-size: 18px;
    margin-right: 20px;
}

.sidebar-title::after {
    content: '';
    position: absolute;
    top: 36px;
    display: block;
    width: 100%;
    height: 3px;
    background-color: #D00000;
}

.sidebar-more {
    color: #999;
}

.sidebar-item {
    margin-bottom: 15px;
}

.sidebar-item:last-child {
    margin-bottom: 0;
}

.sidebar-link {
    font-size: 16px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.main-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    grid-column-gap: 20px;
    grid-row-gap: 20px;
    margin-top: 20px;
}

.grid-box {
    padding: 20px;
    background-color: #fff;
    border-radius: 4px;
}

.grid-head {
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
}

.grid-title {
    color: #D00000;
    font-weight: 700;
    position: relative;
    font-size: 18px;
    margin-right: 20px;
}

.grid-title::after {
    content: '';
    position: absolute;
    top: 36px;
    display: block;
    width: 100%;
    height: 3px;
    background-color: #D00000;
}

.grid-more {
    color: #999;
}

.grid-item {
    margin-bottom: 15px;
}

.grid-item:last-child {
    margin-bottom: 0;
}

.grid-link {
    font-size: 16px;
    display: -webkit-box;
    overflow: hidden;
    text-overflow: ellipsis;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 1;
}

.article-title {
    margin-bottom: 20px;
}

.article-title h1 {
    font-size: 26px;
    line-height: 1.5;
}

.article-meta {
    gap: 10px;
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
    margin-bottom: 20px;
    color: #999;
}

.article-content {
    line-height: 2;
    font-size: 18px;
}

.article-content p {
    margin-bottom: 20px;
}

.footer {
    background-color: #fff;
    padding: 20px;
}