* { 
    margin: 0; 
    padding: 0; 
    box-sizing: border-box; 
    font-family: 'Microsoft YaHei', 'Segoe UI', sans-serif; 
}

body { 
    min-height: 100vh; 
    color: #1a365d; 
    overflow-x: hidden; 
}

.bg-animation {
    position: fixed; 
    top: 0; 
    left: 0; 
    width: 100vw; 
    height: 100vh;
    background: linear-gradient(-45deg, #f0f8ff, #e0f2fe, #bae6fd, #ffffff);
    background-size: 400% 400%; 
    animation: gradientBG 15s ease infinite; 
    z-index: -1;
}

@keyframes gradientBG {
    0% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
    100% { background-position: 0% 50%; }
}

.glass-box {
    background: rgba(255,255,255,0.88);
    backdrop-filter: blur(12px); 
    -webkit-backdrop-filter: blur(12px);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(15,23,42,0.08);
    border: 1px solid rgba(255,255,255,0.9);
    padding: 20px;
}

.container { 
    max-width: 1350px; 
    margin: 0 auto; 
    padding: 25px; 
}

.top-bar { 
    display: flex; 
    align-items: center; 
    margin-bottom: 25px; 
}

.back-btn {
    text-decoration: none;
    background: linear-gradient(135deg, #e0f2fe, #bfdbfe);
    color: #1d4ed8; 
    padding: 10px 18px; 
    border-radius: 8px;
    font-weight: 600; 
    margin-right: 20px;
    border: 1px solid #93c5fd;
    display: inline-flex; 
    align-items: center; 
    gap: 6px;
    transition: all 0.25s;
}

.back-btn:hover { 
    background: #3b82f6; 
    color: #fff; 
    transform: translateX(-4px); 
}

.top-bar h1 { 
    font-size: 23px; 
    color: #0f4c81; 
    display: flex; 
    align-items: center; 
    gap: 8px; 
}

.experiment-area { 
    display: flex; 
    gap: 25px; 
    flex-wrap: wrap; 
}

.control-panel { 
    width: 390px; 
    flex-shrink: 0; 
    display: flex; 
    flex-direction: column; 
    gap: 14px; 
}

.control-panel h2 {
    color: #0f4c81; 
    font-size: 17px;
    border-bottom: 2px solid #e2e8f0; 
    padding-bottom: 8px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.hint { 
    color: #64748b; 
    font-size: 13px; 
    margin-bottom: 5px; 
    line-height: 1.7; 
}

.slider-box { 
    background: rgba(241,245,249,0.9); 
    border-radius: 10px; 
    padding: 14px; 
    border: 1px solid #e2e8f0; 
}

.slider-header {
    font-size: 14px; 
    font-weight: 600; 
    color: #475569;
    margin-bottom: 10px; 
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.slider-labels {
    display: flex; 
    justify-content: space-between;
    font-size: 12px; 
    color: #64748b; 
    margin-top: 6px;
}

.slider-hint { 
    font-size: 11px; 
    color: #64748b; 
    margin-top: 6px; 
    line-height: 1.6; 
}

.current-val { 
    font-weight: 700; 
    color: #d946ef; 
    font-size: 13px; 
}

.select-box {
    width: 100%;
    padding: 10px 12px;
    border: 2px solid #cbd5e1;
    border-radius: 8px;
    font-size: 14px;
    background: white;
    color: #334155;
    outline: none;
}

.select-box:focus {
    border-color: #d946ef;
    box-shadow: 0 0 0 3px rgba(217,70,239,0.14);
}

input[type="range"] {
    width: 100%; 
    height: 6px;
    -webkit-appearance: none; 
    -moz-appearance: none; 
    appearance: none;
    background: linear-gradient(90deg, #f5d0fe, #d946ef);
    border-radius: 3px; 
    outline: none;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none; 
    appearance: none;
    width: 18px; 
    height: 18px;
    background: #fff; 
    border: 3px solid #d946ef;
    border-radius: 50%; 
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(217,70,239,0.3);
}

input[type="range"]::-moz-range-thumb {
    width: 18px; 
    height: 18px; 
    background: #fff;
    border: 3px solid #d946ef; 
    border-radius: 50%; 
    cursor: pointer;
}

.status-info {
    background: linear-gradient(135deg, rgba(217,70,239,0.05), rgba(217,70,239,0.1));
    border: 1px solid rgba(217,70,239,0.3);
    border-radius: 10px; 
    padding: 12px;
}

.info-row {
    display: flex; 
    justify-content: space-between; 
    align-items: center;
    padding: 5px 0; 
    font-size: 13px; 
    color: #475569;
    border-bottom: 1px dashed rgba(217,70,239,0.15);
    gap: 10px;
}

.info-row:last-child { 
    border-bottom: none; 
}

.info-value {
    font-weight: 700; 
    color: #a21caf;
    font-family: Consolas, monospace;
    text-align: right;
}

.badge-ok {
    background: #22c55e; 
    color: #fff;
    padding: 3px 10px; 
    border-radius: 12px;
    font-size: 12px; 
    font-weight: bold;
    white-space: nowrap;
}

.badge-bad {
    background: #ef4444; 
    color: #fff;
    padding: 3px 10px; 
    border-radius: 12px;
    font-size: 12px; 
    font-weight: bold;
    animation: blink 1s infinite;
    white-space: nowrap;
}

@keyframes blink {
    0% { opacity: 1; } 
    50% { opacity: 0.65; } 
    100% { opacity: 1; }
}

.theory-box {
    background: linear-gradient(135deg, rgba(217,70,239,0.05), rgba(217,70,239,0.1));
    border-left: 4px solid #d946ef;
    border-radius: 0 10px 10px 0; 
    padding: 12px;
}

.theory-box h3 {
    font-size: 14px; 
    color: #a21caf;
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.theory-box .formula {
    font-family: 'Times New Roman', serif; 
    font-size: 15px;
    font-weight: 600; 
    color: #a21caf;
    background: rgba(255,255,255,0.7);
    padding: 8px; 
    border-radius: 6px;
    margin: 8px 0; 
    text-align: center;
}

.theory-box p { 
    font-size: 12px; 
    color: #701a75; 
    line-height: 1.7; 
    margin-bottom: 5px; 
}

.contact-box {
    background: linear-gradient(135deg, rgba(59,130,246,0.05), rgba(59,130,246,0.1));
    border: 1px dashed #3b82f6;
    border-radius: 10px; 
    padding: 12px; 
    margin-top: auto;
}

.contact-box h3 {
    font-size: 14px; 
    color: #1d4ed8;
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.contact-info { 
    background: rgba(255,255,255,0.8); 
    border-radius: 8px; 
    padding: 10px; 
}

.contact-info p {
    font-size: 13px; 
    color: #0f4c81; 
    margin-bottom: 4px;
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.contact-info p:last-child { 
    color: #dc2626; 
    font-weight: 700; 
    margin-bottom: 0; 
}

.chart-panel { 
    flex: 1; 
    min-width: 0; 
    display: flex; 
    flex-direction: column; 
}

.chart-header {
    margin-bottom: 12px; 
    padding-bottom: 10px;
    border-bottom: 2px solid #e2e8f0;
}

.chart-header h2 {
    color: #0f4c81; 
    font-size: 18px;
    display: flex; 
    align-items: center; 
    gap: 8px;
}

.charts-container { 
    display: flex; 
    flex-direction: column; 
    gap: 16px; 
}

.chart-section {
    background: #fff; 
    border-radius: 10px;
    border: 1px solid #e2e8f0; 
    padding: 12px;
    overflow: visible;
}

.chart-title {
    font-size: 13px; 
    font-weight: 600; 
    color: #475569;
    margin-bottom: 8px; 
    display: flex; 
    align-items: center; 
    gap: 6px;
}

.dot { 
    width: 10px; 
    height: 10px; 
    border-radius: 50%; 
    display: inline-block; 
    flex-shrink: 0;
}

.dot.blue { background: #3b82f6; }
.dot.orange { background: #f59e0b; }
.dot.red { background: #ef4444; }
.dot.purple { background: #d946ef; }

.pcm-output {
    background: #1e293b;
    border-radius: 8px; 
    padding: 16px;
    color: #e2e8f0; 
    min-height: 240px;
}

.pcm-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
    margin-bottom: 16px;
}

.pcm-cell {
    background: linear-gradient(135deg, rgba(217,70,239,0.15), rgba(168,85,247,0.15));
    border: 1px solid rgba(217,70,239,0.45);
    border-radius: 8px; 
    padding: 10px 8px;
    text-align: center;
    transition: all 0.25s;
}

.pcm-cell:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(217,70,239,0.3);
    border-color: rgba(240,171,252,0.7);
}

.pcm-index {
    font-size: 12px; 
    color: #f0abfc;
    margin-bottom: 4px;
    font-weight: bold;
}

.pcm-sampval {
    font-size: 10px; 
    color: #94a3b8;
    margin-bottom: 3px;
    font-family: Consolas, monospace;
}

.pcm-level {
    font-size: 11px; 
    color: #fbbf24;
    margin-bottom: 5px;
    font-family: Consolas, monospace;
}

.pcm-binary {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 13px; 
    font-weight: bold;
    color: #67e8f9;
    letter-spacing: 1.5px;
    background: rgba(0,0,0,0.35);
    padding: 4px 6px;
    border-radius: 4px;
    border: 1px solid rgba(103,232,249,0.2);
}

.pcm-stream-label {
    font-size: 13px; 
    color: #cbd5e1;
    margin-bottom: 8px;
    padding-top: 10px;
    border-top: 1px dashed rgba(148,163,184,0.3);
    font-weight: 600;
}

.pcm-stream-label:first-child {
    padding-top: 0;
    border-top: none;
}

.pcm-stream {
    font-family: Consolas, 'Courier New', monospace;
    font-size: 15px; 
    color: #67e8f9;
    word-break: break-all;
    background: rgba(0,0,0,0.4);
    padding: 12px; 
    border-radius: 6px;
    line-height: 1.8;
    letter-spacing: 2px;
    font-weight: bold;
    border: 1px solid rgba(103,232,249,0.25);
}

.pcm-summary {
    margin-top: 12px;
    font-size: 13px; 
    color: #cbd5e1;
    text-align: right;
    padding-top: 10px;
    border-top: 1px dashed rgba(148,163,184,0.25);
}

.pcm-summary strong { 
    color: #fbbf24; 
    font-size: 15px; 
}

@media (max-width: 1000px) {
    .experiment-area {
        flex-direction: column;
    }

    .control-panel {
        width: 100%;
    }

    .pcm-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .container {
        padding: 18px 12px;
    }

    .glass-box {
        padding: 14px;
    }

    .top-bar {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }

    .back-btn {
        margin-right: 0;
    }

    .top-bar h1 {
        font-size: 20px;
    }

    .pcm-grid {
        grid-template-columns: 1fr;
    }

    .pcm-stream {
        font-size: 12px;
        letter-spacing: 1px;
    }
}
/* =========================
   手机端紧凑显示优化
   追加到 module11.css 最后
   ========================= */

@media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 12px 8px;
    }

    .glass-box {
        padding: 12px;
        border-radius: 12px;
    }

    .top-bar {
        margin-bottom: 14px;
    }

    .top-bar h1 {
        font-size: 19px;
        line-height: 1.4;
    }

    .experiment-area {
        gap: 14px;
    }

    .control-panel {
        width: 100%;
        gap: 10px;
    }

    .chart-panel {
        width: 100%;
        padding: 10px;
    }

    .chart-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .chart-header h2 {
        font-size: 16px;
        line-height: 1.4;
    }

    .charts-container {
        gap: 10px;
    }

    .chart-section {
        padding: 8px 4px 6px;
        border-radius: 10px;
        overflow: hidden;
    }

    .chart-title {
        font-size: 13px;
        margin-left: 4px;
        margin-bottom: 2px;
        line-height: 1.4;
    }

    #chartOriginal,
    #chartQuantized {
        width: 100% !important;
        height: 255px !important;
    }

    #chartError {
        width: 100% !important;
        height: 225px !important;
    }

    .pcm-output {
        padding: 10px;
        min-height: auto;
        border-radius: 8px;
    }

    .pcm-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 8px;
        margin-bottom: 12px;
    }

    .pcm-cell {
        padding: 8px 5px;
    }

    .pcm-index {
        font-size: 11px;
        margin-bottom: 3px;
    }

    .pcm-sampval {
        font-size: 10px;
        line-height: 1.35;
    }

    .pcm-level {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .pcm-binary {
        font-size: 12px;
        letter-spacing: 1px;
        padding: 4px;
    }

    .pcm-stream-label {
        font-size: 12px;
        margin-bottom: 6px;
        padding-top: 8px;
    }

    .pcm-stream {
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 1.7;
        padding: 8px;
    }

    .pcm-summary {
        font-size: 12px;
        margin-top: 8px;
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px 4px;
    }

    .glass-box {
        padding: 10px 6px;
    }

    .chart-panel {
        padding: 8px 4px;
    }

    .chart-section {
        padding: 6px 2px 4px;
    }

    #chartOriginal,
    #chartQuantized {
        height: 245px !important;
    }

    #chartError {
        height: 215px !important;
    }

    .pcm-grid {
        grid-template-columns: 1fr;
    }
}
/* =========================================================
   module11 手机端紧凑优化 + PCM 比较判别法显示区域
   直接追加到 module11.css 最后
   ========================================================= */

/* 手机端整体留白优化 */
@media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 12px 8px;
    }

    .glass-box {
        padding: 12px;
        border-radius: 12px;
    }

    .top-bar {
        margin-bottom: 14px;
    }

    .top-bar h1 {
        font-size: 19px;
        line-height: 1.4;
    }

    .experiment-area {
        gap: 14px;
    }

    .control-panel {
        width: 100%;
        gap: 10px;
    }

    .chart-panel {
        width: 100%;
        padding: 10px;
    }

    .chart-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .chart-header h2 {
        font-size: 16px;
        line-height: 1.4;
    }

    .charts-container {
        gap: 10px;
    }

    .chart-section {
        padding: 8px 4px 6px;
        border-radius: 10px;
        overflow: hidden;
    }

    .chart-title {
        font-size: 13px;
        margin-left: 4px;
        margin-bottom: 2px;
        line-height: 1.4;
    }

    #chartOriginal,
    #chartQuantized {
        width: 100% !important;
        height: 255px !important;
    }

    #chartError {
        width: 100% !important;
        height: 225px !important;
    }

    .pcm-output {
        padding: 10px;
        min-height: auto;
        border-radius: 8px;
    }

    .pcm-stream {
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 1.7;
        padding: 8px;
    }

    .pcm-summary {
        font-size: 12px;
        margin-top: 8px;
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px 4px;
    }

    .glass-box {
        padding: 10px 6px;
    }

    .chart-panel {
        padding: 8px 4px;
    }

    .chart-section {
        padding: 6px 2px 4px;
    }

    #chartOriginal,
    #chartQuantized {
        height: 245px !important;
    }

    #chartError {
        height: 215px !important;
    }
}

