/* ================= 🌟 基础与排版 ================= */
.wkg-wrapper { padding: 32px 0; }
.wkg-header { text-align: center; margin-bottom: 32px; }
.wkg-title { font-size: 1.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.wkg-subtitle { color: var(--text-muted); max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* ================= 🌟 网格布局 ================= */
.wkg-workspace { display: grid; grid-template-columns: 360px 1fr; gap: 24px; align-items: stretch; }
.wkg-col-left { display: flex; flex-direction: column; gap: 24px; min-width: 0; }
.wkg-col-right { display: flex; flex-direction: column; gap: 24px; height: 100%; min-height: 400px; min-width: 0; }
@media(max-width: 900px) { .wkg-workspace { grid-template-columns: 1fr; } }

/* ================= 🌟 卡片风格 ================= */
.wkg-card { background: var(--bg-surface); border: 1px solid var(--border-color); border-radius: 20px; padding: 28px; box-shadow: 0 4px 16px rgba(0,0,0,0.03); display: flex; flex-direction: column; box-sizing: border-box; }
.wkg-panel-title { font-weight: 700; color: var(--text-main); font-size: 1.1rem; border-bottom: 1px solid var(--border-color); padding-bottom: 16px; margin-bottom: 20px; display: flex; justify-content: space-between; align-items: center; }

/* ================= 🌟 表单组件 ================= */
.wkg-form-group { margin-bottom: 20px; display: flex; flex-direction: column; }
.wkg-label { display: flex; align-items: center; justify-content: space-between; font-size: 0.9rem; font-weight: 600; color: var(--text-muted); margin-bottom: 8px; }

.wkg-select { 
    width: 100%; box-sizing: border-box; padding: 12px 14px; 
    border: 2px solid var(--border-color); border-radius: 10px; 
    background: var(--bg-body); color: var(--text-main); 
    font-size: 1rem; font-weight: 600; transition: 0.2s; outline: none; cursor: pointer;
}
.wkg-select:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }

/* 滑块与徽章 */
.wkg-slider { width: 100%; accent-color: var(--primary-color); height: 6px; border-radius: 3px; cursor: pointer; }
.wkg-badge { background: rgba(var(--primary-rgb), 0.1); color: var(--primary-color); padding: 2px 10px; border-radius: 12px; font-size: 0.85rem; font-weight: bold; }

/* Checkbox Grid */
.wkg-checkbox-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: rgba(var(--primary-rgb), 0.03); padding: 16px; border-radius: 12px; border: 1px solid var(--border-color); }
.wkg-checkbox { display: flex; align-items: center; gap: 8px; cursor: pointer; font-size: 0.85rem; color: var(--text-main); font-weight: 600; user-select: none; }
.wkg-checkbox input { display: none; }
.chk-mark { width: 18px; height: 18px; border: 2px solid var(--border-color); border-radius: 4px; display: flex; align-items: center; justify-content: center; transition: 0.2s; background: var(--bg-body); flex-shrink: 0; }
.wkg-checkbox input:checked + .chk-mark { background: var(--primary-color); border-color: var(--primary-color); }
.wkg-checkbox input:checked + .chk-mark::after { content: '✓'; color: #fff; font-size: 0.8rem; font-weight: bold; }

.wkg-divider { height: 1px; background: var(--border-color); margin: 8px 0 24px 0; opacity: 0.5; }

.wkg-btn-primary { width: 100%; padding: 14px; background: var(--primary-color); color: #fff; font-size: 1.1rem; font-weight: bold; border: none; border-radius: 12px; cursor: pointer; transition: 0.2s; margin-top: auto; }
.wkg-btn-primary:hover { opacity: 0.9; transform: translateY(-2px); box-shadow: 0 4px 12px rgba(var(--primary-rgb), 0.3); }

/* ================= 🌟 结果面板 ================= */
.wkg-result-box { display: flex; flex-direction: column; flex: 1; min-height: 300px; }
.wkg-result-textarea { 
    width: 100%; flex: 1; box-sizing: border-box; padding: 20px; 
    background: #1e1e24; border: 1px solid var(--border-color); border-radius: 12px; 
    font-size: 1.15rem; font-weight: 700; color: #2ed573; /* 安全绿色 */
    font-family: 'Courier New', Courier, monospace; text-align: left; 
    outline: none; line-height: 1.6; resize: none; word-break: break-all;
}
.wkg-result-textarea:focus { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }
.wkg-result-textarea::-webkit-scrollbar { width: 6px; }
.wkg-result-textarea::-webkit-scrollbar-thumb { background: #4b6584; border-radius: 4px; }

.wkg-btn-copy { padding: 8px 16px; background: transparent; border: 1px solid var(--primary-color); border-radius: 20px; font-weight: 600; color: var(--primary-color); cursor: pointer; transition: 0.2s; font-size: 0.85rem; }
.wkg-btn-copy:hover { background: var(--primary-color); color: #fff; }

/* ================= 🌟 SEO 文章 ================= */
.wkg-seo-box { margin-top: 32px; background: var(--bg-surface); padding: 32px; border-radius: 20px; border: 1px solid var(--border-color); box-sizing: border-box; width: 100%; }
.wkg-seo-box h2 { font-size: 1.25rem; margin-bottom: 16px; color: var(--text-main); margin-top: 24px; }
.wkg-seo-box h2:first-child { margin-top: 0; }
.wkg-seo-box p, .wkg-seo-box li { color: var(--text-muted); line-height: 1.8; margin-bottom: 12px; }
/* ================= 🌟 密码强度指示器 ================= */
.wkg-str-track { 
    width: 100%; height: 8px; background: rgba(var(--text-muted-rgb, 150, 150, 150), 0.2); 
    border-radius: 4px; overflow: hidden; margin-top: 4px; 
}
.wkg-str-bar { 
    height: 100%; width: 0%; transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1), background-color 0.4s ease; 
    border-radius: 4px; 
}

.wkg-str-text { font-weight: 800; font-size: 0.95rem; transition: color 0.3s ease; }

/* 强度颜色动态类 */
.str-red { background-color: #ff4757; }
.str-orange { background-color: #ffa502; }
.str-yellow { background-color: #eccc68; }
.str-green { background-color: #2ed573; }

.text-red { color: #ff4757; }
.text-orange { color: #ffa502; }
.text-yellow { color: #eabb00; }
.text-green { color: #2ed573; }