.subscription-container {
    padding: 20px;
}

.subscription-table-container {
    background: #fff;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    margin-top: 20px;
}

.table-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 16px;
    border-bottom: 1px solid #eee;
}

.subscription-stats {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #666;
    font-size: 14px;
}

.subscription-stats i {
    color: var(--primary-color);
    font-size: 20px;
}

.subscription-stats span {
    color: var(--primary-color);
    font-weight: 600;
    margin: 0 4px;
}

/* 表格样式 */
#subscriptionTable {
    width: 100%;
    border-collapse: separate;
    border-spacing: 0;
    margin-top: 16px;
    table-layout: fixed;
}

#subscriptionTable th {
    background-color: #f8f9fa;
    padding: 16px;
    text-align: left;
    font-weight: 600;
    color: #444;
    border-bottom: 2px solid #eee;
    font-size: 14px;
}

#subscriptionTable td {
    padding: 16px;
    border-bottom: 1px solid #eee;
    vertical-align: middle;
}

#subscriptionTable tr:hover {
    background-color: #f8f9fa;
}

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

.status-active {
    background-color: rgba(76, 175, 80, 0.1);
    color: #4CAF50;
}

.status-error {
    background-color: rgba(244, 67, 54, 0.1);
    color: #f44336;
}

.status-updating {
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
}

/* 操作按钮容器样式 */
.action-buttons {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0.8;
    transition: opacity 0.3s ease;
}

.action-buttons:hover {
    opacity: 1;
}

/* 开关按钮容器 */
.switch-container {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border-radius: 6px;
    transition: all 0.3s ease;
    width: fit-content;
    margin: 0 auto;
}

.switch-container:hover {
    background: #eeeeee;
}

