/* 现代化后台管理系统样式 */
:root {
    --primary-color: #ff6a00;
    --secondary-color: #ffffff;
    --text-dark: #333333;
    --text-light: #666666;
    --border-color: #e0e0e0;
    --success-color: #4caf50;
    --warning-color: #ff9800;
    --error-color: #f44336;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --radius: 8px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* 顶栏样式 */
.topbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    height: 70px;
    background: var(--secondary-color);
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.topbar-left .page-title {
    font-size: 24px;
    font-weight: 600;
    color: var(--text-dark);
    margin: 0;
}

.topbar-right {
    display: flex;
    align-items: center;
}

.user-info {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
}

.user-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: 16px;
}

.username {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
}

/* 现代化单色图标样式 */
.icon-svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
    vertical-align: middle;
    display: inline-block;
}

.nav-icon .icon-svg {
    width: 18px;
    height: 18px;
}

.logo-icon .icon-svg {
    width: 24px;
    height: 24px;
}


.search-icon .icon-svg {
    width: 14px;
    height: 14px;
}

.icon-inline .icon-svg {
    width: 16px;
    height: 16px;
    margin-right: 4px;
}

.icon-replaced {
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

body {
    font-family: 'Microsoft YaHei', 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    background: #ffffff;
    color: var(--text-dark);
    line-height: 1.6;
    min-height: 100vh;
    position: relative;
    overflow-x: hidden;
}

/* 几何图形背景动画 */
.geometric-shapes {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 0;
}

.shape {
    position: absolute;
    opacity: 0.05;
}

.shape-circle {
    border-radius: 50%;
    background: linear-gradient(45deg, var(--primary-color), #ff8533);
}

.shape-square {
    background: linear-gradient(45deg, var(--primary-color), #ff8533);
    transform: rotate(45deg);
}

.shape-triangle {
    width: 0;
    height: 0;
    background: transparent;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-bottom: 26px solid var(--primary-color);
}

.shape-hexagon {
    width: 30px;
    height: 26px;
    background: var(--primary-color);
    position: relative;
}

.shape-hexagon:before,
.shape-hexagon:after {
    content: "";
    position: absolute;
    width: 0;
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
}

.shape-hexagon:before {
    bottom: 100%;
    border-bottom: 13px solid var(--primary-color);
}

.shape-hexagon:after {
    top: 100%;
    border-top: 13px solid var(--primary-color);
}

/* 几何图形动画 */
@keyframes float1 {
    0%, 100% { transform: translateY(0px) rotate(0deg); }
    33% { transform: translateY(-25px) rotate(120deg); }
    66% { transform: translateY(15px) rotate(240deg); }
}

@keyframes float2 {
    0%, 100% { transform: translateX(0px) rotate(0deg); }
    50% { transform: translateX(30px) rotate(180deg); }
}

@keyframes float3 {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    25% { transform: translate(20px, -20px) rotate(90deg); }
    50% { transform: translate(-15px, -30px) rotate(180deg); }
    75% { transform: translate(-25px, 15px) rotate(270deg); }
}

@keyframes float4 {
    0%, 100% { transform: translateY(0px) scale(1) rotate(0deg); }
    50% { transform: translateY(-40px) scale(1.2) rotate(180deg); }
}

@keyframes float5 {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    20% { transform: translate(15px, -25px) rotate(72deg); }
    40% { transform: translate(-20px, -15px) rotate(144deg); }
    60% { transform: translate(-15px, 20px) rotate(216deg); }
    80% { transform: translate(25px, 10px) rotate(288deg); }
}

@keyframes drift {
    0%, 100% { transform: translate(0px, 0px) rotate(0deg); }
    25% { transform: translate(50px, -30px) rotate(90deg); }
    50% { transform: translate(-30px, -50px) rotate(180deg); }
    75% { transform: translate(-50px, 30px) rotate(270deg); }
}

/* 容器布局 */
.container {
    display: flex;
    min-height: 100vh;
    position: relative;
    z-index: 1;
}

/* 侧边栏 */
.sidebar {
    width: 260px;
    background: var(--secondary-color);
    box-shadow: var(--shadow);
    position: fixed;
    height: 100vh;
    overflow-y: auto;
    z-index: 1000;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    text-align: center;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: var(--primary-color);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.logo-icon {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--secondary-color);
    font-size: 18px;
}

.nav-menu {
    padding: 20px 0;
}

.nav-item {
    margin: 5px 0;
}

.nav-link {
    display: flex;
    align-items: center;
    padding: 12px 20px;
    color: var(--text-light);
    text-decoration: none;
    gap: 12px;
}

.nav-link:hover,
.nav-link.active {
    background: linear-gradient(90deg, var(--primary-color), #ff8533);
    color: var(--secondary-color);
}

.nav-icon {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 主内容区 */
.main-content {
    margin-left: 260px;
    padding: 0;
    flex: 1;
    width: calc(100% - 260px);
    display: flex;
    flex-direction: column;
}

/* 页面内容区 */
.page-content {
    padding: 30px;
    flex: 1;
}

/* 页面头部 */
.page-header {
    background: var(--secondary-color);
    padding: 25px 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.page-title {
    font-size: 28px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}


/* 卡片样式 */
.card {
    background: var(--secondary-color);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    margin-bottom: 30px;
    overflow: hidden;
}

.card-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    background: linear-gradient(90deg, #f8f9fa, #ffffff);
}

.card-title {
    font-size: 18px;
    font-weight: 600;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.card-body {
    padding: 25px;
}

/* 表格样式 */
.table-responsive {
    overflow-x: auto;
}

.table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 0;
}

.table th,
.table td {
    padding: 12px 15px;
    text-align: left;
    border-bottom: 1px solid var(--border-color);
    vertical-align: middle;
}

.table th {
    background: #f8f9fa;
    font-weight: 600;
    color: var(--text-dark);
    position: sticky;
    top: 0;
    z-index: 10;
}

.table tbody tr:hover {
    background: #f8f9fa;
}

/* 表单样式 */
.form-group {
    margin-bottom: 20px;
}

.form-label {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--text-dark);
}

.form-label .icon-svg {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
}

.form-control {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid var(--border-color);
    border-radius: var(--radius);
    font-size: 14px;
    background: var(--secondary-color);
}

.form-control:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
}

.form-row {
    display: flex;
    gap: 20px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.form-col {
    flex: 1;
    min-width: 0; /* 防止flex项目溢出 */
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.4);
}

.modal-content {
    background-color: var(--secondary-color);
    margin: 2% auto;
    padding: 0;
    border-radius: var(--radius);
    width: 90%;
    max-width: 600px;
    max-height: 95vh; /* 增加最大高度 */
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
}

.modal-header {
    padding: 20px 25px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-shrink: 0; /* 防止头部被压缩 */
    min-height: 70px; /* 减少头部最小高度 */
}

.modal-header h3 {
    margin: 0;
    color: var(--text-dark);
}

.modal-body {
    padding: 25px;
    flex: 1;
    overflow-y: auto;
    max-height: calc(95vh - 220px); /* 进一步增加空间给header和footer */
    min-height: 0; /* 允许收缩 */
}

/* 模态框滚动条样式 */
.modal-body::-webkit-scrollbar {
    width: 6px;
}

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

.modal-body::-webkit-scrollbar-thumb {
    background: var(--primary-color);
    border-radius: 3px;
}

.modal-body::-webkit-scrollbar-thumb:hover {
    background: #e55a00;
}

/* 代理编辑模态框特定样式 */
.proxy-modal .modal-content {
    max-width: 700px; /* 稍微增加宽度 */
}

.proxy-modal .modal-body {
    max-height: calc(95vh - 240px); /* 为更多内容预留空间 */
}

/* 确保代理模态框的footer始终可见 */
.note-modal.proxy-edit .modal-footer {
    position: sticky;
    bottom: 0;
    background: var(--secondary-color);
    z-index: 10;
}

/* 确保模态框底部始终可见 */
.modal-content {
    overflow: hidden; /* 防止整个模态框滚动 */
}

.modal-footer .btn {
    flex-shrink: 0; /* 防止按钮被压缩 */
}

/* 强制确保所有模态框footer可见 */
.modal-footer {
    position: relative !important;
    z-index: 100 !important;
    background: var(--secondary-color) !important;
    box-shadow: 0 -2px 8px rgba(0,0,0,0.1) !important;
}

/* 确保长模态框在小屏幕上也能正确显示 */
@media (max-height: 600px) {
    .modal-content {
        max-height: 98vh;
        margin: 1% auto;
    }
    
    .modal-body {
        max-height: calc(98vh - 200px);
    }
    
    .modal-header {
        min-height: 60px;
        padding: 15px 20px;
    }
    
    .modal-footer {
        min-height: 60px;
        padding: 15px 20px;
    }
}

/* 超小屏幕优化 */
@media (max-height: 500px) {
    .modal-content {
        max-height: 99vh;
        margin: 0.5% auto;
    }
    
    .modal-body {
        max-height: calc(99vh - 160px);
    }
    
    .modal-header {
        min-height: 50px;
        padding: 10px 15px;
    }
    
    .modal-footer {
        min-height: 50px;
        padding: 10px 15px;
    }
}

.modal-footer {
    padding: 20px 25px;
    border-top: 1px solid var(--border-color);
    display: flex;
    justify-content: flex-end;
    gap: 10px;
    flex-shrink: 0; /* 防止footer被压缩 */
    background-color: var(--secondary-color);
    min-height: 70px; /* 减少最小高度但确保按钮完全显示 */
    align-items: center; /* 垂直居中对齐按钮 */
}

.close {
    color: var(--text-light);
    font-size: 28px;
    font-weight: bold;
    cursor: pointer;
    line-height: 1;
}

.close:hover {
    color: var(--text-dark);
}

/* 按钮样式 */
.btn {
    padding: 12px 24px;
    border: none;
    border-radius: var(--radius);
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    justify-content: center;
    min-width: 120px;
}

.btn-primary {
    background: linear-gradient(45deg, var(--primary-color), #ff8533);
    color: var(--secondary-color);
}

.btn-primary:hover {
    box-shadow: 0 4px 15px rgba(255, 106, 0, 0.3);
}

.btn-secondary {
    background: #6c757d;
    color: var(--secondary-color);
}

.btn-secondary:hover {
    background: #545b62;
}

.btn-success {
    background: var(--success-color);
    color: var(--secondary-color);
}

.btn-warning {
    background: var(--warning-color);
    color: var(--secondary-color);
}

.btn-danger {
    background: var(--error-color);
    color: var(--secondary-color);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 12px;
    min-width: 80px;
}

/* 状态指示器 */
.status-badge {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.status-active {
    background: rgba(76, 175, 80, 0.1);
    color: var(--success-color);
}

.status-inactive {
    background: rgba(158, 158, 158, 0.1);
    color: #9e9e9e;
}

/* 统计卡片 */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.stat-card {
    background: var(--secondary-color);
    padding: 25px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    text-align: center;
    position: relative;
    overflow: hidden;
}

.stat-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary-color), #ff8533);
}

.stat-number {
    font-size: 32px;
    font-weight: bold;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.stat-label {
    color: var(--text-light);
    font-size: 14px;
}

/* 操作按钮组 */
.action-buttons {
    display: flex;
    gap: 15px;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

/* 表格单元格内的按钮容器 - 确保按钮在一行显示 */
table td .btn + .btn {
    margin-left: 8px;
}

/* 确保表格单元格内的按钮不换行 */
table td {
    white-space: nowrap;
}

/* 操作列特殊样式 - 确保有足够宽度 */
table td:last-child {
    white-space: nowrap;
    min-width: 160px;
}

/* 按钮行内显示样式 */
.btn-login, .btn-delete {
    display: inline-block;
    vertical-align: middle;
}

/* 确保按钮容器不换行 */
.btn-login + .btn-delete {
    margin-left: 8px;
}

/* 搜索框 */
.search-box {
    position: relative;
    max-width: 300px;
}

.search-box input {
    padding-right: 45px;
}

.search-icon {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-light);
}

/* 响应式设计 */
@media (max-width: 768px) {
    .sidebar {
        width: 100%;
        height: auto;
        position: relative;
    }
    
    .main-content {
        margin-left: 0;
        width: 100%;
        padding: 20px 15px;
    }
    
    .form-row {
        flex-direction: column;
        gap: 15px;
    }
    
    .form-col {
        width: 100%;
    }
    
    .stats-grid {
        grid-template-columns: 1fr;
    }
    
    .action-buttons {
        flex-direction: column;
        align-items: stretch;
    }
}

/* 加载指示器 */
.loading {
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid var(--border-color);
    border-radius: 50%;
    border-top-color: var(--primary-color);
}

/* 消息提示 */
.alert {
    padding: 15px 20px;
    margin-bottom: 20px;
    border-radius: var(--radius);
    border-left: 4px solid;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* 现代化成功提示框 */
.alert-success {
    background: linear-gradient(135deg, #e8f5e8 0%, #f1f9f1 100%);
    border: 1px solid #4caf50;
    color: #2e7d32;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.15);
    position: relative;
    overflow: hidden;
}

.alert-success::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #4caf50;
}

.alert-success .icon {
    background: #4caf50;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-success span:last-child {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
}

/* 警告提示框 */
.alert-warning {
    background: linear-gradient(135deg, #fff8e1 0%, #fffbf0 100%);
    border: 1px solid #ff9800;
    color: #f57c00;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(255, 152, 0, 0.15);
    position: relative;
    overflow: hidden;
}

.alert-warning::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #ff9800;
}

.alert-warning .icon {
    background: #ff9800;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-warning span:last-child {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
}

/* 错误提示框 */
.alert-error {
    background: linear-gradient(135deg, #ffebee 0%, #fdf2f2 100%);
    border: 1px solid #f44336;
    color: #d32f2f;
    border-radius: 12px;
    padding: 16px 20px;
    box-shadow: 0 4px 12px rgba(244, 67, 54, 0.15);
    position: relative;
    overflow: hidden;
}

.alert-error::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: #f44336;
}

.alert-error .icon {
    background: #f44336;
    color: white;
    border-radius: 50%;
    width: 24px;
    height: 24px;
    font-size: 14px;
    font-weight: bold;
    flex-shrink: 0;
}

.alert-error span:last-child {
    font-weight: 500;
    font-size: 15px;
    line-height: 1.4;
}

/* 提示框关闭按钮 */
.alert-close {
    position: absolute;
    top: 8px;
    right: 12px;
    background: none;
    border: none;
    font-size: 18px;
    color: inherit;
    opacity: 0.6;
    cursor: pointer;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
}

.alert-close:hover {
    opacity: 1;
    background: rgba(0, 0, 0, 0.05);
}

/* 提示框位置 */
.alert {
    position: relative;
    margin-bottom: 20px;
    z-index: 1000;
}

/* 提示框动画 */
.alert.fade-in {
    animation: alertSlideIn 0.3s ease-out;
}

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

.alert.fade-out {
    animation: alertSlideOut 0.3s ease-in forwards;
}

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

/* 现代化图标样式 */
.icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1em;
    height: 1em;
    font-style: normal;
    line-height: 0;
    text-align: center;
    text-transform: none;
    vertical-align: -.125em;
    text-rendering: optimizeLegibility;
    -webkit-font-smoothing: antialiased;
}

/* SVG图标基础样式 */
.svg-icon {
    width: 1em;
    height: 1em;
    fill: currentColor;
    overflow: hidden;
}

/* 静态样式类 */
.fade-in {
    opacity: 1;
}

.slide-in {
    /* 移除动画，保持静态显示 */
}

/* 状态徽章样式 */
.status-badge {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
}

.status-badge.success {
    background: rgba(76, 175, 80, 0.1);
    color: #4caf50;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.status-badge .icon {
    font-size: 10px;
}

/* 分页组件样式 */
.pagination-container {
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 30px 0;
    gap: 10px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.pagination .page-item {
    display: flex;
}

.pagination .page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 8px 12px;
    text-decoration: none;
    color: var(--text-dark);
    background: var(--secondary-color);
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-size: 14px;
    font-weight: 500;
}

.pagination .page-link:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.active .page-link {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
}

.pagination .page-item.disabled .page-link {
    color: var(--text-light);
    background: #f8f9fa;
    border-color: var(--border-color);
    cursor: not-allowed;
}

.pagination .page-item.disabled .page-link:hover {
    background: #f8f9fa;
    color: var(--text-light);
    border-color: var(--border-color);
}

/* 分页信息 */
.pagination-info {
    color: var(--text-light);
    font-size: 14px;
    margin: 0 15px;
}

/* 首页/尾页按钮样式 */
.pagination .page-item.first .page-link,
.pagination .page-item.last .page-link {
    font-weight: 600;
}

.pagination .page-item.first .page-link {
    border-top-right-radius: 0;
    border-bottom-right-radius: 0;
}

.pagination .page-item.last .page-link {
    border-top-left-radius: 0;
    border-bottom-left-radius: 0;
}

/* 登录数据相关样式 */
.login-data-display {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 200px;
}

.login-data-preview {
    display: flex;
    flex-direction: column;
    gap: 2px;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    background: #f8f9fa;
    border: 1px solid #e9ecef;
    max-width: 250px;
}

.login-data-preview:hover {
    background: #e9ecef;
    border-color: var(--primary-color);
}

.login-data-text {
    color: var(--text-color);
    font-size: 13px;
    font-family: monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.login-data-length {
    color: var(--text-light);
    font-size: 11px;
    font-weight: 500;
}

.login-data-placeholder {
    color: var(--text-light);
    font-size: 14px;
    font-style: italic;
    cursor: pointer;
}

.btn-edit-login-data {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--primary-color);
    padding: 4px;
    border-radius: 4px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.7;
    flex-shrink: 0;
}

.btn-edit-login-data:hover {
    opacity: 1;
    background: rgba(255, 106, 0, 0.1);
}

.btn-edit-login-data .icon-svg {
    width: 14px;
    height: 14px;
}

/* 登录数据模态框样式 */
.login-data-modal {
    max-width: 800px;
    width: 90%;
    max-height: 90vh;
}

.login-data-modal .modal-body {
    max-height: 500px;
    overflow-y: auto;
}

.login-data-modal textarea {
    min-height: 300px;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    resize: vertical;
}

.char-counter {
    text-align: right;
    margin-top: 8px;
    font-size: 12px;
    color: var(--text-light);
    font-weight: 500;
}

/* 查看登录数据模态框样式 */
.view-login-data-modal {
    max-width: 900px;
    width: 95%;
    max-height: 90vh;
}

.login-data-viewer {
    border: 1px solid #e9ecef;
    border-radius: 8px;
    overflow: hidden;
}

.viewer-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #e9ecef;
}

.data-info {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--text-color);
    font-weight: 500;
}

.data-info .icon-svg {
    width: 16px;
    height: 16px;
    color: var(--primary-color);
}

.btn-copy-data {
    background: var(--primary-color);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 500;
}

.btn-copy-data:hover {
    background: #e55a00;
}

.btn-copy-data .icon-svg {
    width: 14px;
    height: 14px;
}

.login-data-content {
    max-height: 400px;
    overflow: auto;
    padding: 16px;
    background: white;
}

.login-data-content pre {
    margin: 0;
    padding: 0;
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
    font-size: 13px;
    line-height: 1.5;
    color: var(--text-color);
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* 统一模态框样式 - note-modal */
.note-modal {
    max-width: 520px;
    width: 95%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
    border: none;
    background: white;
}

.note-modal .modal-header {
    background: #ffffff;
    color: #333333;
    padding: 24px 30px 20px;
    border-radius: 0;
    border: 1px solid #f0f0f0;
    border-bottom: 2px solid #ff6a00;
    position: relative;
    overflow: hidden;
}

.note-modal .modal-header::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: url('data:image/svg+xml,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100"><circle cx="20" cy="20" r="2" fill="rgba(255,106,0,0.05)"/><circle cx="80" cy="40" r="1.5" fill="rgba(255,106,0,0.05)"/><circle cx="40" cy="80" r="1" fill="rgba(255,106,0,0.05)"/><circle cx="70" cy="15" r="1.2" fill="rgba(255,106,0,0.03)"/></svg>');
    opacity: 0.6;
}

.note-modal .modal-title-section {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    position: relative;
    z-index: 1;
}

.note-modal .modal-icon {
    width: 48px;
    height: 48px;
    background: rgba(255, 106, 0, 0.1);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    border: 1px solid rgba(255, 106, 0, 0.2);
}

.note-modal .modal-icon svg {
    width: 24px;
    height: 24px;
    fill: #ff6a00;
}

.note-modal .modal-title-text h3 {
    margin: 0 0 6px 0;
    font-size: 20px;
    font-weight: 700;
    color: #333333;
}

.note-modal .modal-subtitle {
    margin: 0;
    font-size: 14px;
    opacity: 0.7;
    color: #666666;
    font-weight: 400;
}

.note-modal .modal-close {
    position: absolute;
    top: 20px;
    right: 24px;
    width: 32px;
    height: 32px;
    border: 1px solid rgba(255, 106, 0, 0.2);
    background: rgba(255, 106, 0, 0.05);
    border-radius: 8px;
    color: #ff6a00;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.note-modal .modal-close:hover {
    background: rgba(255, 106, 0, 0.1);
    border-color: rgba(255, 106, 0, 0.3);
    transform: scale(1.05);
}

.note-modal .modal-close svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.note-modal .modal-body {
    padding: 30px;
    background: white;
}

.note-modal .form-group {
    margin-bottom: 24px;
}

.note-modal .form-group:last-child {
    margin-bottom: 0;
}

.note-modal .form-label {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 15px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 12px;
}

.note-modal .form-label svg {
    width: 18px;
    height: 18px;
    fill: #ff6a00;
    flex-shrink: 0;
}

.note-modal textarea.form-control,
.note-modal input.form-control {
    width: 100%;
    padding: 16px;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    font-size: 14px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.5;
    color: #333333;
    background: #ffffff;
    box-sizing: border-box;
    transition: all 0.2s ease;
}

.note-modal textarea.form-control {
    min-height: 120px;
    resize: vertical;
}

.note-modal textarea.form-control:focus,
.note-modal input.form-control:focus {
    border-color: #ff6a00;
    background: white;
    box-shadow: 0 0 0 3px rgba(255, 106, 0, 0.1);
    outline: none;
}

.note-modal textarea.form-control::placeholder,
.note-modal input.form-control::placeholder {
    color: #999999;
    font-style: italic;
}

.note-modal .form-hint {
    margin-top: 12px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    font-size: 13px;
    color: #666666;
    line-height: 1.4;
    padding: 12px 16px;
    background: #f8f9fa;
    border-radius: 8px;
    border-left: 3px solid #ff6a00;
}

.note-modal .form-hint svg {
    width: 16px;
    height: 16px;
    fill: #ff6a00;
    flex-shrink: 0;
    margin-top: 1px;
}

.note-modal .modal-footer {
    padding: 20px 30px 30px;
    background: white;
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    border-top: 1px solid #e2e8f0;
}

.note-modal .modal-footer .btn {
    padding: 12px 24px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 100px;
    justify-content: center;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.2s ease;
}

.note-modal .modal-footer .btn-secondary {
    background: #ffffff;
    color: #666666;
    border-color: #dddddd;
}

.note-modal .modal-footer .btn-secondary:hover {
    background: #f8f9fa;
    border-color: #cccccc;
    color: #333333;
    transform: translateY(-1px);
}

.note-modal .modal-footer .btn-primary {
    background: #ff6a00;
    color: #ffffff;
    border-color: #ff6a00;
    box-shadow: 0 4px 12px rgba(255, 106, 0, 0.3);
}

.note-modal .modal-footer .btn-primary:hover {
    background: #e55a00;
    border-color: #e55a00;
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(255, 106, 0, 0.4);
}

.note-modal .modal-footer .btn-primary:disabled {
    opacity: 0.7;
    transform: none;
    box-shadow: 0 2px 6px rgba(255, 106, 0, 0.2);
}

.note-modal .modal-footer .btn svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* 代理管理模态框的特殊布局 */
.note-modal .form-section {
    margin-bottom: 32px;
}

.note-modal .form-section:last-child {
    margin-bottom: 0;
}

.note-modal .section-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #f0f0f0;
    font-size: 16px;
    font-weight: 700;
    color: #333333;
}

.note-modal .section-header svg {
    width: 20px;
    height: 20px;
    fill: #ff6a00;
}

.note-modal .form-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

@media (max-width: 768px) {
    .note-modal .form-grid {
        grid-template-columns: 1fr;
    }
}

.note-modal .status-selector {
    display: flex;
    flex-direction: row;
    gap: 24px;
    align-items: flex-start;
}

.note-modal .status-option {
    cursor: pointer;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 8px 0;
    flex: 1;
    min-width: 0; /* 允许内容收缩 */
}

.note-modal .status-option input[type="radio"] {
    appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #d1d5db;
    border-radius: 50%;
    background: white;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
    flex-shrink: 0;
    margin-top: 2px; /* 与文本顶部对齐 */
}

.note-modal .status-option input[type="radio"]:hover {
    border-color: var(--primary-color);
}

.note-modal .status-option input[type="radio"]:checked {
    border-color: var(--primary-color);
    background: var(--primary-color);
}

.note-modal .status-option input[type="radio"]:checked::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 6px;
    height: 6px;
    background: white;
    border-radius: 50%;
}

.note-modal .status-text {
    flex: 1;
}

.note-modal .status-label {
    font-size: 14px;
    font-weight: 500;
    color: var(--text-dark);
    margin: 0;
}

.note-modal .status-description {
    font-size: 12px;
    color: var(--text-light);
    margin: 2px 0 0 0;
    line-height: 1.4;
}

/* 响应式：小屏幕时改为垂直布局 */
@media (max-width: 600px) {
    .note-modal .status-selector {
        flex-direction: column;
        gap: 16px;
    }
    
    .note-modal .status-option {
        flex: none;
    }
}

.note-modal .status-info {
    flex: 1;
}

.note-modal .status-title {
    font-size: 14px;
    font-weight: 600;
    color: #333333;
    margin-bottom: 4px;
}

.note-modal .status-desc {
    font-size: 12px;
    color: #666666;
    line-height: 1.3;
}

/* 登录时间显示样式 */
.login-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.login-time .icon-inline .icon-svg {
    width: 14px;
    height: 14px;
    fill: #22c55e;
}

.no-login-time {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.no-login-time .icon-inline .icon-svg {
    width: 14px;
    height: 14px;
    fill: #94a3b8;
}

/* 注册时间显示样式 - 使用蓝色图标区分 */
.login-time[title*="注册时间"] .icon-inline .icon-svg {
    fill: #3b82f6;
}

/* TG用户名显示样式 */
.tg-username {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.tg-username .icon-inline .icon-svg {
    width: 14px;
    height: 14px;
    fill: #0088cc; /* Telegram蓝色 */
}

.tg-username-empty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.tg-username-empty .icon-inline .icon-svg {
    width: 14px;
    height: 14px;
    fill: #94a3b8; /* 灰色 */
}

/* TG ID显示样式 */
.tg-id {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-dark);
    font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
}

.tg-id .icon-inline .icon-svg {
    width: 14px;
    height: 14px;
    fill: #10b981; /* 绿色，区别于TG用户名的蓝色 */
}

.tg-id-empty {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-light);
    font-style: italic;
}

.tg-id-empty .icon-inline .icon-svg {
    width: 14px;
    height: 14px;
    fill: #94a3b8; /* 灰色 */
}

/* 登录数据按钮样式 */
.btn-view-login-data, .btn-add-login-data {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    font-family: inherit;
}

.btn-view-login-data:hover, .btn-add-login-data:hover {
    background: #e55a00;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(255, 106, 0, 0.3);
}

.btn-view-login-data .icon-svg, .btn-add-login-data .icon-svg {
    width: 14px;
    height: 14px;
    fill: currentColor;
}

.btn-add-login-data {
    background: #6b7280;
}

.btn-add-login-data:hover {
    background: #4b5563;
    box-shadow: 0 2px 8px rgba(107, 114, 128, 0.3);
}
