/*
Theme Name: Kaiboli Corporate
Theme URI: https://kaiboli.com.cn
Author: Kaiboli
Author URI: https://kaiboli.com.cn
Description: 无锡凯铂利金属科技有限公司企业官网主题。基于凯铂利设计稿（深灰+香槟金）开发，支持动态产品、案例、工艺、新闻内容管理，图片与内容可在后台自行上传修改。
Version: 1.0.0
Requires at least: 5.0
Tested up to: 7.1
Requires PHP: 7.2
License: GNU General Public License v2 or later
Text Domain: kaiboli
Tags: business, corporate, portfolio, two-columns, right-sidebar
*/

/* ==========================================================
   基础
   ========================================================== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}
body {
    font-family: "Microsoft Yahei", "PingFang SC", Arial, sans-serif;
    color: #333;
    background: #fff;
    line-height: 1.6;
}
ul {
    list-style: none;
}
a {
    text-decoration: none;
    color: #333;
}
img {
    max-width: 100%;
    height: auto;
}
.container {
    width: 1200px;
    margin: 0 auto;
}
.clearfix::after {
    content: "";
    display: block;
    clear: both;
}

/* ==========================================================
   顶部头部
   ========================================================== */
.site-header {
    height: 90px;
    background: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    position: relative;
    z-index: 999;
}
.header-inner {
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.logo {
    font-size: 22px;
    font-weight: bold;
    color: #222831;
    white-space: nowrap;
}
.logo span {
    font-size: 14px;
    color: #666;
    display: block;
    font-weight: normal;
}

/* 主导航 */
.nav-list {
    display: flex;
}
.nav-list li {
    padding: 0 13px;
    height: 90px;
    line-height: 90px;
    font-size: 15px;
    white-space: nowrap;
}
.nav-list li a {
    display: block;
    height: 100%;
    color: #333;
}
.nav-list li.current-menu-item a,
.nav-list li.current_page_item a,
.nav-list li a:hover {
    color: #D4B98C;
    border-bottom: 3px solid #D4B98C;
}

/* ==========================================================
   通用内页标题
   ========================================================== */
.page-title {
    background: #f5f5f5;
    padding: 30px 0;
    margin-bottom: 40px;
}
.page-title h2 {
    font-size: 24px;
    color: #222;
}

/* 通用标题 */
.pub-title {
    text-align: center;
    padding: 60px 0 20px;
}
.pub-title h3 {
    font-size: 28px;
    color: #222;
    position: relative;
    display: inline-block;
    font-weight: 600;
}
.pub-title h3::after {
    content: "";
    width: 60px;
    height: 2px;
    background: #D4B98C;
    position: absolute;
    left: 50%;
    bottom: -10px;
    transform: translateX(-50%);
}

/* ==========================================================
   首页 - 轮播横幅
   ========================================================== */
.banner {
    width: 100%;
    height: 480px;
    background: url('') center no-repeat #222831;
    background-size: cover;
    position: relative;
}
.banner-text {
    position: absolute;
    left: 10%;
    top: 50%;
    transform: translateY(-50%);
    color: #fff;
}
.banner-text h2 {
    font-size: 42px;
    margin-bottom: 15px;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
}
.banner-text p {
    font-size: 18px;
    margin-bottom: 30px;
}
.banner-btn {
    display: inline-block;
    padding: 12px 30px;
    background: #D4B98C;
    color: #fff;
    border-radius: 2px;
    transition: 0.3s;
}
.banner-btn:hover {
    background: #c4a070;
    color: #fff;
}

/* ==========================================================
   首页 - 企业简介
   ========================================================== */
.about-part {
    display: flex;
    gap: 40px;
    padding: 30px 0 60px;
}
.about-img {
    width: 50%;
}
.about-img img {
    width: 100%;
    height: 320px;
    object-fit: cover;
}
.about-text {
    width: 50%;
}
.about-text h4 {
    font-size: 20px;
    margin-bottom: 15px;
    color: #222;
}
.about-text p {
    font-size: 15px;
    color: #555;
    text-indent: 2em;
    margin-bottom: 12px;
}

/* ==========================================================
   首页 - 产品展示区
   ========================================================== */
.product-wrap {
    background: #f8f8f8;
    padding-bottom: 60px;
}
.product-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding-top: 20px;
}
.product-item {
    width: calc(33.333% - 17px);
    background: #fff;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
    transition: 0.3s;
}
.product-item:hover {
    transform: translateY(-5px);
}
.product-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.product-item .txt {
    padding: 15px;
}
.product-item h4 {
    font-size: 17px;
    margin-bottom: 8px;
}
.product-item p {
    font-size: 14px;
    color: #666;
}