/* 开关按钮样式优化 */
.switch {
    position: relative;
    display: inline-block;
    width: 40px;
    height: 20px;
    margin: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: #e0e0e0;
    transition: .3s;
    border-radius: 20px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 16px;
    width: 16px;
    left: 2px;
    bottom: 2px;
    background-color: white;
    transition: .3s;
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

input:checked + .slider {
    background-color: var(--primary-color);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

/* 状态文本 */
.switch-status {
    font-size: 13px;
    color: #666;
    font-weight: 500;
    min-width: 48px;
}

input:checked ~ .switch-status {
    color: var(--primary-color);
}

/* 开关按钮悬停效果 */
.switch:hover .slider {
    box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.05);
}

.switch:hover .slider:before {
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

/* 开关按钮禁用状态 */
.switch input:disabled + .slider {
    opacity: 0.5;
    cursor: not-allowed;
}

/* 开关按钮动画效果 */
.slider, .slider:before {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* 操作按钮组 */
.button-group {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
    border-radius: 6px;
    width: fit-content;
    margin: 0 auto;
}

/* 操作按钮样式优 */
.btn-icon {
    width: 32px;
    height: 32px;
    border: none;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    color: white;
}

.btn-icon.info {
    background-color: #2196F3;
}

.btn-icon.danger {
    background-color: #f44336;
}

.btn-icon:hover {
    transform: translateY(-1px);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.btn-icon.info:hover {
    background-color: #1976D2;
}

.btn-icon.danger:hover {
    background-color: #D32F2F;
}

.btn-icon i {
    font-size: 18px;
}

/* 订阅地址样式 */
.subscription-url {
    max-width: 300px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: #666;
    font-family: monospace;
}

/* 更新周期样式 */
.update-interval {
    color: #666;
    font-size: 14px;
}

/* 最后更新时间样式 */
.last-update {
    color: #666;
    font-size: 14px;
}

/* Toast 样式 */
.toast {
    position: fixed;
    top: 20px;
    right: 20px;
    padding: 12px 24px;
    border-radius: 6px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transform: translateX(120%);
    transition: transform 0.3s ease;
    z-index: 1000;
}

.toast.show {
    transform: translateX(0);
}

.toast-content {
    display: flex;
    align-items: center;
    gap: 8px;
}

.toast i {
    font-size: 20px;
}

.toast-success {
    background-color: #4CAF50;
    color: white;
}

.toast-error {
    background-color: #f44336;
    color: white;
}

.toast-info {
    background-color: #2196F3;
    color: white;
}

/* 模态框样式 */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal.modal-show {
    opacity: 1;
}

.modal-content {
    background: white;
    width: 90%;
    max-width: 800px;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.modal.modal-show .modal-content {
    transform: translateY(0);
}

.modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.modal-header h2 {
    margin: 0;
    font-size: 1.5rem;
    display: flex;
    align-items: center;
    gap: 10px;
    color: white;
}

.modal-header h2::before {
    content: '\F417';
    font-family: 'Material Design Icons';
    font-size: 24px;
}

.modal-header .close {
    color: white;
    font-size: 24px;
    cursor: pointer;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background-color 0.3s ease;
}

.modal-header .close:hover {
    background: rgba(255, 255, 255, 0.2);
}

.modal-body {
    padding: 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

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

.form-group label {
    display: block;
    margin-bottom: 8px;
    color: #666;
    font-weight: 500;
    font-size: 14px;
}

.form-group input[type="text"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    transition: all 0.3s ease;
}

.form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

/* 节点选择区域样式 */
.node-selection {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f8f9fa;
}

.node-filters {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    gap: 12px;
    background: white;
    border-radius: 8px 8px 0 0;
}

.node-filters select {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
    min-width: 120px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.node-filters select:hover {
    border-color: var(--primary-color);
}

.node-filters select:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(24, 144, 255, 0.1);
}

.node-list {
    max-height: 400px;
    overflow-y: auto;
}

.node-list-header {
    padding: 12px 16px;
    background: #f8f9fa;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1;
}

.node-list-header label {
    display: flex;
    align-items: center;
    gap: 8px;
    cursor: pointer;
    user-select: none;
}

.selected-count {
    color: #666;
    font-size: 13px;
}

/* 节点列表项式 */
.node-item {
    padding: 12px 16px;
    border-bottom: 1px solid #eee;
    transition: background-color 0.2s ease;
}

.node-item:last-child {
    border-bottom: none;
}

.node-item:hover {
    background-color: #f8f9fa;
}

.node-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    width: 100%;
}

.node-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    cursor: pointer;
}

.node-type {
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    background: #e3f2fd;
    color: #1976d2;
}

/* 按钮样式 */
.form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn:not(.primary) {
    background: #f5f5f5;
    color: #666;
}

.btn:not(.primary):hover {
    background: #eee;
}

.btn.primary {
    background: var(--primary-color);
    color: white;
}

.btn.primary:hover {
    background: var(--primary-color-dark, #388e3c);
    transform: translateY(-1px);
}

.btn i {
    font-size: 18px;
}

/* 自定义复选框样式 */
input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    outline: none;
    cursor: pointer;
    position: relative;
    transition: all 0.2s ease;
}

input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:checked::after {
    content: '';
    position: absolute;
    left: 5px;
    top: 2px;
    width: 5px;
    height: 10px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: rotate(45deg);
}

input[type="checkbox"]:indeterminate {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

input[type="checkbox"]:indeterminate::after {
    content: '';
    position: absolute;
    left: 3px;
    top: 7px;
    width: 10px;
    height: 2px;
    background: white;
}

/* 滚动条样式 */
.node-list::-webkit-scrollbar {
    width: 8px;
}

.node-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.node-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.node-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 空状态样 */
.no-nodes {
    padding: 40px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

/* 节点类型标签样式 */
.node-type.vmess { background: #e3f2fd; color: #1976d2; }
.node-type.vless { background: #e8f5e9; color: #2e7d32; }
.node-type.trojan { background: #f3e5f5; color: #7b1fa2; }
.node-type.ss { background: #fff3e0; color: #ef6c00; }

/* 订阅链接样式 */
.url-container {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #f8f9fa;
    padding: 8px 12px;
    border-radius: 6px;
    border: 1px solid #eee;
    transition: all 0.3s ease;
    max-width: 100%;
    margin-right: 8px;
}

.url-container:hover {
    border-color: var(--primary-color);
    background: #fff;
}

.url-text {
    flex: 1;
    font-family: 'Roboto Mono', monospace;
    color: #666;
    font-size: 13px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.copy-url {
    opacity: 0;
    padding: 4px;
    border-radius: 4px;
    background: transparent;
    border: none;
    color: #666;
    cursor: pointer;
    transition: all 0.3s ease;
}

.url-container:hover .copy-url {
    opacity: 1;
}

.copy-url:hover {
    background: rgba(0, 0, 0, 0.05);
    color: var(--primary-color);
}

/* 调整表格列宽和对齐方式 */
#subscriptionTable th:nth-child(1) { 
    width: 30px; 
    text-align: center;
}

#subscriptionTable th:nth-child(2) { 
    width: 200px; 
    text-align: left;
}

#subscriptionTable th:nth-child(3) { 
    width: 30%;   /* 订阅地址列自适应宽度 */
    text-align: left;
}

#subscriptionTable th:nth-child(4) { 
    width: 80px; 
    text-align: center;
}

#subscriptionTable th:nth-child(5) { 
    width: 120px; 
    text-align: center;
}

#subscriptionTable th:nth-child(6) { 
    width: 100px; 
    text-align: center;
}

/* 表格单元格对齐方式 */
#subscriptionTable td:nth-child(1) { text-align: center; }
#subscriptionTable td:nth-child(2) { text-align: left; }
#subscriptionTable td:nth-child(3) { text-align: left; }
#subscriptionTable td:nth-child(4) { text-align: center; }
#subscriptionTable td:nth-child(5) { text-align: center; }
#subscriptionTable td:nth-child(6) { text-align: center; }

/* 确保表格布局固定 */
#subscriptionTable {
    table-layout: fixed;
    width: 100%;
}

/* 确保内容不会影响布局 */
#subscriptionTable th,
#subscriptionTable td {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 调整 URL 容器样式 */
.url-container {
    max-width: 100%;
    margin-right: 8px;
}

/* 调整按钮组样式 */
.button-group {
    margin: 0 auto;
    width: fit-content;
}

/* 调整开关容器样式 */
.switch-container {
    width: fit-content;
    margin: 0 auto;
}

/* 批量删除按钮样式优化 */
.batch-delete-btn {
    background: #ff5252 !important;
    color: white !important;
    min-width: 120px;
}

.batch-delete-btn.visible {
    display: inline-flex !important;
    animation: slideIn 0.3s ease forwards;
}

.batch-delete-btn:hover {
    background: #ff1744 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 8px rgba(244, 67, 54, 0.15);
}

.batch-delete-btn i {
    color: white !important;
    font-size: 18px;
}

.batch-delete-btn .selected-count {
    background: rgba(255, 255, 255, 0.2);
    color: white;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 500;
    margin-left: 4px;
}

/* 批量删除按钮动画 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateX(-10px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* 添加按钮样式 */
.btn.primary {
    background: var(--primary-color);
    color: white;
    padding: 8px 16px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
}

.btn.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.btn.primary i {
    font-size: 18px;
}

/* 复选框样式优化 */
#subscriptionTable input[type="checkbox"] {
    width: 18px;
    height: 18px;
    border: 2px solid #ddd;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.2s ease;
}

#subscriptionTable input[type="checkbox"]:checked {
    background-color: var(--primary-color);
    border-color: var(--primary-color);
}

/* 动画效果 */
@keyframes slideIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* 确认对话框样式优化 */
.confirm-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px); /* 添加背景模糊效果 */
}

