/* ========================================
   yz-data.css — 数据页样式
   ======================================== */

.yz-data-runs { margin-top: 2rem; }
.yz-data-run { margin-bottom: 1rem; }
.yz-data-run summary {
    cursor: pointer;
    padding: 1rem 1.25rem;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 10px;
    display: flex;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    transition: background 0.2s;
    list-style: none;
}
.yz-data-run summary::-webkit-details-marker { display: none; }
.yz-data-run summary::before {
    content: '\f054';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    font-size: 0.75rem;
    color: rgba(255,255,255,0.4);
    transition: transform 0.2s;
}
.yz-data-run[open] summary::before { transform: rotate(90deg); }
.yz-data-run summary:hover { background: rgba(255,255,255,0.06); }
.yz-data-run__id { color: rgba(255,255,255,0.4); font-family: monospace; }
.yz-data-run__type {
    display: inline-block;
    padding: 0.15em 0.6em;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.yz-data-run__type--full { background: rgba(217,119,6,0.15); color: #f59e0b; }
.yz-data-run__type--smoke { background: rgba(255,255,255,0.06); color: rgba(255,255,255,0.5); }
.yz-data-run__status {
    display: inline-block;
    padding: 0.15em 0.6em;
    border-radius: 4px;
    font-size: 0.8rem;
    font-weight: 600;
}
.yz-data-run__status--done { background: rgba(34,197,94,0.15); color: #22c55e; }
.yz-data-run__status--running { background: rgba(234,179,8,0.15); color: #eab308; }
.yz-data-run__status--failed { background: rgba(239,68,68,0.15); color: #ef4444; }
.yz-data-run__time { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.yz-data-run__body {
    padding: 1.25rem;
    border: 1px solid rgba(255,255,255,0.06);
    border-top: none;
    border-radius: 0 0 10px 10px;
    background: rgba(255,255,255,0.02);
}
.yz-data-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    margin-bottom: 1rem;
}
.yz-data-table th,
.yz-data-table td {
    padding: 0.6rem 0.75rem;
    text-align: left;
    border-bottom: 1px solid rgba(255,255,255,0.06);
}
.yz-data-table th {
    color: rgba(255,255,255,0.5);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.yz-data-table td { color: rgba(255,255,255,0.85); }
.yz-data-table tbody tr:hover { background: rgba(255,255,255,0.03); }
.yz-data-raw {
    background: rgba(0,0,0,0.3);
    border: 1px solid rgba(255,255,255,0.08);
    border-radius: 6px;
    padding: 0.75rem 1rem;
    max-height: 300px;
    overflow: auto;
    font-size: 0.78rem;
    line-height: 1.5;
    white-space: pre-wrap;
    word-wrap: break-word;
    color: rgba(255,255,255,0.7);
    margin-top: 0.5rem;
}
.yz-data-raw-toggle {
    cursor: pointer;
    color: rgba(255,255,255,0.4);
    font-size: 0.78rem;
    margin-top: 0.25rem;
}
.yz-data-raw-toggle:hover { color: rgba(255,255,255,0.7); }
.yz-data-model-label { font-weight: 600; }
.yz-data-no-cards { color: rgba(255,255,255,0.4); font-style: italic; padding: 1rem 0; }
@media (max-width: 768px) {
    .yz-data-table { display: block; overflow-x: auto; }
    .yz-data-run summary { font-size: 0.85rem; gap: 0.5rem; }
}
@media (max-width: 480px) {
    .yz-data-run summary { font-size: 0.78rem; padding: 0.75rem; }
    .yz-data-table { font-size: 0.75rem; }
    .yz-data-table th, .yz-data-table td { padding: 0.4rem 0.5rem; }
    .yz-data-raw { font-size: 0.7rem; max-height: 200px; }
}
