@charset "UTF-8";
/* 统计信息样式 */
#count {
    max-width: 800px;
    margin: 1rem auto;
    padding: 0.8rem 1.2rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: bold;
    color: var(--text-primary);
    text-align: center;
}

/* 结果区域双列卡片布局 */
#result {
    max-width: 800px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

/* 卡片样式 */
.result-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius);
    padding: 1rem;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.result-card::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: var(--primary);
    transform: scaleX(0);
    transition: transform 0.3s;
}

.result-card:hover::after {
    transform: scaleX(1);
}

.result-card p {
    margin: 0.4rem 0;
    display: flex;
    gap: 0em;
    font-size: 0.9rem;
    position: relative;
    z-index: 1;
}

.result-card strong {
    flex: 0 0 5em;
    color: var(--text-secondary);
    font-size: 1rem;
    text-align: left;
    letter-spacing: 0.08em;
    margin-right: 0.5em;
}

/* 高亮 */
.highlight {
    background: linear-gradient(120deg, #fde68a80 0%, #fcd34d80 100%);
    padding: 0.1em 0.3em;
    border-radius: 0.25rem;
}

/* 卡片状态色 */
.card-danger {
    background: #ffebee !important;
    border-color: #e53935 !important;
}
.card-safe {
    background: #e8f5e9 !important;
    border-color: #43a047 !important;
}
.card-outed {
    background: #f5f5f5 !important;
    border-color: #bdbdbd !important;
    color: #888 !important;
}

/* 已出库印章效果 */
.card-outed::before {
    content: "已出库";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(-15deg);
    font-size: 2.5rem;
    font-weight: bold;
    color: rgba(128, 128, 128, 0.15);
    z-index: 0;
    pointer-events: none;
    letter-spacing: 0.2em;
    white-space: nowrap;
}

/* 出库/修改按钮 */
.out-btn,
.edit-btn {
    margin-left: 1.5em;
    height: 2.2em;
    align-self: start;
    background: #f39c12;
    color: #fff;
    border: none;
    border-radius: 0.4em;
    padding: 0 1.2em;
    cursor: pointer;
    font-weight: bold;
    font-size: 1em;
    transition: background 0.2s;
}
.out-btn:hover,
.edit-btn:hover {
    background: #e67e22;
}

/* 响应式设计 */
@media (max-width: 768px) {
    #result {
        grid-template-columns: 1fr;
    }
    .result-card {
        padding: 0.8rem;
    }
}
@media (max-width: 480px) {
    body {
        padding: 1rem;
    }
    #queryInput {
        font-size: 0.9rem;
        padding-right: 6rem;
    }
    #queryForm button {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    .clear-btn {
        width: 2.2rem;
        height: 2.2rem;
        right: 5rem;
        font-size: 1.4rem;
    }
}