.confirm-dialog.modal-show {
    display: block;
    opacity: 1;
}

.confirm-dialog .modal-content {
    max-width: 400px;
    background: white;
    margin: 100px auto;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    transform: translateY(-20px);
    transition: all 0.3s ease;
    overflow: hidden; /* 确保内容不会溢出圆角 */
}

.confirm-dialog.modal-show .modal-content {
    transform: translateY(0);
}

.confirm-dialog .modal-header {
    background: linear-gradient(45deg, #ff5252, #ff1744);
    padding: 20px 24px;
    color: white;
    position: relative;
}

.confirm-dialog .modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.confirm-dialog .modal-title i {
    font-size: 24px;
    color: rgba(255, 255, 255, 0.9);
}

.confirm-dialog .modal-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
    color: white;
}

.confirm-dialog .modal-body {
    padding: 24px;
}

.confirm-dialog .warning-text {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    margin-bottom: 24px;
    background: rgba(244, 67, 54, 0.05);
    padding: 16px;
    border-radius: 8px;
    border: 1px solid rgba(244, 67, 54, 0.1);
}

.confirm-dialog .warning-text i {
    color: #f44336;
    font-size: 24px;
    flex-shrink: 0;
}

.confirm-dialog .warning-text p {
    margin: 0;
    color: #333;
    font-size: 14px;
    line-height: 1.6;
}

.confirm-dialog .form-actions {
    display: flex;
    justify-content: flex-end;
    gap: 12px;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid #eee;
}

.confirm-dialog .btn {
    padding: 8px 20px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    height: 36px;
}

.confirm-dialog .btn:not(.danger) {
    background: #f5f5f5;
    color: #666;
}

.confirm-dialog .btn:not(.danger):hover {
    background: #eee;
    transform: translateY(-1px);
}

.confirm-dialog .btn.danger {
    background: #ff5252;
    color: white;
}

.confirm-dialog .btn.danger:hover {
    background: #ff1744;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(244, 67, 54, 0.2);
}

.confirm-dialog .btn.danger:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.confirm-dialog .btn i {
    font-size: 18px;
}

