/* QC Summary 共享样式 —— SOP §5 */
:root {
    --ok: #22c55e;
    --warn: #f59e0b;
    --bad: #ef4444;
    --bg: #f8fafc;
    --card-bg: #ffffff;
    --text: #1e293b;
    --text-muted: #64748b;
    --border: #e2e8f0;
}

body {
    font-family: "PingHeu SC", "Microsoft YaHei", "Segoe UI", sans-serif;
    background: var(--bg);
    margin: 0;
    padding: 20px;
    color: var(--text);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
}

h1 {
    font-size: 24px;
    margin-bottom: 32px;
}

h2 {
    font-size: 18px;
    margin-top: 32px;
    margin-bottom: 16px;
    border-left: 3px solid #3b82f6;
    padding-left: 8px;
}

.summary-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 16px;
    margin-bottom: 32px;
}

.card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    border: 1px solid var(--border);
}

.card .num {
    font-size: 28px;
    font-weight: bold;
    color: #3b82f6;
}

.card .label {
    font-size: 12px;
    color: var(--text-muted);
    margin-top: 4px;
}

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 16px;
}

.subj-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.subj-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.subj-card h3 {
    font-size: 14px;
    font-family: inherit;
    color: #1e40af;
    margin: 0 0 8px 0;
}

.subj-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.subj-card a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.subj-card a:hover {
    text-decoration: underline;
}

.subj-card {
    background: var(--card-bg);
    border-radius: 8px;
    padding: 16px;
    border: 1px solid var(--border);
    text-decoration: none;
    color: inherit;
    transition: box-shadow 0.2s;
}

.subj-card:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
}

.subj-card h3 {
    font-size: 14px;
    font-family: inherit;
    color: #1e40af;
    margin: 0 0 8px 0;
}

.subj-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 0 0 8px 0;
    line-height: 1.4;
}

.subj-card a {
    font-size: 13px;
    color: var(--primary);
    text-decoration: none;
}

.subj-card a:hover {
    text-decoration: underline;
}

.subj-card h3 {
    margin-top: 0;
    font-size: 16px;
    color: #1e40af;
}

.subj-card p {
    font-size: 13px;
    color: var(--text-muted);
    margin: 8px 0;
}

.subj-card a {
    font-size: 13px;
    color: #3b82f6;
    text-decoration: none;
}

.subj-card a:hover {
    text-decoration: underline;
}

.threshold-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.threshold-table th, .threshold-table td {
    padding: 10px;
    border: 1px solid var(--border);
    text-align: center;
}

.threshold-table th {
    background: #f1f5f9;
}

.threshold-table td:nth-child(2) { color: var(--ok); }
.threshold-table td:nth-child(3) { color: var(--warn); }
.threshold-table td:nth-child(4) { color: var(--bad); }
