/* 查询系统页面样式 */

.query-main-content {
    min-height: calc(100vh - 200px);
    background: transparent;
    padding: 40px 0;
    position: relative;
}

.query-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 1;
}

/* 查询卡片 */
.query-card {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    display: flex;
    overflow: hidden;
    min-height: 600px;
}

/* 左侧蓝色竖条 */
.query-sidebar {
    width: 60px;
    background: linear-gradient(180deg, #1976d2 0%, #1565c0 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.sidebar-text {
    writing-mode: vertical-rl;
    text-orientation: upright;
    color: white;
    font-size: 20px;
    font-weight: bold;
    letter-spacing: 8px;
    padding: 20px 0;
}

/* 右侧内容区域 */
.query-content {
    flex: 1;
    padding: 40px;
}

/* 标签页 */
.query-tabs {
    display: flex;
    gap: 30px;
    border-bottom: 2px solid #e0e0e0;
    margin-bottom: 30px;
}

.query-tab {
    background: none;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    color: #666;
    cursor: pointer;
    position: relative;
    transition: all 0.3s;
}

.query-tab:hover {
    color: #1976d2;
}

.query-tab.active {
    color: #1976d2;
    font-weight: 600;
}

.query-tab.active::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    right: 0;
    height: 3px;
    background: #1976d2;
}

/* 标签页内容 */
.query-tab-content {
    display: none;
}

.query-tab-content.active {
    display: block;
}

/* 查询表单包装器 */
.query-form-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
}

/* 左侧表单区域 */
.query-form-section {
    padding-right: 30px;
    border-right: 1px solid #e0e0e0;
}

.certificate-query-form {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.query-form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.query-label {
    font-size: 14px;
    color: #333;
    font-weight: 500;
}

.query-input {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    transition: all 0.3s;
}

.query-input:focus {
    outline: none;
    border-color: #1976d2;
    box-shadow: 0 0 0 3px rgba(25, 118, 210, 0.1);
}

.query-submit-btn {
    margin-top: 20px;
    padding: 14px 40px;
    background: linear-gradient(135deg, #1976d2 0%, #1565c0 100%);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(25, 118, 210, 0.3);
}

.query-submit-btn:hover {
    background: linear-gradient(135deg, #1565c0 0%, #0d47a1 100%);
    box-shadow: 0 4px 12px rgba(25, 118, 210, 0.4);
    transform: translateY(-2px);
}

.query-submit-btn:active {
    transform: translateY(0);
}

/* 右侧说明区域 */
.query-info-section {
    padding-left: 30px;
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.query-statement {
    background: #f5f5f5;
    padding: 25px;
    border-radius: 6px;
    border-left: 4px solid #1976d2;
}

.query-statement p {
    margin: 0 0 12px 0;
    line-height: 1.8;
    color: #555;
    font-size: 14px;
}

.query-statement p:last-child {
    margin-bottom: 0;
}

.query-statement strong {
    color: #333;
    font-size: 15px;
}

.contact-phone {
    color: #1976d2 !important;
    font-weight: 600;
    margin-top: 15px !important;
}

.contact-phone i {
    margin-right: 8px;
}

.learning-platform-btn {
    display: inline-block;
    padding: 14px 30px;
    background: linear-gradient(135deg, #f44336 0%, #d32f2f 100%);
    color: white;
    text-decoration: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    text-align: center;
    transition: all 0.3s;
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.3);
}

.learning-platform-btn:hover {
    background: linear-gradient(135deg, #d32f2f 0%, #b71c1c 100%);
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.4);
    transform: translateY(-2px);
}

/* 查询说明内容 */
.instruction-content {
    padding: 20px;
}

.instruction-content h3 {
    font-size: 22px;
    color: #333;
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 2px solid #1976d2;
}

.instruction-section {
    margin-bottom: 30px;
}

.instruction-section h4 {
    font-size: 16px;
    color: #1976d2;
    margin-bottom: 15px;
}

.instruction-section p {
    line-height: 1.8;
    color: #555;
    margin-bottom: 10px;
}

.instruction-section ul {
    list-style: none;
    padding-left: 0;
}

.instruction-section ul li {
    padding: 8px 0 8px 25px;
    position: relative;
    line-height: 1.8;
    color: #555;
}

.instruction-section ul li::before {
    content: '•';
    position: absolute;
    left: 10px;
    color: #1976d2;
    font-weight: bold;
}

.instruction-section .note {
    background: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 12px 15px;
    margin-top: 15px;
    border-radius: 4px;
    color: #856404;
}

.instruction-section i {
    color: #1976d2;
    margin-right: 8px;
    width: 20px;
    display: inline-block;
}

/* 证书查询结果弹窗样式 */
.certificate-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 99999;
    opacity: 0;
    transition: opacity 0.3s;
}

.certificate-modal-overlay.show {
    opacity: 1;
}

.certificate-modal-content-new {
    background: #faf8f5;
    border-radius: 8px;
    width: 90%;
    max-width: 700px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    transform: scale(0.9);
    transition: transform 0.3s;
}

.certificate-modal-overlay.show .certificate-modal-content-new {
    transform: scale(1);
}

.certificate-modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 8px 8px 0 0;
}

.certificate-modal-header h2 {
    margin: 0;
    font-size: 18px;
    color: #333;
    font-weight: 600;
}

.certificate-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    transition: all 0.3s;
}

.certificate-modal-close:hover {
    background: #f5f5f5;
    color: #333;
}

.certificate-modal-body-new {
    padding: 40px 30px;
    display: grid;
    grid-template-columns: 200px 1fr;
    gap: 40px;
    align-items: start;
}

/* 左侧信息网格 */
.certificate-info-grid {
    display: flex;
    flex-direction: column;
    gap: 25px;
}

.info-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px;
}

.info-item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.info-item.full-width {
    grid-column: 1 / -1;
}

.info-label-new {
    font-size: 13px;
    color: #666;
    font-weight: 500;
}

.info-value-new {
    font-size: 15px;
    color: #333;
    font-weight: 600;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

/* 右侧照片区域 */
.certificate-photo-box {
    background: white;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.photo-label {
    font-size: 14px;
    color: #666;
    font-weight: 500;
    writing-mode: horizontal-tb;
    text-align: center;
}

.photo-display {
    width: 160px;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.no-photo-placeholder {
    width: 160px;
    height: 200px;
    background: #f5f5f5;
    border: 2px dashed #ddd;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 响应式设计 */
@media (max-width: 968px) {
    .certificate-modal-body-new {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .certificate-photo-box {
        margin: 0 auto;
    }
    
    .info-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

@media (max-width: 968px) {
    .query-form-wrapper {
        grid-template-columns: 1fr;
        gap: 40px;
    }

    .query-form-section {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #e0e0e0;
        padding-bottom: 30px;
    }

    .query-info-section {
        padding-left: 0;
    }

    .query-content {
        padding: 30px 20px;
    }
}

@media (max-width: 576px) {
    .query-sidebar {
        width: 40px;
    }

    .sidebar-text {
        font-size: 16px;
        letter-spacing: 6px;
    }

    .query-content {
        padding: 20px 15px;
    }

    .query-tabs {
        gap: 15px;
    }

    .query-tab {
        padding: 10px 15px;
        font-size: 14px;
    }
}