/* 添加关闭按钮样式 */
.confirm-dialog .close {
    position: absolute;
    top: 16px;
    right: 16px;
    color: white;
    opacity: 0.8;
    cursor: pointer;
    font-size: 24px;
    transition: all 0.3s ease;
}

.confirm-dialog .close:hover {
    opacity: 1;
    transform: rotate(90deg);
}

/* 智能生成的订阅样式优化 */
.subscription-auto {
    background-color: rgba(33, 150, 243, 0.03); /* 更浅的蓝色背景 */
}

.subscription-auto td {
    color: #333; /* 保持普通文字颜色 */
}

/* 智能生成的订阅URL容器样式 */
.subscription-auto .url-container {
    background-color: rgba(33, 150, 243, 0.05);
    border: 1px solid rgba(33, 150, 243, 0.2);
}

/* 智能生成标签样式优化 */
.auto-generated-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 2px 8px;
    border-radius: 12px;
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    font-size: 12px;
    margin-left: 8px;
}

.auto-generated-tag i {
    font-size: 14px;
}

/* 智能生成订阅的开关样式 */
.subscription-auto .switch-container {
    background-color: rgba(33, 150, 243, 0.05);
}

.subscription-auto .switch input:checked + .slider {
    background-color: #2196F3;
}

/* 智能生成订阅的操作按钮样式 */
.subscription-auto .button-group .btn-icon.info {
    background-color: #2196F3;
}

.subscription-auto .button-group .btn-icon.info:hover {
    background-color: #1976D2;
}

/* 智能生成订阅的节点数量样式 */
.subscription-auto td:nth-child(4) {
    color: #2196F3;
    font-weight: 500;
}

/* 智能生成订阅的状态开关文字颜色 */
.subscription-auto .switch-status {
    color: #2196F3;
}

/* 智能生成订阅的边框样式 */
.subscription-auto td {
    border-bottom: 1px solid rgba(33, 150, 243, 0.1);
}

/* 智能生成订阅悬停效果 */
.subscription-auto:hover {
    background-color: rgba(33, 150, 243, 0.05);
}

/* 修 action-panel 样式 */
.action-panel {
    margin-bottom: 20px;
}

.left-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap; /* 允许按钮换行 */
}

/* 调整按钮样式 */
.btn {
    height: 36px;
    padding: 0 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s ease;
    white-space: nowrap; /* 防止按钮文字换行 */
}

.btn i {
    font-size: 18px;
}

/* 主要按钮样式 */
.btn.primary {
    background: var(--primary-color);
    color: white;
    min-width: 120px;
}

