/* 局域网同步面板样式 */
.lan-sync-overlay {
    position: fixed; top: 0; left: 0; right: 0; bottom: 0;
    background: #F5F4F1; z-index: 9999; overflow-y: auto;
    font-size: 14px;
}
.lan-sync-panel { max-width: 600px; margin: 0 auto; padding: 0; }
.lan-sync-header {
    display: flex; align-items: center; gap: 12px;
    padding: 12px 16px; border-bottom: 1px solid #E0DED9;
    background: #FFF; position: sticky; top: 0; z-index: 1;
}
.lan-sync-back { border: none; background: none; font-size: 20px; cursor: pointer; color: #666; }
.lan-sync-title { font-size: 18px; font-weight: 600; }
.lan-sync-body { padding: 16px; }
.lan-sync-section { margin-bottom: 24px; }
.lan-sync-section-title { font-size: 12px; color: #999; margin-bottom: 8px; text-transform: uppercase; }
.lan-sync-status-row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid #ECEAE5; }
.lan-sync-status-on { color: #4CAF50; font-weight: 600; }
.lan-sync-status-off { color: #999; }
.lan-sync-code { font-family: monospace; font-size: 20px; letter-spacing: 2px; font-weight: 600; color: #D4793A; }
.lan-sync-actions { display: flex; gap: 8px; margin-top: 12px; }
.lan-sync-actions button {
    flex: 1; padding: 10px; border: 1px solid #D4D2CD; border-radius: 8px;
    background: #FFF; cursor: pointer; font-size: 14px;
}
.lan-sync-actions button:disabled { opacity: 0.4; cursor: default; }
.lan-sync-device {
    display: flex; align-items: center; gap: 8px; padding: 10px 0;
    border-bottom: 1px solid #ECEAE5;
}
.lan-sync-device-name { font-weight: 500; }
.lan-sync-device-addr { color: #999; flex: 1; }
.lan-sync-btn-pull, .lan-sync-btn-push {
    padding: 6px 16px; border: 1px solid #D4D2CD; border-radius: 6px;
    background: #FFF; cursor: pointer; font-size: 13px;
}
.lan-sync-btn-pull { color: #4A90D9; }
.lan-sync-btn-push { color: #D4793A; }
.lan-sync-manual { display: flex; gap: 8px; margin-top: 12px; }
.lan-sync-input-ip, .lan-sync-input-code {
    border: 1px solid #D4D2CD; border-radius: 6px; padding: 8px;
    font-size: 14px; flex: 1;
}
.lan-sync-input-code { max-width: 100px; }
.lan-sync-btn-connect {
    padding: 8px 16px; border: none; border-radius: 6px;
    background: #D4793A; color: #FFF; cursor: pointer;
}
.lan-sync-radio { display: block; padding: 6px 0; }
/* PWA↔PWA WebRTC 直连区域 */
.lan-sync-wrtc-unsupported {
    color: #999; font-size: 13px; padding: 8px 0;
}
.lan-sync-wrtc-connected {
    display: flex; flex-direction: column; gap: 12px; padding: 4px 0;
}
.lan-sync-wrtc-status {
    font-weight: 600; color: #4CAF50;
}
.lan-sync-wrtc-actions { display: flex; gap: 8px; margin-top: 12px; flex-wrap: wrap; }
.lan-sync-wrtc-actions button {
    flex: 1; min-width: 90px; padding: 10px; border: 1px solid #D4D2CD; border-radius: 8px;
    background: #FFF; cursor: pointer; font-size: 14px;
}
.lan-sync-wrtc-create { color: #4A90D9; }
.lan-sync-wrtc-scan-offer { color: #D4793A; }
.lan-sync-wrtc-scanning { color: #999; padding: 8px 0; }
.lan-sync-wrtc-hint { color: #999; font-size: 12px; margin-top: 8px; }
.lan-sync-wrtc-qr { display: flex; flex-direction: column; align-items: center; gap: 8px; margin: 8px 0; }
.lan-sync-wrtc-qr-label { font-size: 13px; color: #666; }
.lan-sync-wrtc-qr table { margin: 0 auto; }
.lan-sync-wrtc-copy { text-align: center; }
.lan-sync-btn-copy {
    padding: 6px 16px; border: 1px solid #D4D2CD; border-radius: 6px;
    background: #FFF; cursor: pointer; font-size: 13px; color: #666;
}
.lan-sync-log {
    max-height: 200px; overflow-y: auto; background: #FAFAF8;
    border-radius: 8px; padding: 8px; font-size: 12px;
}
.lan-sync-log-entry { padding: 4px 0; border-bottom: 1px solid #F0EEEA; }
.lan-sync-log-time { color: #999; }