/* PCM 比较判别法显示区域 */
.pcm-click-hint {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.pcm-selected-title {
    color: #f0abfc;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(240, 171, 252, 0.35);
    padding-bottom: 8px;
}

.pcm-detail-card {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(217, 70, 239, 0.4);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.pcm-detail-card h4 {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 8px;
}

.pcm-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
    padding: 6px 0;
    font-size: 13px;
    color: #cbd5e1;
}

.pcm-detail-row:last-child {
    border-bottom: none;
}

.pcm-detail-row span:last-child {
    color: #67e8f9;
    font-family: Consolas, monospace;
    text-align: right;
    font-weight: 700;
}

.pcm-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 12px;
    overflow: hidden;
    border-radius: 8px;
}

.pcm-compare-table th,
.pcm-compare-table td {
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 7px 6px;
    text-align: center;
}

.pcm-compare-table th {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.pcm-compare-table td {
    color: #cbd5e1;
    font-family: Consolas, monospace;
}

.pcm-pass {
    color: #22c55e !important;
    font-weight: 700;
}

.pcm-fail {
    color: #ef4444 !important;
    font-weight: 700;
}

.pcm-final-code {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(103, 232, 249, 0.35);
    color: #67e8f9;
    font-family: Consolas, monospace;
    font-size: 22px;
    letter-spacing: 4px;
    text-align: center;
    padding: 14px 10px;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 700;
}

.pcm-small-note {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
    margin-top: 8px;
}

.pcm-click-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pcm-mini-code {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 6px;
    padding: 6px 8px;
    color: #cbd5e1;
    font-size: 12px;
    font-family: Consolas, monospace;
}

.pcm-mini-code.active {
    border-color: #f0abfc;
    color: #67e8f9;
    background: rgba(217, 70, 239, 0.18);
}

@media (max-width: 768px) {
    .pcm-detail-row {
        font-size: 12px;
        flex-direction: column;
        gap: 3px;
    }

    .pcm-detail-row span:last-child {
        text-align: left;
    }

    .pcm-compare-table {
        font-size: 11px;
    }

    .pcm-compare-table th,
    .pcm-compare-table td {
        padding: 5px 3px;
    }

    .pcm-final-code {
        font-size: 18px;
        letter-spacing: 2px;
    }
}
/* =========================================================
   module11 手机端紧凑优化 + PCM 比较判别法显示区域
   直接追加到 module11.css 最后
   ========================================================= */

/* 手机端整体留白优化 */
@media (max-width: 768px) {
    body {
        width: 100%;
        overflow-x: hidden;
    }

    .container {
        width: 100%;
        max-width: none;
        padding: 12px 8px;
    }

    .glass-box {
        padding: 12px;
        border-radius: 12px;
    }

    .top-bar {
        margin-bottom: 14px;
    }

    .top-bar h1 {
        font-size: 19px;
        line-height: 1.4;
    }

    .experiment-area {
        gap: 14px;
    }

    .control-panel {
        width: 100%;
        gap: 10px;
    }

    .chart-panel {
        width: 100%;
        padding: 10px;
    }

    .chart-header {
        margin-bottom: 8px;
        padding-bottom: 8px;
    }

    .chart-header h2 {
        font-size: 16px;
        line-height: 1.4;
    }

    .charts-container {
        gap: 10px;
    }

    .chart-section {
        padding: 8px 4px 6px;
        border-radius: 10px;
        overflow: hidden;
    }

    .chart-title {
        font-size: 13px;
        margin-left: 4px;
        margin-bottom: 2px;
        line-height: 1.4;
    }

    #chartOriginal,
    #chartQuantized {
        width: 100% !important;
        height: 255px !important;
    }

    #chartError {
        width: 100% !important;
        height: 225px !important;
    }

    .pcm-output {
        padding: 10px;
        min-height: auto;
        border-radius: 8px;
    }

    .pcm-stream {
        font-size: 12px;
        letter-spacing: 1px;
        line-height: 1.7;
        padding: 8px;
    }

    .pcm-summary {
        font-size: 12px;
        margin-top: 8px;
        padding-top: 8px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 8px 4px;
    }

    .glass-box {
        padding: 10px 6px;
    }

    .chart-panel {
        padding: 8px 4px;
    }

    .chart-section {
        padding: 6px 2px 4px;
    }

    #chartOriginal,
    #chartQuantized {
        height: 245px !important;
    }

    #chartError {
        height: 215px !important;
    }
}