/* ==========================================================
   首页 - 工程案例
   ========================================================== */
.case-list {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
    padding: 20px 0 60px;
}
.case-item {
    width: calc(25% - 19px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}
.case-item img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
}
.case-item .txt {
    padding: 12px;
    text-align: center;
}

/* ==========================================================
   产品中心 - 分类与产品卡片
   ========================================================== */
.pro-group-title {
    font-size: 20px;
    margin: 55px 0 25px;
    padding-left: 10px;
    border-left: 4px solid #D4B98C;
}
.pro-row {
    display: flex;
    flex-wrap: wrap;
    gap: 35px;
    margin-bottom: 15px;
    justify-content: space-between;
}
.pro-item {
    width: calc((100% - 70px) / 3);
    border: 1px solid #eee;
    overflow: hidden;
}
.pro-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}
.pro-item .txt {
    padding: 18px;
    text-align: center;
}
.pro-item h4 {
    font-size: 17px;
    margin-bottom: 6px;
}
.pro-item p {
    font-size: 14px;
    color: #666;
}

/* ==========================================================
   工程案例 - 案例卡片
   ========================================================== */
.case-title {
    font-size: 20px;
    margin: 45px 0 20px;
    padding-left: 10px;
    border-left: 4px solid #D4B98C;
}
.case-grid .case-item {
    width: calc(25% - 19px);
    border: 1px solid #eee;
    overflow: hidden;
}
.case-grid .case-item img {
    height: 225px;
}
.case-item .txt p {
    font-size: 13px;
    color: #666;
}

/* ==========================================================
   工艺展示 - 图片行
   ========================================================== */
.craft-group-title {
    font-size: 20px;
    margin: 55px 0 25px;
    padding-left: 10px;
    border-left: 4px solid #D4B98C;
}
.craft-img-row {
    display: flex;
    gap: 35px;
    margin-bottom: 16px;
}
.craft-img-item {
    width: calc((100% - 70px) / 3);
    border: 1px solid #eee;
    overflow: hidden;
}
.craft-img-item img {
    width: 100%;
    height: 270px;
    object-fit: cover;
}
.craft-img-item .txt {
    padding: 18px;
    text-align: center;
}
.craft-img-item h4 {
    font-size: 17px;
    margin-bottom: 6px;
}
.craft-img-item p {
    font-size: 14px;
    color: #666;
}
.craft-desc-text {
    padding: 15px 20px;
    background: #f8f8f8;
    border-radius: 4px;
    color: #444;
    font-size: 15px;
    text-indent: 2em;
    margin-bottom: 20px;
    line-height: 1.75;
}

/* ==========================================================
   关于我们 - 内容
   ========================================================== */
.content-box {
    padding-bottom: 60px;
}
.content-box h3 {
    font-size: 20px;
    margin: 20px 0 10px;
    color: #222;
}
.content-box p {
    font-size: 15px;
    color: #555;
    text-indent: 2em;
    margin-bottom: 15px;
}
.factory-pic {
    margin: 30px 0;
}
.factory-pic img {
    width: 100%;
    height: 400px;
    object-fit: cover;
}

/* ==========================================================
   联系我们 - 表单
   ========================================================== */
.contact-wrap {
    display: flex;
    gap: 50px;
    padding-bottom: 60px;
}
.contact-left {
    width: 50%;
}
.contact-right {
    width: 50%;
}
.contact-left h3,
.contact-right h3 {
    font-size: 20px;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 1px solid #eee;
}
.contact-item {
    margin-bottom: 18px;
    font-size: 15px;
}
.contact-item p {
    line-height: 2;
    color: #555;
}
.input-item {
    margin-bottom: 15px;
}
.input-item input,
.input-item textarea {
    width: 100%;
    height: 45px;
    padding: 0 15px;
    border: 1px solid #ddd;
    outline: none;
    font-size: 14px;
}
.input-item textarea {
    height: 120px;
    padding: 15px;
    resize: none;
}
.submit-btn {
    width: 100%;
    height: 48px;
    background: #D4B98C;
    color: #fff;
    border: none;
    font-size: 16px;
    cursor: pointer;
}
.submit-btn:hover {
    background: #c4a070;
}
.contact-msg {
    margin-top: 12px;
    font-size: 14px;
    color: #2e7d32;
}

