/*
Theme Name: CDALD Typecho Theme
Theme URI: http://www.shhaoyubxg.com/
Author: Theme Migrator
Author URI: http://www.shhaoyubxg.com/
Description: 根据 shhaoyubxg 风格转换的 Typecho 企业展示主题。
Version: 1.0.0
*/

/* WordPress核心样式 */
.alignleft {
    float: left;
    margin: 0 20px 20px 0;
}

.alignright {
    float: right;
    margin: 0 0 20px 20px;
}

.aligncenter {
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.wp-caption {
    max-width: 100%;
}

.wp-caption-text {
    text-align: center;
    padding: 10px 0;
}

.screen-reader-text {
    clip: rect(1px, 1px, 1px, 1px);
    position: absolute !important;
    height: 1px;
    width: 1px;
    overflow: hidden;
}

.sticky {
    /* 置顶文章样式 */
}

.bypostauthor {
    /* 作者评论样式 */
}

/* 响应式图片 */
img {
    max-width: 100%;
    height: auto;
}

/* 清除浮动 */
.clearfix:after {
    content: "";
    display: table;
    clear: both;
}

/* Header logo area tuning */
header.container.flex_justify_between {
    align-items: center;
    min-height: 86px;
}

.logo_box {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo_box > a {
    display: flex;
    align-items: center;
    height: 56px;
    overflow: hidden;
}

.logo_box > a img {
    max-height: 56px;
    width: auto;
    max-width: 220px;
    object-fit: contain;
}

.logo_text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 2px;
}

.logo_text h1 {
    font-size: 22px;
    font-weight: 700;
    line-height: 1.25;
    margin: 0;
    white-space: nowrap;
}

.logo_text h4 {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin: 0;
    white-space: nowrap;
}

/* News & FAQ alignment fix */
.news_container {
    display: flex;
    flex-wrap: nowrap;
    align-items: flex-start;
    justify-content: space-between;
    padding: 20px 0 80px;
}

.news_left {
    width: 770px;
    margin-right: 50px;
}

.news_right {
    width: 370px;
}

.news_left,
.news_right {
    display: flex;
    flex-direction: column;
}

.news_left .news_title,
.news_right .news_title {
    min-height: 60px;
    display: flex;
    align-items: center;
}

.news_left .news_title ul,
.news_right .news_title ul {
    display: flex;
    align-items: center;
}

.news_left .swiper-slide {
    display: flex;
}

.news_left {
    flex: 0 0 770px;
    width: 770px;
    max-width: 770px;
    overflow: hidden;
}

.news_left .news_swiper,
.news_left .swiper-wrapper {
    width: 770px;
    max-width: 770px;
}

.news_left .swiper-slide {
    width: 770px !important;
}

.news_swiper {
    overflow: hidden;
}

.news_right {
    position: relative;
    z-index: 2;
}

.news_big {
    width: 250px;
    margin-right: 25px;
}

.news_list {
    flex: 1;
}

.news_list li {
    margin-bottom: 24px;
}

.problem_list li {
    margin-bottom: 20px;
}

.news_right .problem_list {
    margin-top: 2px;
}

.news_box .news_title.news_tab {
    margin: 0 0 15px;
}

.news_box .news_right .news_title {
    margin: 0 0 15px;
}

.news_box .news_left .news_title ul li a,
.news_box .news_right .news_title ul li a {
    line-height: 60px;
}

.news_box .news_title > a {
    line-height: 60px;
}

/* Product center layout match */
.product_box .product_tab {
    margin: 34px 0 28px;
    gap: 16px;
}

.product_box .product_tab li {
    width: 140px;
}

.product_box .product_tab li a {
    display: block;
    line-height: 48px;
    text-align: center;
}

.product_box .product_cont {
    display: flex;
    flex-wrap: nowrap;
    justify-content: space-between;
    align-items: flex-start;
    gap: 20px;
}

.product_box .product_big {
    width: 560px;
    flex: none;
}

.product_box .product_big .imgs_box {
    width: 560px;
    height: 450px;
}

.product_box .product_list {
    width: 620px;
    height: 450px;
    margin: 0;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: repeat(2, minmax(0, 1fr));
    column-gap: 12px;
    row-gap: 12px;
}

.product_box .product_list .product_item {
    width: auto;
    height: 100%;
    margin: 0;
}

.product_box .product_list .product_item .imgs_box {
    width: 100%;
    height: 100%;
}

.product_box .product_big .imgs_box img,
.product_box .product_list .product_item .imgs_box img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* FAQ content format */
.news_right .problem_list li > a {
    display: block;
}

.news_right .problem_list li h5 a {
    display: inline;
}

.news_right .problem_list .faq_answer {
    margin-top: 8px;
    font-size: 14px;
    line-height: 1.55;
    color: #575757;
    white-space: normal;
    word-break: break-all;
}

.news_right .problem_list .faq_answer br {
    line-height: 1.55;
}

/* About page content from backend */
.about_box .about_info {
    display: flex;
    align-items: stretch;
}

.about_box .about_img {
    margin-top: -12px;
    margin-bottom: 0;
}

.about_box .about_img img {
    display: block;
    transform: none;
}

.about_box .about_dec {
    display: flex;
    flex-direction: column;
}

.about_box .about_dec .flex_justify_between {
    margin-top: auto;
}

.about_dec .about_page_text {
    margin: 18px 0 26px;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
    max-height: 180px;
    overflow: hidden;
}

.about_dec .about_page_text .about_lead {
    display: inline;
    font-weight: 700;
    color: #333;
}

.about_dec .about_page_text p {
    margin: 0 0 10px;
    font-size: 15px;
    line-height: 1.9;
    color: #666;
}

.about_dec .about_page_text img {
    max-width: 100%;
    height: auto;
}

/* Inner ad banner spacing (archive/post only) */
.inner_ad_banner {
    margin-top: 0 !important;
    margin-bottom: 10px !important;
    background-position: center top !important;
    background-size: cover !important;
}

.inner_ad_banner + .crumbs_box {
    margin-top: 0 !important;
}

/* Archive pagination style */
.pagebar .pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 20px 0 8px;
}

