 
    .tablenav {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding: 10px 0;
    }
    .alignleft {
        float: left;
    }
    .alignright {
        float: right;
    }
    .tablenav::after {
        content: "";
        display: table;
        clear: both;
    }
	.existing-download-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 8px 0;
    border-bottom: 1px solid #eee;
}
.file-item h5{
	font-size:large;
}
.file-item .form-table textarea{
min-width:500px;
min-height:50px;
}
.download-info {
    flex: 1;
}
.download-title {
    color: #666;
    font-size: 14px;
    margin-left: 10px;
}

.download-actions {
    display: flex;
    gap: 5px;
}

.download-actions .button {
    font-size: 12px;
    height: auto;
    padding: 4px 8px;
}

#edit-existing-modal .afd-modal-content {
    max-width: 900px;
}

#edit-files-container {
    margin: 20px 0;
}

#edit-add-platform-buttons {
    margin-top: 15px;
}

 

#edit-add-platform-buttons .add-platform.available {
    display: inline-block;
}
	.afd-meta-actions {
    margin-bottom: 15px;
    display: flex;
    gap: 10px;
}

.shortcode-search {
    margin-bottom: 15px;
}

.shortcode-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 8px;
    background: #f9f9f9;
    transition: background-color 0.2s;
}

.shortcode-item:hover {
    background: #f0f0f1;
}

.shortcode-info {
    flex: 1;
}

.shortcode-info strong {
    display: block;
    margin-bottom: 4px;
    color: #23282d;
}

.shortcode-id {
    font-size: 12px;
    color: #666;
    font-family: monospace;
}

.select-shortcode-btn {
    margin-left: 10px;
}

.no-results {
    text-align: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}
    .afd-download-container {
        background: #f8f9fa;
        border-radius: 12px;
        overflow: hidden;
        margin: 20px 0;
        box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    }
    
    .afd-platform-tabs {
        display: flex;
        background: #e9ecef;
        border-bottom: 1px solid #dee2e6;
    }
    
    .afd-tab {
        flex: 1;
        padding: 6px 16px;
        border: none;
        background: transparent;
        cursor: pointer;
        font-size: 16px;
        font-weight: 600;
        transition: all 0.3s ease;
    }
    
    .afd-tab:hover {
        background: #dee2e6;
    }
    
    .afd-tab.active {
        background: #0d8ac8;
        color: white;
    }
    .afd-download-content {
            padding: 0;
            max-width: 800px;
            margin: 0 auto;
        }
        
        .afd-platform-content {
            display: none;
            padding: 10px;
        }
        
        .afd-platform-content.active {
            display: block;
        }
        
        .afd-file-info {
            margin-bottom: 16px;
            display: flex;
            align-items: flex-start;
            gap: 12px;
        }
        
        .afd-file-name-section {
            flex: 1;
            padding-right: 20px;
            min-width: 0; /* 允许文本换行 */
        }
        
        .afd-file-name {
            font-size: 16px;
            font-weight: 600;
            color: #2c3e50;
            margin-bottom: 0;   
            word-break: break-word;
            overflow-wrap: break-word;
            line-height: 1.4;
        }
        
        .afd-file-version {
            font-size: 14px;
            font-weight: 500;
            color: #666;
            margin-top: 4px;
            display: inline-block;
            background: #f0f0f0;
            padding: 2px 6px;
            border-radius: 4px;
        }
        
        /* 当没有版本号时，文件名占据更多空间 */
        .afd-file-name-section:not(:has(.afd-file-version)) .afd-file-name {
            margin-bottom: 4px;
        }
        
        .afd-file-size {
            font-size: 14px;
            color: #2997f7;
            background: #e7f3ff;
            display: inline-block;
            padding: 4px 8px;
            border-radius: 12px;
            white-space: nowrap;
            flex-shrink: 0;
            align-self: center; /* 垂直居中对齐 */
        }
        
        /* 长文件名处理 */
        .afd-file-name.long-filename {
            font-size: 14px; /* 小字体 */
            line-height: 1.3;
        }
        
        /* 移动端响应式 */
        @media (max-width: 768px) {
            .afd-file-info {
                margin-bottom: 8px; /* 减少下边距 */
            }
            
            .afd-file-name-section {
                padding-right: 10px;
            }
            
            .afd-file-name {
                font-size: 14px; /* 移动端使用更小字体 */
            }
            
            .afd-file-name.long-filename {
                font-size: 13px;
            }
            
            .afd-file-version {
                font-size: 12px;
                margin-top: 2px;
            }
        }
        
