/*
Theme Name: Computer Repair Shop Pro Child
Theme URI: https://example.com/
Description: Child theme overrides for services, blog layout, pagination, header background, and inherited parent settings.
Author: Codex
Template: computer-repair-shop-pro
Version: 1.1.0
Text Domain: computer-repair-shop-pro-child
*/

/* Header top strip */
.head-inn,
.head-inn .headcontact,
.head-inn .maineheadercontain {
    background: #ffffff !important;
}

.head-inn,
.head-inn a,
.head-inn .ht-site-title a,
.head-inn .ht-site-description,
.head-inn .ht-site-description a,
.head-inn .text_adjust,
.head-inn .text_adjust p,
.head-inn .text_adjust span,
.head-inn .text_adjust a,
.head-inn .Rqst-btn,
.head-inn .header-phone-num,
.head-inn .hourse-btn-set {
    color: #111111 !important;
}

.head-inn .text_adjust p {
    opacity: 0.8;
}

.head-inn .header-share {
    display: none !important;
}

.head-inn::after,
.head-inn .container::after,
.head-inn .maineheadercontain::after {
    content: "";
    display: table;
    clear: both;
}

.head-mob .container > .row.row-eq-height {
    display: flex;
    align-items: stretch;
    flex-wrap: wrap;
}

.head-mob .HeaderRbx {
    width: 100%;
}

.head-mob .container > .row.row-eq-height > .col-md-3.col-sm-4.col-xs-12.pd-0,
.head-mob .header-share,
.head-mob .share-btn {
    display: none !important;
}

.head-inn .header-contact-fild {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 18px;
    flex-wrap: wrap;
}

.head-inn .header-contact-fild > .hbtn {
    order: 2;
    margin-left: 0 !important;
}

.head-inn .header-contact-fild > .hbtnhover {
    display: none !important;
}

.head-inn .header-contact-fild > .Headerbuttonn {
    order: 1;
}

.head-inn .header-contact-fild > .hbtn,
.head-inn .header-contact-fild > .Headerbuttonn {
    float: none !important;
}

.head-inn .Headerbutton .topheaderbutn a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 12px 24px;
    border-radius: 999px;
    background: linear-gradient(135deg, #111111 0%, #2d5bff 100%);
    color: #ffffff !important;
    box-shadow: 0 12px 28px rgba(17, 17, 17, 0.18);
    transition: transform 0.25s ease, box-shadow 0.25s ease, opacity 0.25s ease;
}

.head-inn .Headerbutton .topheaderbutn a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 34px rgba(45, 91, 255, 0.22);
    opacity: 1;
}

/* Navigation */
.head-mob {
    background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
    border-top: 1px solid rgba(17, 17, 17, 0.06);
    border-bottom: 1px solid rgba(17, 17, 17, 0.08);
    box-shadow: 0 16px 36px rgba(16, 24, 40, 0.08);
}

.head-mob .head-menu {
    width: 100%;
}

.head-mob .site-navigation {
    position: relative;
    padding: 0;
}

.head-mob .navigation {
    background: transparent !important;
}

.head-mob .menu-wrapper {
    background: transparent;
}

.head-mob .menu-content > ul.mainmenu {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex-wrap: wrap;
    gap: 8px;
    margin: 0;
    padding: 14px 8px;
    list-style: none;
}

.head-mob .menu-content > ul.mainmenu > li {
    position: relative;
    float: none !important;
}

