.px-wrapper { padding: 32px 0; }
.px-header { text-align: center; margin-bottom: 32px; }
.px-title { font-size: 1.8rem; font-weight: 800; color: var(--text-main); margin-bottom: 12px; }
.px-subtitle { color: var(--text-muted); max-width: 800px; margin: 0 auto; line-height: 1.6; }

/* 左右两列布局 */
.px-workspace { display: grid; grid-template-columns: 320px 1fr; gap: 24px; align-items: stretch; }
.px-col-left, .px-col-right { display: flex; flex-direction: column; height: 100%; min-width: 0; }
@media(max-width: 900px) { .px-workspace { grid-template-columns: 1fr; } }

/* 统一卡片 */
.px-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; flex: 1; }
.px-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: 16px; }

/* 输入框组合 */
.px-input-group { display: flex; flex-direction: column; gap: 10px; }
.px-label { font-size: 0.9rem; font-weight: 600; color: var(--text-muted); }
.px-input-box { display: flex; align-items: center; background: var(--bg-body); border-radius: 12px; border: 2px solid var(--border-color); padding: 8px 16px; transition: 0.3s; }
.px-input-box:focus-within { border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(var(--primary-rgb), 0.1); }
.px-input { flex: 1; min-width: 0; border: none; background: transparent; outline: none; color: var(--text-main); font-size: 1.1rem; font-weight: 700; font-family: monospace; }
/* 隐藏原生数字加减箭头 */
.px-input::-webkit-outer-spin-button, .px-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.px-input[type=number] { -moz-appearance: textfield; }
.px-unit { font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; margin-left: 8px; user-select: none; }

/* PPI 快捷标签 */
.px-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.px-chip { background: var(--bg-body); border: 1px solid var(--border-color); border-radius: 20px; padding: 6px 12px; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); cursor: pointer; transition: 0.2s; white-space: nowrap; }
.px-chip.active, .px-chip:hover { background: var(--primary-color); color: #fff; border-color: var(--primary-color); box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2); }

/* 右侧矩阵网格 */
.px-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 20px; }
.px-grid-item { display: flex; flex-direction: column; gap: 8px; }
.px-grid-item label { font-size: 0.85rem; font-weight: 600; color: var(--text-muted); }
.px-grid-item.highlight .px-input-box { background: rgba(var(--primary-rgb), 0.05); border-color: rgba(var(--primary-rgb), 0.3); }
.px-grid-item.highlight .px-input { color: var(--primary-color); }
.px-grid-divider { grid-column: 1 / -1; margin: 16px 0 8px; position: relative; text-align: center; }
.px-grid-divider::before { content: ''; position: absolute; left: 0; top: 50%; width: 100%; height: 1px; background: var(--border-color); z-index: 0; }
.px-grid-divider span { position: relative; z-index: 1; background: var(--bg-surface); padding: 0 12px; font-size: 0.85rem; font-weight: 700; color: var(--text-muted); text-transform: uppercase; }

/* SEO 文章与表格 */
.px-seo-box { margin-top: 32px; background: var(--bg-surface); padding: 32px; border-radius: 20px; border: 1px solid var(--border-color); }
.px-seo-box h2 { font-size: 1.25rem; margin-bottom: 16px; color: var(--text-main); margin-top: 24px; }
.px-seo-box h2:first-child { margin-top: 0; }
.px-seo-box p { color: var(--text-muted); line-height: 1.8; margin-bottom: 16px; }
.px-table-wrapper { overflow-x: auto; margin-bottom: 24px; border-radius: 12px; border: 1px solid var(--border-color); }
.px-table { width: 100%; border-collapse: collapse; text-align: left; }
.px-table th, .px-table td { padding: 14px 16px; border-bottom: 1px solid var(--border-color); font-size: 0.95rem; }
.px-table th { background: rgba(0,0,0,0.02); font-weight: 700; color: var(--text-main); }
.px-table td { color: var(--text-muted); }
.px-table tr:last-child td { border-bottom: none; }