@font-face {
            font-family: "nur tor";
            src: local("nur tor"),
            url("nur_mob_tor.ttf") format("truetype");
            font-display: swap;
}
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'NUR Tor', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    min-height: 100vh;
    color: #333;
}

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

header {
    text-align: center;
    padding: 40px 0;
    color: white;
}

header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.2);
    direction: rtl;
}

.subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    direction: rtl;
}

main {
    background: white;
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.upload-section {
    text-align: center;
}

.upload-area {
    border: 3px dashed #667eea;
    border-radius: 15px;
    padding: 60px 40px;
    transition: all 0.3s ease;
    cursor: pointer;
    background: #f8f9ff;
}

.upload-area:hover,
.upload-area.dragover {
    border-color: #764ba2;
    background: #f0f2ff;
    transform: translateY(-2px);
}

.upload-icon {
    color: #667eea;
    margin-bottom: 20px;
}

.upload-text {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

.upload-hint {
    color: #888;
    font-size: 0.9rem;
    margin-bottom: 20px;
    direction: rtl;
}

.file-info {
    margin-top: 20px;
    padding: 15px 20px;
    background: #f0f2ff;
    border-radius: 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.btn {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.3s ease;
    font-weight: 600;
    font-family: NUR Tor;
}

.btn-primary {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    font-family: NUR Tor;
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(102, 126, 234, 0.4);
    font-family: NUR Tor;
}

.btn-success {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
    font-family: NUR Tor;
}

.btn-success:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(56, 239, 125, 0.4);
    font-family: NUR Tor;
}

.btn-secondary {
    background: #e0e0e0;
    color: #333;
    font-family: NUR Tor;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    margin-top: 25px;
    flex-wrap: wrap;
}

.repair-info {
    text-align: center;
    margin-top: 20px;
    padding: 15px;
    background: #f0f8ff;
    border-radius: 10px;
}

.repair-info p {
    color: #666;
    margin-bottom: 10px;
    font-size: 0.9rem;
}

.standard-badge {
    display: inline-block;
    padding: 5px 12px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 15px;
    font-size: 0.8rem;
    margin: 3px 5px;
    font-weight: 600;
}


.btn-secondary {
    background: #e0e0e0;
    color: #333;
}

.btn-secondary:hover {
    background: #d0d0d0;
}

.loading-section {
    text-align: center;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
    background: linear-gradient(135deg, #0a0a2e 0%, #1a1a4e 50%, #0a0a2e 100%);
    border-radius: 15px;
    min-height: 350px;
}

/* ============================================
   均衡线效果 - Equalizer Line Effect
   ============================================ */

/* 均衡线容器 */
.eq-lines-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 200px;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: none;
}

/* 单条均衡线 */
.eq-line {
    position: absolute;
    height: 3px;
    border-radius: 2px;
    animation: eqLinePulse var(--duration, 2s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

/* 渐变色彩方案 */
.eq-line.green {
    background: linear-gradient(90deg, transparent, #38ef7d, transparent);
    box-shadow: 0 0 15px rgba(56, 239, 125, 0.6);
}

.eq-line.blue {
    background: linear-gradient(90deg, transparent, #667eea, transparent);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

.eq-line.purple {
    background: linear-gradient(90deg, transparent, #764ba2, transparent);
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.6);
}

.eq-line.pink {
    background: linear-gradient(90deg, transparent, #ff416c, transparent);
    box-shadow: 0 0 15px rgba(255, 65, 108, 0.6);
}

.eq-line.cyan {
    background: linear-gradient(90deg, transparent, #00d2ff, transparent);
    box-shadow: 0 0 15px rgba(0, 210, 255, 0.6);
}

@keyframes eqLinePulse {
    0%, 100% {
        opacity: 0;
        transform: scaleX(0.3) translateX(var(--start-x, -100px));
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: scaleX(1) translateX(0);
    }
    90% {
        opacity: 1;
    }
}

/* 定义多条均衡线的位置和动画参数 */
.eq-line:nth-child(1) { --delay: 0s; --duration: 2.5s; --start-x: -200px; top: 20%; width: 60%; left: 20%; }
.eq-line:nth-child(2) { --delay: 0.3s; --duration: 2.8s; --start-x: -200px; top: 30%; width: 70%; left: 15%; }
.eq-line:nth-child(3) { --delay: 0.6s; --duration: 2.2s; --start-x: -200px; top: 40%; width: 80%; left: 10%; }
.eq-line:nth-child(4) { --delay: 0.9s; --duration: 3.0s; --start-x: -200px; top: 50%; width: 90%; left: 5%; }
.eq-line:nth-child(5) { --delay: 1.2s; --duration: 2.6s; --start-x: -200px; top: 60%; width: 80%; left: 10%; }
.eq-line:nth-child(6) { --delay: 1.5s; --duration: 2.4s; --start-x: -200px; top: 70%; width: 70%; left: 15%; }
.eq-line:nth-child(7) { --delay: 1.8s; --duration: 2.9s; --start-x: -200px; top: 80%; width: 60%; left: 20%; }
.eq-line:nth-child(8) { --delay: 0.2s; --duration: 2.7s; --start-x: -200px; top: 25%; width: 75%; left: 12%; }
.eq-line:nth-child(9) { --delay: 0.5s; --duration: 2.3s; --start-x: -200px; top: 35%; width: 85%; left: 7%; }
.eq-line:nth-child(10) { --delay: 0.8s; --duration: 3.1s; --start-x: -200px; top: 45%; width: 95%; left: 2%; }
.eq-line:nth-child(11) { --delay: 1.1s; --duration: 2.5s; --start-x: -200px; top: 55%; width: 85%; left: 7%; }
.eq-line:nth-child(12) { --delay: 1.4s; --duration: 2.8s; --start-x: -200px; top: 65%; width: 75%; left: 12%; }
.eq-line:nth-child(13) { --delay: 1.7s; --duration: 2.4s; --start-x: -200px; top: 75%; width: 65%; left: 17%; }
.eq-line:nth-child(14) { --delay: 0.4s; --duration: 2.6s; --start-x: -200px; top: 22%; width: 68%; left: 16%; }
.eq-line:nth-child(15) { --delay: 0.7s; --duration: 3.2s; --start-x: -200px; top: 38%; width: 82%; left: 9%; }
.eq-line:nth-child(16) { --delay: 1.0s; --duration: 2.9s; --start-x: -200px; top: 48%; width: 92%; left: 4%; }
.eq-line:nth-child(17) { --delay: 1.3s; --duration: 2.3s; --start-x: -200px; top: 58%; width: 82%; left: 9%; }
.eq-line:nth-child(18) { --delay: 1.6s; --duration: 2.7s; --start-x: -200px; top: 68%; width: 72%; left: 14%; }
.eq-line:nth-child(19) { --delay: 1.9s; --duration: 3.0s; --start-x: -200px; top: 78%; width: 62%; left: 19%; }
.eq-line:nth-child(20) { --delay: 0.1s; --duration: 2.5s; --start-x: -200px; top: 32%; width: 78%; left: 11%; }

/* 垂直均衡线 */
.eq-line-v {
    position: absolute;
    width: 3px;
    border-radius: 2px;
    animation: eqLineVPulse var(--duration, 2s) ease-in-out infinite;
    animation-delay: var(--delay, 0s);
    opacity: 0;
}

.eq-line-v.green {
    background: linear-gradient(180deg, transparent, #38ef7d, transparent);
    box-shadow: 0 0 15px rgba(56, 239, 125, 0.6);
}

.eq-line-v.blue {
    background: linear-gradient(180deg, transparent, #667eea, transparent);
    box-shadow: 0 0 15px rgba(102, 126, 234, 0.6);
}

.eq-line-v.purple {
    background: linear-gradient(180deg, transparent, #764ba2, transparent);
    box-shadow: 0 0 15px rgba(118, 75, 162, 0.6);
}

.eq-line-v.pink {
    background: linear-gradient(180deg, transparent, #ff416c, transparent);
    box-shadow: 0 0 15px rgba(255, 65, 108, 0.6);
}

@keyframes eqLineVPulse {
    0%, 100% {
        opacity: 0;
        transform: scaleY(0.3) translateY(var(--start-y, -100px));
    }
    10% {
        opacity: 1;
    }
    50% {
        opacity: 0.8;
        transform: scaleY(1) translateY(0);
    }
    90% {
        opacity: 1;
    }
}

.eq-line-v:nth-child(21) { --delay: 0.15s; --duration: 2.6s; --start-y: -150px; left: 15%; height: 50%; top: 25%; }
.eq-line-v:nth-child(22) { --delay: 0.45s; --duration: 2.9s; --start-y: -150px; left: 25%; height: 60%; top: 20%; }
.eq-line-v:nth-child(23) { --delay: 0.75s; --duration: 2.3s; --start-y: -150px; left: 35%; height: 70%; top: 15%; }
.eq-line-v:nth-child(24) { --delay: 1.05s; --duration: 3.1s; --start-y: -150px; left: 50%; height: 80%; top: 10%; }
.eq-line-v:nth-child(25) { --delay: 1.35s; --duration: 2.7s; --start-y: -150px; left: 65%; height: 70%; top: 15%; }
.eq-line-v:nth-child(26) { --delay: 1.65s; --duration: 2.4s; --start-y: -150px; left: 75%; height: 60%; top: 20%; }
.eq-line-v:nth-child(27) { --delay: 1.95s; --duration: 2.8s; --start-y: -150px; left: 85%; height: 50%; top: 25%; }
.eq-line-v:nth-child(28) { --delay: 0.35s; --duration: 2.5s; --start-y: -150px; left: 20%; height: 55%; top: 22%; }
.eq-line-v:nth-child(29) { --delay: 0.65s; --duration: 3.0s; --start-y: -150px; left: 40%; height: 65%; top: 17%; }
.eq-line-v:nth-child(30) { --delay: 0.95s; --duration: 2.6s; --start-y: -150px; left: 60%; height: 65%; top: 17%; }
.eq-line-v:nth-child(31) { --delay: 1.25s; --duration: 2.9s; --start-y: -150px; left: 80%; height: 55%; top: 22%; }
.eq-line-v:nth-child(32) { --delay: 1.55s; --duration: 2.4s; --start-y: -150px; left: 45%; height: 75%; top: 12%; }

/* 中心发光圆环 */
.center-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(102, 126, 234, 0.3) 0%, transparent 70%);
    animation: centerGlow 2s ease-in-out infinite;
    pointer-events: none;
}

@keyframes centerGlow {
    0%, 100% {
        transform: translate(-50%, -50%) scale(0.8);
        opacity: 0.5;
    }
    50% {
        transform: translate(-50%, -50%) scale(1.2);
        opacity: 1;
    }
}

/* 旋转光环 */
.rotating-ring {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 180px;
    height: 180px;
    border: 2px solid transparent;
    border-top-color: rgba(102, 126, 234, 0.6);
    border-right-color: rgba(118, 75, 162, 0.4);
    border-radius: 50%;
    animation: rotateRing 3s linear infinite;
    pointer-events: none;
}

.rotating-ring::before {
    content: '';
    position: absolute;
    top: 10px;
    left: 10px;
    right: 10px;
    bottom: 10px;
    border: 2px solid transparent;
    border-bottom-color: rgba(56, 239, 125, 0.5);
    border-left-color: rgba(0, 210, 255, 0.3);
    border-radius: 50%;
    animation: rotateRing 2s linear infinite reverse;
}

@keyframes rotateRing {
    to { transform: translate(-50%, -50%) rotate(360deg); }
}
    }
}

/* 频谱分析线 */
.spectrum-lines {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    opacity: 0.2;
}

.spectrum-line {
    position: absolute;
    height: 2px;
    background: linear-gradient(90deg, transparent, #667eea, #764ba2, transparent);
    animation: spectrumMove 3s ease-in-out infinite;
}

.spectrum-line:nth-child(1) {
    top: 20%;
    left: -100%;
    animation-delay: 0s;
}

.spectrum-line:nth-child(2) {
    top: 50%;
    left: -100%;
    animation-delay: 1s;
}

.spectrum-line:nth-child(3) {
    top: 80%;
    left: -100%;
    animation-delay: 2s;
}

@keyframes spectrumMove {
    0% {
        left: -100%;
        opacity: 0;
    }
    50% {
        opacity: 1;
    }
    100% {
        left: 100%;
        opacity: 0;
    }
}

/* 数字粒子效果 */
.digital-particles {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    pointer-events: none;
    overflow: hidden;
}

.particle {
    position: absolute;
    color: rgba(102, 126, 234, 0.4);
    font-family: 'Courier New', monospace;
    font-size: 12px;
    animation: particleFloat 8s linear infinite;
}

.particle:nth-child(1) { left: 5%; animation-delay: 0s; }
.particle:nth-child(2) { left: 15%; animation-delay: 1.5s; }
.particle:nth-child(3) { left: 25%; animation-delay: 3s; }
.particle:nth-child(4) { left: 35%; animation-delay: 4.5s; }
.particle:nth-child(5) { left: 45%; animation-delay: 6s; }
.particle:nth-child(6) { left: 55%; animation-delay: 0.5s; }
.particle:nth-child(7) { left: 65%; animation-delay: 2s; }
.particle:nth-child(8) { left: 75%; animation-delay: 3.5s; }
.particle:nth-child(9) { left: 85%; animation-delay: 5s; }
.particle:nth-child(10) { left: 95%; animation-delay: 6.5s; }

@keyframes particleFloat {
    0% {
        top: 100%;
        opacity: 0;
    }
    10% {
        opacity: 1;
    }
    90% {
        opacity: 1;
    }
    100% {
        top: -10%;
        opacity: 0;
    }
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 5px solid rgba(102, 126, 234, 0.2);
    border-top-color: #667eea;
    border-right-color: #764ba2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 20px;
    position: relative;
    z-index: 10;
    box-shadow: 0 0 20px rgba(102, 126, 234, 0.3);
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.loading-section p {
    color: #fff;
    font-size: 1.1rem;
    position: relative;
    z-index: 10;
    text-shadow: 0 0 10px rgba(102, 126, 234, 0.5);
}

.results-section {
    padding-top: 20px;
}

.results-section h2 {
    text-align: center;
    margin-bottom: 30px;
    color: #333;
    font-size: 1.8rem;
}

.result-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.result-card {
    background: #f8f9ff;
    border-radius: 15px;
    padding: 25px;
    border-left: 4px solid #667eea;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card.full-width {
    grid-column: 1 / -1;
}

.result-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.result-card h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.2rem;
    direction: rtl;
}

.result-content {
    color: #555;
    line-height: 1.8;
    direction: rtl;
}

.result-content .item {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e0e0e0;
}

.result-content .item:last-child {
    border-bottom: none;
}

.result-content .label {
    font-weight: 600;
    color: #333;
}

.result-content .value {
    color: #667eea;
}

.quality-score {
    font-size: 2rem;
    font-weight: bold;
    text-align: center;
    padding: 15px;
    border-radius: 10px;
    margin-bottom: 15px;
}

.quality-score.excellent {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.quality-score.good {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
}

.quality-score.fair {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.quality-score.poor {
    background: linear-gradient(135deg, #ff416c 0%, #ff4b2b 100%);
    color: white;
}

.health-badge {
    display: inline-block;
    padding: 8px 20px;
    border-radius: 20px;
    font-weight: 600;
    margin-bottom: 15px;
}

.health-badge.good {
    background: #38ef7d;
    color: white;
}

.health-badge.warning {
    background: #f5576c;
    color: white;
}

.health-badge.poor {
    background: #ff4b2b;
    color: white;
}

.health-badge.excellent {
    background: linear-gradient(135deg, #11998e 0%, #38ef7d 100%);
    color: white;
}

.health-badge.fair {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
}

.severity-badge {
    display: inline-block;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-left: 10px;
}

.severity-badge.high {
    background: #ff4b2b;
    color: white;
}

.severity-badge.medium {
    background: #ffa726;
    color: white;
}

.severity-badge.low {
    background: #66bb6a;
    color: white;
}

.emotion-bar {
    background: #e0e0e0;
    border-radius: 10px;
    height: 24px;
    margin: 8px 0;
    overflow: hidden;
    position: relative;
}

.emotion-fill {
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease;
}

.emotion-fill.happy {
    background: linear-gradient(90deg, #FFD93D, #FFA500);
}

.emotion-fill.sad {
    background: linear-gradient(90deg, #667eea, #764ba2);
}

.emotion-fill.angry {
    background: linear-gradient(90deg, #ff416c, #ff4b2b);
}

.emotion-fill.neutral {
    background: linear-gradient(90deg, #a8a8a8, #666);
}

.emotion-fill.relaxed {
    background: linear-gradient(90deg, #11998e, #38ef7d);
}

.emotion-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 0;
    font-size: 0.9rem;
}

.ai-badge {
    display: inline-block;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 10px;
}

.anomaly-item {
    background: white;
    padding: 12px;
    border-radius: 8px;
    margin-bottom: 10px;
    border-left: 3px solid #f5576c;
}

.anomaly-item .type {
    font-weight: 600;
    color: #f5576c;
    text-transform: capitalize;
}

.error-section {
    text-align: center;
    padding: 60px 20px;
}

.error-message {
    color: #f5576c;
}

.error-message svg {
    margin-bottom: 20px;
}

.error-message p {
    font-size: 1.1rem;
    margin-bottom: 20px;
}

footer {
    text-align: center;
    padding: 30px;
    color: white;
    opacity: 0.8;
}

/* ============================================
   修复报告模态框
   ============================================ */
.repair-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.repair-modal-content {
    background: white;
    border-radius: 20px;
    max-width: 600px;
    width: 90%;
    max-height: 80vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    animation: slideUp 0.3s ease;
}

@keyframes slideUp {
    from { transform: translateY(50px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

.repair-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    border-bottom: 1px solid #e0e0e0;
}

.repair-modal-header h3 {
    color: #333;
    margin: 0;
    font-size: 1.3rem;
}

.close-btn {
    background: none;
    border: none;
    font-size: 1.8rem;
    color: #999;
    cursor: pointer;
    padding: 0;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: all 0.2s;
}

.close-btn:hover {
    background: #f0f0f0;
    color: #333;
}

.repair-modal-body {
    padding: 25px;
}

.repair-summary {
    background: linear-gradient(135deg, rgba(102, 126, 234, 0.1), rgba(118, 75, 162, 0.1));
    padding: 15px;
    border-radius: 10px;
    color: #333;
    font-weight: 500;
    margin-bottom: 20px;
    text-align: center;
}

.comparison-table {
    margin-bottom: 20px;
}

.comparison-table table {
    width: 100%;
    border-collapse: collapse;
}

.comparison-table th {
    background: linear-gradient(135deg, #667eea, #764ba2);
    color: white;
    padding: 12px 15px;
    text-align: left;
    font-size: 0.9rem;
}

.comparison-table td {
    padding: 12px 15px;
    border-bottom: 1px solid #f0f0f0;
    font-size: 0.9rem;
}

.comparison-table tr.fixed td.original {
    color: #ff416c;
    text-decoration: line-through;
}

.comparison-table tr.fixed td.repaired {
    color: #38ef7d;
    font-weight: 600;
}

.comparison-table tr.optimized td.repaired {
    color: #667eea;
    font-weight: 600;
}

.comparison-table td.status {
    text-align: center;
    font-size: 1.2rem;
}

.no-changes {
    text-align: center;
    color: #38ef7d;
    padding: 20px;
    font-weight: 600;
}

.issues-section {
    margin-top: 20px;
}

.issues-section h4 {
    color: #333;
    margin-bottom: 15px;
    font-size: 1rem;
}

.issue-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 10px;
    background: #f8f9ff;
}

.issue-item.error {
    background: #fff5f5;
    border-left: 3px solid #ff416c;
}

.issue-item.warning {
    background: #fffaf0;
    border-left: 3px solid #ffa726;
}

.issue-item.info {
    background: #f0f8ff;
    border-left: 3px solid #667eea;
}

.issue-icon {
    font-size: 1.1rem;
    flex-shrink: 0;
}

.issue-item.error .issue-icon { color: #ff416c; }
.issue-item.warning .issue-icon { color: #ffa726; }
.issue-item.info .issue-icon { color: #667eea; }

.issue-text {
    flex: 1;
    color: #333;
    font-size: 0.9rem;
}

.issue-fix {
    background: #38ef7d;
    color: white;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 600;
}

.standard-badge-full {
    background: linear-gradient(135deg, #11998e, #38ef7d);
    color: white;
    padding: 15px 20px;
    border-radius: 10px;
    text-align: center;
    margin-top: 20px;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.standard-badge-full .checkmark {
    font-size: 1.3rem;
}

.repair-modal-footer {
    padding: 20px 25px;
    border-top: 1px solid #e0e0e0;
    display: flex;
    justify-content: flex-end;
}

/* ============================================
   友情链接区域
   ============================================ */
.friend-links {
    margin-top: 20px;
    padding: 30px;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f2ff 100%);
    border-radius: 15px;
    text-align: center;
}

.friend-links h3 {
    color: #667eea;
    margin-bottom: 15px;
    font-size: 1.1rem;
    direction: rtl;
}

.friend-links-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    max-width: 900px;
    margin: 0 auto;
}

.friend-link-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 10px 7px;
    background: white;
    border-radius: 12px;
    text-decoration: none;
    color: #333;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 2px solid transparent;
    gap: 10px;
}

.friend-link-btn svg {
    color: #667eea;
    transition: all 0.3s ease;
}

.friend-link-btn span {
    font-size: 0.95rem;
    font-weight: 600;
    font-family: 'NUR Tor', sans-serif;
}

.friend-link-btn:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    border-color: #667eea;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9ff 100%);
}

.friend-link-btn:hover svg {
    color: #764ba2;
    transform: scale(1.1);
}

@media (max-width: 768px) {
    .friend-links {
        padding: 20px;
    }

    .friend-links-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .friend-link-btn {
        padding: 15px 10px;
    }

    .friend-link-btn span {
        font-size: 0.85rem;
    }
}

@media (max-width: 480px) {
    .friend-links-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    header h1 {
        font-size: 2rem;
    }

    main {
        padding: 25px;
    }

    .upload-area {
        padding: 40px 20px;
    }

    .result-grid {
        grid-template-columns: 1fr;
    }

    .file-info {
        flex-direction: column;
        gap: 15px;
    }
}
