@charset "utf-8";

/* 科技感简约绿色风格 - 证书查询系统 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
    font-size: 14px;
    color: #333;
    min-height: 100vh;
    background: linear-gradient(135deg, #e8f5e9 0%, #c8e6c9 50%, #a5d6a7 100%);
    background-attachment: fixed;
}

/* 科技感背景动画 */
body::before {
    content: "";
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background:
        radial-gradient(circle at 20% 80%, rgba(32, 165, 58, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(32, 165, 58, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 40%, rgba(255, 255, 255, 0.1) 0%, transparent 30%);
    pointer-events: none;
    z-index: 0;
}

#main-div {
    width: 100%;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 40px 20px;
    position: relative;
    z-index: 1;
}

#main-div a, #main-div a:visited, #main-div a:active {
    color: #20a53a;
    text-decoration: none;
    transition: color 0.3s;
}

#main-div a:hover {
    color: #1b8a31;
}

#main-div li, #main-div dd {
    list-style: none;
}

#main-div img {
    border: none;
}

/* 头部间距 */
#main-div #head {
    height: 60px;
    width: 100%;
}

#main-div #nhead {
    height: 40px;
    width: 100%;
}

/* 主容器 */
#main-div #body1 {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

#main-div #body1-c {
    width: 100%;
    max-width: 500px;
    margin: 0 auto;
}

/* 卡片容器 - 毛玻璃效果 */
#main-div #body1-c1 {
    position: relative;
    background: linear-gradient(135deg, #20a53a 0%, #1b8a31 100%);
    border-radius: 16px 16px 0 0;
    padding: 24px 30px;
    box-shadow: 0 -4px 20px rgba(32, 165, 58, 0.3);
}

/* 标题样式 */
#main-div .body1-title {
    color: #ffffff;
    font-size: 22px;
    font-weight: 600;
    text-align: center;
    letter-spacing: 2px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 科技感装饰线 */
#main-div #body1-c1::after {
    content: "";
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 3px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 2px;
}

/* 表单区域 - 毛玻璃卡片 */
#main-div #body1-c6 {
    width: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px 35px 30px;
    border-radius: 0;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

#main-div ul, #main-div li {
    margin: 0;
    padding: 0;
    list-style: none;
}

#main-div ul {
    margin: 0 auto;
}

/* 表单项 */
#main-div .bl-form li {
    padding-bottom: 20px;
    overflow: hidden;
    clear: both;
}

#main-div .bl-form .label {
    display: block;
    width: 100%;
    text-align: left;
    font-size: 14px;
    color: #555;
    margin-bottom: 8px;
    font-weight: 500;
}

#main-div .bl-form .controls {
    width: 100%;
}

/* 输入框样式 */
#main-div .bl-form .title {
    width: 100%;
    height: 48px;
    padding: 0 16px;
    font-size: 15px;
    color: #333;
    background: #f8faf8;
    border: 2px solid #e0e0e0;
    border-radius: 10px;
    outline: none;
    transition: all 0.3s ease;
}

#main-div .bl-form .title:focus {
    border-color: #20a53a;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(32, 165, 58, 0.1);
}

#main-div .bl-form .title::placeholder {
    color: #aaa;
}

/* 查询按钮 */
#main-div .bl-form .credential_search {
    width: 100%;
    height: 50px;
    background: linear-gradient(135deg, #20a53a 0%, #1b8a31 100%);
    color: #fff;
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 4px;
    border: none;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(32, 165, 58, 0.4);
    margin-top: 10px;
}

#main-div .bl-form .credential_search:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32, 165, 58, 0.5);
}

#main-div .bl-form .credential_search:active {
    transform: translateY(0);
}

/* 提示区域 */
#main-div #body1-c3 {
    background: linear-gradient(135deg, #43a047 0%, #388e3c 100%);
    color: #fff;
    padding: 14px 20px;
    text-align: center;
    font-size: 13px;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 4px 20px rgba(32, 165, 58, 0.2);
}

#main-div #body1-c3 .STYLE1 {
    color: #ffeb3b;
}

/* 返回按钮 */
#main-div a.return_btn {
    display: inline-block;
    background: linear-gradient(135deg, #20a53a 0%, #1b8a31 100%);
    color: #fff;
    padding: 10px 24px;
    border-radius: 8px;
    font-size: 14px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(32, 165, 58, 0.3);
}

#main-div a.return_btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(32, 165, 58, 0.4);
    color: #fff;
}

/* 验证码图片 */
#main-div img.chicuele {
    height: 48px;
    border-radius: 8px;
    margin-left: 10px;
    cursor: pointer;
}

#main-div img.loading_vertify {
    height: 30px;
    margin-left: 10px;
}

