/* ========================================
   yz-model.css — 模型档案页样式
   ======================================== */

/* Models list */
.yz-model-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.25rem;
    margin-top: 1.5rem;
}
.yz-model-card {
    background: var(--card-bg, #16161a);
    border: 1px solid var(--border, #23232a);
    border-radius: 12px;
    padding: 1.5rem;
    text-decoration: none;
    color: inherit;
    transition: border-color .2s, transform .15s;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}
.yz-model-card:hover {
    border-color: var(--accent, #6366f1);
    transform: translateY(-2px);
}
.yz-model-card__head {
    display: flex;
    align-items: center;
    gap: .75rem;
}
.yz-model-card__icon {
    font-size: 1.5rem;
    flex-shrink: 0;
}
.yz-model-card__name {
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
}
.yz-model-card__provider {
    font-size: .75rem;
    opacity: .6;
}
.yz-model-card__scores {
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.yz-model-card__overall {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
}
.yz-model-card__rank {
    font-size: .85rem;
    opacity: .7;
}
.yz-model-card__usecase {
    font-size: .8rem;
    opacity: .65;
    line-height: 1.5;
}

/* Model detail */
.yz-profile-hero {
    text-align: center;
    padding: 2.5rem 1rem 2rem;
}
.yz-profile-hero__icon {
    font-size: 2.5rem;
    margin-bottom: .75rem;
}
.yz-profile-hero__name {
    font-size: 2rem;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
    margin: 0 0 .5rem;
}
.yz-profile-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .25rem .75rem;
    border-radius: 20px;
    font-size: .8rem;
    font-weight: 500;
    margin-bottom: .75rem;
}
.yz-profile-hero__usecase {
    font-size: .95rem;
    opacity: .7;
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.6;
}

.yz-profile-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 1rem;
    margin: 2rem 0;
}
.yz-profile-stat {
    background: var(--card-bg, #16161a);
    border: 1px solid var(--border, #23232a);
    border-radius: 10px;
    padding: 1.25rem;
    text-align: center;
}
.yz-profile-stat__value {
    font-size: 1.75rem;
    font-weight: 700;
    font-family: 'Noto Serif SC', serif;
}
.yz-profile-stat__label {
    font-size: .8rem;
    opacity: .6;
    margin-top: .25rem;
}

.yz-radar-section {
    display: flex;
    align-items: center;
    gap: 2rem;
    margin: 1.5rem 0;
}
.yz-radar-chart {
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
}
.yz-radar-bars {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: .75rem;
    min-width: 0;
}
@media (max-width: 640px) {
    .yz-radar-section { flex-direction: column; }
    .yz-radar-chart svg { max-width: 240px !important; }
}
@media (max-width: 480px) {
    .yz-profile-hero__name { font-size: 1.4rem; }
    .yz-profile-overview { grid-template-columns: 1fr; }
    .yz-profile-stat { padding: 1rem; }
    .yz-profile-stat__value { font-size: 1.3rem; }
    .yz-radar-chart svg { max-width: 200px !important; }
    .yz-dim-row { grid-template-columns: 80px 1fr 50px; gap: 0.5rem; padding: .7rem 1rem; }
    .yz-dim-row__label { font-size: .8rem; }
}
.yz-dim-grid {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    margin: 1.5rem 0;
}
.yz-dim-row {
    display: grid;
    grid-template-columns: 100px 1fr 60px;
    align-items: center;
    gap: 1rem;
    background: var(--card-bg, #16161a);
    border: 1px solid var(--border, #23232a);
    border-radius: 8px;
    padding: .85rem 1.25rem;
}
.yz-dim-row__label {
    font-size: .9rem;
    font-weight: 500;
}
.yz-dim-row__num {
    font-size: 1.1rem;
    font-weight: 700;
    text-align: right;
    font-family: 'Noto Serif SC', serif;
}

.yz-change-card {
    background: var(--card-bg, #16161a);
    border: 1px solid var(--border, #23232a);
    border-radius: 10px;
    padding: 1.25rem;
    margin: 1rem 0;
    display: flex;
    align-items: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}
.yz-change-card__dim {
    font-weight: 500;
}
.yz-change-card__delta {
    font-size: 1.25rem;
    font-weight: 700;
}
.yz-change-card__delta.up   { color: #22c55e; }
.yz-change-card__delta.down { color: #ef4444; }
.yz-change-card__delta.stable { color: #888; }
.yz-change-card__hook {
    font-size: .85rem;
    opacity: .7;
    flex: 1;
    min-width: 200px;
}

.yz-trend-container {
    background: var(--card-bg, #16161a);
    border: 1px solid var(--border, #23232a);
    border-radius: 12px;
    padding: 1.25rem;
    margin: 1rem 0 .75rem;
}
.yz-trend-container svg {
    width: 100%;
    height: auto;
    display: block;
}
.yz-trend-container svg text {
    font-family: 'Noto Sans SC', sans-serif;
}
.yz-trend-empty {
    border: 2px dashed var(--border, #23232a);
    border-radius: 12px;
    padding: 3rem 1.5rem;
    text-align: center;
    margin: 1rem 0 2rem;
    opacity: .5;
}
.yz-trend-empty i {
    font-size: 2rem;
    display: block;
    margin-bottom: .75rem;
}
.yz-trend-toggles {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    margin: .75rem 0 2rem;
}
.yz-trend-toggle {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    padding: .3rem .7rem;
    border-radius: 6px;
    border: 1px solid var(--border, #23232a);
    background: transparent;
    color: rgba(255,255,255,.5);
    font-size: .8rem;
    cursor: pointer;
    transition: all .2s;
    font-family: 'Noto Sans SC', sans-serif;
}
.yz-trend-toggle .yz-toggle-dot {
    width: 10px; height: 10px;
    border-radius: 50%;
    display: inline-block;
}
.yz-trend-toggle.active {
    color: rgba(255,255,255,.9);
    border-color: rgba(255,255,255,.3);
    background: rgba(255,255,255,.06);
}
.yz-trend-tooltip {
    position: absolute;
    background: #1e1e24;
    border: 1px solid #333;
    border-radius: 6px;
    padding: .4rem .6rem;
    font-size: .75rem;
    color: #eee;
    pointer-events: none;
    white-space: nowrap;
    z-index: 99;
    display: none;
}

.yz-back-link {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    margin-top: 1.5rem;
    font-size: .9rem;
    color: var(--accent, #6366f1);
    text-decoration: none;
}
.yz-back-link:hover {
    text-decoration: underline;
}
.yz-watch-btn {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.25rem;
    background: transparent;
    border: 1px solid #d4a24c;
    border-radius: 8px;
    color: #d4a24c;
    font-size: .9rem;
    cursor: pointer;
    transition: background .2s, color .2s;
}
.yz-watch-btn:hover {
    background: #d4a24c;
    color: #111;
}
