/**
 * 用户自助注销插件 - 前端样式
 *
 * @package User_Self_Delete
 */

/* ========================================
   容器和布局
   ======================================== */

.usd-delete-form-wrapper {
    max-width: 800px;
    margin: 40px auto;
    padding: 0 20px;
}

.usd-delete-form-container {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

/* ========================================
   警告提示框
   ======================================== */

.usd-warning-box {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border-left: 5px solid #ffc107;
    padding: 25px;
    margin-bottom: 30px;
    display: flex;
    gap: 20px;
    align-items: flex-start;
}

.usd-warning-icon {
    font-size: 48px;
    line-height: 1;
    flex-shrink: 0;
}

.usd-warning-content h3 {
    margin: 0 0 15px 0;
    color: #856404;
    font-size: 20px;
    font-weight: 600;
}

.usd-warning-content p {
    margin: 0 0 10px 0;
    color: #856404;
    line-height: 1.6;
}

.usd-warning-content ul {
    margin: 15px 0;
    padding-left: 20px;
    color: #856404;
}

.usd-warning-content ul li {
    margin-bottom: 8px;
    line-height: 1.5;
}

.usd-warning-note {
    font-weight: 600;
    color: #d32f2f !important;
    margin-top: 15px !important;
}

/* ========================================
   用户信息区域
   ======================================== */

.usd-user-info {
    padding: 25px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.usd-user-info h3 {
    margin: 0 0 20px 0;
    color: #333;
    font-size: 18px;
    font-weight: 600;
}

.usd-info-table {
    width: 100%;
    border-collapse: collapse;
}

.usd-info-table tr {
    border-bottom: 1px solid #e9ecef;
}

.usd-info-table tr:last-child {
    border-bottom: none;
}

.usd-info-label {
    padding: 12px 0;
    font-weight: 600;
    color: #666;
    width: 150px;
}

.usd-info-value {
    padding: 12px 0;
    color: #333;
}

/* ========================================
   表单样式
   ======================================== */

.usd-form {
    padding: 30px 25px;
}

.usd-form-group {
    margin-bottom: 25px;
}

.usd-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.usd-required {
    color: #dc3545;
    margin-left: 3px;
}

.usd-input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e0e0e0;
    border-radius: 6px;
    font-size: 15px;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.usd-input:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.usd-input::placeholder {
    color: #999;
}

.usd-field-description {
    margin: 8px 0 0 0;
    font-size: 13px;
    color: #666;
    line-height: 1.5;
}

/* ========================================
   复选框样式
   ======================================== */

.usd-checkbox-label {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
}

.usd-checkbox {
    margin: 4px 12px 0 0;
    width: 18px;
    height: 18px;
    cursor: pointer;
    flex-shrink: 0;
}

.usd-checkbox-text {
    flex: 1;
    line-height: 1.6;
    color: #333;
}

/* ========================================
   消息提示
   ======================================== */

.usd-message {
    padding: 15px 20px;
    border-radius: 6px;
    margin-bottom: 25px;
    font-size: 14px;
    line-height: 1.5;
}

.usd-message-success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.usd-message-success-full {
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    border: 2px solid #28a745;
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(40, 167, 69, 0.2);
}

.usd-success-container {
    display: flex;
    align-items: center;
    gap: 20px;
    justify-content: center;
}

.usd-success-icon {
    font-size: 48px;
    line-height: 1;
    animation: usd-success-bounce 0.6s ease-out;
}

.usd-success-content h3 {
    margin: 0 0 10px 0;
    color: #155724;
    font-size: 24px;
    font-weight: 700;
}

.usd-success-content p {
    margin: 0 0 8px 0;
    color: #155724;
    font-size: 16px;
    line-height: 1.5;
}

.usd-redirect-notice {
    margin-top: 15px !important;
    font-size: 14px !important;
    opacity: 0.8;
}

#usd-countdown {
    font-weight: 700;
    font-size: 18px;
    color: #28a745;
}

@keyframes usd-success-bounce {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

.usd-message-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.usd-message-error {
    background: linear-gradient(135deg, #f8d7da 0%, #f5c6cb 100%);
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 16px rgba(220, 53, 69, 0.15);
    font-weight: 600;
}

/* ========================================
   全屏成功消息
   ======================================== */

.usd-success-fullscreen {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: linear-gradient(135deg, #d4edda 0%, #c3e6cb 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    animation: usd-fadeIn 0.5s ease-out;
}

.usd-success-content-fullscreen {
    text-align: center;
    max-width: 600px;
    padding: 40px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(10px);
}

.usd-success-icon-fullscreen {
    font-size: 80px;
    line-height: 1;
    margin-bottom: 20px;
    animation: usd-success-bounce 0.8s ease-out;
}

.usd-success-content-fullscreen h1 {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 32px;
    font-weight: 700;
}

.usd-success-content-fullscreen p {
    margin: 0 0 15px 0;
    color: #155724;
    font-size: 18px;
    line-height: 1.6;
}

.usd-redirect-notice-fullscreen {
    margin-top: 25px !important;
    font-size: 16px !important;
    opacity: 0.8;
    font-weight: 500;
}

#usd-countdown {
    font-weight: 700;
    font-size: 24px;
    color: #28a745;
}

@keyframes usd-fadeIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.usd-notice {
    padding: 15px 20px;
    border-radius: 6px;
    margin: 20px 0;
    line-height: 1.6;
}

.usd-notice-info {
    background: #d1ecf1;
    border: 1px solid #bee5eb;
    color: #0c5460;
}

.usd-notice-warning {
    background: #fff3cd;
    border: 1px solid #ffeaa7;
    color: #856404;
}

.usd-notice-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.usd-notice a {
    color: inherit;
    text-decoration: underline;
    font-weight: 600;
}

/* ========================================
   按钮样式
   ======================================== */

.usd-form-actions {
    display: flex;
    gap: 15px;
    margin-top: 30px;
    padding-top: 25px;
    border-top: 1px solid #e9ecef;
}

.usd-btn {
    padding: 14px 30px;
    border: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    line-height: 1;
}

.usd-btn-danger {
    background: linear-gradient(135deg, #dc3545 0%, #c82333 100%);
    color: #ffffff;
    box-shadow: 0 4px 12px rgba(220, 53, 69, 0.3);
}

.usd-btn-danger:hover {
    background: linear-gradient(135deg, #c82333 0%, #bd2130 100%);
    box-shadow: 0 6px 16px rgba(220, 53, 69, 0.4);
    transform: translateY(-2px);
}

.usd-btn-danger:disabled {
    background: #ccc;
    cursor: not-allowed;
    box-shadow: none;
    transform: none;
}

.usd-btn-secondary {
    background: #6c757d;
    color: #ffffff;
}

.usd-btn-secondary:hover {
    background: #5a6268;
    color: #ffffff;
    transform: translateY(-2px);
}

.usd-btn-loading {
    display: none;
}

/* ========================================
   加载动画
   ======================================== */

.usd-spinner {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid rgba(255, 255, 255, 0.3);
    border-top-color: #ffffff;
    border-radius: 50%;
    animation: usd-spin 0.8s linear infinite;
}

@keyframes usd-spin {
    to {
        transform: rotate(360deg);
    }
}

/* ========================================
   密码显示/隐藏按钮
   ======================================== */

/* 密码输入容器样式 */
.usd-password-input-container {
    position: relative;
    display: block;
    width: 100%;
}

.usd-password-toggle {
    position: absolute;
    right: 12px;
    top: 0;
    bottom: 0;
    background: none;
    border: none;
    font-size: 20px;
    cursor: pointer;
    padding: 5px;
    line-height: 1;
    opacity: 0.6;
    transition: all 0.3s ease;
    z-index: 10;
    color: #667eea;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: auto 0; /* 垂直居中 */
    height: 24px; /* 固定高度等于图标高度 */
}

.usd-password-toggle svg {
    width: 24px;
    height: 24px;
    color: inherit;
}

.usd-password-toggle:hover {
    opacity: 1;
    background-color: rgba(102, 126, 234, 0.1);
    color: #5a67d8;
}

/* ========================================
   帮助文本
   ======================================== */

.usd-help-text {
    margin-top: 30px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 6px;
    border-left: 4px solid #17a2b8;
}

.usd-help-text p {
    margin: 0;
    color: #495057;
    line-height: 1.6;
}

.usd-help-text a {
    color: #17a2b8;
    text-decoration: none;
    font-weight: 600;
}

.usd-help-text a:hover {
    text-decoration: underline;
}

/* ========================================
   流程图样式
   ======================================== */

.usd-flow-container {
    max-width: 900px;
    margin: 40px auto;
    padding: 0 20px;
}

.usd-flow-progress {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 50px;
    position: relative;
}

/* 移动设备上的流程步骤间距和布局优化 */
@media (max-width: 768px) {
    .usd-delete-form-wrapper {
        padding: 0 10px;
    }
    
    .usd-flow-container {
        margin-bottom: 20px;
    }
    
    .usd-flow-progress {
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .usd-flow-step {
        margin-bottom: 5px;
        border-radius: 8px;
        position: relative;
    }
    
    .usd-flow-step:last-child {
        margin-bottom: 0;
    }
    
    .usd-flow-panel {
        margin-top: 15px;
    }
}

.usd-flow-progress::before {
    content: '';
    position: absolute;
    top: 25px;
    left: 50px;
    right: 50px;
    height: 3px;
    background: #e0e0e0;
    z-index: 1;
}

.usd-flow-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    position: relative;
    z-index: 2;
    transition: all 0.3s ease;
}

/* 移动设备上的步骤过渡动画 */
@media (max-width: 768px) {
    .usd-flow-step {
        transition: all 0.3s ease;
        transform-origin: center;
    }
    
    .usd-flow-step.active {
        animation: usdStepActive 0.5s ease;
    }
    
    .usd-flow-step.completed {
        animation: usdStepCompleted 0.5s ease;
    }
    
    @keyframes usdStepActive {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.05);
        }
        100% {
            transform: scale(1);
        }
    }
    
    @keyframes usdStepCompleted {
        0% {
            transform: scale(1);
        }
        50% {
            transform: scale(1.03);
        }
        100% {
            transform: scale(1);
        }
    }
}

.usd-step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: #e0e0e0;
    color: #666;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

/* 移动设备上的步骤图标优化 */
@media (max-width: 768px) {
    .usd-step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
        box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
    }
    
    .usd-flow-step.active .usd-step-number {
        box-shadow: 0 3px 8px rgba(102, 126, 234, 0.3);
    }
    
    .usd-flow-step.completed .usd-step-number {
        box-shadow: 0 3px 8px rgba(40, 167, 69, 0.3);
    }
}

.usd-step-title {
    font-size: 14px;
    color: #666;
    text-align: center;
    font-weight: 500;
}

/* 移动设备上的步骤内容优化 */
@media (max-width: 768px) {
    .usd-step-title {
        font-size: 15px;
        margin-bottom: 0;
        line-height: 1.4;
    }
    
    .usd-step-number {
        display: flex;
        align-items: center;
        justify-content: center;
        font-weight: bold;
    }
    
    .usd-flow-step.active .usd-step-title {
        color: #667eea;
    }
    
    .usd-flow-step.completed .usd-step-title {
        color: #28a745;
    }
}

.usd-flow-step.active .usd-step-number {
    background: #667eea;
    color: white;
    transform: scale(1.1);
}

.usd-flow-step.active .usd-step-title {
    color: #667eea;
    font-weight: 600;
}

.usd-flow-step.completed .usd-step-number {
    background: #28a745;
    color: white;
}

/* 移动设备上的状态指示器 */
@media (max-width: 768px) {
    .usd-flow-step.active::after {
        content: "";
        position: absolute;
        right: 15px;
        top: 50%;
        transform: translateY(-50%);
        width: 10px;
        height: 10px;
        border-radius: 50%;
        background: #667eea;
        animation: usdPulse 2s infinite;
    }
    
    .usd-flow-step.completed::after {
    content: "✓";
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #28a745;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
}

/* 移动设备上的状态指示器位置优化 */
@media (max-width: 768px) {
    .usd-flow-step.active::after,
    .usd-flow-step.completed::after {
        right: 10px;
    }
    
    .usd-flow-step.completed::after {
        width: 28px;
        height: 28px;
        font-size: 16px;
    }
}
    
    @keyframes usdPulse {
    0% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0.7);
    }
    70% {
        box-shadow: 0 0 0 10px rgba(102, 126, 234, 0);
    }
    100% {
        box-shadow: 0 0 0 0 rgba(102, 126, 234, 0);
    }
}

/* 移动设备上的状态指示器动画优化 */
@media (max-width: 768px) {
    .usd-flow-step.active::after {
        animation: usdPulse 1.5s infinite;
    }
    
    .usd-flow-step.completed::after {
        animation: usdCheckmark 0.5s ease;
    }
    
    @keyframes usdCheckmark {
        0% {
            transform: translateY(-50%) scale(0);
            opacity: 0;
        }
        50% {
            transform: translateY(-50%) scale(1.2);
            opacity: 1;
        }
        100% {
            transform: translateY(-50%) scale(1);
            opacity: 1;
        }
    }
}
}

