/* ===================================
   高级简约风格重设计
   Instagram风格 - 精致简约
   =================================== */

/* ===================================
   1. PawTalk 账号创建按钮重设计
   =================================== */

/* 重新设计底部按钮容器 - 去除过于鲜艳的背景 */
.pt-mask-editor-footer {
    display: flex;
    gap: 12px;
    padding: 16px 20px 20px;
    background: transparent !important;
    backdrop-filter: none !important;
    border-top: none !important;
}

/* 重新设计按钮基础样式 - 更简约 */
.pt-mask-btn {
    flex: 1;
    height: 40px !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    cursor: pointer;
    transition: all 0.2s ease !important;
    border: none;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    letter-spacing: 0.3px;
}

/* Cancel按钮 - 极简透明风格 */
.pt-mask-btn-cancel {
    background: transparent !important;
    color: #8E8E93 !important;
    border: none !important;
    box-shadow: none !important;
}

.pt-mask-btn-cancel:hover {
    color: #636366 !important;
}

.pt-mask-btn-cancel:active {
    transform: scale(0.96) !important;
    opacity: 0.7;
}

/* Save Account按钮 - 精致简约风格 */
.pt-mask-btn-save {
    background: #1C1C1E !important;
    color: #FFFFFF !important;
    box-shadow: none !important;
    border: none !important;
}

.pt-mask-btn-save:hover {
    background: #2C2C2E !important;
}

.pt-mask-btn-save:active {
    transform: scale(0.96) !important;
    background: #0A0A0A !important;
}

/* 按钮内文字样式优化 */
.pt-mask-btn span {
    font-size: 13px !important;
    font-weight: 500 !important;
    opacity: 1 !important;
    letter-spacing: 0.2px;
}

/* ===================================
   2. Settings > 美化设置 完全重设计
   =================================== */

/* 卡片容器 - 更轻盈的设计 */
#setSectionBeauty .set-card {
    background: rgba(255, 255, 255, 0.6) !important;
    backdrop-filter: blur(20px) !important;
    border: 1px solid rgba(255, 255, 255, 0.8) !important;
    border-radius: 16px !important;
    padding: 20px !important;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04) !important;
    margin-bottom: 16px;
}

/* 字段标签 - 禁止粗黑字体 */
#setSectionBeauty .set-field label,
#setSectionBeauty .set-field > span:first-child {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #3C3C43 !important;
    margin-bottom: 8px;
    display: block;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    letter-spacing: 0.2px;
}

/* 输入框和选择框 - 简约风格 */
#setSectionBeauty .set-field input[type="text"],
#setSectionBeauty .set-field input[type="number"],
#setSectionBeauty .set-field select {
    width: 100%;
    height: 38px !important;
    padding: 0 12px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #1C1C1E !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    transition: all 0.2s ease;
    box-shadow: none !important;
}

#setSectionBeauty .set-field input:focus,
#setSectionBeauty .set-field select:focus {
    border-color: rgba(0, 0, 0, 0.2) !important;
    background: #FFFFFF !important;
    outline: none;
}

/* 颜色选择器 - 优雅样式 */
#setSectionBeauty input[type="color"] {
    width: 44px !important;
    height: 44px !important;
    border-radius: 12px !important;
    border: 2px solid rgba(0, 0, 0, 0.06) !important;
    cursor: pointer;
    transition: transform 0.2s ease;
    padding: 0 !important;
    background: none !important;
}

#setSectionBeauty input[type="color"]:hover {
    transform: scale(1.05);
}

#setSectionBeauty input[type="color"]:active {
    transform: scale(0.95);
}

/* Range滑块 - 精致设计 */
#setSectionBeauty input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    width: 100%;
    height: 4px !important;
    background: rgba(0, 0, 0, 0.08) !important;
    border-radius: 2px !important;
    outline: none;
    padding: 0 !important;
    margin: 12px 0 !important;
}

#setSectionBeauty input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1C1C1E !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: none;
    transition: transform 0.2s ease;
}

#setSectionBeauty input[type="range"]::-webkit-slider-thumb:hover {
    transform: scale(1.1);
}

#setSectionBeauty input[type="range"]::-webkit-slider-thumb:active {
    transform: scale(0.95);
}

#setSectionBeauty input[type="range"]::-moz-range-thumb {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #1C1C1E !important;
    cursor: pointer;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    border: none;
}

/* 复选框 - 现代toggle开关 */
#setSectionBeauty input[type="checkbox"] {
    -webkit-appearance: none;
    appearance: none;
    width: 46px !important;
    height: 26px !important;
    background: rgba(0, 0, 0, 0.1) !important;
    border-radius: 13px !important;
    position: relative;
    cursor: pointer;
    outline: none;
    transition: background 0.3s ease;
    border: none !important;
    box-shadow: none !important;
}

#setSectionBeauty input[type="checkbox"]::after {
    content: '';
    position: absolute;
    top: 2px;
    left: 2px;
    width: 22px;
    height: 22px;
    background: #FFFFFF;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s cubic-bezier(0.4, 0.0, 0.2, 1);
}

#setSectionBeauty input[type="checkbox"]:checked {
    background: #1C1C1E !important;
}

#setSectionBeauty input[type="checkbox"]:checked::after {
    transform: translateX(20px);
}

/* 按钮组样式 */
#setSectionBeauty .set-inline-row {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

