/**
 * 独立前端项目样式文件
 * 基于原有设计，优化移动端适配
 */

/* 基础样式重置 */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    background: linear-gradient(135deg, #f5f7fa 0%, #f0f4f8 100%);
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    line-height: 1.6;
    min-height: 100vh;
}

/* 头部样式 */
.header {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 24px 0;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    position: relative;
    overflow: hidden;
}

.header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: radial-gradient(circle at 30% 20%, rgba(255,255,255,0.12) 0%, transparent 60%),
                radial-gradient(circle at 80% 80%, rgba(255,255,255,0.08) 0%, transparent 50%);
    pointer-events: none;
}

.header h1 {
    margin: 0 0 8px 0;
    font-size: 26px;
    font-weight: 600;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.header p {
    margin: 0;
    font-size: 15px;
    opacity: 0.9;
    position: relative;
    z-index: 1;
    text-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.config-info {
    margin-top: 10px;
    opacity: 0.8;
}

.config-info small {
    font-size: 12px;
    background: rgba(255,255,255,0.1);
    padding: 4px 8px;
    border-radius: 12px;
    backdrop-filter: blur(10px);
}

/* 主容器 */
.container {
    max-width: 900px;
    margin: 20px auto;
    padding: 0 20px;
}

/* 卡片样式 */
.card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    border: 1px solid rgba(0,0,0,0.04);
    transition: all 0.3s ease;
}

.card:hover {
    box-shadow: 0 4px 24px rgba(0,0,0,0.12);
    transform: translateY(-2px);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 20px;
    color: #333;
    border-bottom: 2px solid #f0f0f0;
    padding-bottom: 10px;
}

/* 标签页容器 */
.tabs-container {
    background: white;
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(0,0,0,0.06);
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.04);
}

/* 标签页标签样式 */
.tab-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.tab-label .el-icon {
    font-size: 16px;
    transition: transform 0.3s ease;
}

.el-tabs__item:hover .tab-label .el-icon {
    transform: scale(1.1);
}

/* 标签页内容区域 */
.tab-content {
    padding: 24px;
    min-height: 400px;
}

/* 功能卡片 */
.feature-card {
    background: white;
    border-radius: 12px;
    padding: 0;
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: all 0.3s ease;
    overflow: hidden;
}

.feature-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
    border-color: rgba(102, 126, 234, 0.2);
}

/* 卡片头部 */
.card-header {
    padding: 24px 24px 16px 24px;
    text-align: center;
    background: linear-gradient(135deg, #f8f9ff 0%, #f0f4ff 100%);
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.card-icon {
    width: 56px;
    height: 56px;
    margin: 0 auto 16px auto;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    transition: all 0.3s ease;
}

.redeem-icon {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.3);
}

.unbind-icon {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.3);
}

