/* 茂名市木鉴检测服务有限公司 首页样式 */
:root {
    --main-wood: #8B5A2B;
    --light-wood: #D2B48C;
    --dark-bg: #33281E;
    --text-color: #444;
}
body {
    font-family: "Microsoft Yahei", sans-serif;
    color: var(--text-color);
    line-height: 1.7;
}
/* 导航栏 */
.navbar {
    background-color: var(--dark-bg) !important;
}
.navbar-brand {
    color: var(--light-wood) !important;
    font-weight: 700;
    font-size: 1.4rem;
}
.nav-link {
    color: #fff !important;
}
.nav-link:hover, .nav-link.active {
    color: var(--light-wood) !important;
}
.btn-wood {
    background-color: var(--main-wood);
    color: #fff;
    border: none;
}
.btn-wood:hover {
    background-color: #704822;
    color: #fff;
}
/* 轮播图 */
.carousel-item {
    height: 80vh;
    min-height: 500px;
}
.carousel-bg1 {
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),
    url('https://picsum.photos/id/131/1920/1080') center/cover no-repeat;
}
.carousel-bg2 {
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),
    url('https://picsum.photos/id/129/1920/1080') center/cover no-repeat;
}
.carousel-bg3 {
    background: linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)),
    url('https://picsum.photos/id/130/1920/1080') center/cover no-repeat;
}
.carousel-caption {
    bottom: 22%;
}
.carousel-caption h2 {
    color: var(--light-wood);
    font-size: 2.8rem;
    font-weight: bold;
}
.carousel-caption p {
    font-size: 1.1rem;
    color: #eee;
    margin: 20px 0;
}
/* 通用区块样式 */
.section-padding {
    padding: 70px 0;
}
.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h3 {
    font-size: 2rem;
    color: var(--main-wood);
    position: relative;
    display: inline-block;
}
.section-title h3::after {
    content: "";
    width: 60px;
    height: 3px;
    background: var(--main-wood);
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    bottom: -10px;
}
.bg-wood-light {
    background-color: #f8f3ec;
}
/* 检测项目卡片 */
.item-card {
    border: 1px solid #e8ddd0;
    background: #fff;
    transition: 0.3s ease;
    height: 100%;
}
.item-card:hover {
    box-shadow: 0 8px 20px rgba(139, 90, 43, 0.15);
    transform: translateY(-5px);
}
.item-card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}
.item-card .card-body {
    padding: 20px;
}
.item-card h5 {
    color: var(--main-wood);
}
/* 优势/流程图标 */
.icon-box {
    text-align: center;
    padding: 25px 15px;
}
.icon-box i {
    font-size: 2.6rem;
    color: var(--main-wood);
    margin-bottom: 18px;
}
/* 流程步骤 */
.step-box {
    text-align: center;
    position: relative;
}
.step-num {
    width: 48px;
    height: 48px;
    line-height: 48px;
    border-radius: 50%;
    background: var(--main-wood);
    color: #fff;
    margin: 0 auto 15px;
    font-weight: bold;
}
/* 资质案例图片 */
.pic-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    transition: 0.3s;
}
.pic-item img:hover {
    transform: scale(1.03);
}
/* 锚点定位补偿固定导航栏高度 */
section[id] {
    scroll-margin-top: 76px;
}
/* 底部 */
footer {
    background: var(--dark-bg);
    color: #ccc;
    padding: 50px 0 20px;
}
footer h4 {
    color: var(--light-wood);
    margin-bottom: 20px;
}
footer a {
    color: #ccc;
    text-decoration: none;
}
footer a:hover {
    color: var(--light-wood);
}
.copyright {
    text-align: center;
    padding-top: 25px;
    margin-top: 25px;
    border-top: 1px solid #4a3b2d;
}
/* 中部宣传 banner */
.sub-banner {
    background: linear-gradient(rgba(0,0,0,0.55), rgba(0,0,0,0.55)),
        url('https://picsum.photos/id/1015/1920/600') center/cover no-repeat;
    color: #fff;
    padding: 90px 0;
    text-align: center;
}
.sub-banner h2 {
    color: var(--light-wood);
    font-size: 2.4rem;
    font-weight: bold;
    margin-bottom: 15px;
}
.sub-banner p {
    font-size: 1.05rem;
    color: #eee;
    max-width: 760px;
    margin: 0 auto 25px;
}
.sub-banner .btn {
    margin: 6px;
}