.usd-flow-step.completed .usd-step-title {
    color: #28a745;
}

.usd-flow-content {
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    overflow: hidden;
}

.usd-flow-panel {
    display: none;
    padding: 40px;
    animation: usdSlideIn 0.4s ease-out;
}

/* 移动设备上的内容面板滚动优化 */
@media (max-width: 768px) {
    .usd-flow-panel {
        padding: 25px 20px;
        margin-bottom: 20px;
        overflow-x: hidden;
        max-width: 100%;
        box-sizing: border-box;
    }
    
    .usd-panel-content {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
    
    .usd-form-table {
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
}

/* 移动设备上的面板过渡效果 */
@media (max-width: 768px) {
    .usd-flow-panel.active {
        animation: usdPanelSlideIn 0.4s ease forwards;
    }
    
    @keyframes usdPanelSlideIn {
        0% {
            opacity: 0;
            visibility: hidden;
            transform: translateY(20px);
        }
        100% {
            opacity: 1;
            visibility: visible;
            transform: translateY(0);
        }
    }
}

.usd-flow-panel.active {
    display: block;
}

@keyframes usdSlideIn {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.usd-panel-header {
    text-align: center;
    margin-bottom: 30px;
}

.usd-panel-title {
    font-size: 24px;
    font-weight: 600;
    color: #333;
    margin-bottom: 10px;
}

.usd-panel-subtitle {
    font-size: 16px;
    color: #666;
    line-height: 1.5;
}

.usd-panel-content {
    margin-bottom: 30px;
}

.usd-warning-card {
    background: linear-gradient(135deg, #fff3cd 0%, #ffeaa7 100%);
    border: 1px solid #ffc107;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.usd-warning-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.usd-warning-icon-lg {
    font-size: 32px;
    margin-right: 15px;
}

.usd-warning-title {
    font-size: 18px;
    font-weight: 600;
    color: #856404;
    margin: 0;
}

.usd-warning-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.usd-warning-list li {
    padding: 8px 0;
    color: #856404;
    position: relative;
    padding-left: 25px;
}

.usd-warning-list li::before {
    content: '⚠️';
    position: absolute;
    left: 0;
    top: 8px;
}

.usd-user-card {
    background: #f8f9fa;
    border-radius: 8px;
    padding: 25px;
    margin-bottom: 25px;
}

.usd-user-card-title {
    font-size: 18px;
    font-weight: 600;
    color: #333;
    margin-bottom: 20px;
}

.usd-user-info-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.usd-info-item {
    display: flex;
    flex-direction: column;
}

.usd-info-label {
    font-size: 12px;
    color: #666;
    margin-bottom: 5px;
    font-weight: 500;
}

.usd-info-value {
    font-size: 16px;
    color: #333;
    font-weight: 500;
}

.usd-form-group-modern {
    margin-bottom: 20px;
}

.usd-input-modern {
    width: 100%;
    padding: 15px 20px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    font-size: 16px;
    transition: all 0.3s ease;
    background: white;
}

/* 为密码输入框添加右侧内边距，为切换按钮留出空间 */
#usd-password.usd-input-modern {
    padding-right: 50px;
}

.usd-input-modern:focus {
    outline: none;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.usd-input-modern.error {
    border-color: #dc3545;
}

.usd-checkbox-modern {
    display: flex;
    align-items: flex-start;
    cursor: pointer;
    user-select: none;
    padding: 15px;
    background: #f8f9fa;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.usd-checkbox-modern:hover {
    background: #e9ecef;
}

.usd-checkbox-modern input[type="checkbox"] {
    margin: 3px 15px 0 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    flex-shrink: 0;
}

.usd-checkbox-text-modern {
    flex: 1;
    color: #333;
    line-height: 1.5;
}

.usd-flow-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.usd-btn-modern {
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 48px; /* 触摸友好的最小高度 */
    position: relative;
    overflow: hidden;
}

.usd-btn-modern:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.usd-btn-modern:disabled {
    opacity: 0.6;
    cursor: not-allowed;
    transform: none;
}

.usd-btn-primary {
    background: #667eea;
    color: white;
}

.usd-btn-primary:hover {
    background: #5a67d8;
}

.usd-btn-danger {
    background: #dc3545;
    color: white;
}

.usd-btn-danger:hover {
    background: #c82333;
}

.usd-btn-secondary {
    background: #6c757d;
    color: white;
}

.usd-btn-secondary:hover {
    background: #5a6268;
}

.usd-btn-outline {
    background: transparent;
    border: 2px solid #667eea;
    color: #667eea;
}

.usd-btn-outline:hover {
    background: #667eea;
    color: white;
}

.usd-btn-link {
    background: none;
    border: none;
    color: #667eea;
    padding: 10px 20px;
}

.usd-btn-link:hover {
    color: #5a67d8;
    background: rgba(102, 126, 234, 0.1);
}

.usd-final-confirm {
    background: #fff5f5;
    border: 2px solid #dc3545;
    border-radius: 8px;
    padding: 30px;
    text-align: center;
    margin-bottom: 25px;
}

.usd-final-confirm-title {
    font-size: 20px;
    font-weight: 600;
    color: #dc3545;
    margin-bottom: 15px;
}

.usd-final-confirm-text {
    font-size: 16px;
    color: #666;
    margin-bottom: 20px;
}

.usd-final-input {
    max-width: 300px;
    margin: 0 auto 20px;
}

.usd-error-message {
    color: #dc3545;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.usd-success-message {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 20px;
    text-align: center;
}

.usd-loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.usd-loading-overlay.active {
    opacity: 1;
    visibility: visible;
}

.usd-loading-content {
    text-align: center;
}

.usd-loading-spinner {
    width: 50px;
    height: 50px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: usdSpin 1s linear infinite;
    margin: 0 auto 20px;
}

@keyframes usdSpin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.usd-loading-text {
    color: #666;
    font-size: 16px;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .usd-flow-progress {
        flex-direction: column;
        gap: 20px;
        margin-bottom: 30px;
        padding: 0 10px;
    }
    
    .usd-flow-progress::before {
        display: none;
    }
    
    .usd-flow-step {
    flex-direction: row;
    justify-content: flex-start;
    align-items: center;
    width: 100%;
    padding: 15px;
    border-radius: 8px;
    background: #f8f9fa;
    border: 2px solid transparent;
    transition: all 0.3s ease;
}

/* 移动设备上的触摸区域优化 */
@media (max-width: 768px) {
    .usd-flow-step {
        min-height: 60px;
        padding: 15px;
        position: relative;
    }
    
    .usd-flow-step::before {
        content: "";
        position: absolute;
        top: -10px;
        left: -10px;
        right: -10px;
        bottom: -10px;
        z-index: -1;
    }
    
    .usd-step-content {
    flex: 1;
    min-width: 0;
    padding-right: 40px;
}

/* 移动设备上的内容溢出处理 */
@media (max-width: 768px) {
    .usd-step-title {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 100%;
    }
    
    .usd-step-content {
        overflow: hidden;
    }
    
    .usd-flow-panel {
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* 移动设备上的高对比度模式支持 */
@media (max-width: 768px) {
    @media (prefers-contrast: high) {
        .usd-flow-step {
            border-width: 3px;
        }
        
        .usd-flow-step.active {
            border-color: #0056b3;
            background: #e7f1ff;
        }
        
        .usd-flow-step.completed {
            border-color: #0d5d0d;
            background: #e7f5e7;
        }
        
        .usd-step-number {
            border: 2px solid #333;
        }
        
        .usd-flow-step.active .usd-step-number {
            border-color: #0056b3;
            color: #fff;
        }
        
        .usd-flow-step.completed .usd-step-number {
    border-color: #0d5d0d;
    color: #fff;
}
}
}

/* 移动设备上的暗黑模式支持 */
@media (max-width: 768px) {
    @media (prefers-color-scheme: dark) {
        .usd-flow-step {
            background: #2d3748;
            border-color: #4a5568;
            color: #e2e8f0;
        }
        
        .usd-flow-step.active {
            background: #2c5282;
            border-color: #4299e1;
        }
        
        .usd-flow-step.completed {
            background: #22543d;
            border-color: #38a169;
        }
        
        .usd-step-number {
            background: #4a5568;
            color: #e2e8f0;
        }
        
        .usd-flow-step.active .usd-step-number {
            background: #4299e1;
            color: #fff;
        }
        
        .usd-flow-step.completed .usd-step-number {
            background: #38a169;
            color: #fff;
        }
        
        .usd-step-title {
            color: #e2e8f0;
        }
        
        .usd-flow-panel {
            background: #2d3748;
            color: #e2e8f0;
        }
    }
    
    .usd-flow-step.active {
        background: #f0f4ff;
        border-color: #667eea;
    }
    
    .usd-flow-step.completed {
        background: #f0fff4;
        border-color: #28a745;
    }
    
    .usd-step-number {
        width: 40px;
        height: 40px;
        font-size: 18px;
        margin-bottom: 0;
        margin-right: 15px;
        flex-shrink: 0;
    }
    
    .usd-step-title {
        font-size: 16px;
        text-align: left;
        font-weight: 600;
    }
}

/* 移动设备上的流程步骤布局 */
@media (max-width: 768px) {
    .usd-flow-panel {
        padding: 25px 20px;
    }
    
    .usd-flow-actions {
        flex-direction: column;
        gap: 15px;
    }
    
    .usd-btn-modern {
        width: 100%;
    }
    
    .usd-panel-title {
        font-size: 22px;
    }
    
    .usd-panel-subtitle {
        font-size: 15px;
    }
}

/* ========================================
   响应式设计
   ======================================== */

@media (max-width: 768px) {
    .usd-delete-form-wrapper {
        margin: 20px auto;
        padding: 0 15px;
    }

    .usd-warning-box {
        flex-direction: column;
        padding: 20px;
        gap: 15px;
    }

    .usd-warning-icon {
        font-size: 36px;
    }

    .usd-user-info {
        padding: 20px 15px;
    }

    .usd-form {
        padding: 25px 15px;
    }

    .usd-info-table {
        font-size: 14px;
    }

    .usd-info-label {
        width: 120px;
    }

    .usd-form-actions {
        flex-direction: column;
    }

    .usd-btn {
        width: 100%;
    }
}

@media (max-width: 480px) {
    .usd-flow-progress {
        gap: 15px;
        margin-bottom: 25px;
        padding: 0 5px;
    }
    
    .usd-flow-step {
        padding: 12px;
    }
    
    .usd-step-number {
        width: 36px;
        height: 36px;
        font-size: 16px;
        margin-right: 12px;
    }
    
    .usd-step-title {
        font-size: 15px;
    }
    
    .usd-flow-panel {
        padding: 20px 15px;
    }
    
    .usd-panel-title {
        font-size: 20px;
    }
    
    .usd-panel-subtitle {
        font-size: 14px;
    }
    
    .usd-info-table tr {
        display: flex;
        flex-direction: column;
    }

    .usd-info-label {
        width: 100%;
        padding-bottom: 5px;
    }

    .usd-info-value {
        padding-top: 0;
        padding-bottom: 15px;
    }
    
    .usd-user-info-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    /* 在小屏幕上使用更紧凑的布局 */
    .usd-info-item {
        display: flex;
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        padding: 10px 0;
        border-bottom: 1px solid #eee;
    }
    
    .usd-info-item:last-child {
        border-bottom: none;
    }
    
    .usd-info-label {
        font-size: 13px;
        color: #666;
        margin-bottom: 0;
        font-weight: 500;
        flex: 0 0 40%;
    }
    
    .usd-info-value {
        font-size: 14px;
        color: #333;
        font-weight: 500;
        flex: 0 0 60%;
        text-align: right;
    }
    
    .usd-user-card {
        padding: 20px 15px;
    }
}

/* 移动设备上的减少动画效果支持 */
@media (max-width: 768px) and (prefers-reduced-motion: reduce) {
    .usd-flow-step,
    .usd-step-number,
    .usd-flow-panel,
    .usd-flow-step.active::after,
    .usd-flow-step.completed::after {
        animation: none !important;
        transition: none !important;
    }
}

/* ========================================
   打印样式
   ======================================== */

@media print {
    .usd-form-actions,
    .usd-btn {
        display: none;
    }
}
}
}
}