/* --- Auditor Dashboard Layout --- */
.auditor-dashboard {
    display: flex;
    flex-direction: column;
    gap: 20px;
    width: 100%;
}

/* Top Row: Text */
.dashboard-row-top {
    width: 100%;
    position: relative;
    /* For sticky note positioning */
}

.opinion-box.full-width {
    width: 100%;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

/* Bottom Row: Charts & Verdict */
.dashboard-row-bottom {
    position: relative;
    /* 👈 印章的 absolute 定位参考点 */
    display: grid;
    grid-template-columns: 1.2fr 1fr auto;
    /* 雷达图稍微宽一点 */
    gap: 20px;
    align-items: stretch;
    /* 拉伸高度一致 */
}

.chart-card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: block;
    /* 放弃 flex，使用 block 避免挤压 */
    min-height: 450px;
    /* 🚀 强制最小高度，谁也别想挤压我 */
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

/* Stats Panel - 与 chart-card 保持一致 */
.stats-panel {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    padding: 20px;
    display: block;
    min-height: 450px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.02);
}

.stats-panel h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
    text-align: center;
    font-weight: bold;
    font-family: "Noto Serif SC", serif;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* 条形图容器 - 确保有足够高度 */
#breakdown-chart-container {
    width: 100%;
    height: 350px;
}

.chart-card h4 {
    margin: 0 0 15px 0;
    font-size: 1rem;
    color: #333;
    text-align: center;
    font-weight: bold;
    font-family: "Noto Serif SC", serif;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* --- Premium Stats Panel Styles --- */
.premium-card {
    background: linear-gradient(145deg, #ffffff, #f9f9f9);
    border: 1px solid #eef0f2;
    border-radius: 10px;
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.03);
    transition: transform 0.2s;
}

.premium-card:hover {
    transform: translateY(-2px);
    border-color: #d4af37;
    /* 金色边框 */
    box-shadow: 0 4px 12px rgba(212, 175, 55, 0.15);
}

.stat-label-row {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 0.85rem;
    margin-bottom: 8px;
}

.stat-svg {
    width: 20px;
    height: 20px;
    color: #d4af37;
    /* 图标统一金色 */
}

.stat-value-row {
    text-align: center;
    flex-grow: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stat-num {
    font-size: 2rem;
    font-weight: 800;
    color: #333;
    font-family: "Noto Serif SC", serif;
}

.stat-text {
    font-size: 1.4rem;
    font-weight: bold;
    color: #333;
}

.stat-text.highlight {
    color: #C23531;
}

.stat-text.muted {
    color: #666;
    font-size: 1.2rem;
}

/* Grade Stamp Style */
.grade-stamp {
    font-size: 2rem;
    font-weight: 900;
    font-family: "Courier New", serif;
    width: 50px;
    height: 50px;
    line-height: 46px;
    text-align: center;
    border: 3px double currentColor;
    border-radius: 50%;
    transform: rotate(-10deg);
}

.grade-s {
    color: #FFD700;
    border-color: #FFD700;
}

.grade-a {
    color: #C23531;
    border-color: #C23531;
}

.grade-b {
    color: #4CAF50;
    border-color: #4CAF50;
}

.grade-c {
    color: #2196F3;
    border-color: #2196F3;
}

.grade-d {
    color: #999;
    border-color: #999;
}

.verdict-card {
    position: relative;
    width: 1px;
    height: 1px;
    overflow: visible;
}

/* 霸气侧漏的印章 */
#audit-verdict-seal.verdict-seal {
    position: absolute !important;
    right: 14px;
    top: -18px;
    z-index: 999;
    transform: rotate(10deg) scale(1.05);
    opacity: 0.85;
    pointer-events: none;
    mix-blend-mode: multiply;
    left: auto !important;
    bottom: auto !important;
}

/* Responsive */
@media (max-width: 768px) {
    .dashboard-row-bottom {
        grid-template-columns: 1fr;
    }

    .chart-card {
        min-height: auto;
        /* 移动端不需要强制高度 */
    }
}
