:root {
    --bg: #fafbfd;
    --bg2: #f0f3f8;
    --ink: #1a2332;
    --muted: #6b7a8d;
    --rule: #d8dee9;
    --accent: #2563eb;
    --accent2: #0ea5e9;
    --danger: #dc2626;
    --success: #16a34a;
    --warning: #d97706;
    --card-bg: #fff;
    --radius: 8px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    background: var(--bg);
    color: var(--ink);
    font-family: "Inter", "Segoe UI", Tahoma, sans-serif;
    font-size: 16px;
    line-height: 1.75;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.report-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2563eb 60%, #0ea5e9 100%);
    color: #fff;
    padding: 56px 32px 48px;
    text-align: center;
}

.report-header h1 {
    font-family: "Merriweather", Georgia, serif;
    font-size: 32px;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.75;
    margin-bottom: 10px;
}

.report-header .subtitle {
    font-size: 16px;
    font-weight: 300;
    margin: 0 auto;
    max-width: 680px;
    opacity: 0.88;
}

.report-header .meta {
    font-size: 13.12px;
    margin-top: 19px;
    opacity: 0.7;
}

.container {
    margin: 0 auto;
    max-width: 960px;
    padding: 40px 24px 64px;
}

h2 {
    align-items: center;
    border-bottom: 3px solid var(--accent);
    color: var(--ink);
    display: flex;
    font-size: 23.2px;
    font-weight: 700;
    gap: 8px;
    margin: 40px 0 16px;
    padding-bottom: 8px;
}

h2 .section-num {
    align-items: center;
    background: var(--accent);
    border-radius: 50%;
    color: #fff;
    display: inline-flex;
    flex-shrink: 0;
    font-size: 13.6px;
    font-weight: 700;
    height: 32px;
    justify-content: center;
    width: 32px;
}

h3 {
    border-left: 4px solid var(--accent2);
    color: var(--ink);
    font-size: 18.4px;
    font-weight: 600;
    margin: 32px 0 13px;
    padding-left: 12px;
}

h4 {
    color: var(--accent);
    font-size: 16px;
    font-weight: 600;
    margin: 24px 0 8px;
}

p {
    margin-bottom: 13px;
}

.card {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
    margin: 16px 0;
    padding: 24px;
}

