/* public/assets/css/life/wifi-qr-generator.css */
.wq-tool-wrapper { --p-bg: #ffffff; --p-border: #e2e8f0; --p-primary: #10b981; --p-text: #0f172a; width: 100%; max-width: 1200px; margin: 0 auto; background: var(--p-bg); border-radius: 20px; padding: 24px; border: 1px solid var(--p-border); box-shadow: 0 10px 25px -5px rgba(0,0,0,0.05); }
.wq-header-main { font-size: 1.5rem; font-weight: 800; color: var(--p-text); margin-bottom: 8px; text-align: center; }
.wq-subtitle { color: #64748b; font-size: 0.95rem; padding-bottom: 20px; border-bottom: 1px solid var(--p-border); margin-bottom: 24px; text-align: center; max-width: 800px; margin-left: auto; margin-right: auto; line-height: 1.6; }

/* 左右双栏网格 */
.wq-editor-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: stretch; }
@media(max-width: 850px) { .wq-editor-grid { grid-template-columns: 1fr; } }

/* 面板通用样式 */
.wq-panel { display: flex; flex-direction: column; background: #ffffff; border: 1px solid var(--p-border); border-radius: 16px; overflow: hidden; }
.wq-panel-header { display: flex; justify-content: space-between; align-items: center; padding: 14px 20px; background: #f8fafc; border-bottom: 1px solid var(--p-border); }
.wq-panel-title { font-size: 1rem; font-weight: 700; color: #334155; }
.wq-panel-body { padding: 24px 20px; flex: 1; display: flex; flex-direction: column; gap: 16px; }
.wq-panel-footer { padding: 16px 20px; background: #f8fafc; border-top: 1px solid var(--p-border); display: flex; justify-content: flex-end; }

/* 表单组件 */
.wq-form-group { display: flex; flex-direction: column; gap: 8px; }
.wq-label { font-size: 0.9rem; font-weight: 600; color: #475569; }
.wq-input, .wq-select { width: 100%; padding: 10px 14px; border: 1px solid #cbd5e1; border-radius: 8px; font-size: 0.95rem; color: #1e293b; background: #ffffff; outline: none; transition: 0.2s; font-family: inherit; }
.wq-input:focus, .wq-select:focus { border-color: var(--p-primary); box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.1); }

.wq-input-with-icon { position: relative; display: flex; align-items: center; }
.wq-btn-toggle-pwd { position: absolute; right: 12px; background: none; border: none; cursor: pointer; opacity: 0.6; transition: 0.2s; font-size: 1rem; }
.wq-btn-toggle-pwd:hover { opacity: 1; }

.wq-form-group-inline { display: flex; align-items: center; gap: 8px; margin-top: 8px; }
.wq-checkbox { width: 16px; height: 16px; accent-color: var(--p-primary); cursor: pointer; }
.wq-label-inline { font-size: 0.9rem; color: #475569; cursor: pointer; user-select: none; }

/* Logo 上传区样式 */
.wq-logo-upload-box { display: flex; align-items: center; gap: 12px; }
.wq-btn-outline { padding: 8px 16px; border-radius: 8px; font-weight: 600; font-size: 0.9rem; cursor: pointer; transition: 0.2s; background: #ffffff; color: var(--p-primary); border: 1px solid var(--p-primary); display: inline-flex; align-items: center; gap: 6px; }
.wq-btn-outline:hover { background: var(--p-primary); color: #ffffff; }
.wq-btn-remove-logo { background: #ef4444; color: white; border: none; border-radius: 50%; width: 24px; height: 24px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 0.8rem; transition: 0.2s; }
.wq-btn-remove-logo:hover { transform: scale(1.1); background: #dc2626; }

/* 右侧结果展示区 */
.wq-result-body { align-items: center; justify-content: center; background: #f1f5f9; }
.wq-qr-container { width: 280px; height: 280px; background: #ffffff; border: 2px dashed #cbd5e1; border-radius: 16px; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; padding: 16px; box-sizing: border-box; }
.wq-qr-placeholder { display: flex; flex-direction: column; align-items: center; color: #94a3b8; font-weight: 500; font-size: 0.9rem; text-align: center; }
#wqQrBox img, #wqQrBox canvas { max-width: 100%; max-height: 100%; }

.wq-result-actions { margin-top: 24px; width: 100%; display: flex; justify-content: center; }

/* 按钮样式 */
.wq-btn-primary, .wq-btn-success { padding: 12px 24px; border-radius: 8px; font-weight: 600; font-size: 1rem; cursor: pointer; border: none; transition: 0.2s; display: flex; align-items: center; gap: 8px; }
.wq-btn-primary { background: var(--p-primary); color: white; box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3); width: 100%; justify-content: center; }
.wq-btn-primary:hover { filter: brightness(1.05); transform: translateY(-1px); }
.wq-btn-success { background: #3b82f6; color: white; box-shadow: 0 4px 12px rgba(59, 130, 246, 0.3); }
.wq-btn-success:hover:not(:disabled) { background: #2563eb; transform: translateY(-1px); }
.wq-btn-success:disabled { background: #cbd5e1; box-shadow: none; cursor: not-allowed; }

/* ================= 黑夜模式适配 ================= */
[data-theme="dark"] .wq-tool-wrapper { background: #1e293b; border-color: #334155; }
[data-theme="dark"] .wq-header-main { color: #f8fafc; }
[data-theme="dark"] .wq-panel { background: #0f172a; border-color: #475569; }
[data-theme="dark"] .wq-panel-header, [data-theme="dark"] .wq-panel-footer { background: #1e293b; border-color: #475569; }
[data-theme="dark"] .wq-panel-title { color: #cbd5e1; }
[data-theme="dark"] .wq-label, [data-theme="dark"] .wq-label-inline { color: #94a3b8; }
[data-theme="dark"] .wq-input, [data-theme="dark"] .wq-select { background: #020617; border-color: #475569; color: #f8fafc; }
[data-theme="dark"] .wq-input:focus, [data-theme="dark"] .wq-select:focus { border-color: var(--p-primary); }
[data-theme="dark"] .wq-btn-outline { background: #020617; border-color: #059669; color: #10b981; }
[data-theme="dark"] .wq-btn-outline:hover { background: #059669; color: #ffffff; }
[data-theme="dark"] #wqPreviewLogo { border-color: #475569; }
[data-theme="dark"] .wq-result-body { background: #020617; }
[data-theme="dark"] .wq-qr-container { background: #ffffff; border-color: #475569; } /* 保持二维码背景为白底黑码以确保扫码成功率 */
[data-theme="dark"] .wq-btn-success:disabled { background: #334155; color: #64748b; }