.head-mob .menu-content > ul.mainmenu > li > a {
    display: inline-flex;
    align-items: center;
    min-height: 46px;
    padding: 12px 18px;
    border-radius: 14px;
    color: #111111 !important;
    font-weight: 700;
    font-size: 14px;
    letter-spacing: 0.02em;
    text-transform: uppercase;
    transition: color 0.25s ease, background-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.head-mob .menu-content > ul.mainmenu > li > a:hover,
.head-mob .menu-content > ul.mainmenu > li.current-menu-item > a,
.head-mob .menu-content > ul.mainmenu > li.current_page_item > a,
.head-mob .menu-content > ul.mainmenu > li.current-menu-ancestor > a {
    background: linear-gradient(135deg, #111111 0%, #2d5bff 100%);
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 10px 24px rgba(45, 91, 255, 0.18);
}

.head-mob .menu-content ul.sub-menu {
    min-width: 230px;
    padding: 10px;
    border: 1px solid rgba(17, 17, 17, 0.08);
    border-radius: 16px;
    background: #ffffff;
    box-shadow: 0 18px 34px rgba(15, 23, 42, 0.14);
}

.head-mob .menu-content ul.sub-menu li {
    float: none !important;
}

.head-mob .menu-content ul.sub-menu li a {
    display: block;
    padding: 11px 14px;
    border-radius: 10px;
    color: #111111 !important;
}

.head-mob .menu-content ul.sub-menu li a:hover {
    background: #eef3ff;
    color: #1d4ed8 !important;
}

/* Table */
table {
    width: 100% !important;
    max-width: 100%;
    display: table;
    border-collapse: collapse !important;
    border-spacing: 0 !important;
    table-layout: auto;
    background: #ffffff;
}

table,
table th,
table td {
    border: 1px solid #222222 !important;
}

table th,
table td {
    padding: 12px 14px !important;
    vertical-align: top;
    word-break: break-word;
}

table th {
    background: #f4f7ff;
    color: #111111;
    font-weight: 700;
}

.post-single-content,
.entry-content,
.innerpage-whitebox {
    overflow-x: auto;
}

/* Breadcrumb */
.page-main-header {
    position: relative;
}

.page-main-header .container {
    text-align: left !important;
}

.page-main-header .breadcrumbbox {
    float: none !important;
    position: static !important;
    right: auto !important;
    left: auto !important;
    bottom: auto !important;
    width: 100%;
    margin-top: 12px;
    text-align: left !important;
}

.page-main-header .breadcrumbbox .container {
    padding-top: 0;
}

.page-main-header .breadcrumbbox .button,
.page-main-header .breadcrumbbox a,
.page-main-header .breadcrumbbox span {
    color: #111111 !important;
}

.page-main-header .breadcrumbbox .button {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.08);
    font-weight: 600;
}

/* Services shortcode page */
.crsp-services-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    align-items: stretch;
}

.crsp-service-card {
    width: 25%;
    padding: 0 15px;
    margin: 0 0 30px;
    box-sizing: border-box;
}

.crsp-service-card .servicesinn {
    margin: 0 !important;
    height: 100%;
}

.crsp-service-card .single-service {
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 0 !important;
    margin: 0 !important;
    background: #ffffff;
}

.crsp-service-card .service-icon {
    overflow: hidden;
}

.crsp-service-card .service-icon img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    display: block;
}

.crsp-service-card .service-title-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1 1 auto;
    min-height: 220px;
    padding: 18px;
    box-sizing: border-box;
    background: #fde405;
    box-shadow: 0 3px 8px rgb(52 53 55 / 10%);
}

.crsp-service-card .service-title-box h4,
.crsp-service-card .service-title-box .inner-area-title {
    margin: 0 0 12px;
}

.crsp-service-card .button-services {
    margin-top: auto;
    padding-top: 16px;
}

.crsp-service-card .blog-date,
.crsp-service-card .post-date,
.crsp-service-card .entry-meta,
.crsp-service-card .posted-on,
.crsp-service-card .byline,
.crsp-service-card .author,
.crsp-service-card .post-author {
    display: none !important;
}

/* Blog page template */
.page-template-blog-template main#innerpage-box #blog-box.ht-blog-wrap {
    overflow: visible;
}

.crsp-blog-grid {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    align-items: stretch;
}

.crsp-blog-card {
    width: 25%;
    padding: 0 15px;
    margin: 0 0 30px;
    box-sizing: border-box;
}

.crsp-blog-card .inner-blogpost {
    display: flex;
    flex-direction: column;
    height: 100%;
    box-shadow: -1px 0 9px rgba(152, 152, 131, 0.2);
    background: #000000;
}

.crsp-blog-card .ht-blog-thumbnail {
    position: relative;
    overflow: hidden;
}

.crsp-blog-card .ht-blog-thumbnail img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    display: block;
}

.crsp-blog-card .inner-blogpost-info {
    display: flex;
    flex-direction: column;
    flex: 1 1 auto;
    padding: 24px 18px 18px;
    position: relative;
}

.crsp-blog-card .blog-date {
    display: none !important;
}

