/* ============================================================================
 * AI 人设自定义页面样式
 * Phase F · F.7 自定义人设
 * 知音品牌色系 --primary: #F18D24, --secondary: #149EBB
 * ============================================================================ */

/* ==================== 主布局 ==================== */
.pc-container {
    padding: 24px;
    max-width: 800px;
    margin: 0 auto;
    background: #f5f6f8;
    min-height: calc(100vh - 60px);
}

.pc-header {
    margin-bottom: 24px;
}

.pc-header h2 {
    margin: 0 0 4px;
    font-size: 22px;
    font-weight: 700;
    color: #1f2937;
}

.pc-header-desc {
    font-size: 13px;
    color: #9ca3af;
}

.pc-body {
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 1px 3px rgba(0,0,0,0.06);
    overflow: hidden;
}

.pc-main {
    padding: 24px;
}

.pc-loading {
    text-align: center;
    padding: 48px 24px;
    color: #9ca3af;
    font-size: 14px;
}

/* ==================== 滑块区域 ==================== */
.pc-sliders-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.pc-dimension {
    background: #f9fafb;
    border-radius: 10px;
    padding: 16px 20px;
    border: 1px solid #f3f4f6;
}

.pc-dim-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}

.pc-dim-label {
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.pc-dim-value {
    font-size: 14px;
    font-weight: 700;
    color: #f18d24;
    background: #fef3c7;
    padding: 2px 10px;
    border-radius: 12px;
    min-width: 36px;
    text-align: center;
}

.pc-dim-slider-row {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pc-dim-low,
.pc-dim-high {
    font-size: 11px;
    color: #9ca3af;
    white-space: nowrap;
    min-width: 52px;
}

.pc-dim-low {
    text-align: right;
}

.pc-dim-high {
    text-align: left;
}

/* ==================== 自定义滑块 ==================== */
.pc-range {
    flex: 1;
    -webkit-appearance: none;
    appearance: none;
    height: 6px;
    border-radius: 3px;
    background: linear-gradient(to right, #e5e7eb 0%, #f18d24 50%, #149ebb 100%);
    outline: none;
    cursor: pointer;
}

.pc-range::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #f18d24;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
    transition: transform 0.15s;
}

.pc-range::-webkit-slider-thumb:hover {
    transform: scale(1.15);
}

.pc-range::-moz-range-thumb {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 2px solid #f18d24;
    cursor: pointer;
    box-shadow: 0 1px 4px rgba(0,0,0,0.12);
}

/* ==================== 备注区域 ==================== */
.pc-notes-section {
    margin-top: 24px;
}

.pc-notes-label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
    margin-bottom: 8px;
}

.pc-notes-textarea {
    width: 100%;
    min-height: 80px;
    padding: 12px 16px;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 13px;
    line-height: 1.6;
    resize: vertical;
    font-family: inherit;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}

.pc-notes-textarea:focus {
    outline: none;
    border-color: #f18d24;
    box-shadow: 0 0 0 3px rgba(241,141,36,0.1);
}

.pc-notes-textarea::placeholder {
    color: #cbd5e1;
}

.pc-notes-hint {
    display: block;
    text-align: right;
    font-size: 11px;
    color: #9ca3af;
    margin-top: 4px;
}

/* ==================== 预览区域 ==================== */
.pc-preview-section {
    margin-top: 24px;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    overflow: hidden;
}

.pc-preview-header {
    padding: 10px 16px;
    background: #f9fafb;
    border-bottom: 1px solid #e5e7eb;
    font-size: 13px;
    font-weight: 600;
    color: #6b7280;
}

.pc-preview-content {
    padding: 16px 20px;
    font-size: 14px;
    line-height: 1.8;
    color: #374151;
    background: #fff;
    min-height: 100px;
    white-space: pre-wrap;
    word-break: break-word;
    transition: all 0.3s ease;
}

/* ==================== 按钮区域 ==================== */
.pc-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #f3f4f6;
}

.pc-btn {
    padding: 10px 24px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    background: #fff;
    font-size: 14px;
    cursor: pointer;
    color: #374151;
    transition: all 0.15s;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

.pc-btn:hover {
    background: #f3f4f6;
    border-color: #9ca3af;
}

.pc-btn-save {
    background: #f18d24;
    color: #fff;
    border-color: #f18d24;
}

.pc-btn-save:hover {
    background: #d97706;
    border-color: #d97706;
}

.pc-btn-reset {
    color: #6b7280;
    border-color: #e5e7eb;
}

.pc-btn-reset:hover {
    color: #dc2626;
    border-color: #fecaca;
    background: #fef2f2;
}

/* ==================== Toast ==================== */
.pc-toast {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 10000;
    padding: 12px 20px;
    border-radius: 8px;
    font-size: 14px;
    animation: pcSlideIn 0.3s ease;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.pc-toast.success {
    background: #059669;
    color: #fff;
}

.pc-toast.error {
    background: #dc2626;
    color: #fff;
}

.pc-toast.info {
    background: #149ebb;
    color: #fff;
}

@keyframes pcSlideIn {
    from { opacity: 0; transform: translateX(20px); }
    to { opacity: 1; transform: translateX(0); }
}

/* ==================== 响应式 ==================== */
@media (max-width: 640px) {
    .pc-container {
        padding: 16px;
    }

    .pc-main {
        padding: 16px;
    }

    .pc-dimension {
        padding: 12px 14px;
    }

    .pc-dim-slider-row {
        gap: 8px;
    }

    .pc-dim-low,
    .pc-dim-high {
        min-width: 36px;
        font-size: 10px;
    }

    .pc-actions {
        flex-direction: column-reverse;
    }

    .pc-btn {
        width: 100%;
        justify-content: center;
    }
}
