/*
Theme Name:杨的主题01
Description：一个超级简单的入门主题01
Author:爱折腾的杨
Version:1.0
*/
:root{
    --bg: #f6f8fa;
    --container-bg: #ffffff;
    --primary: #f76120;
    --muted: #6b7280;
    --card-shadow: rgba(0,0,0,0.08);
    --radius: 12px;
}
body{
    background: var(--bg);
}
a{
    text-decoration: none;
    color: #222;
}
ul li{
    padding: 0;
    margin: 0;
}
.main-box{
    width: 1200px;
    margin: 0px auto;
}
.list{
    background: #fff;
    margin: 20px 0;
    padding: 20px;
    border-radius: 20px;
    box-shadow: 1px 1px 1px #ddd;
}
.list .date-line{
    display: flex;
    justify-content: space-between;
}

.pagination{
    margin-bottom: 20px;
}
.pagination .page-numbers{
    background: #fff;
    border-radius: 50%;
    width:55px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    display: inline-block;
}

.pagination .current{
    background: #000;
    color:#fff;
}

.pagination .nav-links .prev,
.pagination .nva-links .next{
    width:auto;
    border-radius: 15px;
    padding: 0 15px;
}


.pagination .nav-links .dots{
    width:auto;
    background: none;
}

header{
    width:100% ;
    margin-bottom: 20px;
}
header .container{
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 20px;
    background: #fff;
}

header #nav-bar .menu{
    display: flex;
    justify-content: flex-end;
}
header #nav-bar .menu li{
    margin-left: 5px;
    padding: 8px 15px;
    list-style: none;
}
header #nav-bar .menu li:hover{
    background: var(--primary);
    border-radius: 15px;
}
header #nav-bar .menu li a{
    color: var(--primary);
}
header #nav-bar .menu li:hover a{
    color: #fff;
}

/*搜索框*/
.nav{
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
#searchform .screen-reader-text{
    display: none;
}
#searchform #s{
    padding: 8px 16px;
    border-radius: 10px ;
    border: 1px solid #ddd;
}
#searchform #searchsubmit{
    border: 1px solid #ddd;
    border-radius: 10px;
    padding: 9px 16px;
    cursor: pointer;

}
#searchform #searchsubmit:hover{
    background: #000;
    color: #fff;
}

.big-container{
    height: 600px;
    width: 100%;
    position: relative;
}

.big-container img{
    position: absolute;
    top: 0;
}
.big-container .big-main{
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%,-50%);
}
.big-container #searchsubmit{
    display: none;
}

/* 产品卡片缩略图固定尺寸 */
.product-card-image{
    width: 280px;
    height: 210px;
    object-fit: cover;
    display: block;
    border-radius: 6px;
}