/* 小按钮 - 精致风格 */
#setSectionBeauty button[type="button"],
#setSectionBeauty .set-secondary-btn {
    height: 36px !important;
    padding: 0 16px !important;
    background: rgba(255, 255, 255, 0.9) !important;
    border: 1px solid rgba(0, 0, 0, 0.08) !important;
    border-radius: 10px !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    color: #1C1C1E !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    box-shadow: none !important;
}

#setSectionBeauty button[type="button"]:hover,
#setSectionBeauty .set-secondary-btn:hover {
    background: #FFFFFF !important;
    border-color: rgba(0, 0, 0, 0.15) !important;
}

#setSectionBeauty button[type="button"]:active,
#setSectionBeauty .set-secondary-btn:active {
    transform: scale(0.96);
    background: rgba(0, 0, 0, 0.04) !important;
}

/* 保存/应用按钮 - 主要操作按钮 */
#setSectionBeauty .set-save-btn,
#setSectionBeauty .set-action-row button:last-child {
    height: 40px !important;
    padding: 0 24px !important;
    background: #1C1C1E !important;
    border: none !important;
    border-radius: 10px !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    color: #FFFFFF !important;
    cursor: pointer;
    transition: all 0.2s ease;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15) !important;
    letter-spacing: 0.3px;
}

#setSectionBeauty .set-save-btn:hover,
#setSectionBeauty .set-action-row button:last-child:hover {
    background: #2C2C2E !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2) !important;
}

#setSectionBeauty .set-save-btn:active,
#setSectionBeauty .set-action-row button:last-child:active {
    transform: scale(0.96);
    background: #0A0A0A !important;
}

/* 文件上传区域 - 优雅设计 */
#setSectionBeauty .set-field > div[style*="display: flex"] input[type="file"] + div,
#setSectionBeauty .pt-cs-bg-upload {
    width: 100% !important;
    height: 100px !important;
    border: 2px dashed rgba(0, 0, 0, 0.12) !important;
    border-radius: 12px !important;
    background: rgba(255, 255, 255, 0.5) !important;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: #8E8E93 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
}

#setSectionBeauty .set-field > div[style*="display: flex"] input[type="file"] + div:hover,
#setSectionBeauty .pt-cs-bg-upload:hover {
    border-color: rgba(0, 0, 0, 0.25) !important;
    background: rgba(255, 255, 255, 0.8) !important;
}

/* 字段组之间的间距 - 减少空白，更紧凑 */
#setSectionBeauty .set-field {
    margin-bottom: 12px !important;
}

#setSectionBeauty .set-field:last-child {
    margin-bottom: 0;
}

/* 全局字体设置卡片内的字段 - 进一步紧凑 */
#setSectionBeauty .set-card:first-child .set-field {
    margin-bottom: 10px !important;
}

/* App图标尺寸卡片内的字段 */
#setSectionBeauty .set-card:nth-child(2) .set-field {
    margin-bottom: 10px !important;
}

/* 提示文字 - 柔和色彩 */
#setSectionBeauty .set-hint,
#setSectionBeauty .set-field-note,
#setSectionBeauty small {
    font-size: 12px !important;
    font-weight: 400 !important;
    color: #8E8E93 !important;
    line-height: 1.5;
    margin-top: 6px;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
}

/* 操作行按钮组 - 减少顶部间距 */
#setSectionBeauty .set-action-row {
    display: flex;
    gap: 10px;
    align-items: center;
    margin-top: 12px !important;
    padding-top: 12px !important;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
}

#setSectionBeauty .set-action-row button {
    flex: 1;
}

/* 禁用状态 */
#setSectionBeauty button:disabled,
#setSectionBeauty input:disabled,
#setSectionBeauty select:disabled {
    opacity: 0.5 !important;
    cursor: not-allowed !important;
}

/* ===================================
   3. 全局字体优化 - 禁止粗黑字体
   =================================== */

/* 确保所有标题和标签使用适中字重 */
#setSectionBeauty h1,
#setSectionBeauty h2,
#setSectionBeauty h3,
#setSectionBeauty h4,
#setSectionBeauty h5,
#setSectionBeauty h6,
#setSectionBeauty .set-card-title {
    font-weight: 600 !important;
    color: #1C1C1E !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "PingFang SC", sans-serif !important;
}

/* 确保普通文本使用常规字重 */
#setSectionBeauty p,
#setSectionBeauty span,
#setSectionBeauty div {
    font-weight: 400 !important;
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "PingFang SC", sans-serif !important;
}

/* ===================================
   4. 响应式优化
   =================================== */

@media (max-width: 768px) {
    .pt-mask-editor-footer {
        padding: 12px 16px 16px;
        gap: 10px;
    }
    
    .pt-mask-btn {
        height: 44px !important;
        font-size: 14px !important;
    }
    
    #setSectionBeauty .set-card {
        padding: 16px !important;
        border-radius: 14px !important;
    }
    
    #setSectionBeauty .set-field input,
    #setSectionBeauty .set-field select {
        height: 42px !important;
        font-size: 16px !important;
    }
}

/* ===================================
   5. 微交互动画
   =================================== */

#setSectionBeauty *,
.pt-mask-btn {
    -webkit-tap-highlight-color: transparent;
}

/* 焦点状态 - 优雅的视觉反馈 */
#setSectionBeauty input:focus,
#setSectionBeauty select:focus,
#setSectionBeauty button:focus {
    outline: none;
}

/* 平滑过渡 */
#setSectionBeauty * {
    transition-timing-function: cubic-bezier(0.4, 0.0, 0.2, 1);
}
