/* ============================================================
   中正检测 - 前台样式
   主色：蓝色 #165DFF（公正） 红色 #E53935（严谨）
   ============================================================ */

:root {
    --blue: #165DFF;
    --blue-dark: #0E42D2;
    --blue-light: #E8F0FF;
    --red: #E53935;
    --red-dark: #C62828;
    --text: #333;
    --text-gray: #666;
    --text-light: #999;
    --bg: #fff;
    --bg-gray: #f5f7fa;
    --border: #e8e8e8;
    --shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 8px 24px rgba(22, 93, 255, 0.15);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
    font-family: "Microsoft YaHei", "PingFang SC", "Helvetica Neue", Arial, sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-size: 15px;
}

a { text-decoration: none; color: inherit; transition: all 0.3s; }
img { max-width: 100%; display: block; }
ul, ol { list-style: none; }

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ---------- 顶部信息栏 ---------- */
.top-bar {
    background: var(--blue-dark);
    color: rgba(255,255,255,0.85);
    font-size: 13px;
    padding: 8px 0;
}
.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.top-bar a { color: rgba(255,255,255,0.85); }
.top-bar a:hover { color: #fff; }
.top-bar .top-right span { margin-left: 20px; }

/* ---------- 头部导航 ---------- */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 999;
}
.nav-wrap {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 80px;
}
.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}
.logo-icon {
    width: 48px;
    height: 48px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: 8px;
    display: flex;
	margin:0 auto;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 22px;
    font-weight: bold;
    position: relative;
}

.logo-text h1 {
    font-size: 35px;
    color: var(--blue);
    font-weight: 700;
    line-height: 1.2;
}
.logo-text p {
    font-size: 12px;
    color: var(--text-light);
    margin-top: 2px;
}

.nav-menu {
    display: flex;
    gap: 8px;
}
.nav-menu a {
    padding: 10px 18px;
    color: var(--text);
    font-size: 15px;
    border-radius: 4px;
    position: relative;
}
.nav-menu a:hover,
.nav-menu a.active {
    color: var(--blue);
    background: var(--blue-light);
}
.nav-menu a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 30px;
    height: 3px;
    background: var(--red);
    border-radius: 2px;
}

.mobile-menu-btn {
    display: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--blue);
    background: none;
    border: none;
    padding: 8px;
}

/* ---------- Banner轮播 ---------- */
.banner {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
}
.banner-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.8s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}
.banner-slide.active { opacity: 1; }
.banner-slide .banner-bg {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
}
.banner-slide .banner-overlay {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: linear-gradient(135deg, rgba(22,93,255,0.85), rgba(14,66,210,0.7));
}
.banner-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: #fff;
    padding: 0 20px;
    max-width: 800px;
}
.banner-content h2 {
    font-size: 42px;
    margin-bottom: 16px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.2);
}
.banner-content p {
    font-size: 20px;
    opacity: 0.9;
    margin-bottom: 28px;
}
.banner-content .banner-btn {
    display: inline-block;
    padding: 12px 36px;
    background: var(--red);
    color: #fff;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 500;
}
.banner-content .banner-btn:hover {
    background: var(--red-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229,57,53,0.4);
}

.banner-dots {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 3;
}
.banner-dots span {
    width: 36px;
    height: 4px;
    background: rgba(255,255,255,0.4);
    border-radius: 2px;
    cursor: pointer;
    transition: all 0.3s;
}
.banner-dots span.active {
    background: #fff;
    width: 48px;
}

/* ---------- 通用区块 ---------- */
.section {
    padding: 70px 0;
}
.section-gray { background: var(--bg-gray); }

.section-title {
    text-align: center;
    margin-bottom: 50px;
}
.section-title h2 {
    font-size: 32px;
    color: var(--blue);
    font-weight: 700;
    margin-bottom: 12px;
    position: relative;
    display: inline-block;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 4px;
    background: var(--red);
    border-radius: 2px;
}
.section-title p {
    color: var(--text-gray);
    font-size: 15px;
    margin-top: 20px;
}

/* ---------- 公司简介 ---------- */
.about-wrap {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}
.about-text h3 {
    font-size: 24px;
    color: var(--blue);
    margin-bottom: 20px;
}
.about-text p {
    color: var(--text-gray);
    line-height: 1.9;
    margin-bottom: 16px;
    text-align: justify;
}
.about-features {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    margin-top: 24px;
}
.about-feature {
    padding: 16px;
    background: var(--blue-light);
    border-radius: 8px;
    border-left: 4px solid var(--blue);
}
.about-feature h4 {
    color: var(--blue);
    font-size: 15px;
    margin-bottom: 4px;
}
.about-feature p {
    font-size: 13px;
    color: var(--text-gray);
    margin: 0;
}
.about-img {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
	transition: all 0.3s;
}
.about-img .img-placeholder {
    width: 100%;
    height: 360px;
    background: url(../upload/dm2.jpg ) center no-repeat var(--blue-light);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--blue);
    font-size: 18px;
}
.about-img:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-hover);
	
}