/* ==========================================================
   新闻资讯 - 列表
   ========================================================== */
.news-list {
    padding-bottom: 60px;
}
.news-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
}
.news-item:hover {
    background: #fafafa;
}
.news-left {
    flex: 1;
}
.news-left h4 {
    font-size: 17px;
    font-weight: normal;
    margin-bottom: 8px;
}
.news-left h4 a {
    color: #333;
}
.news-left h4 a:hover {
    color: #D4B98C;
}
.news-left p {
    font-size: 14px;
    color: #666;
}
.news-time {
    color: #999;
    font-size: 14px;
    white-space: nowrap;
    padding-left: 20px;
}

/* ==========================================================
   文章详情 / 分页 / 面包屑
   ========================================================== */
.entry-content {
    padding-bottom: 40px;
}
.entry-content h1,
.entry-content h2,
.entry-content h3 {
    color: #222;
    margin: 20px 0 10px;
}
.entry-content p {
    font-size: 15px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 15px;
}
.entry-content img {
    height: auto;
    margin: 10px 0;
}
.entry-content ul,
.entry-content ol {
    margin: 0 0 15px 20px;
    color: #555;
}
.entry-content li {
    margin-bottom: 6px;
}
.entry-meta {
    color: #999;
    font-size: 13px;
    margin-bottom: 25px;
    border-bottom: 1px solid #eee;
    padding-bottom: 15px;
}
.pagination {
    text-align: center;
    padding: 30px 0 60px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 14px;
    margin: 0 4px;
    border: 1px solid #ddd;
    color: #555;
}
.pagination .page-numbers.current {
    background: #D4B98C;
    color: #fff;
    border-color: #D4B98C;
}

/* ==========================================================
   页脚
   ========================================================== */
.site-footer {
    background: #222831;
    color: #ccc;
    padding: 50px 0 30px;
    margin-top: 60px;
}
.footer-inner {
    display: flex;
    justify-content: space-between;
}
.footer-col h4 {
    color: #fff;
    font-size: 18px;
    margin-bottom: 20px;
}
.footer-col p {
    line-height: 2;
    font-size: 14px;
}
.footer-col a {
    color: #ccc;
}
.footer-col a:hover {
    color: #D4B98C;
}
.copyright {
    text-align: center;
    padding-top: 30px;
    margin-top: 30px;
    border-top: 1px solid #383f4b;
    font-size: 14px;
    color: #aaa;
}

/* ==========================================================
   移动端适配
   ========================================================== */
@media (max-width: 768px) {
    .container {
        width: 95%;
    }
    .nav-list {
        display: none;
    }
    .banner {
        height: 300px;
    }
    .banner-text h2 {
        font-size: 26px;
    }
    .about-part {
        flex-direction: column;
    }
    .about-img,
    .about-text {
        width: 100%;
    }
    .product-item {
        width: 100%;
    }
    .case-item {
        width: calc(50% - 12px);
    }
    .pro-item {
        width: calc((100% - 35px) / 2);
    }
    .pro-item img,
    .craft-img-item img {
        height: 220px;
    }
    .craft-img-row {
        flex-direction: column;
        gap: 20px;
    }
    .craft-img-item {
        width: 100%;
    }
    .contact-wrap {
        flex-direction: column;
    }
    .contact-left,
    .contact-right {
        width: 100%;
    }
    .news-item {
        flex-direction: column;
        align-items: flex-start;
    }
    .news-time {
        margin-top: 8px;
        padding-left: 0;
    }
    .factory-pic img {
        height: 220px;
    }
    .footer-inner {
        flex-direction: column;
        gap: 30px;
    }
}
/* 联系表单样式 */
.wpcf7-form p { margin-bottom: 15px; }
.wpcf7-form input[type="text"],
.wpcf7-form input[type="tel"],
.wpcf7-form select,
.wpcf7-form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    box-sizing: border-box;
}
.wpcf7-form textarea { height: 120px; }
.wpcf7-form input[type="submit"] {
    background: #c9a96e;
    color: #fff;
    border: none;
    padding: 12px 30px;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
}
.wpcf7-form input[type="submit"]:hover { background: #b8975a; }
.wpcf7-response-output { margin-top: 15px; padding: 10px; border-radius: 4px; }
.contact-right { max-width: 500px; }