﻿/* ========== 奥博特认证 - 前台样式 蓝色系（匹配原站） ========== */
:root {
    --primary: #04BFEA;
    --primary-dark: #0399bc;
    --primary-light: #e0f7ff;
    --primary-gradient: linear-gradient(135deg, #04BFEA 0%, #0399bc 100%);
    --text: #313538;
    --text-light: #666;
    --text-muted: #999;
    --bg: #fff;
    --bg-gray: #f7f9fa;
    --border: #e2e2e2;
    --footer-bg: #333;
    --shadow: 0 2px 12px rgba(0,0,0,0.06);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --radius: 4px;
    --container: 1200px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    color: var(--text);
    line-height: 1.7;
    background: var(--bg);
}
a { text-decoration: none; color: var(--primary); transition: all .3s; }
a:hover { color: var(--primary-dark); }
img { max-width: 100%; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 20px; }

/* 主导航 */
.header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}
.header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}
.logo a { display: flex; align-items: center; gap: 10px; }
.logo img { height: 45px; }
.logo-cn { display: block; font-size: 22px; font-weight: 700; color: var(--primary-dark); line-height: 1.2; }
.logo-en { display: block; font-size: 11px; color: var(--text-muted); }

.main-nav > ul { display: flex; list-style: none; gap: 0; }
.main-nav > ul > li { position: relative; }
.main-nav > ul > li > a {
    display: block;
    padding: 22px 20px;
    color: var(--text);
    font-size: 15px;
    position: relative;
}
.main-nav > ul > li > a:hover,
.main-nav > ul > li > a.active {
    background: var(--primary);
    color: #fff;
}
.dropdown {
    position: absolute;
    top: 100%; left: 0;
    background: #333;
    min-width: 200px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.2);
    list-style: none;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all .3s;
    z-index: 100;
}
.has-dropdown:hover .dropdown {
    opacity: 1; visibility: visible; transform: translateY(0);
}
.dropdown li a {
    display: block;
    padding: 12px 24px;
    color: #fff;
    font-size: 14px;
    white-space: nowrap;
    transition: all .2s;
}
.dropdown li:last-child a { border-bottom: none; }
.dropdown li a:hover {
    background: var(--primary) !important;
    color: #fff !important;
    padding-left: 40px !important;
    transition: all 0.2s;
}

/* 移动端导航按钮 */
.nav-toggle { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 10px; }
.nav-toggle span { width: 25px; height: 3px; background: var(--primary); border-radius: 2px; }

/* Banner 轮播 */
.hero-slider {
    position: relative;
    height: 500px;
    overflow: hidden;
}
.hero-slider .slide {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-position: center center;
    background-size: cover;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 0.8s ease-in-out;
}
.hero-slider .slide.active {
    opacity: 1;
}

/* 质量方针栏 */
.quality-bar {
    background: #fff;
    text-align: center;
    padding: 30px 0;
    font-size: 20px;
    color: var(--text-light);
    letter-spacing: 2px;
}

/* 通用区块 */
.section { padding: 50px 0; }
.section-gray { background: var(--bg-gray); }
.section-title {
    text-align: center;
    margin-bottom: 40px;
}
.section-title h2 {
    font-size: 28px;
    color: var(--text);
    margin-bottom: 10px;
    position: relative;
    display: inline-block;
    padding-bottom: 12px;
}
.section-title h2::after {
    content: '';
    position: absolute;
    bottom: 0; left: 50%;
    transform: translateX(-50%);
    width: 50px; height: 3px;
    background: var(--primary);
}
.section-title p { color: var(--text-light); font-size: 15px; }

/* 首页服务图标区 */
.home-services {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    text-align: center;
}
.home-service-item {
    transition: all .3s;
}
.home-service-item:hover {
    transform: translateY(-5px);
}
.home-service-item:hover img {
    transform: scale(1.1);
}
.home-service-item img {
    width: 130px;
    height: 130px;
    margin: 0 auto 16px;
    display: block;
    object-fit: contain;
    transition: transform .3s;
}
.home-service-item h4 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 4px;
    transition: color .3s;
}
.home-service-item:hover h4 {
    color: var(--primary);
}
.home-service-item .en {
    font-size: 12px;
    color: var(--text-muted);
    transition: color .3s;
}
.home-service-item:hover .en {
    color: var(--primary-dark);
}