/* 产品集成页两栏布局 */
.product-container{
    display: flex;
    gap: 30px;
    align-items: flex-start;
    padding: 30px 0 50px;
}
.product-sidebar{
    width: 260px;
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 24px;
}
.product-sidebar h3{
    font-size: 20px;
    color: var(--primary);
    margin-bottom: 18px;
}
.product-cat-list{ list-style:none; padding:0; margin:0; }
.product-cat-list li{ margin-bottom:12px; }
.product-cat-list a{ color:#333; display:block; padding: 10px 12px; border-radius: 8px; transition: all .2s ease; }
.product-cat-list a:hover,
.product-cat-list a:focus{
    color: var(--primary);
    background: rgba(247,97,32,0.08);
}

.article-cat-list{ list-style:none; padding:0; margin:0; }
.article-cat-list ul li{ margin-bottom:12px; }
.article-cat-list a{ color:#333; display:block; padding: 10px 12px; border-radius: 8px; transition: all .2s ease; }
.article-cat-list a:hover,
.article-cat-list a:focus{
    color: var(--primary);
    background: rgba(247,97,32,0.08);
}

.product-content{ flex:1; }
.page-banner{
    background: #fff;
    border-radius: var(--radius);
    box-shadow: 0 12px 30px rgba(0,0,0,0.08);
    padding: 32px 28px;
    margin-bottom: 30px;
}
.page-banner-content h1{
    margin:0 0 12px;
    font-size: 32px;
    color: #111827;
}

/* 单产品详情页固定宽度 */
.main-box.product-single{
    width: 1000px;
    margin: 0 auto;
}
.product-single-content{
    display: block;
    width: 100%;
}
.product-single-container{
    background:#fff;
    padding:24px;
    border-radius:16px;
    box-shadow:0 8px 30px rgba(0,0,0,0.06);
}
.product-container{
    display:flex;
    gap:30px;
    align-items:flex-start;
}
.product-sidebar{
    width:130px;
    background:#fff;
    border-radius:var(--radius);
    box-shadow:0 10px 30px rgba(0,0,0,0.08);
    padding:24px;
}
.product-sidebar h3{
    font-size:20px;
    color:var(--primary);
    margin-bottom:18px;
}
.product-right{
    flex:1;
}
.product-title{
    font-size:34px;
    margin:0 0 10px;
    color:#111827;
}
.product-subtitle{
    font-size:18px;
    color:#6b7280;
    margin-bottom:16px;
}
.product-excerpt{
    font-size:16px;
    margin:0 0 24px;
    color:#4b5563;
}
.product-content{
    font-size:16px;
    margin:0 0 32px;
    line-height:1.8;
    color:#333;
}
.product-content img{
    width:100%;
    height:auto;
    display:block;
    margin:18px 0;
}
.product-latest-posts{
    margin-top:40px;
}
.product-latest-posts h3{
    font-size:24px;
    color:#111827;
    margin-bottom:18px;
}
.product-latest-posts ul{
    list-style:none;
    padding:0;
    margin:0;
}
.product-latest-posts ul li{
    padding:12px 0;
    border-bottom:1px solid #e5e7eb;
}
.product-latest-posts ul li:last-child{
    border-bottom:none;
}
.product-latest-posts ul li a{
    color:#111827;
    font-size:16px;
    display:block;
}
.product-latest-posts ul li a:hover{
    color:var(--primary);
}

@media (max-width: 1040px){
    .main-box.product-single{
        width: 95%;
    }
}
.page-banner-content p{
    margin:0;
    font-size: 15px;
    color: #6b7280;
}
.category-section{ margin-bottom:40px; }
.category-title{ font-size:22px; color: var(--primary); margin-bottom:18px; }
.category-products{ display: grid; grid-template-columns: repeat(4, 1fr); gap:20px; }
.product-card{ background:var(--container-bg); padding:0; border-radius:var(--radius); box-shadow:0 12px 26px rgba(0,0,0,0.08); overflow:hidden; transition:transform .18s ease, box-shadow .18s ease; }
.product-card:hover{ transform: translateY(-5px); box-shadow:0 18px 36px rgba(0,0,0,0.10); }
.product-card a{ color: inherit; display:block; }
.product-card-image{ width:100%; height:210px; object-fit: cover; display:block; }
.product-card-content{ padding:18px; }
.product-card-content h3{ font-size:16px; margin:0 0 10px; color:#111827; }
.product-card-content p{ font-size:14px; color:#57606a; margin:0; line-height:1.7; }

/* 推荐文章 */
.recommended-articles{ margin-top:50px; }
.recommended-articles h2{ color: var(--primary); margin-bottom:18px; font-size:22px; }
.recommended-grid{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.recommended-item{ display:flex; gap:14px; background:var(--container-bg); padding:18px; border-radius:var(--radius); align-items:flex-start; box-shadow:0 10px 28px rgba(0,0,0,0.08); transition:box-shadow .2s ease, transform .2s ease; }
.recommended-item:hover{ transform: translateY(-4px); box-shadow:0 18px 36px rgba(0,0,0,0.12); }
.recommended-thumb{ width:120px; height:80px; object-fit:cover; border-radius:8px; flex-shrink:0; }
.recommended-body h4{ margin:0 0 8px; font-size:16px; color:#111827; }
.recommended-body p{ margin:0; font-size:14px; color:#57606a; line-height:1.75; }

/* 响应式 */
@media (max-width: 900px){
    .product-container{ flex-direction:column; }
    .product-sidebar{ width:100%; }
    .category-products{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width:480px){
    .category-products{ grid-template-columns: 1fr; }
    .product-card-image{ width:100%; height:auto; }
}
.article-card {
    background: var(--container-bg);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: 0 12px 26px rgba(0,0,0,0.08);
    transition: transform .2s ease, box-shadow .2s ease;
}
.article-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 18px 36px rgba(0,0,0,0.12);
}
.article-card a {
    color: inherit;
    text-decoration: none;
    display: block;
}
.article-card a:hover {
    text-decoration: none;
}
.article-card img {
    width: 280px;
    height: 210px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
    border-radius: var(--radius) var(--radius) 0 0;
}
.article-card:hover img {
    transform: scale(1.05);
}
.article-card h2 {
    margin: 0;
    padding: 14px 16px 6px;
    font-size: 16px;
    color: #111827;
    line-height: 1.5;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.article-card p {
    margin: 0;
    padding: 0 16px 16px;
    font-size: 13px;
    color: #57606a;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pagination {
    margin-top: 30px;
    display: flex;
    justify-content: center;
    gap: 6px;
}
.pagination a,
.pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 38px;
    padding: 0 12px;
    background: var(--container-bg);
    color: #333;
    font-size: 14px;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: all 0.2s ease;
    text-decoration: none;
}
.pagination a:hover,
.pagination .current {
    background: var(--primary);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(247,97,32,0.3);
    text-decoration: none;
}
.pagination .dots {
    background: none;
    box-shadow: none;
    cursor: default;
    color: #999;
}
.pagination .prev,
.pagination .next {
    min-width: 80px;
}

.marklang-paragraph{
    margin: 0px ;
    padding: 0px;
}