.card-highlight {
    background: linear-gradient(90deg, #ebf0ff 0%, var(--card-bg) 30%);
    border-left: 4px solid var(--accent);
}

.table-wrap {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    margin: 19px 0 32px;
    overflow-x: auto;
    overflow-y: hidden;
}

table {
    border-collapse: collapse;
    font-size: 14.72px;
    min-width: 700px;
    width: 100%;
}

thead {
    position: sticky;
    top: 0;
    z-index: 2;
}

thead th {
    background: linear-gradient(135deg, #1e3a5f, #2563eb);
    color: #fff;
    font-size: 14.4px;
    font-weight: 600;
    padding: 14px 16px;
    text-align: left;
    white-space: nowrap;
}

tbody tr {
    height: 78px;
}

tbody td {
    border-bottom: 1px solid var(--rule);
    height: 78px;
    padding: 12px 16px;
    vertical-align: middle;
}

tbody tr:nth-child(even) {
    background: #f7f9fc;
}

tbody tr:hover {
    background: #ebf0ff;
}

.code-badge {
    background: var(--accent);
    border-radius: 4px;
    color: #fff;
    display: inline-block;
    font-family: "Courier New", monospace;
    font-size: 14.08px;
    font-weight: 700;
    padding: 2px 10px;
    white-space: nowrap;
}

.code-badge.combo {
    background: var(--warning);
}

.severity-tag {
    border-radius: 3px;
    color: #fff;
    display: inline-block;
    font-size: 11.52px;
    font-weight: 600;
    padding: 2px 7px;
    white-space: nowrap;
}

.tag-low { background: var(--success); }
.tag-mid { background: var(--warning); }
.tag-high { background: var(--danger); }

.diag-flow {
    display: grid;
    gap: 19px;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    margin: 24px 0;
}

.diag-step {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 21px;
    position: relative;
}

.diag-step .ds-num {
    background: var(--accent);
    border-radius: 4px;
    color: #fff;
    font-size: 13.12px;
    font-weight: 700;
    left: 19px;
    padding: 2px 11px;
    position: absolute;
    top: -12px;
}

.diag-step h4 {
    color: var(--ink);
    font-size: 16px;
    margin: 8px 0;
}

.diag-step p {
    color: var(--muted);
    font-size: 14.08px;
    margin-bottom: 6px;
}

.diag-step .ds-branch {
    background: var(--bg2);
    border-radius: 4px;
    font-size: 13.6px;
    margin-top: 8px;
    padding: 8px 13px;
}

.diag-step .ds-branch strong { color: var(--accent); }

.guide-section {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    margin: 24px 0;
    padding: 29px;
}

.guide-section h4 { margin-top: 0; }

.steps {
    counter-reset: step;
    padding-left: 0;
}

.steps > li {
    counter-increment: step;
    list-style: none;
    margin-bottom: 16px;
    padding-left: 40px;
    position: relative;
}

.steps > li:last-child { margin-bottom: 0; }

.steps > li::before {
    align-items: center;
    background: var(--accent);
    border-radius: 50%;
    color: #fff;
    content: counter(step);
    display: flex;
    font-size: 13.12px;
    font-weight: 700;
    height: 29px;
    justify-content: center;
    left: 0;
    position: absolute;
    top: 2px;
    width: 29px;
}

.error-guide-card {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    margin: 16px 0;
    padding: 22px;
}

.error-guide-card.severity-low { border-left: 4px solid var(--success); }
.error-guide-card.severity-mid { border-left: 4px solid var(--warning); }
.error-guide-card.severity-high { border-left: 4px solid var(--danger); }

.eg-header {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 13px;
    margin-bottom: 13px;
}

.eg-header h4 {
    font-size: 17.6px;
    margin: 0;
}

.eg-desc {
    color: var(--muted);
    font-size: 14.72px;
    margin-bottom: 13px;
    padding-left: 5px;
}

.eg-steps {
    font-size: 14.4px;
    padding-left: 19px;
}

.eg-steps li { margin-bottom: 6px; }

.eg-sound {
    background: #f0f4ff;
    border-radius: 4px;
    color: var(--accent);
    display: inline-block;
    font-size: 13.6px;
    font-weight: 600;
    margin-left: 5px;
    padding: 2px 10px;
}

.channel-grid {
    display: grid;
    gap: 16px;
    grid-template-columns: repeat(3, 1fr);
    margin: 19px 0 24px;
}

.channel-card {
    background: var(--bg2);
    border: 1px solid var(--rule);
    border-radius: var(--radius);
    padding: 21px;
    transition: box-shadow 0.2s;
}

.channel-card:hover { box-shadow: rgba(37, 99, 235, 0.12) 0 4px 12px; }

.channel-card .channel-icon {
    font-size: 24px;
    margin-bottom: 8px;
}

.channel-card h4 {
    font-size: 16px;
    margin: 0 0 8px;
}

.channel-desc {
    color: var(--ink);
    font-size: 14px;
    font-weight: 600;
    line-height: 1.6;
    margin-top: 8px;
}

.channel-list { list-style: none; }

.channel-list li {
    color: var(--muted);
    font-size: 14.4px;
    font-weight: 600;
    line-height: 25.2px;
    margin-bottom: 8px;
}

.channel-list li strong { color: var(--ink); }

.qr-grid {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.qr-item {
    flex: 1;
    text-align: center;
}

.qr-img {
    border-radius: 8px;
    display: block;
    height: 110px;
    margin: 0 auto;
    max-width: 100%;
    object-fit: contain;
    width: 110px;
}

.qr-label {
    color: var(--muted);
    font-size: 12px;
    font-weight: 600;
    margin-top: 8px;
    text-align: center;
}

.prepare-list {
    background: var(--card-bg);
    border: 1px solid var(--rule);
    border-left: 4px solid var(--accent);
    border-radius: var(--radius);
    margin-bottom: 24px;
    padding: 20px 24px;
}

.prepare-list h4 {
    font-size: 17.6px;
    margin: 0 0 12px;
}

.prepare-list ul { list-style: none; }

.prepare-list li {
    font-size: 14.4px;
    margin-bottom: 4px;
    padding-left: 20px;
    position: relative;
}

.prepare-list li::before {
    color: var(--accent);
    content: "•";
    left: 4px;
    position: absolute;
}

.ending {
    background: linear-gradient(135deg, #ebf0ff, var(--bg2));
    border-radius: var(--radius);
    color: var(--ink);
    margin-top: 40px;
    padding: 40px 24px;
    text-align: center;
}

.ending p:first-child strong { color: var(--accent); }

footer {
    border-top: 1px solid var(--rule);
    color: var(--muted);
    font-size: 13.12px;
    margin: 0 auto;
    max-width: 960px;
    padding: 32px 16px;
    text-align: center;
}

.audio-sample {
    display: flex;
    margin: 12px 0 16px;
}

.audio-sample audio {
    display: none;
}

.audio-btn {
    align-items: center;
    background: #eef4ff;
    border: 1px solid #bfdbfe;
    border-radius: 6px;
    color: var(--accent);
    cursor: pointer;
    display: inline-flex;
    font-family: inherit;
    font-size: 13.6px;
    font-weight: 600;
    gap: 8px;
    justify-content: center;
    min-height: 40px;
    padding: 8px 14px;
    transition: all 0.2s;
}

.audio-btn:hover,
.audio-btn.is-playing {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: rgba(37, 99, 235, 0.2) 0 2px 8px;
    color: #fff;
}

.audio-btn .audio-icon {
    flex-shrink: 0;
    font-size: 15px;
    line-height: 1;
}
.video-section {
    border-top: 1px solid var(--rule);
    margin-top: 20px;
    padding-top: 16px;
}

.video-section-title {
    color: var(--accent);
    font-size: 14.4px;
    font-weight: 600;
    margin-bottom: 12px;
}

.video-grid {
    display: grid;
    gap: 10px;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.video-btn {
    align-items: center;
    background: var(--bg2);
    border: 1px solid var(--rule);
    border-radius: 6px;
    color: var(--ink);
    cursor: pointer;
    display: inline-flex;
    font-size: 13.12px;
    font-weight: 600;
    gap: 6px;
    justify-content: center;
    line-height: 1.35;
    min-height: 42px;
    padding: 8px 12px;
    text-align: center;
    text-decoration: none;
    transition: all 0.2s;
}

.video-btn:hover {
    background: var(--accent);
    border-color: var(--accent);
    box-shadow: rgba(37, 99, 235, 0.2) 0 2px 8px;
    color: #fff;
}

.video-btn .play-icon {
    flex-shrink: 0;
    font-size: 12px;
    line-height: 1;
}
@media (max-width: 768px) {
    .report-header { padding: 32px 16px 24px; }
    .report-header h1 { font-size: 24px; line-height: 1.7; }
    .container { padding: 24px 16px 48px; }
    h2 { font-size: 19.2px; }
    .diag-flow, .channel-grid { grid-template-columns: 1fr; }
    .table-wrap { min-width: 100%; }
}

@media (max-width: 480px) {
    .report-header h1 { font-size: 22px; }
    .card, .guide-section, .error-guide-card, .channel-card { padding: 16px; }
    .eg-header { gap: 8px; }
    .eg-sound { margin-left: 0; }
    .audio-btn { width: 100%; }
}

@media print {
    .report-header { background: #1e3a5f !important; }
    .channel-card, .error-guide-card, .diag-step { break-inside: avoid; }
}