/* 首页公司介绍 */
.about-preview {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.about-preview .text h3 {
    font-size: 24px; color: var(--text); margin-bottom: 16px;
}
.about-preview .text p { color: var(--text-light); margin-bottom: 16px; text-align: justify; }
.about-preview .visual {
    background: var(--primary-gradient);
    border-radius: var(--radius);
    min-height: 300px;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.9);
    font-size: 48px;
    font-weight: 700;
    letter-spacing: 4px;
}

/* 新闻列表两栏 */
.news-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.news-col h3 {
    font-size: 18px;
    color: var(--text);
    padding-bottom: 10px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 16px;
}
.news-col ul { list-style: none; }
.news-col ul li {
    padding: 8px 0;
    border-bottom: 1px dashed #f0f0f0;
    font-size: 14px;
}
.news-col ul li a {
    color: var(--text);
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    padding-left: 16px;
    position: relative;
}
.news-col ul li a::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
}
.news-col ul li a:hover { color: var(--primary); }

/* 列表页banner */
.page-banner {
    background: url('../images/inner_banner/banner1.jpg') center/cover no-repeat;
    height: 300px;
}
.page-banner-text {
    background: #fff;
    padding: 35px 0 25px;
    position: relative;
    border-bottom: 1px solid #f0f0f0;
}
.page-banner-text h1 {
    font-size: 24px;
    color: var(--text);
    position: relative;
    padding-left: 12px;
}
.page-banner-text h1::before {
    content: '';
    position: absolute;
    left: 0;
    top: 5px;
    bottom: 5px;
    width: 4px;
    background: var(--primary);
    border-radius: 2px;
}

.article-list { background: #fff; }
.article-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
    transition: background .2s;
}
.article-item:last-child { border-bottom: none; }
.article-item .title {
    flex: 1;
    font-size: 15px;
    color: var(--text);
    padding-right: 20px;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
    padding-left: 16px;
    position: relative;
}
.article-item .title::before {
    content: '▸';
    position: absolute;
    left: 0;
    color: var(--primary);
}
.article-item:hover .title { color: var(--primary); }
.article-item .date { color: var(--text-muted); font-size: 14px; white-space: nowrap; }