.crsp-blog-card .readmore {
    margin-top: auto;
    padding-top: 16px;
}

/* Standard archive/blog list */
body.blog main#innerpage-box .innerblogpost,
body.archive main#innerpage-box .innerblogpost,
body.category main#innerpage-box .innerblogpost,
body.tag main#innerpage-box .innerblogpost,
body.author main#innerpage-box .innerblogpost,
body.date main#innerpage-box .innerblogpost {
    display: flex;
    flex-wrap: wrap;
    margin-left: -15px;
    margin-right: -15px;
    align-items: stretch;
}

body.blog main#innerpage-box article.post.excerpt,
body.archive main#innerpage-box article.post.excerpt,
body.category main#innerpage-box article.post.excerpt,
body.tag main#innerpage-box article.post.excerpt,
body.author main#innerpage-box article.post.excerpt,
body.date main#innerpage-box article.post.excerpt {
    width: 25% !important;
    float: none !important;
    padding: 0 15px;
    margin: 0 0 30px !important;
    box-sizing: border-box;
}

body.blog main#innerpage-box article.post.excerpt .inner-blog-post,
body.archive main#innerpage-box article.post.excerpt .inner-blog-post,
body.category main#innerpage-box article.post.excerpt .inner-blog-post,
body.tag main#innerpage-box article.post.excerpt .inner-blog-post,
body.author main#innerpage-box article.post.excerpt .inner-blog-post,
body.date main#innerpage-box article.post.excerpt .inner-blog-post {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.blog main#innerpage-box article.post.excerpt .inner-blogpost,
body.archive main#innerpage-box article.post.excerpt .inner-blogpost,
body.category main#innerpage-box article.post.excerpt .inner-blogpost,
body.tag main#innerpage-box article.post.excerpt .inner-blogpost,
body.author main#innerpage-box article.post.excerpt .inner-blogpost,
body.date main#innerpage-box article.post.excerpt .inner-blogpost {
    display: flex;
    flex-direction: column;
    height: 100%;
}

body.blog main#innerpage-box .ht-blog-thumbnail img,
body.archive main#innerpage-box .ht-blog-thumbnail img,
body.category main#innerpage-box .ht-blog-thumbnail img,
body.tag main#innerpage-box .ht-blog-thumbnail img,
body.author main#innerpage-box .ht-blog-thumbnail img,
body.date main#innerpage-box .ht-blog-thumbnail img {
    width: 100% !important;
    height: 230px !important;
    object-fit: cover;
    display: block;
}

body.blog main#innerpage-box .inner-blogpost-info,
body.archive main#innerpage-box .inner-blogpost-info,
body.category main#innerpage-box .inner-blogpost-info,
body.tag main#innerpage-box .inner-blogpost-info,
body.author main#innerpage-box .inner-blogpost-info,
body.date main#innerpage-box .inner-blogpost-info {
    flex: 1 1 auto;
}

body.blog main#innerpage-box .blog-date,
body.archive main#innerpage-box .blog-date,
body.category main#innerpage-box .blog-date,
body.tag main#innerpage-box .blog-date,
body.author main#innerpage-box .blog-date,
body.date main#innerpage-box .blog-date {
    display: none !important;
}

/* Single post meta moved to bottom */
.single-post .post-date-publishable {
    display: none !important;
}

.crsp-single-meta-bottom {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 28px;
    padding-top: 18px;
    border-top: 1px solid #e5e5e5;
    color: #444444;
    font-weight: 500;
}

.crsp-single-meta-bottom i {
    margin-right: 6px;
}

/* Pagination */
.crsp-pagination,
.pagination,
.nav-links,
.pagingation {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 10px;
    clear: both;
    margin: 25px 0 10px !important;
}

.crsp-pagination .page-numbers,
.pagination .page-numbers,
.nav-links .page-numbers,
.pagingation .page-numbers {
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    height: 44px;
    padding: 0 14px;
    border: 1px solid #d9d9d9;
    border-radius: 6px;
    background: #ffffff !important;
    color: #222222 !important;
    font-weight: 600;
    line-height: 1;
    text-decoration: none !important;
    transition: all 0.25s ease;
}