.pagebar .pagination .page_btn,
.pagebar .pagination .page_ratio {
    display: inline-block;
    min-width: 28px;
    height: 28px;
    line-height: 28px;
    padding: 0 8px;
    text-align: center;
    border: 1px solid #d6d6d6;
    color: #333;
    background: #fff;
    font-size: 14px;
    border-radius: 3px;
    box-sizing: border-box;
}

.pagebar .pagination .page_btn.active {
    background: #333;
    border-color: #333;
    color: #fff;
}

.pagebar .pagination .page_btn.disabled {
    color: #aaa;
    background: #f7f7f7;
    border-color: #e2e2e2;
}

.pagebar .pagination .page_dots {
    color: #999;
    padding: 0 2px;
}

/* Remove textured background on list pages */
.page_container,
.pagebar {
    background-image: none !important;
}

/* Prev/next article nav (match reference style) */
.page_detial .paginations {
    display: flex;
    justify-content: center;
    gap: 28px;
    margin-top: 34px;
}

.page_detial .paginations .pn_btn {
    width: 152px;
}

.page_detial .paginations .pn_btn a,
.page_detial .paginations .pn_btn span {
    display: block;
    width: 100%;
    height: 40px;
    line-height: 40px;
    text-align: center;
    border-radius: 24px;
    border: 1px solid #d7d7d7;
    font-size: 18px;
    letter-spacing: 1px;
    box-sizing: border-box;
}

.page_detial .paginations .pn_btn a {
    color: #fff;
    background: #bf9061;
    border-color: #bf9061;
}

.page_detial .paginations .pn_btn.disabled span {
    color: #d2d2d2;
    background: #f7f7f7;
    border-color: #d7d7d7;
}

/* Contact page template enhancements */
.contact_page .contact_ext_grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 24px;
    margin-top: 10px;
}

.contact_page .contact_map_box,
.contact_page .contact_form_box,
.contact_page .contact_qr_box {
    border: 1px solid #e6e6e6;
    background: #fff;
    padding: 18px;
}

.contact_page h3 {
    font-size: 20px;
    color: #222;
    margin: 0 0 14px;
    font-weight: 700;
}

.contact_page .contact_map_canvas {
    min-height: 320px;
}

.contact_page .contact_map_canvas p {
    color: #888;
    font-size: 14px;
}

.contact_custom_form p {
    margin-bottom: 10px;
}

.contact_custom_form input,
.contact_custom_form textarea {
    width: 100%;
    border: 1px solid #dcdcdc;
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
    background: #fafafa;
}

.contact_custom_form textarea {
    resize: vertical;
}

.contact_custom_form .about_btn {
    border: none;
    cursor: pointer;
    min-width: 140px;
}

.contact_page .contact_form_tip {
    color: #999;
    font-size: 12px;
    line-height: 1.6;
}

.contact_page .contact_qr_box {
    margin-top: 24px;
    text-align: center;
}

.contact_page .contact_qr_box img {
    width: 180px;
    height: 180px;
    object-fit: cover;
}

.case_list {
    width: 1200px;
    margin: 0 auto 48px;
    display: flex;
    gap: 24px;
}

.case_list li {
    flex: 1;
    height: 320px;
    position: relative;
    overflow: hidden;
    background: #111;
}

.case_list li .cover_img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .45s ease;
}

.case_list li:hover .cover_img {
    transform: scale(1.06);
}

.case_info {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, .36);
}

.case_info > div {
    text-align: center;
    color: #fff;
}

.case_info h1 {
    font-size: 26px;
    font-weight: 700;
    margin-bottom: 8px;
}

.case_info h6 {
    font-size: 13px;
    letter-spacing: 2px;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 18px;
}

.case_info a {
    display: inline-block;
    border: 1px solid rgba(255, 255, 255, .9);
    color: #fff;
    padding: 7px 18px;
    font-size: 13px;
}