/* 详情页 */
.article-detail {
    background: #fff;
    padding: 40px;
}
.article-detail h1 {
    font-size: 24px;
    color: var(--text);
    margin-bottom: 16px;
    text-align: center;
}
.article-detail .meta {
    text-align: center;
    color: var(--text-muted);
    font-size: 14px;
    padding-bottom: 20px;
    border-bottom: 1px solid var(--border);
    margin-bottom: 30px;
}
.article-detail .content {
    font-size: 15px;
    line-height: 1.9;
    color: var(--text);
}
.article-detail .content p { margin-bottom: 16px; }

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 30px;
}
.pagination a, .pagination span {
    display: inline-block;
    padding: 6px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    color: var(--text);
    font-size: 14px;
}
.pagination a:hover { background: var(--primary); color: #fff; border-color: var(--primary); }
.pagination .current { background: var(--primary); color: #fff; border-color: var(--primary); }

/* 服务卡片 */
.service-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}
.service-card {
    background: #fff;
    padding: 40px 30px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: all .3s;
}
.service-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.service-card .icon {
    width: 80px; height: 80px;
    margin: 0 auto 20px;
}
.service-card .icon img {
    width: 80px;
    height: 80px;
}
.service-card h3 { font-size: 18px; margin-bottom: 12px; color: var(--text); }
.service-card p { font-size: 14px; color: var(--text-light); }

/* 表单 */
.form-box {
    background: #fff;
    padding: 40px;
    max-width: 700px;
    margin: 0 auto;
}
.form-group { margin-bottom: 20px; }
.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 500;
    color: var(--text);
    font-size: 14px;
}
.form-group label .required { color: #e74c3c; }
.form-control {
    width: 100%;
    padding: 10px 14px;
    border: 1px solid var(--border);
    border-radius: 4px;
    font-size: 14px;
    transition: border-color .3s;
}
.form-control:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(4,191,234,0.1);
}
textarea.form-control { min-height: 120px; resize: vertical; }
.btn {
    display: inline-block;
    padding: 10px 30px;
    background: var(--primary);
    color: #fff;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    cursor: pointer;
    transition: all .3s;
}
.btn:hover { background: var(--primary-dark); color: #fff; }
.btn-block { display: block; width: 100%; text-align: center; }
.alert {
    padding: 12px 16px;
    border-radius: 4px;
    margin-bottom: 20px;
    font-size: 14px;
}
.alert-success { background: #d4edda; color: #155724; }
.alert-error { background: #f8d7da; color: #721c24; }

/* 联系我们 */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}
.contact-info-card {
    background: #fff;
    padding: 30px;
}
.contact-info-item {
    display: flex;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px solid var(--border);
}
.contact-info-item:last-child { border-bottom: none; }
.contact-info-item .icon {
    width: 44px; height: 44px;
    background: var(--primary-light);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-size: 18px;
    flex-shrink: 0;
}
.contact-info-item .label { font-size: 13px; color: var(--text-muted); }
.contact-info-item .value { font-size: 15px; color: var(--text); font-weight: 500; }

/* 友情链接 */
.friend-links {
    background: #fff;
    padding: 30px 0;
    text-align: center;
}
.friend-links h4 {
    font-size: 16px;
    color: var(--text);
    margin-bottom: 20px;
    text-align: left;
    border-bottom: 1px solid var(--border);
    padding-bottom: 10px;
}
.friend-links .links-row {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.friend-links .links-row img {
    height: 60px;
    border: 1px solid var(--border);
    padding: 5px;
}

/* 底部 */
.footer {
    background: var(--footer-bg);
    color: rgba(255,255,255,0.7);
    padding: 20px 0 0;
    margin-top: 20px;
}
.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}
.footer-col h4 {
    color: #fff;
    font-size: 16px;
    margin-bottom: 16px;
    padding-bottom: 10px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 8px; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 14px; }
.footer-col a:hover { color: #fff; }
.footer-col p { font-size: 14px; margin-bottom: 8px; }
.footer-bottom {
    background: #2a2a2a;
    border-top: 1px solid rgba(255,255,255,0.05);
    padding: 20px 0;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.5);
}

/* 文件列表 */
.file-list { background: #fff; }
.file-item {
    display: flex;
    align-items: center;
    padding: 16px 0;
    border-bottom: 1px dashed var(--border);
}
.file-item:last-child { border-bottom: none; }
.file-item .file-icon {
    width: 40px; height: 40px;
    background: var(--primary-light);
    border-radius: 4px;
    display: flex; align-items: center; justify-content: center;
    color: var(--primary);
    font-weight: 700;
    font-size: 12px;
    margin-right: 16px;
    flex-shrink: 0;
}
.file-item .file-info { flex: 1; }
.file-item .file-title { font-size: 15px; color: var(--text); }
.file-item .file-desc { font-size: 13px; color: var(--text-muted); margin-top: 2px; }
.file-item .file-action a {
    padding: 6px 16px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 4px;
    font-size: 13px;
}
.file-item .file-action a:hover { background: var(--primary); color: #fff; }

/* ========== 证书查询 ========== */
.cx-form-box {
    background: #fff;
    padding: 30px;
    margin-bottom: 24px;
}
.cx-form-sub { margin: 0 0 16px; color: var(--text-muted); font-size: 13px; }
.cx-field-row { display: flex; gap: 24px; flex-wrap: wrap; }
.cx-field-row .cx-field { flex: 1; min-width: 240px; }
.cx-field { display: flex; flex-direction: column; }
.cx-field label { font-weight: 600; margin-bottom: 6px; font-size: 14px; color: var(--text); }
.cx-field input {
    border: 1px solid var(--border);
    border-radius: 4px;
    padding: 10px 12px;
    font-size: 14px;
    outline: none;
    transition: border-color .3s;
}
.cx-field input:focus { border-color: var(--primary); box-shadow: 0 0 0 3px rgba(4,191,234,0.1); }
.cx-field-row.cx-inline { margin-top: 16px; }
.cx-captcha { flex-direction: row; align-items: center; gap: 10px; }
.cx-captcha input { width: 140px; flex: none; }
.cx-captcha-img {
    height: 42px; width: 110px;
    border: 1px solid var(--border);
    border-radius: 4px;
    cursor: pointer;
}
.cx-btn-primary {
    background: var(--primary);
    color: #fff;
    padding: 10px 28px;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
}
.cx-btn-primary:hover { background: var(--primary-dark); }
.cx-tip { text-align: center; color: var(--text-muted); font-size: 13px; margin: 18px 0 0; }

/* 结果表格 */
.cx-result-wrap { margin: 18px 0 40px; }
.cx-result-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
}
.cx-result-table th, .cx-result-table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--border);
    text-align: left;
    font-size: 14px;
}
.cx-result-table th { background: var(--bg-gray); color: var(--text-light); font-weight: 600; }
.cx-result-table tbody tr:hover { background: var(--primary-light); }
.cx-result-table .c { text-align: center; width: 46px; color: var(--text-muted); }
.cx-link { color: var(--primary); }
.cx-link:hover { text-decoration: underline; }
.cx-status { padding: 2px 10px; border-radius: 10px; font-size: 12px; }
.cx-status.st-ok { background: #e6f6e6; color: #2e8b2e; }
.cx-status.st-pause { background: #fff7e6; color: #d48806; }
.cx-status.st-bad { background: #fdecec; color: #c0392b; }
.cx-empty { text-align: center; padding: 60px 0; color: var(--text-muted); }

/* 模态框 */
.cx-modal { position: fixed; inset: 0; z-index: 9999; display: flex; align-items: flex-start; justify-content: center; padding-top: 8vh; }
.cx-modal[hidden] { display: none; }
.cx-modal-mask { position: absolute; inset: 0; background: rgba(0,20,40,0.45); }
.cx-modal-card {
    position: relative;
    background: #fff;
    border-radius: 4px;
    width: min(560px, 92vw);
    padding: 24px 30px;
    box-shadow: 0 10px 40px rgba(0,20,40,0.25);
}
.cx-modal-card h3 { margin: 0 0 18px; font-size: 17px; padding-bottom: 14px; border-bottom: 1px solid #f0f0f0; }
.cx-modal-close { position: absolute; right: 14px; top: 12px; border: none; background: none; font-size: 24px; color: var(--text-muted); cursor: pointer; }
.cx-detail-block { margin-bottom: 14px; }
.cx-detail-block .dt { margin: 0 0 4px; color: var(--text-light); font-size: 13px; }
.cx-detail-block .dd { margin: 0; background: var(--bg-gray); border-radius: 4px; padding: 9px 12px; font-size: 14px; min-height: 38px; }
.cx-verify-tip { margin-top: 18px; color: var(--text-muted); font-size: 13px; }

/* 响应式 */
@media (max-width: 992px) {
    .news-two-col { grid-template-columns: 1fr; }
    .home-services { grid-template-columns: repeat(2, 1fr); }
    .about-preview, .contact-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 30px; }
    .hero h1 { font-size: 32px; }
}
@media (max-width: 768px) {
    .nav-toggle { display: flex; }
    .main-nav {
        position: fixed;
        top: 70px; left: -100%;
        width: 280px; height: calc(100vh - 70px);
        background: #fff;
        box-shadow: var(--shadow-lg);
        transition: left .3s;
        overflow-y: auto;
        z-index: 999;
    }
    .main-nav.open { left: 0; }
    .main-nav ul { flex-direction: column; gap: 0; }
    .main-nav > ul > li > a { padding: 15px 20px; border-bottom: 1px solid var(--border); }
    .dropdown { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; }
    .service-grid { grid-template-columns: 1fr; }
    .article-detail { padding: 20px; }
    .article-item .title { white-space: normal; }
    .footer-grid { grid-template-columns: 1fr; }
}