.btn.primary:hover {
    background: var(--primary-color-dark, #388e3c);
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 信息按钮样式 */
.btn.info {
    background: #2196F3;
    color: white;
    min-width: 120px;
}

.btn.info:hover {
    background: #1976D2;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 批量删除按钮样式 */
.batch-delete-btn {
    background: #ff5252 !important;
    color: white !important;
    min-width: 120px;
}

.batch-delete-btn:hover {
    background: #ff1744 !important;
    transform: translateY(-1px);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* 按钮组间距 */
.button-group {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* 响应式布局 */
@media screen and (max-width: 768px) {
    .left-actions {
        flex-direction: column;
        align-items: stretch;
    }
    
    .btn {
        width: 100%;
        justify-content: center;
    }
}

/* 帮助图标样式 */
.help-icon {
    font-size: 16px !important;
    opacity: 0.7;
    margin-left: 4px;
}

/* 按钮悬停提示样式优化 */
[title] {
    position: relative;
    cursor: help;
}

[title]:hover::after {
    content: attr(title);
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    padding: 8px 12px;
    background: rgba(0, 0, 0, 0.8);
    color: white;
    font-size: 12px;
    border-radius: 6px;
    white-space: nowrap;
    z-index: 1000;
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

[title]:hover::before {
    content: '';
    position: absolute;
    bottom: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: rgba(0, 0, 0, 0.8);
    pointer-events: none;
    animation: fadeIn 0.2s ease;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translate(-50%, -5px);
    }
    to {
        opacity: 1;
        transform: translate(-50%, 0);
    }
}

/* 分组选择模态框样式 */
.group-selection {
    border: 1px solid #eee;
    border-radius: 8px;
    background: #f8f9fa;
    margin-bottom: 20px;
}

.group-list-header {
    padding: 16px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    border-radius: 8px 8px 0 0;
}

.group-list {
    max-height: 300px;
    overflow-y: auto;
    padding: 8px;
}

.group-item {
    padding: 12px;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.group-item:hover {
    background-color: #f0f0f0;
}

.group-item label {
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    flex: 1;
    flex-wrap: wrap; /* 允许内容换行 */
}

.group-item label > span:first-of-type {
    min-width: 120px; /* 确保分组名称有最小宽度 */
}

.group-item .node-count {
    font-size: 12px;
    color: #666;
    background: #eee;
    padding: 2px 8px;
    border-radius: 12px;
}

/* 滚动条样式 */
.group-list::-webkit-scrollbar {
    width: 8px;
}

.group-list::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.group-list::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 4px;
}

.group-list::-webkit-scrollbar-thumb:hover {
    background: #999;
}

/* 同步状态标签样式优化 */
.sync-status {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    border-radius: 12px;
    background-color: rgba(33, 150, 243, 0.1);
    color: #2196F3;
    font-size: 12px;
    margin-left: 8px;
}

.sync-status i {
    font-size: 14px;
    margin-right: 4px;
}

/* 更新提示样式 */
.update-hint {
    display: inline-flex;
    align-items: center;
    color: #666;
    font-size: 10px;
    margin-left: 8px;
}

/* 智能分组同步的订阅样式 */
.subscription-auto-smart {
    background-color: rgba(33, 150, 243, 0.08);
}

.subscription-auto-smart .url-container {
    background-color: rgba(33, 150, 243, 0.08);
    border: 1px solid rgba(33, 150, 243, 0.3);
}

.subscription-auto-smart .auto-generated-tag {
    background-color: #2196F3;
    color: white;
}

.subscription-auto-smart .node-count {
    color: #2196F3;
    font-weight: 500;
}

/* 普通分组同步的订阅样式 */
.subscription-auto-normal {
    background-color: rgba(76, 175, 80, 0.08);
}

.subscription-auto-normal .url-container {
    background-color: rgba(76, 175, 80, 0.08);
    border: 1px solid rgba(76, 175, 80, 0.3);
}

.subscription-auto-normal .auto-generated-tag {
    background-color: #4CAF50;
    color: white;
}

.subscription-auto-normal .node-count {
    color: #4CAF50;
    font-weight: 500;
}

/* 手动添加的订阅样式 */
.subscription-manual {
    background-color: white;
}

/* 悬停效果 */
.subscription-auto-smart:hover {
    background-color: rgba(33, 150, 243, 0.12);
}

.subscription-auto-normal:hover {
    background-color: rgba(76, 175, 80, 0.12);
}

.subscription-manual:hover {
    background-color: #f5f5f5;
}

/* 通用的自动生成标签样式 */
.auto-generated-tag {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    padding: 4px 12px;
    border-radius: 12px;
    font-size: 12px;
    margin-left: 8px;
    font-weight: 500;
}

.auto-generated-tag i {
    font-size: 14px;
}

/* 添加拖动相关的样式 */
.draggable {
    cursor: move;
}

.dragging {
    opacity: 0.5;
    background: #f8f9fa !important;
}

.drag-over {
    border-bottom: 2px solid var(--primary-color);
}

/* 添加拖动手柄样式 */
.drag-handle {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    cursor: move;
    opacity: 0.5;
    transition: opacity 0.2s ease;
    border-radius: 6px;
}

.drag-handle:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.05);
}

.drag-handle i {
    font-size: 18px;
}

/* 调整表格第一列宽度以适应拖动手柄 */
#subscriptionTable th:first-child {
    width: 40px;
}

/* 调整表格列宽 */
#subscriptionTable th:last-child {
    width: 140px; /* 增加最后一列的宽度以适应多个按钮 */
}

/* 订阅详情模态框样式 */
.subscription-detail-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1000;
    opacity: 0;
    transition: opacity 0.3s ease;
    backdrop-filter: blur(4px);
}

.subscription-detail-modal.modal-show {
    display: block !important;
    opacity: 1;
}

.subscription-detail-modal .modal-content {
    max-width: 600px;
    background: white;
    margin: 40px auto;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0,0,0,0.15);
    transform: translateY(-20px);
    transition: transform 0.3s ease;
}

.subscription-detail-modal.modal-show .modal-content {
    transform: translateY(0);
}

.subscription-detail-modal .modal-header {
    padding: 20px;
    border-bottom: 1px solid #eee;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: var(--primary-color);
    color: white;
    border-radius: 12px 12px 0 0;
}

.subscription-detail-modal .modal-title {
    display: flex;
    align-items: center;
    gap: 12px;
}

.subscription-detail-modal .modal-title i {
    font-size: 24px;
}

.subscription-detail-modal .modal-title h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 500;
}

.subscription-detail-modal .modal-body {
    padding: 24px;
    max-height: calc(100vh - 200px);
    overflow-y: auto;
}

.detail-item {
    margin-top: 12px;
}