/* PCM 比较判别法显示区域 */
.pcm-click-hint {
    background: rgba(59, 130, 246, 0.12);
    border: 1px solid rgba(96, 165, 250, 0.45);
    color: #bfdbfe;
    padding: 10px 12px;
    border-radius: 8px;
    font-size: 13px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.pcm-selected-title {
    color: #f0abfc;
    font-weight: 700;
    font-size: 15px;
    margin-bottom: 12px;
    border-bottom: 1px dashed rgba(240, 171, 252, 0.35);
    padding-bottom: 8px;
}

.pcm-detail-card {
    background: rgba(15, 23, 42, 0.62);
    border: 1px solid rgba(217, 70, 239, 0.4);
    border-radius: 10px;
    padding: 12px;
    margin-bottom: 12px;
}

.pcm-detail-card h4 {
    color: #fbbf24;
    font-size: 14px;
    margin-bottom: 8px;
}

.pcm-detail-row {
    display: flex;
    justify-content: space-between;
    gap: 12px;
    border-bottom: 1px dashed rgba(148, 163, 184, 0.18);
    padding: 6px 0;
    font-size: 13px;
    color: #cbd5e1;
}

.pcm-detail-row:last-child {
    border-bottom: none;
}

.pcm-detail-row span:last-child {
    color: #67e8f9;
    font-family: Consolas, monospace;
    text-align: right;
    font-weight: 700;
}

.pcm-compare-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 12px;
    overflow: hidden;
    border-radius: 8px;
}