/* ---------- 检测项目 ---------- */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 32px;
}
.service-card {
    background: linear-gradient(to  right, #f1f1f1, #f4f4f4 50%, #f6f6f6);
    border-radius: 10px;
    padding: 32px 28px;
    box-shadow: var(--shadow);
    transition: all 0.3s;
    border-top: 4px solid transparent;

}

.service-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
    border-top-color: var(--red);
	
		
}
.service-icon {
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 26px;
    margin-bottom: 20px;
	 transition: all 0.3s;
}

.service-card:hover .service-icon {
    transform: scale(1.1) rotate(5deg);
}

.service-card h3 {
    font-size: 18px;
    color: var(--text);
    margin-bottom: 12px;
}
.service-card p {
    color: var(--text-gray);
    font-size: 14px;
    line-height: 1.7;
    margin-bottom: 14px;
}
.service-standards {
    font-size: 12px;
    color: var(--blue);
    background: var(--blue-light);
    padding: 6px 12px;
    border-radius: 4px;
    display: inline-block;
}

/* ---------- 检测设备 ---------- */
.device-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 38px;
}
.device-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.device-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.device-img {
    max-height: 290px;
    background: var(--bg-gray);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 14px;
    position: relative;
    overflow: hidden;
}
.device-img .device-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #e8f0ff, #f5f7fa);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 8px;
}
.device-img .device-placeholder .icon {
    font-size: 48px;
    color: var(--dark);
    opacity: 0.9;
}

.img-zoom{overflow:hidden;display:inline-block;}.img-zoom img{-webkit-transition:all 0.3s;-moz-transition:all 0.3s;-o-transition:all 0.3s;transition:all 0.3s;}.img-zoom:hover img{-webkit-transform:scale(1.1);-moz-transform:scale(1.1);-o-transform:scale(1.1);-ms-transform:scale(1.1);transform:scale(1.1);}.rotate{-webkit-transition-duration:0.8s;-moz-transition-duration:0.8s;-o-transition-duration:0.8s;transition-duration:0.8s;-webkit-transition-property:transform;transition-property:transform;-webkit-transition-property:-webkit-transform;-moz-transition-property:-moz-transform;-o-transition-property:-o-transform;transition-property:-webkit-transform,-moz-transform,-o-transform,transform;overflow:hidden;}.rotate:hover{-webkit-transform:rotate(360deg);-moz-transform:rotate(360deg);-o-transform:rotate(360deg);-ms-transform:rotate(360deg);transform:rotate(360deg);}
.device-info {
    padding: 20px 24px;
}
.device-info h3 {
    font-size: 17px;
    color: var(--text);
    margin-bottom: 6px;
}
.device-info .model {
    font-size: 13px;
    color: var(--red);
    margin-bottom: 10px;
}
.device-info p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.7;
}

/* ---------- 检测流程 ---------- */
.process-wrap {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    position: relative;
    flex-wrap: wrap;
    gap: 20px;
}
.process-step {
    flex: 1;
    min-width: 160px;
    text-align: center;
    position: relative;
}
.process-step .step-num {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    margin: 0 auto 16px;
    position: relative;
    z-index: 2;
	transition:all 0.3s;
}
.process-step:nth-child(even) .step-num {
    background: linear-gradient(135deg, var(--red), var(--red-dark));
}

.process-step .step-num:hover{
	transform: translateY(-6px);
	}
.process-step h4 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 6px;
}
.process-step p {
    font-size: 13px;
    color: var(--text-gray);
}
.process-line {
    position: absolute;
    top: 30px;
    left: 10%;
    right: 10%;
    height: 2px;
    background: var(--border);
    z-index: 1;
}