/* ================= 证书查询页 ================= */
.cert-page {
    background: #f6f1ea;
    padding: 60px 0 80px;
    min-height: 70vh;
}
.cert-page .container {
    max-width: 960px;
}
.cert-search {
    background: #fff;
    padding: 28px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, .08);
    border-top: 4px solid #8B5A2B;
    margin-bottom: 30px;
}
.cert-search h3 {
    color: #33281E;
    font-weight: bold;
}
.cert-search .btn-search {
    background: #8B5A2B;
    color: #fff;
    border: none;
    padding: 10px 0;
    font-weight: bold;
    border-radius: 6px;
}
.cert-search .btn-search:hover {
    background: #33281E;
}
.cert-result {
    background: #fff;
    padding: 35px 30px;
    border-radius: 10px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, .1);
}
.cert-result .cert-error {
    color: #d0021b;
    font-weight: bold;
    padding: 30px 20px;
    text-align: center;
    font-size: 16px;
}
.cert-wrap {
    font-family: "Microsoft YaHei", "SimSun", sans-serif;
    color: #1a1a1a;
}
.cert-border {
    border: 2px solid #3a6fb0;
    padding: 8px;
    background: #fff;
    border-radius: 4px;
}
.cert-border-inner {
    border: 1px solid #7ea6d6;
    padding: 25px 30px;
}
.cert-header {
    display: flex;
    align-items: center;
    border-bottom: 2px solid #3a6fb0;
    padding-bottom: 15px;
    margin-bottom: 20px;
}
.cert-header .cert-logo {
    width: 60px;
    height: 60px;
    margin-right: 15px;
    border-radius: 50%;
    background: #fff;
}
.cert-header .cert-title h1 {
    font-size: 22px;
    color: #1a1a1a;
    margin: 0 0 4px 0;
    font-weight: bold;
}
.cert-header .cert-title p.en {
    font-size: 13px;
    color: #3a6fb0;
    margin: 0;
    letter-spacing: 1px;
}
.cert-body {
    display: flex;
    flex-wrap: wrap;
    gap: 25px;
}
.cert-left {
    width: 320px;
    max-width: 100%;
    flex-shrink: 0;
}
.cert-no {
    font-size: 15px;
    color: #1a1a1a;
    margin-bottom: 10px;
    font-weight: bold;
}
.cert-img-wrap {
    position: relative;
    width: 100%;
    max-width: 320px;
    height: 280px;
    border: 1px solid #ccc;
    background: #f5f5f5;
    overflow: hidden;
}
.cert-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.cert-sign {
    position: relative;
    margin-top: 12px;
    font-size: 14px;
    color: #333;
}
.cert-disclaimer {
    margin-top: 10px;
    font-size: 14px;
    color: #d0021b;
    line-height: 1.6;
}
.cert-right {
    flex: 1;
    min-width: 280px;
    font-size: 15px;
    color: #1a1a1a;
}
.cert-row {
    display: flex;
    border-bottom: 1px dashed #ccc;
    padding: 9px 0;
}
.cert-row .label {
    width: 110px;
    color: #555;
    flex-shrink: 0;
}
.cert-row .value {
    flex: 1;
    word-break: break-all;
}
.cert-row.cert-basis {
    border-bottom: none;
}
@media (max-width: 768px) {
    .cert-left {
        width: 100%;
    }
    .cert-right {
        width: 100%;
    }
}