.crsp-pagination .page-numbers:hover,
.crsp-pagination .page-numbers.current,
.pagination .page-numbers:hover,
.pagination .page-numbers.current,
.nav-links .page-numbers:hover,
.nav-links .page-numbers.current,
.pagingation .page-numbers:hover,
.pagingation .page-numbers.current {
    background: #fe5722 !important;
    border-color: #fe5722 !important;
    color: #ffffff !important;
}

/* Responsive */
@media screen and (max-width: 1199px) {
    .crsp-service-card,
    .crsp-blog-card,
    body.blog main#innerpage-box article.post.excerpt,
    body.archive main#innerpage-box article.post.excerpt,
    body.category main#innerpage-box article.post.excerpt,
    body.tag main#innerpage-box article.post.excerpt,
    body.author main#innerpage-box article.post.excerpt,
    body.date main#innerpage-box article.post.excerpt {
        width: 33.3333% !important;
    }
}

@media screen and (max-width: 991px) {
    .crsp-service-card,
    .crsp-blog-card,
    body.blog main#innerpage-box article.post.excerpt,
    body.archive main#innerpage-box article.post.excerpt,
    body.category main#innerpage-box article.post.excerpt,
    body.tag main#innerpage-box article.post.excerpt,
    body.author main#innerpage-box article.post.excerpt,
    body.date main#innerpage-box article.post.excerpt {
        width: 50% !important;
    }
}

@media screen and (max-width: 767px) {
    .head-inn .header-contact-fild {
        display: block;
    }

    .head-inn .header-contact-fild > .Headerbuttonn,
    .head-inn .header-contact-fild > .hbtn {
        width: 100%;
        margin-left: 0 !important;
    }

    .head-mob .menu-content > ul.mainmenu {
        gap: 4px;
        padding: 10px 0;
    }

    .head-mob .menu-content > ul.mainmenu > li {
        width: 100%;
    }

    .head-mob .menu-content > ul.mainmenu > li > a {
        width: 100%;
        justify-content: space-between;
        border-radius: 12px;
    }

    .crsp-service-card,
    .crsp-blog-card,
    body.blog main#innerpage-box article.post.excerpt,
    body.archive main#innerpage-box article.post.excerpt,
    body.category main#innerpage-box article.post.excerpt,
    body.tag main#innerpage-box article.post.excerpt,
    body.author main#innerpage-box article.post.excerpt,
    body.date main#innerpage-box article.post.excerpt {
        width: 100% !important;
    }

    .crsp-service-card .service-icon img,
    .crsp-blog-card .ht-blog-thumbnail img,
    body.blog main#innerpage-box .ht-blog-thumbnail img,
    body.archive main#innerpage-box .ht-blog-thumbnail img,
    body.category main#innerpage-box .ht-blog-thumbnail img,
    body.tag main#innerpage-box .ht-blog-thumbnail img,
    body.author main#innerpage-box .ht-blog-thumbnail img,
    body.date main#innerpage-box .ht-blog-thumbnail img {
        height: 220px !important;
    }
}
/* ===== 产品网格 4列  产品页面 ===== */
ul.products {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    justify-content: flex-start;
    padding: 0;
    list-style: none;
    margin: 0;
}

ul.products li.product {
    width: calc(25% - 15px); /* 一行四个 */
    margin-bottom: 30px;
    box-sizing: border-box;
    text-align: center;
}

/* 图片固定500x500 */
ul.products li.product img {
    width: 500px;
    height: 500px;
    object-fit: cover;
}

/* 强制缩小产品标题字体 */
ul.products li.product h2.woocommerce-loop-product__title {
    font-size: 2rem !important; /* 强制覆盖主题样式 */
    line-height: 1.2;
    margin: 10px 0;
}
/* 按钮居中 */
ul.products li.product .button {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 20px;
    background-color: #1e73be;
    color: #fab803;
    text-decoration: none;
    border-radius: 4px;
    transition: background-color 0.3s;
}

ul.products li.product .button:hover {
    background-color: #155a8a;
}

/* ===== 响应式 ===== */
@media screen and (max-width: 1200px) {
    ul.products li.product {
        width: calc(33.333% - 13.3px); /* 3列 */
    }
}

@media screen and (max-width: 900px) {
    ul.products li.product {
        width: calc(50% - 10px); /* 2列 */
    }
}