/* ---------- 报告查询 ---------- */
.report-query-section {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 60px 0;
}
.report-query-section .section-title h2 { color: #fff; }
.report-query-section .section-title p { color: rgba(255,255,255,0.8); }
.query-box {
    max-width: 600px;
    margin: 0 auto;
    background: rgba(255,255,255,0.1);
    padding: 30px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}
.query-box input {
    width: 100%;
    padding: 14px 18px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    margin-bottom: 14px;
    outline: none;
}
.query-box button {
    width: 100%;
    padding: 14px;
    background: var(--red);
    color: #fff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.3s;
}
.query-box button:hover {
    background: var(--red-dark);
	box-shadow: 0 25px 60px rgba(0, 0, 0, 0.28);
	
}

/* ---------- 新闻资讯 ---------- */
.news-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
}
.news-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: all 0.3s;
}
.news-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}
.news-img {
    height: 180px;
    background: var(--bg-gray);
}
.news-content {
    padding: 20px 24px;
}
.news-content .date {
    font-size: 12px;
    color: var(--text-light);
    margin-bottom: 8px;
}
.news-content h3 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.news-content p {
    font-size: 13px;
    color: var(--text-gray);
    line-height: 1.6;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ---------- 页脚 ---------- */
.footer {
    background: #1a2436;
    color: rgba(255,255,255,0.7);
    padding: 50px 0 0;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}
.footer-col h4::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 30px;
    height: 3px;
    background: var(--red);
}
.footer-col p, .footer-col li {
    font-size: 14px;
    line-height: 2;
    color: rgba(255,255,255,0.6);
}
.footer-col a:hover { color: #fff; }
.footer-col .footer-logo {
    display: flex;
    align-items:LEFT;
    gap: 10px;
    margin-bottom: 16px;
}
.footer-col .footer-logo .logo-icon {
    width: 40px;
    height: 40px;
    font-size: 18px;
}
.footer-col .footer-logo h3 {
    color: #fff;
    font-size: 18px;
}
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.4);
}

/* ---------- 内页Banner ---------- */
.page-banner {
    height: 220px;
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    position: relative;
    overflow: hidden;
}
.page-banner::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -10%;
    width: 400px;
    height: 400px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
}
.page-banner h2 {
    font-size: 32px;
    margin-bottom: 8px;
    position: relative;
}
.page-banner p {
    opacity: 0.8;
    position: relative;
}

/* ---------- 面包屑 ---------- */
.breadcrumb {
    padding: 16px 0;
    font-size: 14px;
    color: var(--text-gray);
    border-bottom: 1px solid var(--border);
}
.breadcrumb a { color: var(--blue); }
.breadcrumb a:hover { text-decoration: underline; }

/* ---------- 报告查询结果 ---------- */
.report-result {
    max-width: 800px;
    margin: 40px auto;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
    overflow: hidden;
}
.report-result-header {
    background: linear-gradient(135deg, var(--blue), var(--blue-dark));
    color: #fff;
    padding: 24px 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.report-result-header h3 { font-size: 20px; }
.report-result-body {
    padding: 30px;
}
.report-info-row {
    display: flex;
    padding: 12px 0;
    border-bottom: 1px dashed var(--border);
}
.report-info-row .label {
    width: 120px;
    color: var(--text-gray);
    font-weight: 500;
}
.report-info-row .value {
    flex: 1;
    color: var(--text);
}
.report-qrcode-area {
    text-align: center;
    margin-top: 24px;
    padding: 24px;
    background: var(--bg-gray);
    border-radius: 8px;
}
.report-qrcode-area img {
    width: 180px;
    height: 180px;
    margin: 0 auto 12px;
    border: 4px solid #fff;
    box-shadow: var(--shadow);
}
.report-download-btn {
    display: inline-block;
    margin-top: 16px;
    padding: 12px 32px;
    background: var(--red);
    color: #fff;
    border-radius: 6px;
    font-size: 15px;
}
.report-download-btn:hover {
    background: var(--red-dark);
}

/* ---------- 响应式 ---------- */
@media (max-width: 992px) {
    .service-grid, .device-grid, .news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .about-wrap {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 30px;
    }
}

@media (max-width: 768px) {
    .top-bar { display: none; }
    .nav-wrap { height: 64px; }
    .logo-text h1 { font-size: 26px; }
    .logo-text p { display: none; }
    .logo-icon { width: 40px; height: 40px; font-size: 18px; }

    .mobile-menu-btn { display: block; }
    .nav-menu {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: 10px 0;
        box-shadow: var(--shadow);
        gap: 0;
    }
    .nav-menu.open { display: flex; }
    .nav-menu a {
        padding: 14px 20px;
        border-radius: 0;
        border-bottom: 1px solid var(--border);
    }
    .nav-menu a.active::after { display: none; }

    .banner { height: 320px; }
    .banner-content h2 { font-size: 26px; }
    .banner-content p { font-size: 15px; }

    .section { padding: 40px 0; }
    .section-title h2 { font-size: 24px; }
    .section-title { margin-bottom: 30px; }

    .service-grid, .device-grid, .news-grid {
        grid-template-columns: 1fr;
    }
    .about-features { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }

    .process-wrap { flex-direction: column; align-items: center; }
    .process-line { display: none; }

    .page-banner { height: 160px; }
    .page-banner h2 { font-size: 24px; }
}