.batch-icon {
    background: linear-gradient(135deg, #ffecd2 0%, #fcb69f 100%);
    color: #8b4513;
    box-shadow: 0 4px 16px rgba(255, 183, 107, 0.3);
}

.help-icon {
    background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(79, 172, 254, 0.3);
}

.cleanup-icon {
    background: linear-gradient(135deg, #ffa726 0%, #ff7043 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(255, 167, 38, 0.3);
}

.feature-card:hover .card-icon {
    transform: scale(1.05);
}

.card-title {
    font-size: 20px;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 6px;
}

.card-desc {
    font-size: 14px;
    color: #6b7280;
    margin-bottom: 0;
    line-height: 1.4;
}

/* 卡片主体 */
.card-body {
    padding: 24px;
}

/* 输入框样式 */
.input-field {
    margin-bottom: 16px;
}

.input-field .el-input__wrapper {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fafbfc;
    transition: all 0.3s ease;
    padding: 12px 16px;
    height: 48px;
}

.input-field .el-input__wrapper:hover {
    background: white;
    border-color: #d1d5db;
}

.input-field .el-input__wrapper.is-focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.input-field .el-input__inner {
    font-size: 15px;
    color: #1f2937;
    font-weight: 400;
}

/* 按钮样式 */
.action-button {
    width: 100%;
    height: 48px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 500;
    border: none;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

.action-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.action-button:active {
    transform: translateY(0);
}

.unbind-button {
    background: linear-gradient(135deg, #f093fb 0%, #f5576c 100%);
    box-shadow: 0 2px 8px rgba(240, 147, 251, 0.3);
}

.unbind-button:hover {
    box-shadow: 0 4px 16px rgba(240, 147, 251, 0.4);
}

/* 结果面板样式 */
.result-panel {
    margin-top: 32px;
    border-radius: 16px;
    padding: 32px;
    text-align: center;
    transition: all 0.4s ease;
    backdrop-filter: blur(10px);
}

.success-panel {
    background: linear-gradient(145deg, #f0fdf4 0%, #ecfdf5 100%);
    border: 2px solid rgba(34, 197, 94, 0.2);
    box-shadow: 0 8px 32px rgba(34, 197, 94, 0.1);
}

.error-panel {
    background: linear-gradient(145deg, #fef2f2 0%, #fecaca 100%);
    border: 2px solid rgba(239, 68, 68, 0.2);
    box-shadow: 0 8px 32px rgba(239, 68, 68, 0.1);
}

.result-icon {
    margin-bottom: 16px;
    animation: bounceIn 0.6s ease;
}

.result-title {
    font-size: 20px;
    font-weight: 700;
    color: #1f2937;
    margin-bottom: 12px;
}

.result-message {
    font-size: 16px;
    color: #4b5563;
    margin-bottom: 16px;
    line-height: 1.6;
}

.warranty-info {
    margin: 16px 0;
}

.next-step {
    padding: 16px;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    font-size: 16px;
    color: #1f2937;
}

/* 状态面板 */
.status-panel {
    margin-top: 32px;
}

.binding-info .el-descriptions {
    background: rgba(248, 250, 252, 0.8);
    border-radius: 12px;
    overflow: hidden;
    backdrop-filter: blur(10px);
}

.code-display {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 8px 16px;
    border-radius: 8px;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 1px;
}

.unbind-actions {
    margin-top: 24px;
    text-align: center;
}

.unbind-tips {
    margin-top: 16px;
}

/* 帮助内容样式 */
.help-content {
    text-align: left;
    line-height: 1.8;
    font-size: 16px;
    color: #374151;
}

.help-content h1, .help-content h2, .help-content h3 {
    color: #1f2937;
    margin-top: 24px;
    margin-bottom: 12px;
}

.help-content img {
    max-width: 100%;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.1);
    margin: 16px 0;
}

.default-help {
    text-align: left;
}

.help-section {
    margin-bottom: 28px;
    padding: 24px;
    background: rgba(248, 250, 252, 0.6);
    border-radius: 12px;
    border-left: 4px solid #667eea;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

.help-section:hover {
    background: rgba(248, 250, 252, 0.8);
    transform: translateX(4px);
}

.help-section h3 {
    color: #1f2937;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 12px;
    margin-top: 0;
}

.help-section p, .help-section ol {
    color: #4b5563;
    font-size: 15px;
    line-height: 1.7;
    margin-bottom: 8px;
}

.help-section ol {
    padding-left: 20px;
}

.help-section li {
    margin-bottom: 8px;
}

.loading-help {
    padding: 32px;
}

@keyframes bounceIn {
    0% {
        opacity: 0;
        transform: scale(0.3);
    }
    50% {
        opacity: 1;
        transform: scale(1.05);
    }
    70% {
        transform: scale(0.9);
    }
    100% {
        opacity: 1;
        transform: scale(1);
    }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 页面加载动画 */
.feature-card {
    animation: fadeInUp 0.6s ease-out;
}

.feature-card:nth-child(1) { animation-delay: 0.1s; }
.feature-card:nth-child(2) { animation-delay: 0.2s; }
.feature-card:nth-child(3) { animation-delay: 0.3s; }

.tab-label {
    animation: slideIn 0.3s ease-out;
}

/* Element Plus 组件样式覆盖 */
.el-form-item__label {
    font-weight: 500;
    color: #606266;
}

/* 标签页增强样式 */
.el-tabs__header {
    margin: 0;
    border-bottom: 1px solid #f0f0f0;
    background: #fafbfc;
}

.el-tabs__nav-wrap {
    padding: 0 20px;
}

.el-tabs__item {
    padding: 16px 20px !important;
    font-weight: 500;
    color: #6b7280;
    transition: all 0.3s ease;
    border-bottom: 2px solid transparent;
}

.el-tabs__item:hover {
    color: #667eea;
    background: rgba(102, 126, 234, 0.04);
}

.el-tabs__item.is-active {
    color: #667eea;
    background: white;
    border-bottom-color: #667eea;
    font-weight: 600;
}

.el-tabs__active-bar {
    display: none;
}

/* Element Plus组件重写 */
.el-button {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.3s ease;
}

.el-tag {
    border-radius: 6px;
    font-weight: 500;
}

.el-alert {
    border-radius: 8px;
    border: none;
}

.el-descriptions {
    border-radius: 8px;
}

.el-descriptions__body {
    background: white;
}

.el-descriptions__table {
    border-radius: 8px;
    overflow: hidden;
}

/* 滚动条美化 */
.el-tabs__content {
    overflow: auto;
}

/* 骨架屏样式 */
.el-skeleton__item {
    border-radius: 6px;
}

.el-tabs__header {
    margin-bottom: 0;
}

.el-tabs__content {
    padding: 20px;
}

.el-descriptions {
    margin-top: 10px;
}

.el-descriptions__body .el-descriptions__table {
    border-radius: 8px;
    overflow: hidden;
}

/* 响应式设计 */
@media (max-width: 768px) {
    .container {
        margin: 16px auto;
        padding: 0 16px;
    }
    
    .header {
        padding: 20px 0;
    }
    
    .header h1 {
        font-size: 22px;
    }
    
    .header p {
        font-size: 14px;
    }
    
    .tabs-container {
        border-radius: 12px;
    }
    
    .tab-content {
        padding: 20px 16px;
    }
    
    .card-header {
        padding: 20px 20px 16px 20px;
    }
    
    .card-body {
        padding: 20px;
    }
    
    .card-icon {
        width: 48px;
        height: 48px;
        margin-bottom: 12px;
    }
    
    .card-title {
        font-size: 18px;
        margin-bottom: 4px;
    }
    
    .card-desc {
        font-size: 13px;
    }
    
    .input-field .el-input__wrapper {
        padding: 10px 14px;
        height: 44px;
    }
    
    .action-button {
        height: 44px;
        font-size: 14px;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 12px;
    }
    
    .header h1 {
        font-size: 20px;
    }
    
    .header p {
        font-size: 13px;
    }
    
    .tab-content {
        padding: 16px 12px;
    }
    
    .card-header {
        padding: 16px 16px 12px 16px;
    }
    
    .card-body {
        padding: 16px;
    }
    
    .card-icon {
        width: 44px;
        height: 44px;
    }
    
    .card-title {
        font-size: 16px;
    }
    
    .card-desc {
        font-size: 12px;
    }
    
    .result-panel {
        padding: 20px;
        margin-top: 20px;
    }
}

/* 加载动画 */
@keyframes pulse {
    0% {
        opacity: 1;
    }
    50% {
        opacity: 0.5;
    }
    100% {
        opacity: 1;
    }
}

.loading-text {
    animation: pulse 1.5s ease-in-out infinite;
}

/* 自定义滚动条 */
::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 打印样式 */
@media print {
    .header {
        background: #667eea !important;
        -webkit-print-color-adjust: exact;
        color-adjust: exact;
    }
    
    .card {
        box-shadow: none;
        border: 1px solid #ddd;
    }
    
    .el-button {
        display: none;
    }
}

/* 批量兑换特殊样式 */
.batch-input-section {
    margin-bottom: 24px;
}

.input-group {
    margin-bottom: 16px;
}

.input-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
    font-weight: 500;
    color: #374151;
    font-size: 14px;
}

.count-badge {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 600;
    margin-left: auto;
}

.batch-textarea .el-textarea__inner {
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    background: #fafbfc;
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
    min-height: 160px;
    transition: all 0.3s ease;
}

.batch-textarea .el-textarea__inner:hover {
    background: white;
    border-color: #d1d5db;
}

.batch-textarea .el-textarea__inner:focus {
    background: white;
    border-color: #667eea;
    box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
}

.validation-message {
    margin: 16px 0;
}

.batch-actions {
    margin: 24px 0;
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.batch-actions .el-button {
    min-width: 140px;
}

.batch-progress-section {
    margin-top: 32px;
    padding: 24px;
    background: linear-gradient(145deg, #f8fafe 0%, #f0f4ff 100%);
    border-radius: 16px;
    border: 1px solid rgba(102, 126, 234, 0.1);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    flex-wrap: wrap;
    gap: 12px;
}

.progress-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #1f2937;
}

.progress-stats {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

.progress-stats .el-tag {
    font-size: 12px;
    padding: 4px 8px;
    font-weight: 500;
}

.batch-progress-bar {
    margin-bottom: 24px;
}

.batch-results {
    max-height: 400px;
    overflow-y: auto;
    padding-right: 8px;
}

.result-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
    flex-wrap: wrap;
    gap: 8px;
}

.result-item:hover {
    background: #fafbfc;
    border-color: #d1d5db;
}

.result-info {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
    min-width: 0;
}

.result-index {
    font-weight: 600;
    color: #6b7280;
    font-size: 14px;
    width: 24px;
    text-align: right;
}

.result-email {
    font-weight: 500;
    color: #374151;
    font-size: 14px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 180px;
}

.result-code {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 12px;
    background: #f3f4f6;
    padding: 2px 6px;
    border-radius: 4px;
    color: #6b7280;
    max-width: 100px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.result-status {
    flex-shrink: 0;
}

.result-status .el-tag {
    font-size: 12px;
    padding: 4px 8px;
    font-weight: 500;
    border: none;
}

.result-status .el-tag.success {
    background: #f0fdf4;
    color: #166534;
}

.result-status .el-tag.failed {
    background: #fef2f2;
    color: #dc2626;
}

.result-status .el-tag.processing {
    background: #eff6ff;
    color: #2563eb;
}

.result-status .el-icon {
    margin-right: 4px;
}

.result-message {
    width: 100%;
    margin-top: 8px;
    font-size: 12px;
    color: #6b7280;
    padding: 4px 8px;
    background: #f9fafb;
    border-radius: 4px;
    border-left: 3px solid #e5e7eb;
}

.result-item:has(.result-status .success) .result-message {
    border-left-color: #10b981;
    background: #f0fdf4;
    color: #166534;
}

.result-item:has(.result-status .failed) .result-message {
    border-left-color: #ef4444;
    background: #fef2f2;
    color: #dc2626;
}

/* 响应式适配 - 批量兑换 */
@media (max-width: 768px) {
    .batch-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .batch-actions .el-button {
        min-width: auto;
    }
    
    .progress-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .progress-stats {
        justify-content: center;
        width: 100%;
    }
    
    .result-item {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .result-info {
        width: 100%;
        justify-content: space-between;
    }
    
    .result-email {
        max-width: none;
        flex: 1;
    }
    
    .result-status {
        align-self: flex-end;
    }
}

@media (max-width: 480px) {
    .batch-progress-section {
        padding: 16px;
    }
    
    .progress-header h3 {
        font-size: 16px;
    }
    
    .result-info {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .result-email,
    .result-code {
        max-width: none;
    }
}

/* 批量解绑特殊样式 */
.unbind-tabs {
    margin-bottom: 20px;
}

.unbind-tabs .el-tabs__header {
    margin-bottom: 16px;
}

.batch-unbind-section {
    margin-top: 16px;
}

.unbind-result-item {
    border-left: 4px solid #e5e7eb;
    transition: all 0.3s ease;
}

.unbind-result-item:has(.result-status .el-tag--warning) {
    border-left-color: #f59e0b;
    background: linear-gradient(90deg, rgba(245, 158, 11, 0.05) 0%, transparent 20%);
}

.unbind-result-item:has(.result-status .el-tag--success) {
    border-left-color: #10b981;
    background: linear-gradient(90deg, rgba(16, 185, 129, 0.05) 0%, transparent 20%);
}

.unbind-result-item:has(.result-status .el-tag--danger) {
    border-left-color: #ef4444;
    background: linear-gradient(90deg, rgba(239, 68, 68, 0.05) 0%, transparent 20%);
}

.binding-details {
    width: 100%;
    margin-top: 8px;
    padding: 8px 12px;
    background: #f8f9fa;
    border-radius: 6px;
    border: 1px solid #e9ecef;
}

.binding-summary {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.mother-email {
    font-size: 12px;
    color: #6c757d;
    font-family: 'Monaco', 'Consolas', monospace;
    background: #f1f3f4;
    padding: 2px 6px;
    border-radius: 4px;
    flex: 1;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 解绑按钮颜色变体 */
.action-button.el-button--warning {
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    border: none;
    box-shadow: 0 2px 8px rgba(245, 158, 11, 0.3);
}

.action-button.el-button--warning:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(245, 158, 11, 0.4);
}

/* 解绑结果项特殊状态 */
.result-status .el-tag--warning .el-icon {
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% {
        opacity: 1;
    }
    50% {
        opacity: 0.6;
    }
}

/* 批量解绑特定响应式 */
@media (max-width: 768px) {
    .binding-summary {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }
    
    .mother-email {
        width: 100%;
        text-align: center;
    }
    
    .unbind-tabs .el-tabs__nav {
        width: 100%;
        display: flex;
    }
    
    .unbind-tabs .el-tabs__item {
        flex: 1;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .binding-details {
        padding: 6px 8px;
        margin-top: 6px;
    }
    
    .binding-summary .el-tag {
        font-size: 11px;
        padding: 2px 6px;
    }
    
    .mother-email {
        font-size: 11px;
        padding: 1px 4px;
    }
}

/* 批量解绑结果弹窗样式 */
.batch-result-dialog {
    width: 90% !important;
    max-width: 800px !important;
}

.batch-result-dialog .el-message-box__content {
    max-height: 80vh;
    overflow-y: auto;
    padding: 20px;
}

.batch-unbind-result-dialog {
    font-family: inherit;
    line-height: 1.6;
}

.result-summary {
    margin-bottom: 24px;
    text-align: center;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 32px;
    margin-bottom: 20px;
}

.stat-item {
    text-align: center;
    padding: 16px 24px;
    border-radius: 12px;
    min-width: 120px;
}

.success-stat {
    background: linear-gradient(135deg, #f0fdf4 0%, #dcfce7 100%);
    border: 2px solid #bbf7d0;
}

.failed-stat {
    background: linear-gradient(135deg, #fef2f2 0%, #fecaca 100%);
    border: 2px solid #fca5a5;
}

.stat-number {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 4px;
}

.success-stat .stat-number {
    color: #16a34a;
}

.failed-stat .stat-number {
    color: #dc2626;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.result-section {
    margin-bottom: 24px;
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e5e7eb;
}

.success-section {
    background: linear-gradient(145deg, #f0fdf4 0%, #f9fafb 100%);
    border-color: #bbf7d0;
}

.failed-section {
    background: linear-gradient(145deg, #fef2f2 0%, #f9fafb 100%);
    border-color: #fca5a5;
}

.result-section h3 {
    margin: 0 0 16px 0;
    font-size: 16px;
    font-weight: 600;
    color: #1f2937;
    border-bottom: 1px solid #e5e7eb;
    padding-bottom: 8px;
}

.code-list {
    max-height: 300px;
    overflow-y: auto;
    margin-bottom: 16px;
}

.code-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px;
    margin-bottom: 8px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    transition: all 0.3s ease;
}

.code-item:hover {
    border-color: #d1d5db;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.code-info {
    flex: 1;
    min-width: 0;
}

.code-display {
    font-family: 'Monaco', 'Consolas', monospace;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    display: inline-block;
    margin-bottom: 6px;
    letter-spacing: 1px;
}

.code-display.small {
    font-size: 12px;
    padding: 4px 8px;
    margin-bottom: 0;
}

.code-meta {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-wrap: wrap;
}

.code-type {
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: 500;
}

.code-type.warranty {
    background: #fef3c7;
    color: #92400e;
}

.code-type.one-time {
    background: #dbeafe;
    color: #1e40af;
}

.email-info {
    font-size: 12px;
    color: #6b7280;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    max-width: 200px;
}

.reuse-status {
    flex-shrink: 0;
    text-align: right;
}

.reusable {
    color: #16a34a;
    font-size: 12px;
    font-weight: 500;
}

.not-reusable {
    color: #ea580c;
    font-size: 12px;
    font-weight: 500;
}

.copy-actions {
    text-align: center;
    margin-top: 16px;
}

.copy-button {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(102, 126, 234, 0.3);
}

.copy-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 16px rgba(102, 126, 234, 0.4);
}

.copy-button:active {
    transform: translateY(0);
}

.failed-list {
    max-height: 250px;
    overflow-y: auto;
}

.failed-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    margin-bottom: 6px;
    background: white;
    border-radius: 6px;
    border: 1px solid #fca5a5;
    border-left: 4px solid #ef4444;
}

.failed-info {
    flex: 1;
    min-width: 0;
}

.email-display {
    font-weight: 500;
    color: #1f2937;
    font-size: 14px;
    margin-bottom: 4px;
}

.error-message {
    font-size: 12px;
    color: #dc2626;
    background: #fef2f2;
    padding: 4px 8px;
    border-radius: 4px;
    border-left: 3px solid #fca5a5;
}

.dialog-tips {
    margin-top: 20px;
    padding: 16px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 8px;
    border: 1px solid #e2e8f0;
}

.tip-item {
    margin-bottom: 8px;
    color: #374151;
}

.tip-content {
    font-size: 13px;
    color: #6b7280;
    line-height: 1.6;
}

/* 弹窗响应式设计 */
@media (max-width: 768px) {
    .batch-result-dialog {
        width: 95% !important;
        margin: 10px !important;
    }
    
    .summary-stats {
        flex-direction: column;
        gap: 16px;
        align-items: center;
    }
    
    .stat-item {
        min-width: 100px;
        padding: 12px 20px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .code-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
    
    .reuse-status {
        text-align: left;
        width: 100%;
    }
    
    .email-info {
        max-width: none;
    }
    
    .failed-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }
}

@media (max-width: 480px) {
    .batch-result-dialog .el-message-box__content {
        padding: 12px;
        max-height: 70vh;
    }
    
    .result-section {
        padding: 12px;
        margin-bottom: 16px;
    }
    
    .code-display {
        font-size: 12px;
        padding: 4px 8px;
        word-break: break-all;
    }
    
    .copy-button {
        width: 100%;
        padding: 12px;
        font-size: 13px;
    }
    
    .dialog-tips {
        padding: 12px;
        margin-top: 16px;
    }
    
    .tip-content {
        font-size: 12px;
    }
}

/* 滚动条样式（弹窗内） */
.code-list::-webkit-scrollbar,
.failed-list::-webkit-scrollbar,
.batch-result-dialog .el-message-box__content::-webkit-scrollbar {
    width: 6px;
}

.code-list::-webkit-scrollbar-track,
.failed-list::-webkit-scrollbar-track,
.batch-result-dialog .el-message-box__content::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.code-list::-webkit-scrollbar-thumb,
.failed-list::-webkit-scrollbar-thumb,
.batch-result-dialog .el-message-box__content::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 3px;
}

.code-list::-webkit-scrollbar-thumb:hover,
.failed-list::-webkit-scrollbar-thumb:hover,
.batch-result-dialog .el-message-box__content::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 团队清理功能样式 */
.cleanup-preview-panel {
    margin-top: 20px;
    padding: 20px;
    background: #f8f9ff;
    border-radius: 12px;
    border: 1px solid #e1e5f2;
}

.preview-header {
    text-align: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e1e5f2;
}

.preview-title {
    font-size: 20px;
    font-weight: 600;
    color: #2d3748;
    margin: 12px 0 4px 0;
}

.preview-subtitle {
    font-size: 14px;
    color: #718096;
    font-family: 'Monaco', 'Consolas', monospace;
    background: #e2e8f0;
    padding: 4px 12px;
    border-radius: 20px;
    display: inline-block;
}

.cleanup-stats {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-bottom: 24px;
    flex-wrap: wrap;
}

.stat-card {
    text-align: center;
    padding: 16px 20px;
    border-radius: 12px;
    min-width: 100px;
    border: 2px solid;
    background: white;
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.total-card {
    border-color: #3b82f6;
    background: linear-gradient(135deg, #dbeafe 0%, #f0f9ff 100%);
}

.delete-card {
    border-color: #ef4444;
    background: linear-gradient(135deg, #fecaca 0%, #fef2f2 100%);
}

.keep-card {
    border-color: #10b981;
    background: linear-gradient(135deg, #d1fae5 0%, #f0fdf4 100%);
}

.stat-number {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 4px;
}

.total-card .stat-number {
    color: #1d4ed8;
}

.delete-card .stat-number {
    color: #dc2626;
}

.keep-card .stat-number {
    color: #059669;
}

.stat-label {
    font-size: 14px;
    font-weight: 500;
    color: #6b7280;
}

.members-lists {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 24px;
}

.members-section h4 {
    margin: 0 0 12px 0;
    font-size: 16px;
    font-weight: 600;
    color: #374151;
    display: flex;
    align-items: center;
    gap: 8px;
}

.member-list {
    max-height: 200px;
    overflow-y: auto;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
    padding: 8px;
}

.member-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px;
    margin-bottom: 4px;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.2s ease;
}

.delete-item {
    background: #fef2f2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.delete-item:hover {
    background: #fee2e2;
    transform: translateX(2px);
}

.keep-item {
    background: #f0fdf4;
    color: #166534;
    border: 1px solid #bbf7d0;
}

.keep-item:hover {
    background: #dcfce7;
    transform: translateX(2px);
}

.empty-list {
    text-align: center;
    padding: 20px;
    color: #9ca3af;
    font-style: italic;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.cleanup-actions {
    text-align: center;
    padding-top: 16px;
    border-top: 2px solid #e1e5f2;
}

.execute-button {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    border: none;
    color: white;
    padding: 12px 32px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.3);
    margin-bottom: 16px;
}

.execute-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(239, 68, 68, 0.4);
}

.cleanup-summary {
    margin-top: 16px;
}

.summary-stats {
    display: flex;
    justify-content: center;
    gap: 24px;
    margin-bottom: 20px;
    flex-wrap: wrap;
}

.summary-item {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.summary-item .label {
    font-weight: 500;
    color: #374151;
}

.summary-item .value.success {
    color: #059669;
    font-weight: 600;
}

.summary-item .value.failed {
    color: #dc2626;
    font-weight: 600;
}

.deleted-list, .failed-list {
    margin-top: 16px;
    padding: 16px;
    background: white;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.deleted-list h5, .failed-list h5 {
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #374151;
}

.email-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 8px;
    max-height: 150px;
    overflow-y: auto;
}

.email-item {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 6px;
    font-size: 13px;
    border: 1px solid;
}

.email-item.deleted {
    background: #f0fdf4;
    color: #166534;
    border-color: #bbf7d0;
}

.failed-items {
    max-height: 150px;
    overflow-y: auto;
}

.failed-item {
    padding: 8px 12px;
    margin-bottom: 6px;
    background: #fef2f2;
    border-radius: 6px;
    border-left: 4px solid #ef4444;
}

.failed-email {
    font-weight: 500;
    color: #1f2937;
    margin-bottom: 4px;
}

.failed-reason {
    font-size: 12px;
    color: #dc2626;
    background: #fee2e2;
    padding: 4px 8px;
    border-radius: 4px;
}

/* 团队清理响应式设计 */
@media (max-width: 768px) {
    .cleanup-stats {
        flex-direction: column;
        align-items: center;
        gap: 16px;
    }
    
    .stat-card {
        min-width: 80px;
        padding: 12px 16px;
    }
    
    .stat-number {
        font-size: 24px;
    }
    
    .members-lists {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    
    .summary-stats {
        flex-direction: column;
        align-items: center;
        gap: 12px;
    }
    
    .email-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .cleanup-preview-panel {
        padding: 16px;
        margin-top: 16px;
    }
    
    .preview-title {
        font-size: 18px;
    }
    
    .stat-card {
        padding: 10px 12px;
        min-width: 70px;
    }
    
    .stat-number {
        font-size: 20px;
    }
    
    .stat-label {
        font-size: 12px;
    }
    
    .member-list {
        max-height: 150px;
        padding: 6px;
    }
    
    .member-item {
        padding: 6px;
        font-size: 13px;
    }
    
    .execute-button {
        width: 100%;
        padding: 12px;
        font-size: 15px;
    }
    
    .deleted-list, .failed-list {
        padding: 12px;
    }
}

/* 滚动条样式（团队清理） */
.member-list::-webkit-scrollbar,
.email-list::-webkit-scrollbar,
.failed-items::-webkit-scrollbar {
    width: 4px;
}

.member-list::-webkit-scrollbar-track,
.email-list::-webkit-scrollbar-track,
.failed-items::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 2px;
}

.member-list::-webkit-scrollbar-thumb,
.email-list::-webkit-scrollbar-thumb,
.failed-items::-webkit-scrollbar-thumb {
    background: #c1c1c1;
    border-radius: 2px;
}

.member-list::-webkit-scrollbar-thumb:hover,
.email-list::-webkit-scrollbar-thumb:hover,
.failed-items::-webkit-scrollbar-thumb:hover {
    background: #a8a8a8;
}

/* 脱敏邮箱样式 */
.masked-email {
    font-family: 'Monaco', 'Consolas', 'Courier New', monospace;
    font-size: 13px;
    color: #374151;
    background: linear-gradient(135deg, #f3f4f6 0%, #e5e7eb 100%);
    padding: 4px 8px;
    border-radius: 6px;
    border: 1px solid #d1d5db;
    display: inline-block;
    letter-spacing: 0.5px;
    font-weight: 500;
}

.user-email {
    font-size: 11px;
    color: #6b7280;
    font-family: 'Monaco', 'Consolas', monospace;
    background: #f9fafb;
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid #e5e7eb;
}

/* 解绑确认面板样式 */
.confirmation-panel {
    margin-top: 24px;
    padding: 24px;
    background: linear-gradient(145deg, #fefbf3 0%, #fff7ed 100%);
    border: 2px solid #fbbf24;
    border-radius: 16px;
    box-shadow: 0 4px 12px rgba(251, 191, 36, 0.15);
}

.confirmation-header {
    text-align: center;
    margin-bottom: 24px;
}

.confirmation-icon {
    margin-bottom: 16px;
}

.confirmation-title {
    font-size: 20px;
    font-weight: 600;
    color: #92400e;
    margin-bottom: 8px;
}

.confirmation-content .el-descriptions {
    margin-bottom: 20px;
}

.confirmation-warning {
    margin: 20px 0;
}

.confirmation-actions {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    flex-wrap: wrap;
}

.confirm-unbind-button {
    min-width: 120px;
    height: 44px;
    font-size: 16px;
    font-weight: 600;
}

/* 查询模式选择样式 */
.query-mode-group .el-radio {
    margin-right: 32px;
    font-weight: 500;
}

.query-mode-group .el-radio__label {
    color: #374151;
    font-size: 14px;
}

.query-mode-group .el-radio.is-checked .el-radio__label {
    color: #667eea;
}

/* 移动端适配 */
@media (max-width: 768px) {
    .confirmation-panel {
        padding: 20px;
        margin: 16px 0;
    }
    
    .confirmation-title {
        font-size: 18px;
    }
    
    .confirmation-actions {
        flex-direction: column;
        gap: 12px;
    }
    
    .confirm-unbind-button {
        width: 100%;
    }
    
    .masked-email {
        font-size: 12px;
        padding: 3px 6px;
    }
    
    .query-mode-group .el-radio {
        margin-right: 24px;
        margin-bottom: 8px;
    }
}

@media (max-width: 480px) {
    .query-mode-group {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }
    
    .query-mode-group .el-radio {
        margin-right: 0;
        margin-bottom: 0;
    }
}

/* 深色模式支持（预留） */
@media (prefers-color-scheme: dark) {
    /* 可以在这里添加深色模式样式 */
}