/* ==================== 芯片查询 Chip Query ==================== */
.cq-title {
    font-size: 22px;
    font-weight: 700;
    color: #222;
    margin-bottom: 20px;
    letter-spacing: 1px;
}

/* Form */
.cq-form {
    background: #f0f2f5;
    border: 1px solid #e6e9ed;
    border-radius: 2px;
    padding: 22px 24px 10px;
    margin-bottom: 28px;
}

.cq-form-row {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
}

.cq-label {
    flex-shrink: 0;
    width: 110px;
    font-size: 14px;
    color: #333;
    text-align: right;
    line-height: 1.4;
}

.cq-field {
    flex: 1;
    min-width: 0;
}

.cq-field input,
.cq-field select {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #d8dde3;
    border-radius: 2px;
    background: #fff;
    font-size: 14px;
    color: #333;
    box-sizing: border-box;
    outline: none;
    transition: border-color .2s ease;
    appearance: none;
    -webkit-appearance: none;
}

.cq-field select {
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E") right 12px center / 12px no-repeat;
    padding-right: 36px;
    cursor: pointer;
}

.cq-field input:focus,
.cq-field select:focus {
    border-color: #1D78BD;
}

.cq-field--search {
    display: flex;
    align-items: stretch;
    gap: 0;
}

.cq-field--search input {
    flex: 1;
    border-right: none;
    border-radius: 2px 0 0 2px;
}

.cq-search-btn {
    flex-shrink: 0;
    min-width: 88px;
    height: 40px;
    padding: 0 20px;
    border: 1px solid #1D78BD;
    border-radius: 0 2px 2px 0;
    background: #1D78BD;
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: background .2s ease;
    white-space: nowrap;
}

.cq-search-btn:hover {
    background: #1868a6;
}

/* PC：行内搜索；手机：底部整宽搜索 */
.cq-form-actions {
    display: none;
}

.cq-form-row--split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px 24px;
    align-items: center;
}

.cq-form-col {
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 0;
}

.cq-form-col .cq-label {
    width: 110px;
}

.cq-form-col .cq-field {
    flex: 1;
}

/* Table */
.cq-table-wrap {
    width: 100%;
    overflow-x: auto;
    background: #fff;
    border: 1px solid #e6e9ed;
    border-radius: 2px;
}

.cq-table {
    width: 100%;
    border-collapse: collapse;
    min-width: 960px;
}

.cq-table thead th {
    background: #1D78BD;
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    text-align: left;
    padding: 12px 14px;
    white-space: nowrap;
    border-right: 1px solid rgba(255, 255, 255, .15);
}

.cq-table thead th:last-child {
    border-right: none;
}

.cq-table tbody td {
    padding: 12px 14px;
    font-size: 13px;
    color: #333;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
    white-space: nowrap;
}

.cq-table tbody tr:nth-child(even) {
    background: #f7f9fb;
}

.cq-table tbody tr:hover {
    background: #eef5fb;
}

.cq-table tbody tr:last-child td {
    border-bottom: none;
}

.cq-empty,
.cq-loading {
    text-align: center;
    padding: 48px 20px;
    color: #999;
    font-size: 14px;
}

@media (max-width: 900px) {
    .cq-form-row--split {
        grid-template-columns: 1fr;
        gap: 0;
    }
}

@media (max-width: 768px) {
    .cq-title {
        font-size: 18px;
        margin-bottom: 16px;
    }

    .cq-form {
        padding: 16px 14px 16px;
    }

    .cq-form-row,
    .cq-form-col {
        flex-direction: column;
        align-items: stretch;
        gap: 8px;
        margin-bottom: 14px;
    }

    .cq-form-row--split {
        gap: 0;
        margin-bottom: 0;
    }

    .cq-form-row--split .cq-form-col {
        margin-bottom: 14px;
    }

    .cq-label,
    .cq-form-col .cq-label {
        width: auto;
        text-align: left;
    }

    /* 手机：隐藏行内按钮，改用表单底部整宽按钮 */
    .cq-search-btn--inline {
        display: none;
    }

    .cq-field--search input {
        border-right: 1px solid #d8dde3;
        border-radius: 2px;
    }

    .cq-form-actions {
        display: block;
        margin-top: 2px;
    }

    .cq-search-btn--block {
        width: 100%;
        min-width: 0;
        border-radius: 2px;
    }
}