/* 响应式设计 */
@media screen and (max-width: 640px) {
    #main-div {
        padding: 20px 15px;
    }

    #main-div #head,
    #main-div #nhead {
        height: 20px;
    }

    #main-div #body1,
    #main-div #body1-c {
        width: 100%;
        max-width: 100%;
    }

    #main-div #body1-c1 {
        padding: 20px;
        border-radius: 12px 12px 0 0;
    }

    #main-div .body1-title {
        font-size: 18px;
        letter-spacing: 1px;
    }

    #main-div #body1-c6 {
        padding: 30px 20px 25px;
    }

    #main-div .bl-form .title {
        height: 44px;
        font-size: 14px;
    }

    #main-div .bl-form .credential_search {
        height: 46px;
        font-size: 16px;
        letter-spacing: 2px;
    }

    #main-div #body1-c3 {
        padding: 12px 15px;
        font-size: 12px;
        border-radius: 0 0 12px 12px;
    }
}

/* ========================================
   证书详情页样式 - 现代简约证书风格
   ======================================== */

/* 证书容器 */
.certificate-wrapper {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
}

/* 证书卡片 */
.certificate-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.1);
    overflow: hidden;
    position: relative;
}

/* 证书顶部装饰边框 */
.certificate-card::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 8px;
    background: linear-gradient(90deg, #20a53a, #1b8a31, #20a53a);
}

/* 证书头部 */
.certificate-header {
    background: linear-gradient(135deg, #20a53a 0%, #1b8a31 100%);
    padding: 30px;
    text-align: center;
    position: relative;
}

.certificate-header::after {
    content: "";
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    border-left: 25px solid transparent;
    border-right: 25px solid transparent;
    border-top: 20px solid #1b8a31;
}

.certificate-icon {
    width: 60px;
    height: 60px;
    background: rgba(255,255,255,0.2);
    border-radius: 50%;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.certificate-icon svg {
    display: block;
}

.certificate-title {
    color: #fff;
    font-size: 26px;
    font-weight: 600;
    letter-spacing: 4px;
    margin: 0;
}

/* 证书主体内容 */
.certificate-body {
    padding: 40px 30px 30px;
}

/* 信息区域 */
.certificate-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px 40px;
    margin-bottom: 30px;
}

.info-item {
    display: flex;
    align-items: flex-start;
    padding: 12px 0;
    border-bottom: 1px dashed #e0e0e0;
}

.info-label {
    color: #888;
    font-size: 14px;
    min-width: 80px;
    flex-shrink: 0;
}

.info-value {
    color: #333;
    font-size: 15px;
    font-weight: 500;
}

/* 照片和二维码区域 */
.certificate-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 30px;
    background: #f8faf8;
    border-top: 2px solid #e8f5e9;
}

.photo-section {
    text-align: center;
}

.photo-section img {
    width: 120px;
    height: 160px;
    object-fit: cover;
    border: 3px solid #20a53a;
    border-radius: 8px;
}

.qrcode-section {
    text-align: center;
}

.qrcode-section img {
    width: 120px;
    height: 120px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 5px;
    background: #fff;
}

.qrcode-label {
    color: #888;
    font-size: 12px;
    margin-top: 8px;
}

/* 操作按钮区域 */
.certificate-actions {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.btn-print, .btn-back {
    padding: 12px 40px;
    font-size: 15px;
    font-weight: 500;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-print {
    background: linear-gradient(135deg, #20a53a 0%, #1b8a31 100%);
    color: #fff;
    border: none;
    box-shadow: 0 4px 15px rgba(32,165,58,0.3);
}

.btn-print:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(32,165,58,0.4);
}

.btn-back {
    background: #fff;
    color: #666;
    border: 2px solid #e0e0e0;
}

.btn-back:hover {
    border-color: #20a53a;
    color: #20a53a;
}

/* 打印样式 */
@media print {
    body {
        background: #fff !important;
    }
    body::before {
        display: none;
    }
    .certificate-wrapper {
        padding: 0;
    }
    .certificate-card {
        box-shadow: none;
        border: 2px solid #20a53a;
    }
    .certificate-actions {
        display: none !important;
    }
    .btn-print, .btn-back {
        display: none !important;
    }
    .certificate-notice {
        display: none !important;
    }
}

/* 底部声明样式 */
.certificate-notice {
    text-align: center;
    margin-top: 25px;
    padding: 15px 20px;
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
}

.certificate-notice .notice-verified {
    color: #20a53a;
    font-size: 14px;
    margin: 0 0 6px 0;
}

.certificate-notice .notice-tips {
    color: #888;
    font-size: 12px;
    margin: 0;
}

/* 查询页面底部样式 */
.login-footer {
    width: 500px;
    max-width: 100%;
    margin: 30px auto 0;
    text-align: center;
}

.footer-stats {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 30px;
    margin-bottom: 20px;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 24px;
    font-weight: bold;
    color: #20a53a;
}

.stat-label {
    font-size: 12px;
    color: #888;
    margin-top: 4px;
}

.stat-divider {
    width: 1px;
    height: 30px;
    background: rgba(32,165,58,0.3);
}

.footer-notice {
    background: rgba(255,255,255,0.6);
    border-radius: 8px;
    padding: 15px 20px;
}

.footer-notice p {
    margin: 6px 0;
    font-size: 12px;
    color: #666;
}