.afd-desc-download-row {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-bottom: 10px;
}.afd-file-desc {
    flex: 1;          white-space: pre-line;
    font-size: 14px;
    color: #666;
    margin: 0;
}
        .afd-download-links {
            display: flex;
            gap: 10px;
            flex-wrap: wrap;
		justify-content: flex-end;
            margin-bottom: 10px;
        }
        
        .afd-download-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            padding: 3px 12px;
            border-radius: 8px;
            text-decoration: none;
            font-weight: 500;
            font-size: 14px;
            transition: all 0.3s ease;
            border: 2px solid transparent;
            color: white;
            width: auto; /* 桌面端固定宽度 */
            justify-content: center;
        }
        
        .afd-download-btn:hover {
            transform: translateY(-2px);
            box-shadow: 0 4px 12px rgba(0,0,0,0.15);
            text-decoration: none;
            color: white !important;
        }
        
       
        
        .afd-file-separator {
            border: none;
            border-top: 1px solid #c4b9b9;
            margin: 10px 0;
        }
        
        /* 每个文件项的容器 */
        .afd-file-item {
            margin-bottom: 30px;
            padding: 20px;
            background: #f8f9fa;
            border-radius: 12px;
            border: 1px solid #e9ecef;
        }
        
        /* 移动端优化 */
        @media (max-width: 768px) {
            .afd-file-item {
                padding: 15px;
            }
            
            /* 手机端：文件大小和按钮在同一行 */
            .afd-file-size-and-buttons {
                display: flex;
                align-items: center;
                gap: 12px;
                flex-wrap: wrap;
                margin-top: 8px;
            }
            
            .afd-download-links {
				 width: 100%;  margin-top: 10px;
                justify-content:  center; 
            }
            
			.afd-desc-download-row {
				display: block;
				margin-bottom: 10px;
			}.afd-file-desc {
				 width: 100%;           
				font-size: 14px;
				color: #666; margin: 0 0 10px 0;
				 white-space: pre-line;
			}
            .afd-download-btn {
                min-width: 80px;
                padding: 6px 12px;
                font-size: 13px;
            }
        }
        
        /* 桌面端优化 */
        @media (min-width: 769px) {
            .afd-file-size-and-buttons {
                display: none; /* 桌面端隐藏这个容器 */
            }
            
            .afd-download-btn {
                min-width: 80px; /* 桌面端固定宽度 */
            }
        }
    .afd-btn-tera {
        background: linear-gradient(35deg, #ff6b35, #f7931e);
        color: white;
    }
     /* 为不同平台按钮添加颜色 */
        .afd-btn-tg {
            background: linear-gradient(25deg, #0088cc, #229ed9);
        } 
    .afd-btn-kzwr,.afd-btn-gofile {
        background: linear-gradient(135deg, #51a3f1, #0c88c6);
        color: white;
    }
    
    .afd-btn-mega {
        background: linear-gradient(135deg, #ff4757, #ff3838);
        color: white;
    }
    
    .afd-btn-onedrive {
        background: linear-gradient(135deg, #0078d4, #106ebe);
        color: white;
    }
    
    .afd-btn-googledrive {
        background: linear-gradient(135deg, #4285f4, #34a853);
        color: white;
    }
    
    .afd-btn-dropbox,.afd-btn-other,.afd-btn-official {
        background: linear-gradient(135deg, #0061ff, #0051d5);
        color: white;
    }

    /* 管理界面样式 */
    .afd-modal {
        position: fixed;
        z-index: 100000;
        left: 0;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0,0,0,0.5);
    }
    
    .afd-modal-content {
        background-color: #fefefe;
        margin: 5% auto;
        padding: 20px;
        border-radius: 8px;
        width: 80%;
        max-width: 800px;
        max-height: 80vh;
        overflow-y: auto;
    }
    
    .afd-close {
        color: #aaa;
        float: right;
        font-size: 28px;
        font-weight: bold;
        cursor: pointer;
    }
    
    .afd-close:hover {
        color: black;
    }
    
    .file-item {
        border: 1px solid #ddd;
        margin: 10px 0;
        padding: 15px;
        border-radius: 5px;
        background: #f9f9f9;
    }
    
    .link-item {
        display: flex;
        gap: 10px;
        margin: 5px 0;
        align-items: center;
    }
    
    .link-item select,
    .link-item input {
        flex: 1;
    }
    
    .add-platform-buttons {
        margin: 15px 0;
        display: flex;
        gap: 10px;
        flex-wrap: wrap;
    }
    
    .add-platform {
        padding: 8px 12px;
        border-radius: 4px;
        border: 1px solid #ddd;
        background: #f0f0f1;
        cursor: pointer;
    }
    
    .add-platform:hover {
        background: #e0e0e1;
    } 