/* ============================================
 * 证书查询系统 - 前台样式
 * 视觉风格参考深大继续教育学院证书查询页
 * ============================================ */

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
    font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", "Helvetica Neue", Helvetica, Arial, sans-serif;
    background: #f3f4f6;
    color: #333;
    min-height: 100vh;
}
a { color: #2c5fa3; text-decoration: none; }
a:hover { text-decoration: underline; }

/* ===== 整体布局 ===== */
.main {
    max-width: 1200px;
    margin: 0 auto;
    background: #fff;
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0,0,0,.05);
    padding-bottom: 50px;
}

/* ===== 顶部 banner ===== */
.header {
    position: relative;
    width: 100%;
    background: #fff;
    border-bottom: 3px solid #2c5fa3;
}
.header_div1 {
    height: 6px;
    background: linear-gradient(to right, #2c5fa3 0%, #4a82c4 50%, #2c5fa3 100%);
}
.header img.banner {
    width: 100%;
    display: block;
    height: 180px;
    object-fit: cover;
    background: linear-gradient(135deg, #1d4a8a 0%, #2c5fa3 50%, #4a82c4 100%);
}
.header_school_name {
    position: absolute;
    left: 50px;
    top: 60px;
    color: #fff;
}
.header_school_name img { height: 50px; }

.now {
    position: absolute;
    right: 30px;
    bottom: 16px;
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 12px;
}
.now img { width: 14px; height: 14px; }
.now .index { cursor: pointer; color: #fff; margin: 0 3px; }
.now .index:hover { text-decoration: underline; }

/* ===== 内容区 ===== */
.content {
    display: flex;
    gap: 20px;
    padding: 30px;
    min-height: 600px;
}
.content_div1, .content_div2 {
    background: #fff;
}
.content_div1 {
    flex: 0 0 560px;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}
.content_div1_name {
    background: linear-gradient(to bottom, #f7f9fc, #eef2f7);
    padding: 14px 22px;
    font-size: 18px;
    color: #2c5fa3;
    font-weight: 600;
    border-bottom: 2px solid #2c5fa3;
}
.content_div1_line {
    height: 2px;
    background: #2c5fa3;
    margin: -2px 0 0;
}
.content_form {
    padding: 30px 40px;
}
.content_form form > div {
    display: flex;
    align-items: center;
    margin-bottom: 18px;
}
.content_form form > div > span:first-child {
    flex: 0 0 90px;
    text-align: right;
    padding-right: 16px;
    color: #555;
    font-size: 14px;
}
.content_form input[type="text"] {
    flex: 1;
    padding: 9px 14px;
    border: 1px solid #c8ccd1;
    border-radius: 3px;
    font-size: 14px;
    height: 38px;
    transition: border-color .15s;
    background: #fff;
}
.content_form input[type="text"]:focus {
    outline: none;
    border-color: #2c5fa3;
    box-shadow: 0 0 0 2px rgba(44,95,163,.12);
}
.content_form .validation_code > div {
    display: flex;
    align-items: center;
    flex: 1;
    gap: 10px;
}
.content_form .validation_code input {
    flex: 0 0 180px;
}
.content_form .validation_code img {
    height: 38px;
    border: 1px solid #c8ccd1;
    border-radius: 3px;
    cursor: pointer;
    vertical-align: middle;
}
.content_form .refresh-captcha {
    color: #2c5fa3;
    font-size: 13px;
    cursor: pointer;
    margin-left: 4px;
}
.content_form .refresh-captcha:hover { text-decoration: underline; }

.content_form_message {
    color: #d93025;
    font-size: 13px;
    text-align: center;
    min-height: 20px;
    margin: 4px 0 8px !important;
}
.content_form .submit {
    display: block;
    width: 140px;
    margin: 18px auto 0;
    padding: 10px 0;
    background: linear-gradient(to bottom, #3a72b8, #2c5fa3);
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 15px;
    letter-spacing: 8px;
    cursor: pointer;
    box-shadow: 0 2px 4px rgba(44,95,163,.3);
    transition: all .15s;
}
.content_form .submit:hover {
    background: linear-gradient(to bottom, #4480c4, #2f69b0);
    box-shadow: 0 3px 6px rgba(44,95,163,.4);
}

/* ===== 右侧说明区 ===== */
.content_div2 {
    flex: 1;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    padding: 24px;
    background: #fafbfc;
}
.content_div2 > div > span {
    display: block;
    font-size: 13px;
    color: #555;
    line-height: 1.9;
    margin-bottom: 2px;
}
.content_div2 > div > span:first-child {
    color: #2c5fa3;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}
.content_div2 .images {
    display: flex;
    gap: 10px;
    margin-top: 18px;
}
.content_div2 .images img {
    flex: 1;
    height: 200px;
    background: #fff;
    border: 1px solid #e8eaed;
    border-radius: 3px;
    object-fit: contain;
}

/* ===== 水印 ===== */
.content_water {
    text-align: center;
    padding: 10px 0 30px;
    opacity: .25;
}
.content_water img { max-width: 600px; }

/* ===== Footer ===== */
.footer {
    background: linear-gradient(to bottom, #2c5fa3, #1d4a8a);
    color: #fff;
    padding: 26px 30px;
    margin-top: 30px;
}
.footer_content {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.footer .left ul {
    list-style: none;
    margin: 0;
    padding: 0;
    font-size: 13px;
    line-height: 2;
}
.footer .left ul li:first-child {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 16px;
    font-weight: 500;
    margin-bottom: 4px;
}
.footer .left ul li:first-child img { width: 22px; }
.footer .qrcode {
    text-align: center;
    font-size: 13px;
}
.footer .qrcode img {
    background: #fff;
    padding: 6px;
    border-radius: 4px;
    display: block;
    margin: 0 auto 6px;
}

/* ===== 错误/成功提示 ===== */
.alert {
    padding: 10px 16px;
    border-radius: 3px;
    margin: 0 0 14px;
    font-size: 14px;
}
.alert-err { background: #fde8e8; color: #c53030; border: 1px solid #f8b4b4; }
.alert-ok  { background: #e6f7ec; color: #1e7e34; border: 1px solid #a3d9b1; }
.alert-info { background: #e8f0fb; color: #2c5fa3; border: 1px solid #b8cce4; }

/* ===== 查询结果表格 ===== */
.result {
    margin-top: 24px;
    border: 1px solid #e8eaed;
    border-radius: 4px;
    overflow: hidden;
}
.result-head {
    background: linear-gradient(to bottom, #f7f9fc, #eef2f7);
    padding: 12px 22px;
    font-size: 15px;
    color: #2c5fa3;
    font-weight: 600;
    border-bottom: 1px solid #e8eaed;
}
.result table { width: 100%; border-collapse: collapse; font-size: 13px; }
.result table th, .result table td {
    padding: 10px 14px;
    border-bottom: 1px solid #f0f2f5;
    text-align: left;
}
.result table th {
    background: #f7f9fc;
    color: #555;
    font-weight: 500;
    width: 130px;
}
.result table tr:last-child td { border-bottom: none; }
.result .badge {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 10px;
    background: #e6f7ec;
    color: #1e7e34;
    font-size: 12px;
}

/* 响应式 */
@media (max-width: 900px) {
    .content { flex-direction: column; padding: 16px; }
    .content_div1 { flex: 1; }
    .content_div1_name { padding: 12px 16px; font-size: 16px; }
    .content_form { padding: 20px; }
    .content_form form > div > span:first-child { flex-basis: 70px; font-size: 13px; }
    .footer_content { flex-direction: column; gap: 16px; }
    .header img.banner { height: 130px; }
    .header_school_name { top: 30px; left: 20px; }
    .header_school_name img { height: 36px; }
}
