/* 
 * 火种协议聊天助手 - 极简主义设计
 */

:root {
    --primary-color: #fe3c72;
    --primary-gradient: linear-gradient(262deg, #ff7854 0%, #fd267d 100%);
    --bg-main: #f8fafc;
    --sidebar-width: 300px;
    --detail-width: 280px;
    --border-color: #e2e8f0;
    --text-main: #1e293b;
    --text-muted: #64748b;
}

* { margin: 0; padding: 0; box-sizing: border-box; font-family: -apple-system, sans-serif; }
body { height: 100vh; background: var(--bg-main); overflow: hidden; }
.app-container { display: flex; height: 100%; }

/* 侧边栏 */
.sidebar { width: var(--sidebar-width); background: white; border-right: 1px solid var(--border-color); display: flex; flex-direction: column; overflow: hidden; }

/* 拉伸条 */
.resizer {
    width: 4px;
    cursor: col-resize;
    background: transparent;
    transition: background 0.3s;
    z-index: 100;
}
.resizer:hover, .resizer.dragging {
    background: var(--primary-color);
}
.sidebar-tabs-main { display: flex; background: #f1f5f9; padding: 5px; margin: 15px; border-radius: 10px; }
.tab-main { flex: 1; text-align: center; padding: 8px; font-size: 14px; font-weight: 600; color: var(--text-muted); cursor: pointer; border-radius: 8px; transition: all 0.2s; }
.tab-main.active { background: white; color: var(--primary-color); box-shadow: 0 2px 8px rgba(0,0,0,0.05); }

.sidebar-view { flex: 1; overflow-y: auto; padding: 0 10px; }
.sidebar-action-header { 
    display: flex; 
    justify-content: space-between; 
    align-items: center; 
    padding: 12px 15px; 
    font-size: 13px; 
    font-weight: 700; 
    color: var(--text-muted); 
    position: sticky;
    top: 0;
    background: white;
    z-index: 10;
    border-bottom: 1px solid #f1f5f9;
    margin: 0 -10px; /* 抵消父容器的 padding */
}
.add-mini-btn { border: none; background: var(--primary-gradient); color: white; width: 24px;    height: 24px;
    border-radius: 6px;
    cursor: pointer;
}

/* 发现卡片容器 */
.discovery-card-container {
    height: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.swipe-card {
    width: 380px;
    height: 600px;
    background: white;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.swipe-photo-area {
    flex: 1;
    position: relative;
    background: #eee;
}

.swipe-photo-area img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.swipe-info-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 20px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
}

.swipe-info-overlay h2 { font-size: 24px; margin-bottom: 5px; }
.swipe-info-overlay p { font-size: 14px; opacity: 0.9; }

.swipe-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
}

.swipe-badge {
    background: rgba(255,255,255,0.2);
    padding: 3px 8px;
    border-radius: 4px;
    font-size: 11px;
}

.swipe-actions {
    padding: 20px;
    display: flex;
    justify-content: space-around;
    align-items: center;
}

.swipe-btn {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    border: 2px solid;
    background: white;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    cursor: pointer;
    transition: transform 0.2s;
}

.swipe-btn:hover { transform: translateY(-2px); }
.swipe-btn.nope { border-color: #f1f5f9; color: #ff4458; }
.swipe-btn.super { border-color: #f1f5f9; color: #3ca4ff; width: 44px; height: 44px; font-size: 16px; }
.swipe-btn.like { border-color: #f1f5f9; color: #1be4a1; }

/* 列表项 */
.account-item-simple { position: relative; display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 12px; cursor: pointer; transition: 0.2s; margin-bottom: 5px; }
.account-item-simple:hover { background: #f1f5f9; }
.account-item-simple.active { background: #fff1f4; }

/* 匹配按钮样式 */
.acc-swipe-btn:hover { background: var(--primary-gradient); color: white; transform: translateY(-2px); }

/* 按钮组容器修复 */
.acc-action-btns {
    display: flex;
    gap: 8px;
    margin-left: auto; /* 推到最右侧 */
}
.acc-action-btns button {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    border: 1px solid var(--border-color);
    background: white;
    color: var(--text-muted);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}
.acc-action-btns button:hover {
    background: #f1f5f9;
    color: var(--primary-color);
    border-color: var(--primary-color);
    transform: translateY(-2px);
}
.acc-swipe-btn:hover {
    background: var(--primary-gradient) !important;
    color: white !important;
    border: none !important;
}

/* 未读提醒样式 */
.unread-badge {
    position: absolute;
    left: 45px;
    top: 5px;
    background: #ff4458;
    color: white;
    font-size: 10px;
    font-weight: bold;
    min-width: 18px;
    height: 18px;
    border-radius: 9px;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid white;
    z-index: 10;
}
.unread-dot {
    width: 10px;
    height: 10px;
    background: #ff4458;
    border-radius: 50%;
    margin-left: 10px;
    box-shadow: 0 0 0 2px white;
}
/* ==========================================================================
   物理划卡增强系统
   ========================================================================== */

.swipe-card {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    z-index: 2;
    
    /* 物理属性 */
    cursor: grab;
    user-select: none;
    touch-action: none;
    /* 核心修复：移除所有交互延迟，确保瞬间响应 */
    will-change: transform, opacity;
    transition: none !important; 
}

.swipe-card:active {
    cursor: grabbing;
}

.swipe-card.dragging {
    transition: none !important; /* 拖拽时即时响应，不使用动画延迟 */
}

/* 划卡状态提示标签 (LIKE / NOPE) */
.swipe-indicator {
    position: absolute;
    top: 45px;
    padding: 8px 18px;
    border: 5px solid;
    border-radius: 12px;
    font-size: 36px;
    font-weight: 900;
    text-transform: uppercase;
    opacity: 0;
    z-index: 100;
    pointer-events: none;
    transition: opacity 0.15s ease;
}

.indicator-like {
    left: 30px;
    border-color: #22c55e;
    color: #22c55e;
    transform: rotate(-15deg);
}

.indicator-nope {
    right: 30px;
    border-color: #ef4444;
    color: #ef4444;
    transform: rotate(15deg);
}

/* 强制飞出样式 */
.animate-fly-right {
    transform: translate(1000px, 100px) rotate(30deg) !important;
    opacity: 0 !important;
    transition: transform 0.5s ease-in, opacity 0.3s ease-in !important;
}

.animate-fly-left {
    transform: translate(-1000px, 100px) rotate(-30deg) !important;
    opacity: 0 !important;
    transition: transform 0.5s ease-in, opacity 0.3s ease-in !important;
}

/* 保持底层的堆叠逻辑 */
.swipe-card:nth-child(2) {
    transform: none !important;
    opacity: 1;
    z-index: 1;
    pointer-events: none;
}
#swipe-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.swipe-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 60px 15px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.4) 60%, transparent 100%);
    color: white;
    pointer-events: none;
}
.swipe-name-age { font-size: 22px; font-weight: 700; text-shadow: 0 1px 3px rgba(0,0,0,0.5); }
.swipe-distance { font-size: 13px; opacity: 0.9; margin: 3px 0; }
.swipe-interests { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.swipe-meta-rows { margin-top: 5px; line-height: 1.2; }
.swipe-meta-rows div { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.interest-tag { background: rgba(255,255,255,0.2); padding: 3px 8px; border-radius: 10px; font-size: 11px; }

.swipe-actions {
    position: absolute;
    bottom: 25px;
    left: 0;
    right: 0;
    display: flex;
    justify-content: center;
    gap: 15px;
    z-index: 100;
}
/* 统一所有圆形按钮的黄金对齐准则 */
.action-circle, .swipe-detail-btn, .close-btn {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer;
    transition: none !important;
    transform-origin: center;
    border: none;
    outline: none;
}

.action-circle i, .swipe-detail-btn i, .close-btn i {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    margin: 0 !important;
    padding: 0 !important;
    width: 100% !important;
    height: 100% !important;
}

.action-circle {
    width: 55px;
    height: 55px;
    border-radius: 50%;
    background: white;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    font-size: 20px;
}
.action-circle:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(0,0,0,0.15); }
.action-circle:active { transform: translateY(-1px); }
.action-circle.nope { color: #ff4458; }
.action-circle.like { color: #1be4a1; }

.swipe-detail-btn {
    width: 32px;
    height: 32px;
    background: rgba(0,0,0,0.5);
    color: white;
    border-radius: 50%;
    font-size: 14px;
    backdrop-filter: blur(4px);
}
.swipe-detail-btn:hover { background: rgba(0,0,0,0.8); transform: translateY(-2px); }
.avatar { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; border: 1px solid var(--border-color); }
.contact-info { flex: 1; min-width: 0; }
.contact-name { font-weight: 600; font-size: 14px; }
.last-msg { font-size: 12px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.sidebar-footer-simple { padding: 15px; border-top: 1px solid var(--border-color); }
.mini-profile { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; }
.mini-profile img { width: 32px; height: 32px; border-radius: 50%; background: #eee; }

/* 聊天主区 */
.chat-main { flex: 1; display: flex; flex-direction: column; background: white; }
.chat-header { padding: 15px 25px; border-bottom: 1px solid var(--border-color); }
.chat-header-info h2 { font-size: 18px; }
.chat-header-info span { font-size: 12px; color: var(--text-muted); }

.chat-header-info span { font-size: 12px; color: var(--text-muted); }

.messages { 
    flex: 1; 
    overflow-y: auto; 
    overflow-x: hidden; 
    padding: 20px; 
    display: flex; 
    flex-direction: column; 
    gap: 12px; /* 增大基础间距 */
    background: #f8fafc; 
    scroll-behavior: smooth;
}
.message { display: flex; margin-bottom: 8px; } /* 增加额外的底部外边距 */
.message.incoming { justify-content: flex-start; }
.message.outgoing { justify-content: flex-end; }
.message-bubble { padding: 12px 18px; border-radius: 18px; max-width: 80%; font-size: 14px; line-height: 1.4; box-shadow: 0 2px 5px rgba(0,0,0,0.05); }
.message.incoming .message-bubble { background: white; color: var(--text-main); border-bottom-left-radius: 4px; }
.message.outgoing .message-bubble { background: var(--primary-gradient); color: white; border-bottom-right-radius: 4px; }

/* 发送状态优化：动图在左侧外面 */
.message.outgoing { position: relative; margin-right: 15px; } /* 增加右边距，更美观 */
.message.outgoing.sending .message-bubble,
.message.outgoing.syncing .message-bubble {
    opacity: 0.8;
}

.sending-spinner-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 8px; /* 气泡左侧间距 */
    color: #fe3c72;
    font-size: 14px;
}

.resend-badge {
    margin-right: 8px;
    color: #ef4444;
    cursor: pointer;
    font-size: 16px;
    display: flex;
    align-items: center;
}

.input-area { padding: 15px 20px; background: white; border-top: 1px solid var(--border-color); }
.input-wrapper { display: flex; gap: 12px; align-items: center; }
.chat-input { flex: 1; padding: 12px 20px; border: 1px solid var(--border-color); border-radius: 25px; outline: none; font-size: 14px; background: #f8fafc; transition: 0.2s; }
.chat-input:focus { background: white; border-color: #fe3c72; }
#send-btn { width: 44px; height: 44px; border-radius: 50%; border: none; background: var(--primary-gradient); color: white; cursor: pointer; display: flex; justify-content: center; align-items: center; font-size: 16px; transition: 0.2s; box-shadow: 0 4px 10px rgba(254, 60, 114, 0.3); }
#send-btn:hover { transform: translateY(-2px); box-shadow: 0 6px 15px rgba(254, 60, 114, 0.4); }

/* 账号仪表盘 */
.account-dashboard { max-width: 900px; margin: 0 auto; }
.dash-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.dash-card { background: #f8f9fa; padding: 20px; border-radius: 15px; border: 1px solid #eee; }
.dash-card h3 { font-size: 14px; color: #fd3a73; margin-bottom: 15px; display: flex; align-items: center; gap: 8px; }
.info-row { display: flex; justify-content: space-between; align-items: center; padding: 8px 0; border-bottom: 1px solid #f1f5f9; font-size: 13px; }
.info-row:last-child { border-bottom: none; }
.info-row label { color: #64748b; font-weight: 500; }
.info-row span { color: #1e293b; font-weight: 600; text-align: right; max-width: 60%; word-break: break-all; }
.token-box { background: #1e293b; color: #cbd5e1; padding: 15px; border-radius: 10px; font-family: monospace; font-size: 11px; word-break: break-all; margin-top: 5px; }
.status-tag { background: #dcfce7; color: #166534; padding: 2px 8px; border-radius: 20px; font-size: 11px; font-weight: 600; }

/* 九宫格相册样式 - 适配侧边栏模式 */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    margin-top: 10px;
}
.photo-slot {
    aspect-ratio: 2/3;
    background: #f8fafc;
    border: 1px dashed #cbd5e1;
    border-radius: 8px;
    position: relative;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
}
.photo-slot:hover {
    border-color: var(--primary-color);
    background: #fff1f4;
}
.photo-slot img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.photo-slot .add-icon {
    font-size: 24px;
    color: #cbd5e1;
    transition: color 0.2s;
}
.photo-slot:hover .add-icon {
    color: var(--primary-color);
}
.photo-slot .slot-action {
    position: absolute;
    bottom: 8px;
    right: 8px;
    width: 28px;
    height: 28px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
    color: var(--text-muted);
    font-size: 12px;
    z-index: 10;
}
.photo-slot .slot-action.remove {
    color: #ef4444;
}
.photo-slot .upload-progress {
    position: absolute;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: var(--primary-color);
    z-index: 20;
    transition: width 0.3s;
}

/* 资料面板 & 照片浏览器 */
.detail-pane { width: var(--detail-width); background: white; border-left: 1px solid var(--border-color); overflow-y: auto; }
.profile-photo-wrapper { position: relative; width: 100%; height: 320px; background: #000; overflow: hidden; }
.profile-photo { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.3s; }

.photo-nav-prev, .photo-nav-next {
    position: absolute; top: 50%; transform: translateY(-50%);
    width: 36px; height: 36px; background: rgba(0,0,0,0.3); color: white;
    display: flex; justify-content: center; align-items: center;
    border-radius: 50%; cursor: pointer; opacity: 0; transition: 0.3s;
}
.profile-photo-wrapper:hover .photo-nav-prev, .profile-photo-wrapper:hover .photo-nav-next { opacity: 1; }
.photo-nav-prev { left: 10px; } .photo-nav-next { right: 10px; }
.photo-counter { position: absolute; bottom: 12px; right: 12px; background: rgba(0,0,0,0.5); color: white; padding: 2px 8px; border-radius: 10px; font-size: 11px; }

.profile-content { padding: 20px; }
.profile-content h1 { font-size: 20px; margin-bottom: 5px; }
.profile-section h3 { font-size: 14px; margin: 15px 0 8px; color: var(--text-main); }
.profile-bio { font-size: 13px; color: var(--text-muted); line-height: 1.6; }

/* 弹窗 */
.modal { position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.5); display: none; justify-content: center; align-items: center; z-index: 2000; backdrop-filter: blur(4px); }
.modal.show { display: flex; }
.close-btn { 
    position: absolute;
    top: 20px;
    right: 20px;
    width: 32px; 
    height: 32px; 
    background: #f1f5f9; 
    color: #64748b; 
    border-radius: 50% !important; 
    display: flex; 
    align-items: center; 
    justify-content: center; 
    font-size: 14px; 
    cursor: pointer; 
    transition: all 0.3s ease;
    z-index: 100;
}
.close-btn:hover {
    background: #e2e8f0;
    color: #ef4444;
    transform: rotate(90deg);
}
.close-btn i {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    line-height: 1;
    margin: 0;
    padding: 0;
}
.close-btn:hover { 
    background: #fff; 
    color: #ef4444; 
    /* 移除缩放，仅保留旋转 */
    transform: rotate(180deg); 
    box-shadow: 0 6px 15px rgba(239, 68, 68, 0.2);
    border: 1px solid #fee2e2;
}
.close-btn:active {
    transform: rotate(180deg);
    transition: all 0.1s;
}
.modal-content { background: white; width: 450px; border-radius: 20px; display: flex; flex-direction: column; overflow: hidden; box-shadow: 0 20px 50px rgba(0,0,0,0.2); border: 1px solid rgba(255,255,255,0.1); }
.modal-header { 
    display: flex; 
    align-items: center; 
    justify-content: space-between; 
    padding: 20px 25px; 
    border-bottom: 1px solid #f1f5f9; 
    background: #fff;
}
.modal-header h3 { font-size: 18px; font-weight: 700; color: #1e293b; }
.modal-body { padding: 25px; flex: 1; overflow-y: auto; }

/* 表单元素美化 */
.form-group { margin-bottom: 20px; }
.form-group label { 
    display: block; 
    font-size: 13px; 
    font-weight: 600; 
    color: #64748b; 
    margin-bottom: 8px; 
    padding-left: 2px;
}
.form-group input, .form-group select, .form-group textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1.5px solid #e2e8f0;
    border-radius: 12px;
    font-size: 14px;
    color: #1e293b;
    background: #f8fafc;
    transition: all 0.2s;
    outline: none;
}
.form-group input:focus, .form-group select:focus, .form-group textarea:focus {
    border-color: #fe3c72;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(254, 60, 114, 0.1);
}
.form-row { display: flex; gap: 15px; margin-bottom: 20px; }
.flex-1 { flex: 1; }
.modal-footer { padding: 15px 20px; border-top: 1px solid #f1f5f9; display: flex; justify-content: flex-end; gap: 10px; }

/* 统一按钮高级感重塑 */
.btn-primary, .btn-secondary, .btn-danger, .btn-warning, [id*="-btn"] {
    border: none;
    border-radius: 10px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    text-decoration: none;
}

.btn-primary { 
    background: var(--primary-gradient); 
    color: white; 
    box-shadow: 0 4px 12px rgba(254, 60, 114, 0.2);
}
/* 统一所有功能按钮的高级感重塑 (仅限仪表盘) */
.btn-modern-dash {
    border: none;
    border-radius: 12px;
    padding: 10px 18px;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    outline: none;
    text-decoration: none;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.btn-modern-dash:hover { 
    transform: translateY(-3px) !important; 
    filter: brightness(1.08);
    box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}

/* 针对特定颜色的特殊处理 */
.btn-modern-dash.primary { background: var(--primary-gradient); color: white; box-shadow: 0 8px 20px rgba(254, 60, 114, 0.25); }
.btn-modern-dash.danger { background: #fe3c72; color: white; }
.btn-modern-dash.warning { background: #ffba08; color: white; }
.btn-modern-dash.secondary { background: #f1f5f9; color: #475569; }

/* 恢复圆形按钮的纯正血统 */
.action-circle {
    border-radius: 50% !important;
}

/* 移除干扰 */
#open-match-template-btn, #open-location-modal-btn, #save-match-template-btn, #view-match-discovery-btn {
    border: none !important;
}

[id*="-btn"]:active, .btn:active, .btn-modern-dash:active { transform: translateY(-1px); transition: 0.1s; }

/* Custom Sliders */
.slider-container { position: relative; width: 100%; }
.tinder-slider { -webkit-appearance: none; width: 100%; height: 4px; background: #cbd5e1; border-radius: 2px; outline: none; }
.tinder-slider::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; width: 24px; height: 24px; border-radius: 50%; background: #fe3c72; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }
.dual-slider-container { position: relative; width: 100%; height: 30px; }
.slider-track { position: absolute; width: 100%; height: 4px; background: #cbd5e1; top: 50%; transform: translateY(-50%); border-radius: 2px; z-index: 1; }
.slider-fill { position: absolute; height: 4px; background: #fe3c72; top: 50%; transform: translateY(-50%); z-index: 2; border-radius: 2px; }
.dual-slider { position: absolute; width: 100%; top: 50%; transform: translateY(-50%); -webkit-appearance: none; background: transparent; pointer-events: none; z-index: 3; }
.dual-slider::-webkit-slider-thumb { -webkit-appearance: none; pointer-events: auto; width: 24px; height: 24px; border-radius: 50%; background: #fe3c72; cursor: pointer; box-shadow: 0 2px 4px rgba(0,0,0,0.2); }

/* 全局通知弹窗 */
#toast-container {
    position: fixed;
    top: 20px;
    right: 20px;
    z-index: 9999;
    display: flex;
    flex-direction: column;
    gap: 10px;
    pointer-events: none;
}
.notif-toast {
    background: white;
    padding: 12px 15px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 250px;
    max-width: 350px;
    border-left: 4px solid #fe3c72;
    animation: slideIn 0.3s ease-out;
    transition: all 0.5s;
    pointer-events: auto;
}
@keyframes slideIn {
    from { transform: translateX(100%); opacity: 0; }
    to { transform: translateX(0); opacity: 1; }
}

/* 封禁账号样式 */
.account-item-simple.is-banned {
    background: #fff5f5 !important;
    border-left: 4px solid #ef4444 !important;
}
.account-item-simple.is-banned:hover {
    background: #fee2e2 !important;
}
.account-item-simple.is-banned .avatar {
    filter: grayscale(1);
    opacity: 0.6;
}

/* 聊天翻译样式 */
.message-translation {
    font-size: 11px;
    margin-top: 8px;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.4); /* 增加虚线亮度 */
    font-style: italic;
    opacity: 0.9;
    animation: fadeInTranslate 0.8s ease-in;
    word-break: break-word;
}
.message.incoming .message-translation {
    border-top: 1px dashed rgba(0, 0, 0, 0.1); /* 对方消息的虚线稍微加深 */
    color: #64748b;
}
.message.outgoing .message-translation {
    color: rgba(255, 255, 255, 0.9);
}

@keyframes fa-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.fa-spin {
    animation: fa-spin 2s infinite linear !important;
    display: inline-block;
}

/* 增强：确保所有需要转动的图标都能生效 */
.fas.fa-spinner, .fas.fa-fire, .fas.fa-sync-alt, .fas.fa-sync {
    animation-play-state: running !important;
}

/* 注册时间标签优化：消除拖影 + 红色主题 */
.swipe-reg-time {
    position: absolute;
    top: 25px;
    left: 12px;
    z-index: 15;
    font-size: 11px;
    font-weight: 600;
    color: #fff;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
    background: rgba(254, 60, 114, 0.85); /* 红色半透明 */
    padding: 4px 10px;
    border-radius: 20px;
    
    /* 核心修复：移除高负载的模糊滤镜，开启 GPU 加速消除拖影 */
    backdrop-filter: none !important;
    will-change: transform;
    backface-visibility: hidden;
    transform: translateZ(0);
}

/* 彻底解决重影：只有第一张卡片显示标签，底层的预加载卡片隐藏标签 */
.swipe-card:nth-child(n+2) .swipe-reg-time {
    display: none !important;
}

/* ==========================================================================
   专属登录/注册页面样式 (Namespace: .auth-)
   完全隔离，避免与全局 .modal 或 .form-group 冲突
   ========================================================================== */
/* 仪表盘专属高级输入框组合 */
.dash-input-group {
    position: relative;
    display: flex;
    align-items: center;
    width: 65%;
    background: #f8fafc;
    border-radius: 12px;
    padding: 2px;
    transition: all 0.3s ease;
    border: 1px solid #e2e8f0;
}
.dash-input-group:focus-within {
    border-color: #fe3c72;
    background: #fff;
    box-shadow: 0 0 0 4px rgba(254, 60, 114, 0.1);
}
.dash-input-group input {
    flex: 1;
    border: none !important;
    background: transparent !important;
    padding: 6px 12px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    color: #1e293b !important;
    outline: none !important;
    box-shadow: none !important;
    min-width: 0;
}
.dash-input-group .premium-save-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    border-radius: 8px;
    padding: 5px 12px;
    font-size: 11px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.2s;
    white-space: nowrap;
    box-shadow: 0 2px 6px rgba(254, 60, 114, 0.2);
}
.dash-input-group .premium-save-btn:hover {
    transform: translateY(-1px);
    filter: brightness(1.1);
}
.dash-input-group .premium-save-btn:active {
    transform: translateY(0);
}
.dash-input-group .premium-save-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

/* ==========================================================================
   管理员后台弹窗深度重构
   ========================================================================== */
#admin-user-accounts-modal .modal-content {
    max-width: 1000px !important; /* 深度加宽 */
    border-radius: 24px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
}

.admin-kanban-table {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0 10px; /* 卡片式行间距 */
    margin-top: -10px;
}

.admin-kanban-table th {
    padding: 12px 15px;
    color: #64748b;
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 700;
}

.admin-kanban-row {
    background: white;
    transition: all 0.2s ease;
    border-radius: 12px;
}

.admin-kanban-row:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.admin-kanban-row td {
    padding: 15px;
    vertical-align: middle;
}

/* 名字列：突出显示 */
.kanban-acc-name {
    font-weight: 800;
    color: #1e293b;
    font-size: 14px;
    white-space: nowrap;
}

/* 节点列：精致卡片 */
.kanban-proxy-badge {
    background: #f1f5f9;
    color: #475569;
    padding: 4px 10px;
    border-radius: 6px;
    font-family: 'Consolas', monospace;
    font-size: 11px;
    border: 1px solid #e2e8f0;
    display: inline-block;
    max-width: 280px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 状态徽章 */
.kanban-status {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-weight: 700;
    font-size: 11px;
    padding: 4px 12px;
    border-radius: 20px;
}
.status-online { background: #f0fdf4; color: #16a34a; }
.status-banned { background: #fef2f2; color: #ef4444; }
.status-expired { background: #fffbeb; color: #d97706; }

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
}
.dot-online { background: #22c55e; box-shadow: 0 0 8px #22c55e; }
.dot-banned { background: #ef4444; box-shadow: 0 0 8px #ef4444; }
.dot-expired { background: #f59e0b; box-shadow: 0 0 8px #f59e0b; }

.auth-page-wrapper {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: #f8fafc;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 20000;
    background-image: 
        radial-gradient(circle at 10% 20%, rgba(254, 60, 114, 0.04) 0%, transparent 40%),
        radial-gradient(circle at 90% 80%, rgba(254, 60, 114, 0.04) 0%, transparent 40%);
}

.auth-card-modern {
    background: white;
    padding: 45px 40px;
    border-radius: 30px;
    width: 100%;
    max-width: 400px;
    box-shadow: 0 25px 60px rgba(0,0,0,0.06);
    border: 1px solid rgba(0,0,0,0.03);
    animation: auth-fade-in 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes auth-fade-in {
    from { opacity: 0; transform: translateY(20px); }
    to { opacity: 1; transform: translateY(0); }
}

.auth-header {
    text-align: center;
    margin-bottom: 35px;
}

.auth-logo-img {
    width: 64px;
    height: 64px;
    margin-bottom: 15px;
    filter: drop-shadow(0 5px 15px rgba(254, 60, 114, 0.2));
    object-fit: contain;
}

.auth-header h2 {
    font-size: 26px;
    color: #1e293b;
    margin: 10px 0 5px 0;
}

.auth-header p {
    color: #94a3b8;
    font-size: 14px;
}

.auth-field-group {
    margin-bottom: 22px;
}

.auth-field-label {
    display: block;
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 600;
    color: #64748b;
    margin-left: 2px;
}

.auth-input-modern {
    width: 100% !important;
    padding: 15px 20px !important;
    border-radius: 16px !important;
    border: 1.5px solid #f1f5f9 !important;
    background: #f8fafc !important;
    font-size: 15px !important;
    transition: all 0.3s ease !important;
    outline: none !important;
    box-sizing: border-box !important;
    color: #1e293b !important;
}

.auth-input-modern:focus {
    background: white !important;
    border-color: #fe3c72 !important;
    box-shadow: 0 0 0 4px rgba(254, 60, 114, 0.1) !important;
}

.auth-btn-submit {
    width: 100%;
    padding: 16px;
    margin-top: 15px;
    border-radius: 16px;
    border: none;
    background: var(--primary-gradient);
    color: white;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
    transition: none !important;
    box-shadow: 0 10px 20px rgba(254, 60, 114, 0.25);
}

.auth-btn-submit:hover {
    transform: translateY(-3px);
    box-shadow: 0 15px 30px rgba(254, 60, 114, 0.35);
}

.auth-btn-submit:active {
    transform: translateY(-1px);
}

.auth-footer {
    text-align: center;
    margin-top: 30px;
    font-size: 14px;
    color: #64748b;
}

.auth-footer-link {
    color: #fe3c72;
    text-decoration: none;
    font-weight: 700;
    margin-left: 5px;
}

.auth-footer-link:hover {
    text-decoration: underline;
}

/* --- 高级按钮与动画 --- */
.premium-save-btn {
    background: var(--primary-gradient);
    color: white;
    border: none;
    padding: 12px 20px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: none !important;
    box-shadow: 0 4px 12px rgba(254, 60, 114, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.premium-save-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(254, 60, 114, 0.3);
}

.premium-save-btn:active {
    transform: translateY(-1px);
}

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