@media screen and (max-width: 600px) {
    ul.products li.product {
        width: 100%; /* 1列 */
    }
}

/* ===== 内页段落文字黑色，覆盖主题样式 ===== */
p {
    color: #000000 !important;
}

/* 新增css用于产品 */

/* ===== 整体布局 ===== */
.equipment-container {
    display: flex;
    gap: 40px;
    max-width: 1400px;
    margin: 40px auto;
    padding: 0 20px;
}

/* ===== 左侧分类 ===== */
.equipment-sidebar {
    width: 260px;
}

.sidebar-title {
    font-size: 20px;
    margin-bottom: 20px;
}

.equipment-cats {
    list-style: none;
    padding: 0;
}

.equipment-cats li {
    margin-bottom: 10px;
}

.equipment-cats a {
    display: block;
    padding: 12px;
    border-radius: 8px;
    background: #f4f6fb;
    color: #333;
    text-decoration: none;
    transition: 0.3s;
}

.equipment-cats a:hover,
.equipment-cats .active a {
    background: linear-gradient(135deg, #274AC8, #3A6BFF);
    color: #fff;
}

/* ===== 右侧 ===== */
.equipment-content {
    flex: 1;
}

/* ===== 网格：一行3个 ===== */
.equipment-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

/* ===== 卡片 ===== */
.equipment-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
    transition: 0.3s;
    display: flex;
    flex-direction: column;
}

.equipment-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 50px rgba(39,74,200,0.25);
}

/* ===== 图片（500x500）===== */
.equipment-img {
    width: 100%;
    aspect-ratio: 1/1;
    overflow: hidden;
    background: #eef1ff;
}

.equipment-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: 0.4s;
}

.equipment-card:hover img {
    transform: scale(1.1);
}

/* ===== 内容 ===== */
.equipment-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.equipment-title {
    font-size: 16px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.equipment-title a {
    text-decoration: none;
    color: #222;
}

.equipment-title a:hover {
    color: #274AC8;
}

/* ===== 按钮 ===== */
.equipment-btn {
    display: block;
    text-align: center;
    padding: 10px;
    border-radius: 6px;
    background: linear-gradient(135deg, #274AC8, #3A6BFF);
    color: #fff;
    text-decoration: none;
    transition: 0.3s;
}

.equipment-btn:hover {
    background: linear-gradient(135deg, #1d36a3, #274AC8);
}

/* ===== 分页 ===== */
.equipment-pagination {
    margin-top: 40px;
    text-align: center;
}

.equipment-pagination a,
.equipment-pagination span {
    display: inline-block;
    margin: 5px;
    padding: 10px 14px;
    border-radius: 6px;
    background: #f0f2ff;
    text-decoration: none;
    color: #333;
}

.equipment-pagination .current {
    background: #274AC8;
    color: #fff;
}

/* ===== 响应式 ===== */
@media (max-width: 992px) {
    .equipment-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .equipment-container {
        flex-direction: column;
    }

    .equipment-sidebar {
        width: 100%;
    }

    .equipment-grid {
        grid-template-columns: 1fr;
    }
}
/* 新增的样式，卡片布局 */

/* ===== 卡片结构：保证等高 + 按钮统一对齐 ===== */
.equipment-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

/* 内容区域占满 */
.equipment-info {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 12px; /* ⭐ 原来更大 → 压缩约10% */
}

/* ===== 标题 ===== */
.equipment-title {
    margin: 0 0 6px 0; /* ⭐ 固定间距（统一） */
    font-size: 15px;
    line-height: 1.3;

    /* ⭐ 防止标题过长撑高 */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ===== 按钮：关键对齐逻辑 ===== */
.equipment-btn {
    margin-top: auto; /* ⭐ 核心：全部按钮贴底对齐 */
    padding: 8px;
    font-size: 14px;
}

/* ===== 图片稍微压缩（整体高度减少10%核心） ===== */
.equipment-img {
    aspect-ratio: 1 / 1;
    max-height: 450px; /* 原来视觉500 → 略压 */
}

/* ===== 卡片整体微压缩 ===== */
.equipment-card {
    border-radius: 12px;
}

/* ===== 网格间距略缩 ===== */
.equipment-grid {
    gap: 24px;
}