.pcm-compare-table th,
.pcm-compare-table td {
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 7px 6px;
    text-align: center;
}

.pcm-compare-table th {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.08);
}

.pcm-compare-table td {
    color: #cbd5e1;
    font-family: Consolas, monospace;
}

.pcm-pass {
    color: #22c55e !important;
    font-weight: 700;
}

.pcm-fail {
    color: #ef4444 !important;
    font-weight: 700;
}

.pcm-final-code {
    background: rgba(0, 0, 0, 0.45);
    border: 1px solid rgba(103, 232, 249, 0.35);
    color: #67e8f9;
    font-family: Consolas, monospace;
    font-size: 22px;
    letter-spacing: 4px;
    text-align: center;
    padding: 14px 10px;
    border-radius: 8px;
    margin-top: 8px;
    font-weight: 700;
}

.pcm-small-note {
    color: #94a3b8;
    font-size: 12px;
    line-height: 1.7;
    margin-top: 8px;
}

.pcm-click-list {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 12px;
}

.pcm-mini-code {
    background: rgba(0, 0, 0, 0.32);
    border: 1px solid rgba(103, 232, 249, 0.18);
    border-radius: 6px;
    padding: 6px 8px;
    color: #cbd5e1;
    font-size: 12px;
    font-family: Consolas, monospace;
}

