/* 全局样式 */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: #f5f7fa;
    color: #303133;
    font-size: 14px;
    line-height: 1.5;
}

/* 容器 */
.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 24px;
}

/* 卡片 */
.card {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 24px;
    margin-bottom: 20px;
}

/* 查询面板 */
.query-panel .panel-title {
    font-size: 18px;
    font-weight: 600;
    color: #303133;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 1px solid #ebeef5;
}

/* 表单 */
.form-inline {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
}

.form-group {
    flex: 1;
    min-width: 200px;
}

.form-group label {
    display: block;
    font-size: 13px;
    color: #606266;
    margin-bottom: 6px;
}

.form-group input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    font-size: 14px;
    color: #303133;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: #1890ff;
}

.form-group input::placeholder {
    color: #c0c4cc;
}

/* 按钮 */
.btn {
    display: inline-block;
    height: 40px;
    padding: 0 20px;
    line-height: 40px;
    text-align: center;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
}

.btn-primary {
    background: linear-gradient(135deg, #1890ff 0%, #1677cc 100%);
    color: #fff;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #1677cc 0%, #1465b8 100%);
}

.btn-default {
    background: #fff;
    color: #606266;
    border: 1px solid #dcdfe6;
}

.btn-default:hover {
    border-color: #c0c4cc;
    color: #303133;
}

/* 表格 */
.data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.data-table th {
    background: #f5f7fa;
    color: #606266;
    font-weight: 600;
    text-align: center;
    padding: 12px 8px;
    border-bottom: 2px solid #ebeef5;
}

.data-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #ebeef5;
    color: #303133;
    text-align: center;
}

.data-table tbody tr:nth-child(even) {
    background: #fafafa;
}

.data-table tbody tr:hover {
    background: #f5f7fa;
}

.data-table .center {
    text-align: center;
}

/* 空行 */
.empty-row td {
    text-align: center;
    color: #909399;
    padding: 40px 8px;
}

/* 操作链接 */
.link-btn {
    color: #1890ff;
    cursor: pointer;
    text-decoration: none;
}

.link-btn:hover {
    text-decoration: underline;
}

/* 分页 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 16px;
    gap: 4px;
    flex-wrap: wrap;
}

.pagination .page-btn,
.pagination .page-num {
    display: inline-block;
    min-width: 32px;
    height: 32px;
    line-height: 30px;
    text-align: center;
    padding: 0 8px;
    margin: 0 2px;
    border: 1px solid #dcdfe6;
    border-radius: 4px;
    background: #fff;
    color: #606266;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.2s;
}

.pagination .page-btn:hover,
.pagination .page-num:hover {
    border-color: #1890ff;
    color: #1890ff;
}

.pagination .page-btn.disabled,
.pagination .page-num.active {
    background: #1890ff;
    border-color: #1890ff;
    color: #fff;
    cursor: default;
}

.pagination .page-ellipsis {
    color: #909399;
    padding: 0 4px;
}

.pagination .page-info {
    margin-left: 12px;
    color: #606266;
    font-size: 13px;
}

/* 证书状态标签 */
.status-tag {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 4px;
    font-size: 12px;
    color: #606266;
}

/* 弹窗样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
}

.modal-content {
    margin: auto;
    display: block;
    max-width: 90%;
    max-height: 90vh;
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 4px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    z-index: 1001;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.modal-close:hover {
    opacity: 1;
}

/* 响应式 */
@media (max-width: 768px) {
    .container {
        padding: 16px;
    }

    .form-inline {
        flex-direction: column;
    }

    .form-group {
        width: 100%;
        min-width: unset;
    }

    .btn {
        width: 100%;
    }

    .data-table {
        font-size: 12px;
    }

    .data-table th,
    .data-table td {
        padding: 8px 4px;
    }
}