.pcm-mini-code.active {
    border-color: #f0abfc;
    color: #67e8f9;
    background: rgba(217, 70, 239, 0.18);
}

@media (max-width: 768px) {
    .pcm-detail-row {
        font-size: 12px;
        flex-direction: column;
        gap: 3px;
    }

    .pcm-detail-row span:last-child {
        text-align: left;
    }

    .pcm-compare-table {
        font-size: 11px;
    }

    .pcm-compare-table th,
    .pcm-compare-table td {
        padding: 5px 3px;
    }

    .pcm-final-code {
        font-size: 18px;
        letter-spacing: 2px;
    }
}
/* 课本式 A 律 13 折线段落表 */
.pcm-segment-ref-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 8px;
    font-size: 12px;
    overflow: hidden;
    border-radius: 8px;
}

.pcm-segment-ref-table th,
.pcm-segment-ref-table td {
    border: 1px solid rgba(148, 163, 184, 0.24);
    padding: 7px 5px;
    text-align: center;
}

.pcm-segment-ref-table th {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.10);
    font-weight: 700;
}

.pcm-segment-ref-table td {
    color: #cbd5e1;
    font-family: Consolas, "Microsoft YaHei", monospace;
}

.pcm-current-segment-row {
    background: rgba(34, 197, 94, 0.16);
}

.pcm-current-segment-row td {
    color: #86efac !important;
    font-weight: 700;
}

.pcm-segment-hit {
    color: #22c55e;
    font-weight: 700;
}

@media (max-width: 768px) {
    .pcm-segment-ref-table {
        font-size: 10px;
    }

    .pcm-segment-ref-table th,
    .pcm-segment-ref-table td {
        padding: 5px 2px;
    }
}
